/* ════════════════════════════════════════════════════════════
   STYLE.CSS — Home Page (Index)
   Home-page-specific sections only.
   Requires: variables.css, common.css loaded first.
   ════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
#hero {
  min-height:            100vh;
  background:            var(--navy);
  display:               grid;
  grid-template-columns: 1fr 1fr;
  align-items:           center;
  padding:               100px 64px 60px;
  position:              relative;
  overflow:              hidden;
}

#hero-video-bg {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  z-index:    0;
  opacity:    0;
  transition: opacity 1.2s ease;
}
#hero-video-bg.loaded { opacity: 1; }

#hero-video-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(135deg, rgba(15, 27, 61, 0.72) 0%, rgba(15, 27, 61, 0.55) 40%, rgba(245, 200, 0, 0.18) 100%);
  z-index:    1;
}

#hero-video-overlay::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 200, 0, 0.06) 50%, transparent 100%);
  animation:  heroShimmer 4s ease-in-out infinite;
}

@keyframes heroShimmer {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50%      { opacity: 1; transform: translateX(100%); }
}

#video-mute-btn {
  position:        absolute;
  bottom:          28px;
  right:           28px;
  z-index:         10;
  background:      rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border:          2px solid rgba(255, 255, 255, 0.3);
  border-radius:   50%;
  width:           44px;
  height:          44px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  transition:      all 0.3s ease;
  color:           #fff;
  font-size:       18px;
}
#video-mute-btn:hover {
  background:   rgba(245, 200, 0, 0.35);
  border-color: var(--sun);
  transform:    scale(1.1);
}

.hero-bg-shapes,
.hero-left,
.hero-right { position: relative; z-index: 2; }

#hero .hero-h1         { color: var(--white); }
#hero .hero-h1 .accent { color: var(--sun); text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4); }
#hero .hero-sub        { color: rgba(255, 255, 255, 0.82); }
#hero .hero-pill       {
  background:      rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border:          1px solid rgba(255, 255, 255, 0.25);
}
#hero .stat-num   { color: var(--sun); }
#hero .stat-label { color: rgba(255, 255, 255, 0.7); }

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.hero-shape {
  position:      absolute;
  border-radius: 50%;
  animation:     floatShape 6s ease-in-out infinite;
}
.hero-shape:nth-child(1) { width: 400px; height: 400px; background: rgba(255, 255, 255, 0.15); top: -100px; right: -80px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 200px; height: 200px; background: rgba(15, 27, 61, 0.06); bottom: 80px; left: 40%; animation-delay: 2s; }
.hero-shape:nth-child(3) { width: 120px; height: 120px; background: rgba(255, 107, 74, 0.2); bottom: 120px; left: 10%; animation-delay: 4s; }
.hero-shape:nth-child(4) { width: 60px;  height: 60px;  background: rgba(62, 207, 178, 0.3); top: 180px; right: 30%; animation-delay: 1s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(8deg); }
}

.hero-left { position: relative; z-index: 2; }

.hero-pill {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  background:     var(--navy);
  color:          var(--sun);
  padding:        8px 18px;
  border-radius:  50px;
  font-size:      12px;
  font-weight:    700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom:  28px;
  animation:      slideInLeft 0.8s var(--ease-out) 0.2s both;
}
.hero-pill span {
  width:         6px;
  height:        6px;
  background:    var(--sun);
  border-radius: 50%;
  animation:     pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero-h1 {
  font-family:   var(--font-display);
  font-size:     clamp(3rem, 5.5vw, 5.2rem);
  font-weight:   900;
  line-height:   1.0;
  color:         var(--navy);
  margin-bottom: 24px;
  animation:     slideInLeft 0.8s var(--ease-out) 0.4s both;
}

.hero-h1 .accent {
  color:       var(--white);
  text-shadow: 3px 4px 0 var(--navy);
  display:     inline-block;
  animation:   wiggle 4s ease-in-out 1.5s infinite;
}

@keyframes wiggle {
  0%, 90%, 100% { transform: rotate(0deg); }
  92%           { transform: rotate(-3deg); }
  96%           { transform: rotate(3deg); }
}

.hero-sub {
  font-size:     18px;
  color:         var(--navy-mid);
  line-height:   1.7;
  max-width:     480px;
  margin-bottom: 40px;
  animation:     slideInLeft 0.8s var(--ease-out) 0.6s both;
}

.hero-actions {
  display:   flex;
  gap:       16px;
  flex-wrap: wrap;
  animation: slideInLeft 0.8s var(--ease-out) 0.8s both;
}

.hero-stats {
  display:    flex;
  gap:        32px;
  margin-top: 48px;
  animation:  slideInLeft 0.8s var(--ease-out) 1s both;
}

.stat-num {
  font-family: var(--font-display);
  font-size:   2.8rem;
  font-weight: 900;
  color:       var(--navy);
  line-height: 1;
}

.stat-label {
  font-size:      12px;
  font-weight:    600;
  color:          var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-right {
  position:              relative;
  z-index:               2;
  display:               grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows:    auto auto;
  gap:                   16px;
  padding:               20px;
  animation:             slideInRight 0.8s var(--ease-out) 0.3s both;
}

@keyframes slideInLeft  { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px);  } to { opacity: 1; transform: translateX(0); } }

.hero-img-card {
  border-radius: 20px;
  overflow:      hidden;
  position:      relative;
  box-shadow:    0 20px 60px rgba(15, 27, 61, 0.2);
  border:        4px solid var(--white);
  transition:    transform 0.4s var(--ease-bounce);
}
.hero-img-card:hover        { transform: scale(1.04) rotate(1deg); z-index: 10; }
.hero-img-card img          { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-card:nth-child(1) { grid-column: 1; grid-row: 1 / 2; height: 320px; }
.hero-img-card:nth-child(2) { grid-column: 2; grid-row: 1;     height: 180px; }
.hero-img-card:nth-child(3) { grid-column: 2; grid-row: 2;     height: 160px; margin-top: -20px; }

.hero-float-badge {
  position:      absolute;
  bottom:        -16px;
  left:          50%;
  transform:     translateX(-50%);
  background:    var(--white);
  border:        3px solid var(--sun);
  border-radius: 60px;
  padding:       10px 20px;
  display:       flex;
  align-items:   center;
  gap:           10px;
  box-shadow:    0 8px 32px rgba(15, 27, 61, 0.15);
  white-space:   nowrap;
  animation:     bounceFloat 3s ease-in-out infinite;
}
.hero-float-badge .stars { color: #FFD700; font-size: 14px; }
.hero-float-badge span   { font-size: 12px; font-weight: 700; color: var(--navy); }

@keyframes bounceFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}


/* ════════════════════════════════════════════════════════════
   TICKER (Home page only)
   ════════════════════════════════════════════════════════════ */
