@use "../custom" as *;

.blogDetail {
  &__head {
    min-height: 30rem;
    width: 100%;
    position: relative;
  }

  &__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    &::after {
      content: "";
      display: block;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: rgba($black, 0.7);
    }
  }

  &__meta {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin-top: auto;
    display: flex;
    align-items: end;
    padding: 2.5rem 0;

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin: 0;
      padding: 0;

      &-item {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;

        &:not(:first-child):before {
          display: none;
        }

        &:not(:last-child):after {
          content: "";
          display: block;
          width: 8px;
          background: no-repeat url("../icons/right-chevron.svg");
          height: 8px;
          background-size: contain;
          background-position: center;
        }

        &,
        a {
          font-weight: 400;
          font-size: 0.75rem;
          color: #fff;
          font-family: $roobert;
        }
      }
    }
  }

  &__headline {
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.25rem);
    line-height: 1.5;
    color: #fff;
    margin-top: 0.75rem;
    display: block;
  }

  &__content {
    padding: 3.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-weight: 700;
      font-size: clamp(1.5rem, 3vw, 2.25rem);
      letter-spacing: 0.01em;
      color: #183b56;
      font-family: $roobert;
      margin: 0;
    }

    p {
      font-weight: 500;
      font-size: clamp(1rem, 3vw, 1.25rem);
      line-height: 1.5;
      color: #7c8499;
      font-family: $roobert;
      margin: 0;
    }
  }
}
