/* home_index.css */

.hero-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background: linear-gradient(135deg, #1f2937, #111827);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.85), rgba(59, 130, 246, 0.6));
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-ornament {
  position: absolute;
  display: block;
  width: clamp(16rem, 25vw, 30rem);
  aspect-ratio: 1;
  border-radius: 999px;
  --parallax-offset-x: 0px;
  --parallax-offset-y: 0px;
  transform: translate3d(var(--parallax-offset-x, 0px), var(--parallax-offset-y, 0px), 0);
  will-change: transform;
  mix-blend-mode: screen;
  opacity: 0.85;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-ornament::before,
.hero-ornament::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--hero-ornament-gradient);
}

.hero-ornament::before {
  opacity: var(--hero-ornament-opacity, 0.6);
}

.hero-ornament::after {
  inset: -45%;
  opacity: var(--hero-ornament-halo-opacity, 0.4);
  filter: blur(65px);
}

.hero-ornament--sunrise {
  top: -8%;
  right: -6%;
  width: clamp(18rem, 28vw, 32rem);
  --hero-ornament-gradient: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.72), rgba(30, 64, 175, 0.2) 55%, rgba(17, 24, 39, 0));
  --hero-ornament-opacity: 0.6;
  --hero-ornament-halo-opacity: 0.46;
}

.hero-ornament--dawn {
  bottom: -22%;
  left: -12%;
  width: clamp(20rem, 34vw, 38rem);
  --hero-ornament-gradient: radial-gradient(circle at 45% 55%, rgba(239, 68, 68, 0.55), rgba(245, 158, 11, 0.2) 60%, rgba(17, 24, 39, 0));
  --hero-ornament-opacity: 0.52;
  --hero-ornament-halo-opacity: 0.38;
}

.hero-ornament--zenith {
  top: 32%;
  left: 42%;
  width: clamp(12rem, 20vw, 22rem);
  --hero-ornament-gradient: radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.5), rgba(14, 116, 144, 0.24) 65%, rgba(17, 24, 39, 0));
  --hero-ornament-opacity: 0.66;
  --hero-ornament-halo-opacity: 0.34;
}

@media (max-width: 991.98px) {
  .hero-ornament--sunrise {
    right: -18%;
  }

  .hero-ornament--dawn {
    left: -28%;
    bottom: -28%;
  }

  .hero-ornament--zenith {
    left: 52%;
  }
}