.ticker {
  background: var(--navy);
  padding:    14px 0;
  overflow:   hidden;
  position:   relative;
}

.ticker-inner {
  display:   flex;
  animation: tickerScroll 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }

.ticker-item {
  display:        flex;
  align-items:    center;
  gap:            16px;
  white-space:    nowrap;
  padding:        0 40px;
  font-family:    var(--font-heading);
  font-size:      13px;
  font-weight:    700;
  color:          var(--sun);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ticker-dot {
  width:         6px;
  height:        6px;
  background:    var(--coral);
  border-radius: 50%;
  flex-shrink:   0;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ════════════════════════════════════════════════════════════
   ABOUT (Home page summary block)
   ════════════════════════════════════════════════════════════ */
#about {
  background: var(--white);
  position:   relative;
  overflow:   hidden;
}

.about-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}

.about-img-collage {
  position: relative;
  padding:  20px;
}

.collage-main {
  border-radius: 24px;
  overflow:      hidden;
  box-shadow:    0 30px 80px rgba(15, 27, 61, 0.15);
  border:        5px solid var(--white);
  position:      relative;
  z-index:       2;
}
.collage-main img { width: 100%; height: 480px; object-fit: cover; display: block; }

.collage-accent {
  position:      absolute;
  width:         200px;
  height:        200px;
  border-radius: 20px;
  overflow:      hidden;
  border:        4px solid var(--white);
  box-shadow:    0 16px 48px rgba(15, 27, 61, 0.18);
  z-index:       3;
  transition:    transform 0.4s var(--ease-bounce);
}
.collage-accent:hover { transform: scale(1.06); z-index: 10; }
.collage-accent img   { width: 100%; height: 100%; object-fit: cover; }
.collage-accent.a1    { bottom: -24px; right: -24px; }
.collage-accent.a2    { top: -24px;    left: -24px; }

