/* ============================================================
   GPIWL Website - style.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --purple:        #5b2d8e;
  --purple-dark:   #3d1c6b;
  --purple-light:  #7c3fbb;
  --gold:          #c9a84c;
  --gold-light:    #e8c97a;
  --white:         #ffffff;
  --off-white:     #f8f6fc;
  --light-gray:    #f1eef8;
  --mid-gray:      #888;
  --dark:          #1a1a2e;
  --text:          #333344;
  --text-light:    #666677;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:    12px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(91, 45, 142, 0.12);
  --shadow-lg: 0 12px 48px rgba(91, 45, 142, 0.18);
  --transition: 0.3s ease;

  --navbar-h: 76px;
  --topbar-h: 36px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section Padding ---------- */
.section-pad { padding: 80px 0; }

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-tag.light { color: rgba(255,255,255,0.75); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-title.left-align { text-align: left; }
.section-title.white { color: #fff; }
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--purple);
  font-size: 16px;
}
.section-divider span {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}
.section-divider.left-align { justify-content: flex-start; margin-top: 10px; margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--purple);
  color: #fff;
}
.btn--primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 45, 142, 0.35);
}
.btn--outline-light {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar__left, .top-bar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar__left a, .top-bar__right span {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.top-bar__left a:hover { color: var(--gold-light); }
.top-bar__socials { display: flex; gap: 12px; }
.top-bar__socials a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: color var(--transition);
}
.top-bar__socials a:hover { color: var(--gold-light); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(91,45,142,0.15); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
}
.logo-sub {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Nav List */
.navbar__nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list li { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--purple);
  background: var(--light-gray);
}
.nav-link.active { font-weight: 600; }
/* Underline for active */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
  border-top: 3px solid var(--purple);
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--light-gray);
  color: var(--purple);
  padding-left: 26px;
}

/* Navbar Actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-image: url("hero.png");
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
}
 
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(61,28,107,0.85) 0%, rgba(91,45,142,0.4) 60%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__text { max-width: 560px; }
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold-light);
  margin-bottom: 8px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__desc {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }

 
 
 
 
  
/* ============================================================
   PROGRAMS
   ============================================================ */
.programs { background: #fff; }
 .programs__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.program-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: var(--shadow);

  transition: transform .35s ease,
              border-color .35s ease,
              box-shadow .35s ease;
}

.program-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--purple);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}
.program-card__img { position: relative; }
.prog-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.prog-img--cit { background-image: url("cit.png"); }
.prog-img--se { background-image: url("se.png"); }
.prog-img--bmt { background-image: url("bmt.png"); }
.prog-img--fd { background-image: url("fd.png"); }
.prog-img--gt { background-image: url("gt.png"); }
.program-card__icon {
  position: absolute;
  bottom: -16px;
  left: 16px;
  width: 36px;
  height: 36px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(91,45,142,0.4);
}
.program-card__body { padding: 28px 16px 20px; }
.program-card__body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.program-card__body p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  min-height: 18px;
}
.prog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  transition: gap var(--transition);
}
.prog-link:hover { gap: 10px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--off-white); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}

.about__img {
  background-image: url("about.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 100%;
  height: 550px;
  border-radius: var(--radius);
}
 
.about__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--purple);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.about__badge i { font-size: 28px; color: var(--gold-light); }
.about__desc {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 15px;
}
.about__features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.about__features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 18px;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.about__features li:hover .feature-icon {
  background: var(--purple);
  color: #fff;
}
.about__features strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 2px; }
.about__features span { font-size: 13px; color: var(--text-light); }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--purple);
  padding: 56px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item {
  text-align: center;
  color: #fff;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  transition: background var(--transition), transform var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.stat-item > i {
  font-size: 32px;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: block;
}
.stat-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-plus { font-size: 28px; font-weight: 700; }
.stat-item p { font-size: 14px; opacity: 0.85; }

/* ============================================================
   FACILITIES
   ============================================================ */
.facilities { background: #fff; }
.facilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.facility-card {
  padding: 36px 24px;
  border-radius: var(--radius);
  background: var(--off-white);
  text-align: center;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.facility-card:hover {
  border-color: var(--purple);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: #fff;
}
.facility-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 26px;
  transition: background var(--transition), color var(--transition);
}
.facility-card:hover .facility-card__icon {
  background: var(--purple);
  color: #fff;
}
.facility-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.facility-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--off-white); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item--large {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}
.gallery-img {
  width: 100%;
  height: 200px;
  transition: transform 0.4s ease;
}
.gallery-item--large .gallery-img { height: 100%; min-height: 416px; }
.gallery-img--1 { background-image: url('gallery1.png'); background-size: cover; background-position: center; }
.gallery-img--2 { background-image:  url('gallery2.png'); background-size: cover; background-position: center; }
.gallery-img--3 { background-image: url('gallery3.png'); background-size: cover; background-position: center; }
.gallery-img--4 { background-image: url('gallery4.png'); background-size: cover; background-position: center; }
.gallery-img--5 { background-image: url('gallery5.png'); background-size: cover; background-position: center; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 230, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.06); }

