@use "../abstracts/" as *;

.breadcrumb-banner {
  .banner-wrapper {
    height: 100%;
    max-width: 100%;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    @include lg-down {
      border-radius: 20px;
    }
    @at-root {
      .breadcrumb-img {
        height: 100%;
        width: 100%;
        overflow: hidden;
        position: absolute;
        z-index: -1;
        inset: 0;
        > img {
          width: 100%;
          height: 100%;
          -o-object-fit: cover;
             object-fit: cover;
          -o-object-position: top;
             object-position: top;
        }
        &::before {
          position: absolute;
          content: "";
          width: 100%;
          height: 100%;
          background: $color-dark;
          opacity: 0.5;
        }
      }

      .breadcrumb-content {
        padding: 90px 90px 30px 180px;
        @include sxxl-down {
          padding: 60px;
        }
        @include lg-down {
          padding: 40px;
        }

        @include md-down {
          padding: 30px 20px;
        }

        @at-root {
          .breadcrumb-title {
            font-size: 45px;
            font-weight: 600;
            color: $text-light;
            padding: 15px 25px;
            width: -webkit-fit-content;
            width: -moz-fit-content;
            width: fit-content;
            background: rgba(255, 255, 255, 0.25);
            -webkit-backdrop-filter: blur(12.5px);
                    backdrop-filter: blur(12.5px);
            border-radius: $radius-12;
            @include lg-down {
              font-size: 36px;
              border-radius: $radius-8;
            }

            @include sm-down {
              font-size: 30px;
              padding: 15px;
              border-radius: $radius-8;
            }
          }

          .breadcrumb-bottom {
            padding-top: 150px;
            @include xl-down {
              padding-top: 100px;
            }
            @at-root {
              .breadcrumb-actions {
                @include flex($align: center, $gap: 15px, $wrap: wrap);
                @include md-down {
                  gap: 20px;
                }

                @include xs-down {
                  @include flex(
                    $align: center,
                    $justify: center,
                    $direction: column
                  );
                  > a {
                    width: 100%;
                  }
                }
                .breadcrumb {
                  border-bottom: 1px solid $text-light;
                  .breadcrumb-item {
                    font-size: 20px;
                    a {
                      color: $text-ternary;
                      &:hover {
                        color: $text-light;
                      }
                    }
                    &.active {
                      color: $text-light;
                    }
                    &::before {
                      color: $text-light;
                    }
                  }
                }
              }

              .breadcrumb-description {
                font-size: 25px;
                color: $text-light;
                @include xxl-down {
                  font-size: 20px;
                }
                @include md-down {
                  font-size: 16px;
                  text-align: center;
                }
              }
            }
          }
        }
      }
    }
  }
}
