* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', 'Lato', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mobile-navbar .navbar-brand img {
  height: 50px;
}

.header-banner {
  width: 100%;
  height: 90vh;
  color: white;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.header-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.header-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.desktop-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.desktop-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-logo a img {
  height: 50px;
  width: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.desktop-nav-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.desktop-nav-link.active,
.desktop-nav-link:hover {
  background-color: #6a4d8a;
}

.col-10.offset-1.header-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  height: 100%;
  margin: 0 auto;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
}



.header {
  background-image: url("/assets/Carousel-3-scaled.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 0;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.header-top-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  overflow: hidden;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.nav-link:hover, .header-nav-links .nav-link:hover {
  color: #f1d204;
}

.header h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
}

.header p {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: #f1d204;
  color: #0a0707;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #6a4d8a;
  color: white;
}

.main-content {
  padding: 50px 0;
}

.section {
  margin-bottom: 60px;
}

.section h2 {
  font-size: 32px;
  color: #0a0707;
  margin-bottom: 20px;
  margin-left: 150px;
  margin-right: 150px;
  text-align: center;
}

.welcome-heading {
  text-align: center;
  font-weight: bold;
  margin-top: 30px;
  padding-top: 65px;
}

@media (max-width: 768px) {
  .welcome-heading {
    margin-top: 50px;
    font-size: 20px;
    word-break: break-word;
  }

  .section figure {
    margin-left: 20px;
    margin-right: 20px;
  }

  .section figure {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  .main-content {
    margin-top: 0;
    padding-top: 70px;
  }

  .mobile-navbar {
    background-color: rgba(0, 0, 0, 0.98);
  }

  .section h2 {
    margin-left: 20px;
    margin-right: 20px;
  }
}

.section p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
}

.section figure {
  margin: 20px 20px 20px 0;
}

.figcaption {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

@media (min-width: 993px) {
  .section p {
    margin-left: 150px;
    margin-right: 150px;
  }
  .section ul {
    margin-left: 150px;
    margin-right: 150px;
  }
  .section figure {
    margin-left: 150px;
    margin-right: 20px;
  }
}

.section ul {
  list-style: none;
  margin-bottom: 20px;
}

.section ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
}

.video-container {
  margin: 30px 0;
  text-align: center;
}

.video-container video {
  max-width: 100%;
  max-height: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.feature-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  color: #6a4d8a;
  margin-bottom: 10px;
  font-size: 20px;
}

.reviews-section {
  background-color: #f8f9fa;
  padding: 50px 0;
  text-align: center;
}

/* Infinite marquee carousel (see infinite_carousel_controller.js).

   The controller clones cards and publishes two variables:
     --marquee-shift     one card-set's width (e.g. -1234.5px)
     --marquee-duration  that width / speed, in seconds
   The animation translates by exactly --marquee-shift and loops, which is
   invisible because the content there is a clone of the start. */
.student-reviews {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  margin-top: 40px;
  will-change: transform;
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift, -50%)); }
}

.mobile-carousel-container:hover .student-reviews {
  animation-play-state: paused;
}

.student-reviews.is-paused {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .student-reviews {
    animation: none;
  }
}

.student-card {
  /* 3 per row on desktop: card + its 20px margin-right must total exactly
     one third of the track so a full set is a clean wrap boundary
     (the wrap width is measured from live layout in the controller). */
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: calc((100% - 60px) / 3);
  max-width: calc((100% - 60px) / 3);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
}

/* The controller clones cards, so this wrapper must hide anything that
   overflows. */
.mobile-carousel-container {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .student-card {
    /* 2 per row on mobile. */
    flex: 0 0 calc((100% - 40px) / 2);
    min-width: calc((100% - 40px) / 2);
    max-width: calc((100% - 40px) / 2);
    padding: 15px;
  }
}

.student-card img {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  object-fit: cover;
}

.student-card h4 {
  color: #333;
  margin-bottom: 5px;
}

.student-card .school {
  color: #6a4d8a;
  font-size: 14px;
  margin-bottom: 10px;
}

.student-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.footer {
  background-color: #0a0707;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 992px) {
  .header-banner {
    display: none;
  }
}

@media (min-width: 993px) {
  .header-top-row .logo img {
    width: 70px;
    max-width: 100%;
    height: auto;
  }

  .header-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  .desktop-header {
    display: block;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
  }

  .desktop-nav-container {
    height: 100%;
    padding: 0 20px;
  }

  .main-content {
    margin-top: 80px;
  }

  .header-banner {
    height: 100vh;
    min-height: 600px;
    color: white;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  }

  .header-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
  }

  .header-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
  }

  .col-10.offset-1.header-banner-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10;
    margin: 0 !important;
    padding: 100px 30px 80px 30px !important;
    width: 100%;
    box-sizing: border-box;
    max-width: 1000px;
  }

  .content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    padding: 0;
    margin-top: 0;
  }

  .header-banner-content h1 {
    font-size: 56px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 15px 0;
  }

  .header-banner-content p {
    font-size: 22px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
    text-align: center;
    margin: 0 0 25px 0;
    max-width: 700px;
  }

  .cta-button {
    margin: 30px 0 0 0;
    font-size: 18px;
    padding: 14px 35px;
  }

  .desktop-nav-link {
    margin-left: 0;
    font-size: 15px;
  }
}
