h1,
h2,
h3,
h4 {
  color: #144f6f;
}

.wrapper-inner {
  margin: 0 auto;
  max-width: 1100px;
}

.banner {
  width: 100%;
  height: 100vh;
  background: linear-gradient(
      180deg,
      rgba(20, 42, 60, 0.6) 0%,
      rgba(20, 42, 60, 0.6) 100%
    ),
    url(../../assets/img/about-us/banner.jpg) center center / cover no-repeat;
  border-radius: 0 0 80px 0;
  display: flex;
  align-items: center;
  text-align: center;

  .banner-container {
    margin: auto;
    max-width: 790px;

    p {
      color: #fff;
      line-height: 26px;
      margin-top: 16px;
      margin-bottom: 0;
    }
  }
}

.featured-cards {
  .cards {
    display: flex;
    justify-content: space-between;

    @media (max-width: 991px) {
      flex-direction: column;
    }

    h2 {
      margin-right: 50px;
      margin-bottom: 0;

      @media (max-width: 991px) {
        margin-bottom: 70px;
        margin-right: 0;
      }

      @media (max-width: 767px) {
        margin-bottom: 50px;
      }
    }

    .cards-container {
      --bs-gutter-x: 20px;

      @media (min-width: 992px) {
        margin-top: -219px;
      }

      @media (max-width: 991px) {
        --bs-gutter-x: 20;
        --bs-gutter-y: 20px;
      }

      .card-details {
        position: relative;
        padding: 140px 30px 50px;
        border-radius: 60px 10px 10px 10px;
        background: #fff;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.15);
        overflow: hidden;
        height: 100%;
        /* max-width: 315px; */

        @media (max-width: 991px) {
          max-width: 100%;
        }

        h3 {
          font-size: 23px;
          line-height: 32.2px;
          font-weight: 400;
          margin-bottom: 28px;

          @media (min-width: 992px) {
            span {
              display: inline-block;
              width: 100%;
            }
          }
        }

        p {
          margin-bottom: 0;
        }
      }

      .card-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 69px;
        height: 119px;
        border-radius: 0 0 60px 0;
        background: #23868b;
      }
    }
  }
}

.about-us {
  h2 {
    margin-bottom: 28px;
    font-weight: 700;
  }
  .text-content {
    margin-right: 24px;
    p {
      margin-bottom: 20px;
      color: #676767;
    }
    p:last-child {
      margin-bottom: 0;

      @media (max-width: 991px) {
        margin-bottom: 30px;
      }
    }

    @media (max-width: 991px) {
      margin-right: 0;
    }
  }

  img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }

  .wrapper > .row {
    padding-top: 100px;
    margin: 0 110px;

    @media (max-width: 991px) {
      padding-top: 70px;
      margin: 0;
      --bs-gutter-x: 0;
    }

    @media (max-width: 767px) {
      padding-top: 50px;
    }
  }
}

.years {
  background-color: #fafbfb;

  p {
    color: #676767;
    margin-bottom: 0;
  }

  .content-wrapper {
    max-width: 935px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio */
    margin-top: 40px;
    overflow: hidden;
    border-radius: 6px;

    .video-thumbnail {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }

    .play-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      cursor: pointer;
    }

    .video-iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: none; /* hidden until play */
    }
  }
}

.anniversary {
  background-color: #fff;

  .anniv-carousel {
    text-align: center;
    margin-top: 80px;

    @media (max-width: 767px) {
      margin-top: 50px;
    }

    .owl-container {
      margin: 0 71px;

      @media (max-width: 1199px) {
        margin: 0;
      }
    }

    .owl-carousel {
      margin-top: 40px;

      .gallery-card {
        height: 315px;
        border-radius: 6px;
        overflow: hidden;
      }

      .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.3s ease;
      }

      .gallery-card:hover img {
        transform: scale(1.1);
      }

      .owl-dots {
        text-align: center;
        margin-top: 40px;
      }

      .owl-dots .owl-dot.active span,
      .owl-dots .owl-dot:hover span {
        background: #144f6f;
      }

      .owl-dots .owl-dot span {
        width: 10px;
        height: 10px;
        margin: 0 6px;
        background: #d9d9d9;
        display: block;
        border-radius: 50%;
        transition: background 0.3s;
      }

      .owl-nav button {
        position: absolute;
        top: 40%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        width: 47px;
        height: 47px;
      }

      .owl-nav .owl-next {
        background-color: #144f6f;
        right: -71px;

        @media (max-width: 1199px) {
          right: 0;
        }
      }

      .owl-nav .owl-prev {
        background-color: #ffffffcf;
        border: 2px solid #144f6f;
        left: -71px;

        @media (max-width: 1199px) {
          left: 0;
        }
      }

      .owl-nav .owl-prev.disabled,
      .owl-nav .owl-next.disabled {
        pointer-events: none;
        opacity: 0.5;
      }
    }
  }
}

/* Modal controls */
.modal#imageModal {
  .modal-content {
    background: transparent;
    border: none;
  }
  .modal-body {
    position: relative;
    text-align: center;
  }
  #modalImage {
    max-height: 80vh;
    border-radius: 8px;
  }

  .modal-prev,
  .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-prev {
    left: 15px;

    @media (max-width: 1199px) {
      left: -31px;
    }

    @media (max-width: 575px) {
      left: 10px;
    }
  }
  .modal-next {
    right: 15px;

    @media (max-width: 1199px) {
      right: -31px;
    }

    @media (max-width: 575px) {
      right: 10px;
    }
  }

  .modal-close {
    position: absolute;
    top: -31px;
    right: 15px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    @media (max-width: 1199px) {
      right: -31px;
    }

    @media (max-width: 575px) {
      right: 10px;
    }
  }
}