.about-bg-blob {
  position:      absolute;
  width:         350px;
  height:        350px;
  background:    var(--sun);
  border-radius: 50% 30% 60% 40% / 60% 40% 50% 50%;
  opacity:       0.15;
  z-index:       0;
  bottom:        0;
  left:          -60px;
  animation:     morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
  0%, 100% { border-radius: 50% 30% 60% 40% / 60% 40% 50% 50%; }
  50%      { border-radius: 30% 60% 40% 50% / 40% 60% 50% 50%; }
}

.about-content { position: relative; z-index: 2; }

.pillars-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px;
  margin-top:            36px;
}

.pillar-card {
  background:    var(--cream);
  border-radius: 16px;
  padding:       20px;
  border:        2px solid transparent;
  transition:    all 0.3s var(--ease-out);
  position:      relative;
  overflow:      hidden;
}
.pillar-card::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: var(--sun);
  opacity:    0;
  transition: opacity 0.3s;
}
.pillar-card:hover {
  border-color: var(--sun);
  transform:    translateY(-4px);
  box-shadow:   0 12px 36px rgba(245, 200, 0, 0.2);
}
.pillar-card:hover::before { opacity: 0.1; }
.pillar-icon  { font-size: 2rem; margin-bottom: 8px; display: block; position: relative; z-index: 1; }
.pillar-title { font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 4px; position: relative; z-index: 1; }
.pillar-desc  { font-size: 13px; color: var(--text-soft); line-height: 1.5; position: relative; z-index: 1; }


/* ════════════════════════════════════════════════════════════
   PROGRAMMES
   ════════════════════════════════════════════════════════════ */
#programmes {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  position:   relative;
  overflow:   hidden;
}
#programmes .section-title        { color: var(--sun); }
#programmes .section-sub          { color: rgba(255, 255, 255, 0.65); }
#programmes .section-label        { color: var(--sun); }
#programmes .section-label::before,
#programmes .section-label::after { background: var(--sun); }

.prog-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   24px;
  margin-top:            60px;
}

.prog-card {
  background:    rgba(255, 255, 255, 0.05);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow:      hidden;
  transition:    all 0.4s var(--ease-out);
  position:      relative;
}
.prog-card:hover {
  background:   rgba(245, 200, 0, 0.1);
  border-color: var(--sun);
  transform:    translateY(-8px);
  box-shadow:   0 24px 60px rgba(0, 0, 0, 0.3);
}

.prog-img        { height: 220px; overflow: hidden; position: relative; }
.prog-img img    { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); display: block; }
.prog-card:hover .prog-img img { transform: scale(1.08); }