@media (max-width: 575.98px) {
  .hero-ornament {
    opacity: 0.75;
  }

  .hero-ornament--sunrise {
    top: -18%;
    right: -34%;
    width: clamp(18rem, 70vw, 28rem);
  }

  .hero-ornament--dawn {
    bottom: -36%;
    left: -40%;
    width: clamp(22rem, 80vw, 34rem);
  }

  .hero-ornament--zenith {
    top: 58%;
    left: 58%;
    width: clamp(12rem, 48vw, 20rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-ornament::before {
    animation: hero-ornament-float 22s ease-in-out infinite;
  }

  .hero-ornament--dawn::before {
    animation: hero-ornament-drift 26s ease-in-out infinite;
  }

  .hero-ornament--zenith::before {
    animation: hero-ornament-pulse 24s ease-in-out infinite;
  }

  .hero-ornament::after {
    animation: hero-ornament-halo 30s ease-in-out infinite;
  }

  @keyframes hero-ornament-float {
    0% {
      transform: translate3d(-4%, -2%, 0) scale(1);
    }

    50% {
      transform: translate3d(4%, 3%, 0) scale(1.06);
    }

    100% {
      transform: translate3d(-4%, -2%, 0) scale(1);
    }
  }

  @keyframes hero-ornament-drift {
    0% {
      transform: translate3d(3%, 2%, 0) scale(1);
    }

    50% {
      transform: translate3d(-5%, -3%, 0) scale(1.08);
    }

    100% {
      transform: translate3d(3%, 2%, 0) scale(1);
    }
  }

  @keyframes hero-ornament-pulse {
    0% {
      transform: translate3d(0, 0, 0) scale(0.95);
    }

    50% {
      transform: translate3d(1%, -4%, 0) scale(1.05);
    }

    100% {
      transform: translate3d(0, 0, 0) scale(0.95);
    }
  }

  @keyframes hero-ornament-halo {
    0% {
      transform: scale(0.9);
    }

    50% {
      transform: scale(1.05);
    }

    100% {
      transform: scale(0.9);
    }
  }
}

.hero-pretitle {
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-tagline {
  max-width: 40rem;
}

.hero-banner h1,
.hero-banner p {
  text-shadow: 0 18px 36px rgba(17, 24, 39, 0.55);
}

.hero-actions .btn {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.hero-actions .btn-outline-light {
  border-width: 2px;
  color: #fff;
}

.hero-actions .btn-outline-light:hover,
.hero-actions .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.12);
}

.home-section-nav {
  margin: 1.5rem 0 2.5rem;
  padding: 0 1rem;
  z-index: 15;
}

.home-section-nav__inner {
  position: relative;
  display: flex;
  width: 100%;
  background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.85);
  border-radius: 999px;
  border: 1px solid rgba(var(--bs-body-color-rgb, 17, 24, 39), 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-section-nav__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.home-section-nav__list::-webkit-scrollbar {
  display: none;
}

.home-section-nav__item {
  flex: 0 0 auto;
}

.home-section-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-body-color, #1f2937);
  text-decoration: none;
  background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.65);
  border: 1px solid transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: center;
  text-align: center;
  white-space: normal;
}

.home-section-nav__label {
  display: block;
  line-height: 1.25;
}

.home-section-nav__link:hover,
.home-section-nav__link:focus-visible {
  color: #0f1f3d;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.home-section-nav__link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #ef6d3d);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.home-section-nav__link:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.6);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(239, 109, 61, 0.28);
}

.home-section-nav__link.active:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .home-section-nav {
    margin: 2rem auto 3rem;
    padding: 0 2rem;
  }

  .home-section-nav__inner {
    margin: 0 auto;
  }

  .home-section-nav__link {
    padding: 0.6rem 1.35rem;
    font-size: 0.95rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .home-section-nav {
    padding-inline: 0.75rem;
  }

  .home-section-nav__inner {
    border-radius: 1.75rem;
  }

  .home-section-nav__list {
    gap: 0.75rem;
    padding-block: 0.75rem;
  }

  .home-section-nav__link {
    padding: 0.65rem 1.4rem;
  }

  .hero-ornament {
    transition: none !important;
  }

  .hero-ornament::before,
  .hero-ornament::after {
    animation: none !important;
  }
}

@media (min-width: 992px) {
  .home-section-nav {
    position: sticky;
    top: calc(5rem + 1.5rem);
    z-index: 1050;
  }

  .home-section-nav__inner {
    max-width: min(960px, 100%);
  }

  .home-section-nav__list {
    justify-content: center;
    gap: 0.75rem;
    overflow: visible;
    scroll-snap-type: none;
  }

  .home-section {
    scroll-margin-top: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-section-nav__link {
    transition: none !important;
  }

  .testimonials-carousel__nav {
    transition: none !important;
  }

  .testimonials-carousel__dot {
    transition: none !important;
  }

  .hero-ornament {
    transition: none !important;
  }

  .hero-ornament::before,
  .hero-ornament::after {
    animation: none !important;
  }

  .js-enabled .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .js-enabled .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

.home-section {
  padding: 4rem 0;
  scroll-margin-top: 7.5rem;
}

.home-section.bg-surface {
  background: #f5f7fb;
}

.home-section.bg-soft {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(59, 130, 246, 0.08));
}

.section-header {
  max-width: 48rem;
  margin: 0 auto;
}

.section-pretitle {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: #ef6d3d;
}

.section-heading {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: #14213d;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #f59f0b, #ef4444);
}

.section-intro {
  color: #4b5563;
}

.feature-highlights {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.08), rgba(249, 115, 22, 0.08));
}

.feature-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(59, 130, 246, 0.15));
}

.video-card,
.info-card,
.article-card,
.event-card,
.testimony-card {
  border-radius: 1rem;
  border: none;
}

