/* CORE Fine Arts — Brand colors only (#CE373A, #2D3448, #1B1F2D, neutrals) */
:root {
  --brand: #CE373A;
  --brand-dark: #a82e30;
  --brand-soft: rgba(206, 55, 58, 0.12);
  --brand-glow: rgba(206, 55, 58, 0.35);
  --navy: #2D3448;
  --navy-deep: #1B1F2D;
  --text: #2D3448;
  --text-muted: #62697C;
  --text-light: #868B97;
  --bg: #EEF0F6;
  --bg-alt: #ffffff;
  --border: #CDD1DE;
  --border-light: #D7DAE0;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(45, 52, 72, 0.1);
  --shadow-lg: 0 24px 64px rgba(27, 31, 45, 0.18);
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--brand-dark); }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.container--narrow { max-width: 720px; }

/* Top bar */
.top-bar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.82rem;
  padding: 0.55rem 0;
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar__pulse { animation: textPulse 2s ease infinite; }
.top-bar__cta {
  color: var(--white);
  font-weight: 700;
  background: var(--brand);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
}
.top-bar__cta:hover { background: var(--brand-dark); color: var(--white); }
@keyframes textPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s var(--ease);
}
.header--scrolled { box-shadow: var(--shadow); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.logo__img {
  width: 52px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.logo__mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  line-height: 1.1;
}
.logo__text {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
}
.logo--footer .logo__mark { color: var(--white); }
.logo--footer .logo__text { color: var(--border); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--navy); font-weight: 500; font-size: 0.92rem; }
.nav a:hover { color: var(--brand); }
.nav a.is-active { color: var(--brand); font-weight: 700; }
.nav__magnet {
  color: var(--brand) !important;
  font-weight: 700 !important;
}
.nav__cta {
  background: var(--brand) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
}
.nav__cta:hover { background: var(--brand-dark) !important; color: var(--white) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle { z-index: 110; position: relative; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: 0.3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 31, 45, 0.55);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s, background 0.3s;
}
.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 28px var(--brand-glow);
}
.btn--primary:hover {
  background: var(--brand-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px var(--brand-glow);
}
.btn--ghost {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline-dark {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--brand); }
.btn--light:hover { background: var(--bg); }
.btn--whatsapp { background: #25d366; color: var(--white); }
.btn--whatsapp:hover { background: #1da851; color: var(--white); }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s var(--ease), transform 8s linear;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(27, 31, 45, 0.92) 0%, rgba(45, 52, 72, 0.75) 45%, rgba(45, 52, 72, 0.4) 100%);
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__content { color: var(--white); }
.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  margin: 1rem 0;
}
.hero__content h1 em { font-style: italic; color: #f5a5a6; }
.hero__lead { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 500px; margin-bottom: 1.75rem; }
.badge {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero__trust {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero__trust strong {
  display: block;
  font-size: 1.85rem;
  font-family: var(--font-display);
  color: var(--white);
}
.hero__trust span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

.hero__frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.25);
  animation: frameFloat 5s ease-in-out infinite;
}
.hero__main-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__card-float {
  position: absolute;
  bottom: -16px;
  left: -24px;
  max-width: 260px;
  background: var(--white);
  padding: 1.25rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--brand);
  color: var(--navy);
}
.hero__card-stars { color: var(--brand); font-size: 0.85rem; margin-bottom: 0.35rem; }
.hero__card-float p { font-size: 0.88rem; font-style: italic; }
.hero__card-float cite { font-size: 0.78rem; color: var(--text-muted); }
.hero__visual { position: relative; }
.hero__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}
.hero__dot.is-active { background: var(--brand); border-color: var(--brand); }

@keyframes frameFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.anim-float { animation: floatY 3s ease-in-out infinite; }
.anim-float-delay { animation: floatY 3s ease-in-out 0.6s infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Lead magnet */
.lead-magnet {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.lead-magnet::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--brand-soft) 0%, transparent 70%);
  pointer-events: none;
}
.lead-magnet__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.lead-magnet__gift { color: var(--white); }
.lead-magnet__tag {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  animation: tagPulse 2s ease infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.lead-magnet__gift h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 1rem;
}
.lead-magnet__gift > p { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.lead-magnet__list { list-style: none; margin-bottom: 1.5rem; }
.lead-magnet__list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.lead-magnet__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f5a5a6;
  font-weight: 700;
}
.lead-magnet__countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.lead-magnet__countdown strong { color: #f5a5a6; font-size: 1.1rem; }
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulseDot 1.5s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.lead-magnet__form {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.lead-magnet__form h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

/* Urgency */
.urgency {
  background: var(--brand);
  color: var(--white);
  padding: 1.35rem 0;
}
.anim-shimmer {
  background: linear-gradient(90deg, var(--brand) 0%, #e04a4d 50%, var(--brand) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.urgency__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.urgency p { opacity: 0.92; font-size: 0.92rem; }

/* Benefits */
.benefits { padding: 3rem 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.benefit-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s;
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.benefit-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.benefit-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.benefit-card p { color: var(--text-muted); font-size: 0.92rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy-deep); color: var(--white); }
.section--dark .section-label { color: #f5a5a6; }
.section--dark h2 { color: var(--white); }
.section--enquire { background: var(--bg); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--navy);
  margin: 0.5rem 0 0.75rem;
}
.section-head p { color: var(--text-muted); }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.timeline__item {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.timeline__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--brand);
  transition: width 0.4s var(--ease);
}
.timeline__item:hover::after { width: 100%; }
.timeline__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.timeline__item--highlight {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--white) 0%, var(--brand-soft) 100%);
}
.timeline__item span {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.timeline__item--highlight span { background: var(--brand); }
.timeline__item h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.5rem; }
.timeline__item p { font-size: 0.9rem; color: var(--text-muted); }

/* Courses grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.course-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: 0.4s var(--ease-bounce);
  text-align: center;
}
.course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.course-card__img-wrap {
  padding: 1.25rem;
  background: var(--bg);
}
.course-card__img-wrap img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.5s var(--ease);
}
.course-card:hover .course-card__img-wrap img { transform: scale(1.08) rotate(-2deg); }
.course-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}
.course-card__link {
  display: block;
  padding: 0 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split__images {
  position: relative;
  min-height: 380px;
}
.split__img {
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.split__img--1 {
  width: 75%;
  height: 280px;
  position: relative;
  z-index: 2;
}
.split__img--2 {
  width: 55%;
  height: 200px;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  border: 4px solid var(--white);
}
.split h2 { font-family: var(--font-display); font-size: 2rem; color: var(--navy); margin: 0.5rem 0 1rem; }
.check-list { list-style: none; margin: 1.25rem 0 1.75rem; }
.check-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--text-muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

/* Gallery masonry */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item--1 { grid-row: span 2; }
.gallery-item--2 { grid-column: span 2; }
.gallery-item--3 { grid-row: span 2; }
.gallery-item__zoom {
  position: absolute;
  inset: 0;
  background: rgba(206, 55, 58, 0.75);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-item__zoom { opacity: 1; }

/* Faculty */
.faculty-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}
.faculty-block__img img {
  border-radius: 16px;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.faculty-block blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy);
  margin: 1rem 0;
  line-height: 1.6;
}
.faculty-block__name { color: var(--brand); font-weight: 700; margin-bottom: 1.25rem; }