.prog-age-badge {
  position:       absolute;
  top:            16px;
  right:          16px;
  background:     var(--sun);
  color:          var(--navy);
  padding:        4px 12px;
  border-radius:  50px;
  font-family:    var(--font-heading);
  font-size:      11px;
  font-weight:    800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prog-body  { padding: 24px; }
.prog-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.prog-desc  { font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; margin-bottom: 16px; }
.prog-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-tag   {
  background:    rgba(255, 255, 255, 0.1);
  color:         rgba(255, 255, 255, 0.75);
  padding:       3px 10px;
  border-radius: 50px;
  font-size:     11px;
  font-weight:   600;
}


/* ════════════════════════════════════════════════════════════
   GALLERY
   ════════════════════════════════════════════════════════════ */
#gallery        { background: var(--cream); padding: 100px 0; }
#gallery .inner { padding: 0 64px; }

.gallery-masonry {
  columns:     4;
  column-gap:  16px;
  margin-top:  60px;
}

.gallery-item {
  break-inside:  avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow:      hidden;
  position:      relative;
  cursor:        pointer;
}
.gallery-item img       { width: 100%; display: block; transition: transform 0.5s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay        {
  position:    absolute;
  inset:       0;
  background:  linear-gradient(to top, rgba(15, 27, 61, 0.7), transparent);
  opacity:     0;
  transition:  opacity 0.3s;
  display:     flex;
  align-items: flex-end;
  padding:     16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label {
  font-family: var(--font-heading);
  font-size:   13px;
  font-weight: 700;
  color:       var(--white);
}


/* ════════════════════════════════════════════════════════════
   WHY OXFORD
   ════════════════════════════════════════════════════════════ */
#why {
  background: var(--sun);
  position:   relative;
  overflow:   hidden;
}

.why-grid {
  display:               grid;
  grid-template-columns: 1fr 1.2fr;
  gap:                   80px;
  align-items:           center;
}

.why-features {
  display:        flex;
  flex-direction: column;
  gap:            20px;
}

.why-feature {
  display:        flex;
  align-items:    flex-start;
  gap:            20px;
  background:     rgba(255, 255, 255, 0.5);
  border-radius:  16px;
  padding:        20px 24px;
  border:         2px solid rgba(255, 255, 255, 0.8);
  transition:     all 0.3s var(--ease-out);
}
.why-feature:hover {
  background: var(--white);
  transform:  translateX(8px);
  box-shadow: 0 12px 36px rgba(15, 27, 61, 0.12);
}
.why-feature-icon       { font-size: 2.4rem; flex-shrink: 0; transition: transform 0.3s var(--ease-bounce); }
.why-feature:hover .why-feature-icon { transform: scale(1.2) rotate(-10deg); }
.why-feature-title      { font-family: var(--font-heading); font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.why-feature-desc       { font-size: 13px; color: var(--navy-soft); line-height: 1.6; }

.why-img-stack   { position: relative; }
.why-img-big     {
  border-radius: 24px;
  overflow:      hidden;
  box-shadow:    0 30px 80px rgba(15, 27, 61, 0.2);
  border:        6px solid var(--white);
}
.why-img-big img { width: 100%; height: 520px; object-fit: cover; display: block; }

.why-unicorn {
  position:        absolute;
  bottom:          -30px;
  left:            -30px;
  width:           130px;
  height:          130px;
  background:      var(--navy);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border:          5px solid var(--sun-deep);
  box-shadow:      0 16px 48px rgba(15, 27, 61, 0.3);
  animation:       spinWobble 4s ease-in-out infinite;
}
.why-unicorn img { width: 90px; height: 90px; object-fit: contain; }

@keyframes spinWobble {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.05); }
}

.why-review-float {
  position:      absolute;
  top:           24px;
  right:         -32px;
  background:    var(--white);
  border-radius: 16px;
  padding:       16px 20px;
  box-shadow:    0 16px 48px rgba(15, 27, 61, 0.15);
  max-width:     200px;
  border:        2px solid var(--sun);
  animation:     floatCard 4s ease-in-out 0.5s infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}
.why-review-float .stars  { color: #FFD700; font-size: 14px; margin-bottom: 6px; }
.why-review-float p       { font-size: 12px; color: var(--text-soft); line-height: 1.5; font-style: italic; }
.why-review-float .author { font-size: 11px; font-weight: 700; color: var(--navy); margin-top: 6px; }


/* ════════════════════════════════════════════════════════════
   ACTIVITIES
   ════════════════════════════════════════════════════════════ */
#activities { background: var(--white); }

.act-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   16px;
  margin-top:            40px;
}

.act-card {
  border-radius: 18px;
  overflow:      hidden;
  position:      relative;
  height:        480px;
  cursor:        pointer;
}

.act-card img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.6s var(--ease-out);
  position:   relative;
  z-index:    0;
}
.act-card:hover img { transform: scale(1.08); }