.video-card {
  background: #fff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card a {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.video-card a:hover,
.video-card a:focus {
  color: #ef6d3d;
}

.info-card {
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-radius: 1.25rem;
}

.cta-button-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .cta-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .cta-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.info-card .btn {
  font-weight: 600;
}

.course-card,
.module-card,
.article-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover,
.module-card:hover,
.article-card:hover,
.info-card:hover,
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

.course-card .card-img-top,
.article-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.module-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.module-course-label a {
  font-weight: 600;
}

.event-card .badge {
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.team-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.team-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(59, 130, 246, 0.25);
}

.partner-tile {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease;
}

.partner-tile:hover {
  transform: translateY(-4px);
}

.partner-logo {
  max-height: 80px;
  object-fit: contain;
}

.faq-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-card .card-header {
  background: #f1f5f9;
  border: none;
}

.faq-card .btn-link {
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

.faq-card .btn-link:hover,
.faq-card .btn-link:focus {
  color: #ef6d3d;
}

.testimonials-carousel {
  --carousel-inline-padding: clamp(1rem, 4vw, 2.75rem);
  --carousel-gap: clamp(1rem, 3vw, 1.75rem);
  --carousel-nav-size: clamp(2.5rem, 2.5rem + 0.4vw, 3rem);
  --carousel-pagination-gap: clamp(0.5rem, 1.5vw, 0.9rem);
  position: relative;
}

.testimonials-carousel__viewport {
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
  overflow-x: auto;
  padding: 0 var(--carousel-inline-padding) clamp(2.5rem, 5vw, 3.25rem);
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--carousel-inline-padding);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}

.testimonials-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.testimonials-carousel__viewport:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 4px;
}

.testimonials-carousel__slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex: 0 0 clamp(260px, 80vw, 360px);
  display: flex;
}

.testimonials-carousel__slide .testimony-card {
  width: 100%;
}

.testimonials-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--carousel-nav-size);
  height: var(--carousel-nav-size);
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 1;
}

.js-enabled .testimonials-carousel__nav {
  display: inline-flex;
}

.testimonials-carousel__nav span {
  font-size: 1.25rem;
  line-height: 1;
}

.testimonials-carousel__nav:hover,
.testimonials-carousel__nav:focus-visible {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(249, 115, 22, 0.1));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.testimonials-carousel__nav:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 4px;
}

.testimonials-carousel__nav[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.testimonials-carousel__nav--prev {
  left: max(0.35rem, calc(var(--carousel-inline-padding) - var(--carousel-nav-size) / 2));
}

.testimonials-carousel__nav--next {
  right: max(0.35rem, calc(var(--carousel-inline-padding) - var(--carousel-nav-size) / 2));
}

.testimonials-carousel__status {
  margin-top: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.02em;
}

.testimonials-carousel__status span {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  line-height: 1;
}

.testimonials-carousel__pagination {
  display: none;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--carousel-pagination-gap);
  margin-top: 0.75rem;
}

.js-enabled .testimonials-carousel__pagination {
  display: flex;
}

.testimonials-carousel__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(29, 78, 216, 0.15);
  color: #1d4ed8;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.testimonials-carousel__dot::after {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.testimonials-carousel__dot:hover::after,
.testimonials-carousel__dot:focus-visible::after {
  opacity: 0.85;
}

.testimonials-carousel__dot.is-active,
.testimonials-carousel__dot[aria-current="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(239, 109, 61, 0.85));
  color: #ffffff;
  transform: scale(1.05);
}

.testimonials-carousel__dot.is-active::after,
.testimonials-carousel__dot[aria-current="true"]::after {
  opacity: 1;
}

.testimonials-carousel__dot:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.testimonials-carousel__dot[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .testimonials-carousel__viewport {
    padding-bottom: clamp(3.25rem, 10vw, 4.5rem);
  }

  .testimonials-carousel__nav {
    top: auto;
    bottom: clamp(0.75rem, 3vw, 1.25rem);
    transform: none;
  }

  .testimonials-carousel__nav--prev {
    left: var(--carousel-inline-padding);
  }

  .testimonials-carousel__nav--next {
    right: var(--carousel-inline-padding);
  }

  .testimonials-carousel__status {
    margin-top: 1.5rem;
  }

  .testimonials-carousel__pagination {
    margin-top: 0.6rem;
  }
}

@media (min-width: 992px) {
  .testimonials-carousel__viewport {
    padding-bottom: clamp(2rem, 4vw, 2.75rem);
  }

  .testimonials-carousel__slide {
    flex: 0 0 clamp(280px, 28vw, 360px);
  }

  .testimonials-carousel__status {
    margin-top: 1rem;
  }
}

.testimony-card {
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.testimony-card .card-body {
  padding: clamp(1.75rem, 5vw, 2.5rem);
}

.testimony-card blockquote {
  font-size: 1.05rem;
  color: #1f2937;
}

.testimony-card footer {
  color: #6b7280;
}

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 991.98px) {
  .hero-banner {
    padding: 4.5rem 0;
  }

  .hero-banner .display-3 {
    font-size: 2.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero-banner {
    min-height: 60vh;
    text-align: center;
  }

  .section-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .video-card {
    padding: 1rem 1rem 1.25rem;
  }

  .team-photo {
    width: 110px;
    height: 110px;
  }
}