/* Testimonials slider */
.testimonials-slider { position: relative; min-height: 140px; }
.testimonial {
  position: absolute;
  inset: 0;
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s, transform 0.6s;
  pointer-events: none;
}
.testimonial.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.testimonial p { font-size: 1.1rem; margin-bottom: 1rem; color: var(--navy); }
.testimonial footer { color: var(--brand); font-weight: 600; }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: 0.3s;
}
.slider-dots button.is-active { background: var(--brand); transform: scale(1.2); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: 0.4s;
}
.step:hover { border-color: var(--brand); transform: translateY(-6px); }
.step span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.82rem; color: var(--navy); margin-bottom: 0.35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  transition: 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 0.75rem; }
.enquire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.enquire-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.enquire-form h3 { font-family: var(--font-display); color: var(--navy); margin-bottom: 1.25rem; }
.enquire-info { margin-top: 1.5rem; font-size: 0.92rem; color: var(--text-muted); }
.enquire-info a { color: var(--brand); font-weight: 600; }

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 0.65rem;
  border: 1px solid var(--border-light);
}
.faq-item summary {
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.faq-item p { padding: 0 1.35rem 1.15rem; color: var(--text-muted); font-size: 0.95rem; }

/* Lead popup */
.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}
.lead-popup.is-open { opacity: 1; visibility: visible; }
.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 31, 45, 0.7);
  backdrop-filter: blur(4px);
}
.lead-popup__box {
  position: relative;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-bounce);
  border-top: 5px solid var(--brand);
}
.lead-popup.is-open .lead-popup__box { transform: scale(1) translateY(0); }
.lead-popup__x {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}
.lead-popup__box h3 { font-family: var(--font-display); color: var(--navy); margin: 0.75rem 0; }
.lead-popup__box p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.lead-popup__skip {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.45rem; }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: var(--white); }
.footer__tagline { margin: 0.75rem 0; font-size: 0.9rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: var(--white);
  padding: 0.85rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  font-weight: 600;
  animation: waBounce 2s ease infinite;
}
.whatsapp-float:hover { color: var(--white); transform: scale(1.06); }
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Thank you */
.thank-you { padding: 6rem 0; min-height: 55vh; display: flex; align-items: center; }
.thank-you__box { text-align: center; max-width: 500px; margin: 0 auto; }
.thank-you__icon {
  width: 80px;
  height: 80px;
  background: var(--brand);
  color: white;
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.6s var(--ease-bounce);
}
@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
.thank-you h1 { font-family: var(--font-display); color: var(--navy); margin-bottom: 1rem; }
.thank-you__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Magnetic hover */
.btn--magnetic { position: relative; }