.act-bg-fill {
  position:   absolute;
  inset:      0;
  z-index:    1;
  transform:  translateY(100%);
  opacity:    0.88;
  transition: transform 0.5s var(--ease-out);
}
.act-card:hover .act-bg-fill { background: var(--sun); transform: translateY(0); }

/* .act-card:nth-child(1) .act-bg-fill { background: var(--navy); }
.act-card:nth-child(2) .act-bg-fill { background: #1a4731; }
.act-card:nth-child(3) .act-bg-fill { background: #4a1b0c; }
.act-card:nth-child(4) .act-bg-fill { background: #26215C; }
.act-card:nth-child(5) .act-bg-fill { background: #0c447c; }
.act-card:nth-child(6) .act-bg-fill { background: #3d2a00; } */

.act-emoji {
  position:        absolute;
  top:             0;
  left:            0;
  right:           0;
  z-index:         3;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding-top:     28px;
  font-size:       2.4rem;
  transform:       translateY(-64px);
  opacity:         0;
  transition:      transform 0.45s var(--ease-bounce), opacity 0.35s ease;
  transition-delay: 0.05s;
}
.act-card:hover .act-emoji { transform: translateY(0); opacity: 1; }

.act-overlay {
  position:        absolute;
  inset:           0;
  z-index:         2;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  padding:         22px;
  pointer-events:  none;
}

.act-overlay::before {
  content:    '';
  position:   absolute;
  inset:      0;
  z-index:    -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, transparent 55%);
  transition: opacity 0.4s;
}
.act-card:hover .act-overlay::before { opacity: 0; }

.act-title {
  font-family:   var(--font-heading);
  font-size:     1.15rem;
  font-weight:   800;
  color:         var(--white);
  margin-bottom: 4px;
  z-index: 3;
}

.act-sub {
  font-size:   12px;
  color:      var(--navy);
  line-height: 1.45;
  max-height:  0;
  overflow:    hidden;
  opacity:     0;
  transform:   translateY(8px);
  transition:  max-height 0.4s ease, opacity 0.35s ease 0.08s, transform 0.4s var(--ease-out) 0.04s;
  z-index: 3;
}
.act-card:hover .act-sub{ max-height: 60px; opacity: 1; transform: translateY(0); }
.act-card:hover .act-title{ color: var(--navy); }
/* ════════════════════════════════════════════════════════════
   FACILITIES — Learning Journey style
   Cream section bg; sun-yellow panel fully covers card on hover,
   icon image drops in from top.
   ════════════════════════════════════════════════════════════ */
#facilities {
  background: var(--cream);
  padding:    90px 64px 100px;
}

.fac-head {
  text-align:    center;
  margin-bottom: 60px;
}

.fac-head-title {
  font-family:    var(--font-display);
  font-size:      clamp(2.4rem, 5.5vw, 5rem);
  font-weight:    900;
  color:          var(--navy);
  line-height:    1.05;
  margin:         0;
  letter-spacing: -0.01em;
}

.fac-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   18px;
  max-width:             1400px;
  margin:                0 auto;
}

.fac-card {
  position:      relative;
  height:        460px;
  border-radius: 14px;
  overflow:      hidden;
  cursor:        pointer;
  background:    var(--navy);
}

/* Image fills entire card */
.fac-img {
  position: absolute;
  inset:    0;
  z-index:  0;
}
.fac-img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.6s var(--ease-out);
}
.fac-card:hover .fac-img img { transform: scale(1.05); }

