/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-heading: 'Familjen Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --color-dark: #333;
  --color-dark-nav: #3b3b3b;
  --color-border: #d7d7d7;
  --color-bg-alt: #f5f5f5;
  --color-placeholder: #d2d2d2;
  --radius-card: 12px;
  --radius-pill: 999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg-alt);
  color: #000;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: disc; }

/* =====================
   PAGE LAYOUT
   ===================== */
.page-outer {
  display: flex;
  justify-content: center;
  background: var(--color-bg-alt);
  min-height: 100vh;
}

.page-wrapper {
  width: 1100px;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  overflow: hidden;
}

.section-border {
  border-bottom: 1px solid var(--color-border);
}

/* =====================
   UTILITY
   ===================== */
.text-white  { color: #fff; }
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* =====================
   TYPOGRAPHY
   ===================== */
.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: normal;
  color: inherit;
}

.sub-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: normal;
}

.body-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

/* stacked paragraphs with spacing between them */
.body-text--stacked p + p {
  margin-top: 1.5em;
}

/* rich text: bold headers followed by paragraphs */
.body-text--rich p + p {
  margin-top: 8px;
}
.body-text--rich p + p:has(strong),
.body-text--rich p:has(strong) + p:has(strong) {
  margin-top: 1.5em;
}
.body-text--rich p:has(strong) {
  margin-top: 1.5em;
}
.body-text--rich p:first-child {
  margin-top: 0;
}

.body-list {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  padding-left: 22.5px;
}

.body-list li + li {
  margin-top: 0;
}

.small-label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

/* =====================
   BUTTONS
   ===================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-dark          { background: var(--color-dark-nav); color: #fff; }
.btn-outline-dark  { background: transparent; border: 1px solid var(--color-dark-nav); color: var(--color-dark-nav); }
.btn-white         { background: #fff; color: #1e1e1e; }
.btn-icon-outline  {
  background: transparent;
  border: 1px solid #4e4e4e;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
}
.btn-icon-outline img { width: 16px; height: 16px; }

/* =====================
   NAV
   ===================== */
.nav-section {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 53px;
  height: 53px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  width: 96px;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  color: #000;
}

.logo-city {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  line-height: normal;
  color: #000;
}

/* =====================
   HERO
   ===================== */
.hero-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px;
}

.hero-img-wrap {
  flex: 1 0 0;
  min-width: 0;
  aspect-ratio: 540 / 552;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}

.hero-img-wrap img {
  position: absolute;
  width: 100%;
  height: 108.7%;
  top: -4.35%;
  left: 0;
  object-fit: cover;
}

.hero-text {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: normal;
}

.cta-row {
  display: flex;
  gap: 12px;
}

/* =====================
   VIDEO SECTION
   ===================== */
.video-section {
  padding: 32px;
}

.video-wrap {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-placeholder);
}

.video-wrap iframe {
  display: block;
  width: 100%;
  height: 569px;
  border: none;
}

/* =====================
   TWO-COL SECTIONS
   ===================== */
.two-col-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 50px 32px;
}

.two-col-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
}

.col {
  flex: 1 0 0;
  min-width: 0;
}

/* =====================
   INFO DARK SECTION
   ===================== */
.info-dark-section {
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  padding: 32px;
}

.info-inner {
  width: 556px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* =====================
   CURRICULUM SECTION
   ===================== */
.curriculum-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding: 50px 32px;
}

.gallery-row {
  display: flex;
  gap: 24px;
  align-self: center;
  overflow-x: auto;
  padding-bottom: 2px;
  /* hide scrollbar visually but keep scrollable */
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.gallery-ph {
  flex-shrink: 0;
  width: 304px;
  height: 389px;
  background: var(--color-placeholder);
  border-radius: var(--radius-card);
}

/* =====================
   LIMITED ROOM SECTION
   ===================== */
.limited-section {
  background: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 50px 32px;
}

.limited-video-wrap {
  flex-shrink: 0;
  width: 498px;
  height: 347px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #d9d9d9;
}

.limited-video-wrap iframe {
  display: block;
  width: 498px;
  height: 347px;
  border: none;
}

.limited-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-section {
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 50px 32px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

.author-info {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.4;
}

.testimonial-link {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.5;
  text-decoration: underline;
  text-align: center;
  color: #000;
  width: 458px;
}

/* =====================
   REGISTRATION STEPS
   ===================== */
.reg-steps-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  padding: 32px;
  overflow: hidden;
}

.reg-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.reg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #333 50%, rgba(51, 51, 51, 0.4) 100%);
  mix-blend-mode: multiply;
}