/* Inner pages */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 3rem;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
}
.page-hero--compact { min-height: 32vh; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,31,45,0.5) 0%, rgba(27,31,45,0.88) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.page-hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-hero__content p { color: rgba(255,255,255,0.88); max-width: 560px; }

.content-block .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; }
.feature-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.feature-pill {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.9rem;
}
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--brand);
  padding-left: 1.25rem;
  margin-top: 2rem;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-box {
  text-align: center;
  background: var(--white);
  padding: 2rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}
.stat-box strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--brand);
}
.stat-box span { font-size: 0.85rem; color: var(--text-muted); }
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  min-height: 360px;
}
.about-gallery__img { border-radius: 12px; object-fit: cover; width: 100%; height: 160px; }
.about-gallery__img--1 { grid-column: span 2; height: 200px; }
.award-card {
  background: var(--brand-soft);
  padding: 1.5rem;
  border-radius: 16px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--brand);
}
.award-card__quote { font-style: italic; margin-top: 0.75rem; color: var(--text-muted); }
.award-img { border-radius: 16px; width: 100%; max-height: 320px; object-fit: cover; margin-top: 1rem; }
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.rounded-img { border-radius: 16px; width: 100%; box-shadow: var(--shadow); }
.timeline__item ul { list-style: none; margin-top: 0.5rem; font-size: 0.88rem; color: var(--text-muted); }
.timeline__item li { padding: 0.15rem 0; }
.contact-mini { text-align: center; max-width: 480px; margin: 0 auto; }
.contact-mini h2 { font-family: var(--font-display); margin-bottom: 1rem; }
.mt { margin-top: 1.5rem; }

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-page-item {
  border-radius: 12px;
  overflow: hidden;
  display: block;
  aspect-ratio: 1;
  transition: transform 0.35s var(--ease-bounce);
}
.gallery-page-item:hover { transform: scale(1.04); }
.gallery-page-item img { width: 100%; height: 100%; object-fit: cover; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: 0.35s;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.event-card__img { display: block; aspect-ratio: 1; overflow: hidden; }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.event-card:hover .event-card__img img { transform: scale(1.06); }
.event-card__body { padding: 1.25rem; }
.event-card__body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.5rem; }

.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 3rem 0;
}
.cta-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--white); font-family: var(--font-display); font-size: 1.5rem; }
.cta-strip p { color: rgba(255,255,255,0.8); }
.cta-strip__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}
.contact-card h3 { color: var(--brand); font-size: 1rem; margin-bottom: 0.5rem; }
.contact-card__links { display: flex; gap: 1rem; margin-top: 0.75rem; }
.contact-visual { display: grid; gap: 0.75rem; }
.contact-visual__img { border-radius: 12px; width: 100%; object-fit: cover; max-height: 200px; }
.text-center { text-align: center; }

/* ========== RESPONSIVE — Tablet (≤1024px) ========== */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .faculty-block { grid-template-columns: 1fr; }
  .faculty-block__img { max-width: 400px; margin: 0 auto; }
}