/* Icon image — hidden above the card, drops in on hover */
.fac-icon {
  position:        absolute;
  top:             -190px;
  right:           24px;
  z-index:         3;
  width:           120px;
  height:          120px;
  transform:       rotate(-12deg);
  transition:      top 0.5s var(--ease-bounce), transform 0.5s var(--ease-bounce);
  filter:          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}
.fac-icon img {
  width:      100%;
  height:     100%;
  object-fit: contain;
  display:    block;
}
.fac-card:hover .fac-icon {
  top:       24px;
  transform: rotate(0deg);
}

/* Bottom panel — sun-yellow strip that rises to FULL coverage on hover */
.fac-body {
  position:        absolute;
  left:            0;
  right:           0;
  bottom:          0;
  z-index:         1;
  background:      var(--sun);
  padding:         22px 26px 24px;
  height:          30%;
  display:         flex;
  flex-direction:  column;
  justify-content: flex-end;
  transition:      height 0.55s var(--ease-out),
                   justify-content 0s 0.55s,
                   padding 0.55s ease;
}
.fac-card:hover .fac-body {
  height:          100%;                /* fills the whole card */
  justify-content: center;
  padding:         60px 30px 60px;
}

.fac-title {
  font-family: var(--font-display);
  font-size:   1.6rem;
  font-weight: 900;
  color:       var(--navy);
  line-height: 1.15;
  margin:      0 0 6px;
}