/* ============================================================
   ADMISSIONS
   ============================================================ */
.admissions {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  position: relative;
  overflow: hidden;
}
.admissions::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.admissions__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.admissions__text { color: #fff; padding-top: 8px; }
.admissions__text p { opacity: 0.85; line-height: 1.8; margin-bottom: 28px; font-size: 15px; }
.admissions__list { display: flex; flex-direction: column; gap: 14px; }
.admissions__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  opacity: 0.9;
}
.admissions__list i { color: var(--gold-light); font-size: 16px; flex-shrink: 0; }

/* Form */
.admissions__form {
  background: #fff;
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.admissions__form h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; position: relative; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e0d6f0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91,45,142,0.12);
}
.form-group input::placeholder { color: #aaa; }
.form-error { font-size: 12px; color: #e53e3e; margin-top: 4px; display: block; }
.form-success {
  display: none;
  background: #f0fdf4;
  color: #166534;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
  gap: 8px;
  border: 1px solid #bbf7d0;
}
.form-success.show { display: flex; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: #fff; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--off-white);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-card span { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.contact-map { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 300px; }
.map-placeholder {
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--light-gray) 0%, #e8def8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: var(--radius);
  border: 2px dashed rgba(91,45,142,0.25);
}
.map-placeholder i { font-size: 56px; color: var(--purple); opacity: 0.5; }
.map-placeholder p { font-size: 16px; color: var(--text-light); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0 40px;
}
.footer__brand {}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer__logo .logo-icon { background: var(--purple); }
.footer__logo .logo-main { color: #fff; }
.footer__logo .logo-sub { color: rgba(255,255,255,0.55); }
.footer__desc { font-size: 14px; line-height: 1.8; margin-bottom: 24px; opacity: 0.75; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: background var(--transition), color var(--transition);
}
.footer__socials a:hover { background: var(--purple); color: #fff; }

.footer__col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--purple);
  display: inline-block;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition), padding-left var(--transition);
}
.footer__col ul li a i { font-size: 10px; color: var(--purple-light); }
.footer__col ul li a:hover { color: var(--gold-light); padding-left: 4px; }

.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.footer__contact li i { color: var(--purple-light); margin-top: 2px; flex-shrink: 0; }
.footer__contact .indent { padding-left: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer__bottom-inner i { color: #e53e3e; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(91,45,142,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 900;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--purple-dark); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up   { animation: fadeUp   0.6s ease both; animation-delay: var(--delay, 0s); }
.animate-fade-left { animation: fadeLeft 0.6s ease both; animation-delay: var(--delay, 0s); }
.animate-fade-right{ animation: fadeRight 0.6s ease both; animation-delay: var(--delay, 0s); }

/* Intersection observer: hide initially */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .programs__grid { grid-template-columns: repeat(3, 1fr); }
  .facilities__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__content { grid-template-columns: 1fr; }
  .hero__building { display: none; }
  .about__inner { gap: 40px; }
}

/* Medium (≤768px) */
@media (max-width: 768px) {
  :root { --navbar-h: 64px; }
  .section-pad { padding: 56px 0; }

  /* Top bar */
  .top-bar { display: none; }

  /* Navbar mobile */
  .navbar__nav {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: 999;
    height: calc(100vh - var(--navbar-h));
    overflow-y: auto;
  }
  .navbar__nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 4px; align-items: stretch; }
  .nav-link { padding: 12px 16px; font-size: 15px; border-radius: var(--radius-sm); }
  .hamburger { display: flex; }
  .navbar__actions .btn { display: none; }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--purple);
    margin: 4px 0 4px 16px;
    padding: 4px 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }

  /* Hero */
  .hero { padding: 60px 0 80px; min-height: auto; }
  .hero__btns { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Programs */
  .programs__grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about__inner { grid-template-columns: 1fr; }
  .about__badge { bottom: auto; top: auto; left: -12px; bottom: -16px; }
  .about__img { height: 280px; }

  /* Stats */
  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  /* Admissions */
  .admissions__inner { grid-template-columns: 1fr; gap: 40px; }
  .admissions__form { padding: 28px 24px; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--large { grid-row: auto; grid-column: auto; }
  .gallery-item--large .gallery-img { min-height: 200px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .programs__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .facilities__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery-item--large { grid-row: auto; }
  .hero__title { font-size: 30px; }
  .admissions__form { padding: 24px 18px; }
}