/* ========== RESPONSIVE — Mobile (≤900px) ========== */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .container { width: min(1180px, 94vw); }
  .section { padding: 3rem 0; }

  /* Top bar */
  .top-bar { font-size: 0.75rem; padding: 0.5rem 0; }
  .top-bar__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .top-bar__cta {
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Header & mobile menu */
  .logo__img { width: 44px; }
  .logo__mark { font-size: 1.1rem; }
  .logo__text { font-size: 0.55rem; letter-spacing: 0.08em; }
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    gap: 0.25rem;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav a:hover,
  .nav a.is-active { background: var(--brand-soft); }
  .nav__cta {
    margin-top: 0.75rem !important;
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.25rem !important;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 2rem 0 2.5rem;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero__visual { order: -1; }
  .hero__content h1 { font-size: clamp(1.65rem, 6vw, 2.25rem); }
  .hero__lead { font-size: 0.98rem; }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn { width: 100%; min-height: 48px; }
  .hero__trust {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: space-between;
  }
  .hero__trust > div { flex: 1 1 28%; min-width: 90px; }
  .hero__card-float {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: 100%;
    margin-top: 1rem;
  }
  .hero__frame { animation: none; }
  .hero__dots { bottom: 1rem; }

  /* Lead magnet */
  .lead-magnet { padding: 3rem 0; }
  .lead-magnet__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .lead-magnet__form { order: -1; }

  /* Layout grids */
  .benefits-grid,
  .programs-grid,
  .lead-magnet__grid,
  .split,
  .enquire-grid,
  .footer__grid,
  .stats-row,
  .steps,
  .two-col-list,
  .contact-page-grid,
  .cta-strip__inner {
    grid-template-columns: 1fr;
  }
  .urgency__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .urgency__inner .btn { width: 100%; min-height: 48px; }

  .split__images {
    min-height: auto;
    order: -1;
  }
  .split__img--1 { width: 100%; height: 200px; }
  .split__img--2 {
    position: relative;
    width: 85%;
    margin: -3rem auto 0;
    display: block;
  }
  .about-gallery {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .about-gallery__img--1 { grid-column: span 2; }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .gallery-item--1,
  .gallery-item--2,
  .gallery-item--3 {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-strip__inner { text-align: center; }
  .cta-strip__actions {
    width: 100%;
    flex-direction: column;
  }
  .cta-strip__actions .btn { width: 100%; min-height: 48px; }

  .enquire-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .faculty-block { padding: 1.5rem; }
  .page-hero {
    min-height: 36vh;
    padding: 4rem 0 2rem;
  }
  .page-hero__content h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); }

  .footer__grid { gap: 1.5rem; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .whatsapp-float {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }

  .lead-popup__box {
    max-height: 90dvh;
    overflow-y: auto;
    margin: 0.5rem;
  }

  .btn--magnetic:hover { transform: none; }
}

/* ========== RESPONSIVE — Small phones (≤480px) ========== */
@media (max-width: 480px) {
  .container { width: 94vw; }

  .hero__trust > div { flex: 1 1 45%; }
  .hero__trust strong { font-size: 1.5rem; }

  .programs-grid,
  .timeline,
  .courses-grid,
  .gallery-masonry,
  .gallery-page-grid,
  .events-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .program-card,
  .step { padding: 1.5rem; }

  .section-head h2 { font-size: 1.45rem; }
  .lead-magnet__gift h2 { font-size: 1.35rem; }

  .logo__text-wrap { display: none; }
  .logo__img { width: 48px; }

  .whatsapp-float span { display: none; }
  .whatsapp-float {
    padding: 0.95rem;
    border-radius: 50%;
    min-width: 52px;
    min-height: 52px;
    justify-content: center;
  }

  .testimonial { padding: 1.25rem; }
  .testimonial p { font-size: 1rem; }

  .thank-you__actions { flex-direction: column; }
  .thank-you__actions .btn { width: 100%; }

  /* Prevent iOS zoom on form focus */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

/* Touch devices — larger tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav a { min-height: 48px; }
  .faq-item summary { min-height: 48px; display: flex; align-items: center; }
  .hero__dot {
    width: 12px;
    height: 12px;
  }
  .slider-dots button {
    width: 12px;
    height: 12px;
  }
}