.fac-sub {
  font-family:    var(--font-heading);
  font-size:      11px;
  font-weight:    700;
  color:          var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fac-desc {
  font-family: var(--font-body);
  font-size:   14px;
  line-height: 1.55;
  color:       var(--navy);
  margin:      0;
  max-height:  0;
  opacity:     0;
  overflow:    hidden;
  transition:  max-height 0.5s ease, opacity 0.4s ease 0.2s, margin 0.5s ease;
}
.fac-card:hover .fac-desc {
  margin:     14px 0 0;
  max-height: 200px;
  opacity:    1;
}

.fac-arrow {
  position:    absolute;
  right:       26px;
  bottom:      22px;
  font-size:   22px;
  font-weight: 700;
  color:       var(--navy);
  transition:  transform 0.4s var(--ease-bounce);
}
.fac-card:hover .fac-arrow { transform: translateX(8px); }


/* ── Touch devices ── */
@media (hover: none) {
  .fac-body {
    height:          50%;
    padding-bottom:  56px;
    justify-content: center;
  }
  .fac-desc { max-height: 90px; opacity: 1; margin-top: 14px; }
  .fac-icon { top: 24px; transform: rotate(0deg); }
}


/* ── Responsive ── */
@media (max-width: 1100px) {
  .fac-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
  #facilities { padding: 60px 24px 80px; }
  .fac-head   { margin-bottom: 44px; }
  .fac-grid   { grid-template-columns: 1fr; gap: 14px; }
  .fac-card   { height: 380px; }
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */
#testimonials {
  background: var(--navy);
  position:   relative;
  overflow:   hidden;
}
#testimonials .section-title        { color: var(--sun); }
#testimonials .section-sub          { color: rgba(255, 255, 255, 0.6); }
#testimonials .section-label        { color: var(--sun); }
#testimonials .section-label::before,
#testimonials .section-label::after { background: var(--sun); }

.test-track {
  display:        flex;
  gap:            24px;
  margin-top:     60px;
  overflow-x:     auto;
  padding-bottom: 20px;
}
.test-track::-webkit-scrollbar { display: none; }

.test-card {
  flex:          0 0 360px;
  background:    rgba(255, 255, 255, 0.05);
  border:        1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding:       32px;
  transition:    all 0.3s var(--ease-out);
  position:      relative;
}
.test-card:hover {
  background:   rgba(245, 200, 0, 0.1);
  border-color: rgba(245, 200, 0, 0.4);
  transform:    translateY(-6px);
}

.test-quote-icon { font-size: 3rem; color: var(--sun); opacity: 0.3; line-height: 1; margin-bottom: 16px; }
.test-text       { font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.test-author     { display: flex; align-items: center; gap: 14px; }
.test-avatar     { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 3px solid var(--sun); }
.test-avatar img { width: 100%; height: 100%; object-fit: cover; }
.test-name       { font-family: var(--font-heading); font-size: 14px; font-weight: 800; color: var(--white); }
.test-role       { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.test-stars      { color: #FFD700; font-size: 13px; margin-bottom: 4px; }


/* ════════════════════════════════════════════════════════════
   BRANCHES
   ════════════════════════════════════════════════════════════ */
#branches { background: var(--white); }

.branch-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
  margin-top:            60px;
}

.branch-card {
  border-radius: 20px;
  padding:       28px;
  position:      relative;
  border:        2px solid #F0F0F0;
  transition:    all 0.35s var(--ease-out);
  overflow:      hidden;
}
.branch-card::after {
  content:          '';
  position:         absolute;
  bottom:           0;
  left:             0;
  right:            0;
  height:           4px;
  background:       var(--sun);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform 0.4s var(--ease-out);
}
.branch-card:hover {
  border-color: var(--sun);
  transform:    translateY(-6px);
  box-shadow:   0 20px 60px rgba(245, 200, 0, 0.15);
}
.branch-card:hover::after { transform: scaleX(1); }

.branch-num {
  font-family: var(--font-display);
  font-size:   4rem;
  font-weight: 900;
  color:       var(--sun);
  opacity:     0.2;
  position:    absolute;
  top:         16px;
  right:       20px;
  line-height: 1;
}
.branch-icon { font-size: 2.2rem; margin-bottom: 12px; }
.branch-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.branch-addr { font-size: 13px; color: var(--text-soft); line-height: 1.6; margin-bottom: 12px; }
.branch-link {
  font-size:       13px;
  font-weight:     700;
  color:           var(--coral);
  text-decoration: none;
  display:         inline-flex;
  align-items:     center;
  gap:             4px;
}
.branch-link:hover { gap: 8px; }


/* ════════════════════════════════════════════════════════════
   ENROLL CTA
   ════════════════════════════════════════════════════════════ */
#enroll {
  background: var(--sun);
  text-align: center;
  padding:    100px 64px;
  position:   relative;
  overflow:   hidden;
}

.enroll-bg      { position: absolute; inset: 0; pointer-events: none; }
.enroll-bg span {
  position:  absolute;
  font-size: 6rem;
  opacity:   0.08;
  animation: floatEmoji 5s ease-in-out infinite;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-15px) rotate(10deg); }
}

#enroll .section-title {
  color:         var(--navy);
  font-size:     clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}
#enroll p {
  font-size: 18px;
  color:     var(--navy-soft);
  max-width: 560px;
  margin:    0 auto 40px;
}

.enroll-form {
  display:       flex;
  gap:           12px;
  max-width:     520px;
  margin:        0 auto;
  background:    var(--white);
  border-radius: 60px;
  padding:       8px;
  box-shadow:    0 20px 60px rgba(15, 27, 61, 0.15);
  border:        3px solid var(--navy);
}
.enroll-form input {
  flex:        1;
  border:      none;
  background:  transparent;
  padding:     0 20px;
  font-size:   15px;
  color:       var(--navy);
  outline:     none;
  font-family: var(--font-body);
}
.enroll-form input::placeholder { color: rgba(15, 27, 61, 0.4); }
.enroll-form button {
  background:    var(--navy);
  color:         var(--sun);
  border:        none;
  border-radius: 50px;
  padding:       14px 28px;
  font-family:   var(--font-heading);
  font-size:     14px;
  font-weight:   800;
  cursor:        pointer;
  transition:    all 0.3s var(--ease-bounce);
  white-space:   nowrap;
}
.enroll-form button:hover { background: var(--coral); transform: scale(1.05); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Home page sections
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #hero            { grid-template-columns: 1fr; padding: 120px 32px 60px; }
  .hero-right      { display: none; }
  .about-grid,
  .why-grid        { grid-template-columns: 1fr; }
  .prog-grid       { grid-template-columns: repeat(2, 1fr); }
  .act-grid        { grid-template-columns: repeat(3, 1fr); }
  .branch-grid     { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 3; }
}