.reg-content {
  position: relative;
  z-index: 1;
  width: 556px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reg-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* =====================
   EXTRA / FACILITY PHOTOS
   ===================== */
.extra-section {
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 50px 32px;
}

.facility-ph {
  flex: 1 0 0;
  aspect-ratio: 1;
  background: #d9d9d9;
  border-radius: var(--radius-card);
  min-width: 0;
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact-section {
  background: var(--color-bg-alt);
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 50px 32px;
  font-size: 15px;
  line-height: 1.5;
}

/* =====================
   WHITE TEXT FIXES in dark sections
   ===================== */
.info-dark-section .section-heading,
.limited-section .section-heading,
.reg-steps-section .section-heading {
  color: #fff;
}

/* =====================
   IMAGE TICKER
   ===================== */
.ticker-section {
  overflow: hidden;
  padding: 32px 0;
  background: #fff;
}

.ticker-wrap {
  overflow: hidden;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ticker-fwd 50s linear infinite;
}

.ticker-track--reverse {
  animation: ticker-rev 50s linear infinite;
}

/* pause on hover */
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track img {
  height: 304px;
  width: 240px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}

/* Also style the gallery ticker inside curriculum */
.curriculum-section .ticker-wrap {
  margin-left: -32px;
  margin-right: -32px;
  width: calc(100% + 64px);
}

@keyframes ticker-fwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ticker-rev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* =====================
   MOBILE RESPONSIVE
   ===================== */
@media (max-width: 768px) {

  /* Page wrapper goes full width */
  .page-wrapper {
    width: 100%;
    border-left: none;
    border-right: none;
  }

  /* NAV: tighter padding, hide logo text */
  .nav-section {
    padding: 12px 16px;
  }
  .logo-text {
    display: none;
  }

  /* HERO: stack image above text */
  .hero-section {
    flex-direction: column;
    padding: 32px 16px;
    gap: 40px;
  }
  .hero-img-wrap {
    flex: none;
    width: 100%;
  }
  .hero-text {
    flex: none;
    width: 100%;
  }
  .cta-row {
    flex-direction: column;
    width: 100%;
  }
  .cta-row .btn-pill {
    width: 100%;
    height: 44px;
    justify-content: center;
  }

  /* VIDEO */
  .video-section {
    padding: 32px 16px;
  }
  .video-wrap iframe {
    height: 220px; /* scaled for mobile viewport */
  }

  /* VISION / MISSION & all two-col → single col */
  .two-col-section {
    flex-direction: column;
    padding: 50px 16px;
    gap: 40px;
  }
  .two-col-row {
    flex-direction: column;
    gap: 40px;
  }

  /* INFO DARK */
  .info-dark-section {
    padding: 32px 16px;
    height: auto;
    min-height: 400px;
  }
  .info-inner {
    width: 100%;
  }
  .info-inner .btn-pill {
    width: 100%;
    height: 44px;
  }

  /* CURRICULUM */
  .curriculum-section {
    padding: 50px 16px;
  }
  .curriculum-section .ticker-wrap {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }

  /* LIMITED ROOM: stack video above text */
  .limited-section {
    flex-direction: column;
    padding: 50px 16px;
    gap: 40px;
  }
  .limited-video-wrap {
    width: 100%;
    height: 236px;
    flex-shrink: 0;
  }
  .limited-video-wrap iframe {
    width: 100%;
    height: 236px;
  }
  .limited-text .btn-pill {
    width: 100%;
    height: 44px;
  }

  /* TESTIMONIALS: horizontal scroll row */
  .testimonial-section {
    padding: 50px 16px;
    align-items: flex-start;
  }
  .testimonial-section .section-heading {
    width: 100%;
    text-align: center;
  }
  .testimonial-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    width: 100%;
    height: 548px;
    align-items: stretch;
    /* hide scrollbar track but keep scrollable */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
  }
  .testimonial-card {
    flex-shrink: 0;
    width: 320px;
    height: 100%;
  }
  .testimonial-text {
    -webkit-line-clamp: unset;
    overflow: hidden;
    flex: 1;
  }
  .testimonial-link {
    width: 100%;
    text-align: center;
  }

  /* ADMISSION REQUIREMENTS */
  /* already handled by two-col-section → flex-col */

  /* REGISTRATION STEPS */
  .reg-steps-section {
    padding: 32px 16px;
    justify-content: flex-start;
  }
  .reg-content {
    width: 100%;
  }
  .reg-buttons {
    width: 100%;
  }
  .reg-buttons .btn-pill.btn-white {
    flex: 1 0 0;
    height: 44px;
  }
  .reg-buttons .btn-icon-outline {
    height: 44px;
    width: 44px;
  }

  /* EXTRA / FACILITY PHOTOS: horizontal scroll */
  .extra-section {
    padding: 50px 16px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
  }
  .facility-ph {
    flex: none;
    width: 279px;
    height: 279px;
    aspect-ratio: unset;
  }

  /* CONTACT */
  .contact-section {
    flex-direction: column;
    padding: 50px 16px;
    gap: 40px;
  }

}