@media (max-width: 768px) {
  #hero            { padding: 100px 24px 60px; }
  .prog-grid       { grid-template-columns: 1fr; }
  .act-grid        { grid-template-columns: 1fr; }
  .branch-grid     { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .hero-stats      { gap: 20px; }
  .enroll-form     { flex-direction: column; border-radius: 20px; }
  #gallery .inner  { padding: 0 24px; }

  .why-review-float { right: 0; }
}
/* ════════════════════════════════════════════════════════════
   PARTNERS & ACCREDITATIONS — Logo carousel
   ════════════════════════════════════════════════════════════ */
#partners {
  background: var(--cream);
  padding:    80px 64px 100px;
}

.partners-head {
  text-align:    center;
  margin-bottom: 48px;
}

.partners-title {
  font-family: var(--font-display);
  font-size:   clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color:       var(--navy);
  line-height: 1.1;
  margin:      0;
}

/* Decorative divider: ── • ── */
.partners-divider {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  margin-top:      18px;
}
.partners-divider span {
  width:         50px;
  height:        2px;
  background:    var(--sun);
  border-radius: 2px;
}
.partners-divider i {
  width:         8px;
  height:        8px;
  background:    var(--sun);
  border-radius: 50%;
}

.partners-wrap {
  position:  relative;
  max-width: 1400px;
  margin:    0 auto;
  padding:   0 60px;          /* reserves space for arrow buttons */
}

.partners-track {
  display:                    flex;
  gap:                        20px;
  overflow-x:                 auto;
  scroll-behavior:            smooth;
  scroll-snap-type:           x proximity;
  padding:                    12px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:            none;
}
.partners-track::-webkit-scrollbar { display: none; }

.partner-card {
  flex:              0 0 auto;
  width:             130px;
  height:            130px;
  background:        var(--white);
  border-radius:     14px;
  box-shadow:        0 8px 24px rgba(15, 27, 61, 0.08);
  display:           flex;
  align-items:       center;
  justify-content:   center;
  padding:           18px;
  scroll-snap-align: start;
  transition:        transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.partner-card:hover {
  transform:  translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 27, 61, 0.14);
}
.partner-card img {
  max-width:  100%;
  max-height: 100%;
  object-fit: contain;
}

/* Arrow buttons */
.partners-arrow {
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  width:           44px;
  height:          44px;
  border-radius:   50%;
  background:      var(--white);
  border:          none;
  box-shadow:      0 8px 24px rgba(15, 27, 61, 0.12);
  cursor:          pointer;
  z-index:         2;
  color:           var(--navy);
  font-family:     var(--font-heading);
  font-size:       24px;
  font-weight:     700;
  line-height:     1;
  display:         flex;
  align-items:     center;
  justify-content: center;
  transition:      all 0.3s var(--ease-bounce);
}
.partners-arrow:hover {
  background: var(--sun);
  transform:  translateY(-50%) scale(1.08);
  box-shadow: 0 12px 32px rgba(245, 200, 0, 0.4);
}
.partners-arrow--prev { left:  0; }
.partners-arrow--next { right: 0; }


/* ── Responsive ── */
@media (max-width: 1024px) {
  #partners      { padding: 60px 24px 80px; }
  .partners-wrap { padding: 0 50px; }
}

@media (max-width: 768px) {
  #partners      { padding: 50px 16px 70px; }
  .partners-wrap { padding: 0 44px; }
  .partner-card  { width: 110px; height: 110px; padding: 14px; }
  .partners-arrow { width: 36px; height: 36px; font-size: 20px; }
}