@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

    :root {
      --color-primary: #1a3c6e;
      --color-secondary: #2e6db4;
      --color-accent: #f5a623;
      --color-bg: #ffffff;
      --color-surface: #f0f4fa;
      --color-text: #1c2a3a;
      --color-text-muted: #5a6a7e;
      --font-heading: 'Poppins', sans-serif;
      --font-body: 'Inter', sans-serif;
      --border-radius: 12px;
      --shadow: 0 4px 24px rgba(26,60,110,0.08);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
    img { max-width: 100%; display: block; }
    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }
    h1,h2,h3,h4 { font-family: var(--font-heading); }

    .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    .section-pad { padding: 80px 0; }
    .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-primary); margin-bottom: 12px; }
    .section-subtitle { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 48px; }
    .section-header { text-align: center; }
    .accent-line { width: 60px; height: 4px; background: var(--color-accent); border-radius: 2px; margin: 12px auto 0; }
    .eyebrow { color: var(--color-secondary); font-size: 0.82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }

    /* Scroll reveal */
    .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--delay, 0ms); }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    /* ── NAVBAR ── */
    .navbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      padding: 18px 0;
      transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
    }
    .navbar.scrolled {
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: var(--shadow);
      padding: 10px 0;
    }
    .navbar .container { display: flex; align-items: center; justify-content: space-between; }
    .nav-brand { display: flex; align-items: center; gap: 12px; }
    .nav-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
    .nav-brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: #fff; line-height: 1.2; transition: color 0.3s; }
    .navbar.scrolled .nav-brand-text { color: var(--color-primary); }
    .nav-menu { display: flex; align-items: center; gap: 28px; }
    .nav-link {
      font-size: 0.88rem; font-weight: 500;
      color: rgba(255,255,255,0.9);
      position: relative; padding-bottom: 3px;
      transition: color 0.3s;
    }
    .navbar.scrolled .nav-link { color: var(--color-text); }
    .nav-link::after {
      content: ''; position: absolute; bottom: -1px; left: 0;
      width: 0; height: 2px;
      background: var(--color-accent);
      transition: width 0.3s ease;
    }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
    .nav-link:hover, .nav-link.active { color: var(--color-accent); }
    .navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--color-secondary); }
    .nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
    .nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.35s; }
    .navbar.scrolled .nav-hamburger span { background: var(--color-primary); }
    .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-hamburger.open span:nth-child(2) { opacity: 0; }
    .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      position: relative; overflow: hidden;
      background: var(--color-primary);
      display: flex; align-items: center;
    }
    .hero-slider { position: absolute; inset: 0; }
    .hero-slide {
      position: absolute; inset: 0;
      opacity: 0; transition: opacity 1.2s ease;
      background-size: cover; background-position: center;
    }
    .hero-slide.active { opacity: 1; }
    .hero-slide::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(90deg, rgba(26,60,110,0.9) 45%, rgba(26,60,110,0.45) 100%);
    }
    .hero-slide:nth-child(1) { background-image: url('https://placehold.co/1440x900/1a3c6e/ffffff?text=Selamat+Datang'); }
    .hero-slide:nth-child(2) { background-image: url('https://placehold.co/1440x900/2e6db4/f0f4fa?text=Fasilitas+Unggulan'); }
    .hero-slide:nth-child(3) { background-image: url('https://placehold.co/1440x900/152f58/f5a623?text=Prestasi+Membanggakan'); }

    /* floating elements */
    .hero-floats { position: absolute; inset: 0; pointer-events: none; }
    .flt {
      position: absolute; border-radius: 50%; opacity: 0.12;
    }
    .flt:nth-child(1) { width: 90px; height: 90px; background: var(--color-accent); top: 18%; right: 22%; animation: floatY 5s ease-in-out infinite; }
    .flt:nth-child(2) { width: 44px; height: 44px; background: #fff; top: 65%; right: 12%; animation: floatY 3s ease-in-out infinite reverse; }
    .flt:nth-child(3) { width: 130px; height: 130px; background: var(--color-secondary); bottom: 22%; right: 28%; border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; animation: floatY 7s ease-in-out infinite; }
    .flt:nth-child(4) { width: 22px; height: 22px; background: var(--color-accent); top: 32%; left: 6%; border-radius: 3px; opacity: 0.18; animation: floatRotate 6s linear infinite; }
    .dot-grid { position: absolute; top: 12%; right: 6%; display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; opacity: 0.1; }
    .dot-el { width: 4px; height: 4px; background: #fff; border-radius: 50%; }

    @keyframes floatY    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
    @keyframes floatRotate { to { transform: rotate(360deg); } }
    @keyframes fadeInUp  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

    .hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 5; width: 100%; }
    .hero-content {}
    .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(245,166,35,0.18); border: 1px solid var(--color-accent);
      color: var(--color-accent); font-size: 0.78rem; font-weight: 600;
      padding: 5px 14px; border-radius: 50px; margin-bottom: 20px; letter-spacing: 0.5px;
    }
    .hero h1 {
      font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; line-height: 1.2; margin-bottom: 18px;
      animation: fadeInUp 0.8s ease both;
    }
    .hero-tagline {
      color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.75; margin-bottom: 34px;
      animation: fadeInUp 0.8s 0.15s ease both;
    }
    .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeInUp 0.8s 0.3s ease both; }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 13px 28px; border-radius: 50px;
      font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
      cursor: pointer; border: none;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn:hover { transform: scale(1.03); }
    .btn:active { transform: scale(0.97); }
    .btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 4px 20px rgba(245,166,35,0.4); }
    .btn-primary:hover { box-shadow: 0 8px 28px rgba(245,166,35,0.55); }
    .btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
    .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

    .hero-img-wrap { display: flex; justify-content: center; position: relative; z-index: 5; }
    .hero-img-wrap img {
      width: 100%; max-width: 460px;
      border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,0.35);
      object-fit: cover;
    }

    .slider-controls {
      position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%);
      z-index: 10; display: flex; align-items: center; gap: 12px;
    }
    .sl-btn {
      width: 40px; height: 40px; border-radius: 50%;
      background: rgba(255,255,255,0.2); border: none; cursor: pointer;
      color: #fff; font-size: 0.95rem;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
    }
    .sl-btn:hover { background: rgba(255,255,255,0.38); }
    .sl-dots { display: flex; gap: 8px; }
    .sl-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: rgba(255,255,255,0.38); border: none; cursor: pointer;
      transition: all 0.3s;
    }
    .sl-dot.active { background: var(--color-accent); width: 24px; border-radius: 4px; }

    /* wave */
    .wave-sep { background: var(--color-primary); line-height: 0; margin-top: -2px; }
    .wave-sep svg { display: block; width: 100%; }

    /* ── ABOUT ── */
    .about-section { background: var(--color-surface); }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
    .about-text p { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 20px; margin-top: 20px; }
    .vm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
    .vm-card {
      background: #fff; border-radius: var(--border-radius);
      padding: 20px; border-left: 4px solid var(--color-secondary);
      box-shadow: var(--shadow);
    }
    .vm-icon {
      width: 42px; height: 42px;
      background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
      border-radius: 10px; display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 1rem; margin-bottom: 12px;
    }
    .vm-card h4 { font-size: 0.92rem; color: var(--color-primary); margin-bottom: 8px; }
    .vm-card ul { color: var(--color-text-muted); font-size: 0.82rem; line-height: 1.75; }
    .vm-card ul li::before { content: '✦ '; color: var(--color-accent); font-size: 0.65rem; }

    .principal-card {
      background: var(--color-primary); border-radius: 20px;
      padding: 36px; color: #fff; text-align: center;
      position: sticky; top: 90px;
      box-shadow: 0 12px 40px rgba(26,60,110,0.25);
    }
    .principal-card img {
      width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
      border: 4px solid var(--color-accent); margin: 0 auto 16px;
    }
    .principal-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
    .principal-pos { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 22px; }
    .principal-quote {
      font-style: italic; font-size: 0.88rem; line-height: 1.75;
      color: rgba(255,255,255,0.82);
      border-left: 3px solid var(--color-accent); padding-left: 16px; text-align: left;
    }

    /* ── STATS ── */
    .stats-section { background: var(--color-primary); position: relative; overflow: hidden; }
    .stats-section::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse at 20% 50%, rgba(46,109,180,0.3) 0%, transparent 70%);
    }
    .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
    .stat-card {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: var(--border-radius); padding: 28px 20px; text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .stat-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.22); }
    .stat-icon { font-size: 1.9rem; color: var(--color-accent); margin-bottom: 12px; }
    .stat-number { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
    .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.68); margin-top: 6px; }
    .accred-badge {
      margin: 32px auto 0; display: flex; align-items: center; gap: 12px;
      background: rgba(245,166,35,0.14); border: 1px solid var(--color-accent);
      border-radius: 50px; padding: 12px 28px; width: fit-content;
      position: relative; z-index: 2;
    }
    .accred-badge i { color: var(--color-accent); font-size: 1.4rem; }
    .accred-badge span { font-family: var(--font-heading); font-weight: 600; color: #fff; }

    /* ── FACILITIES ── */
    .facilities-section { background: var(--color-bg); }
    .prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 44px; }
    .prog-card {
      background: var(--color-surface); border-radius: var(--border-radius);
      padding: 28px 20px; text-align: center;
      box-shadow: var(--shadow); cursor: default;
      transition: transform 0.3s, box-shadow 0.3s;
      transform-style: preserve-3d;
    }
    .prog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26,60,110,0.14); }
    .prog-icon {
      width: 62px; height: 62px;
      background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
      border-radius: 16px; display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 1.4rem; margin: 0 auto 16px;
    }
    .prog-card h3 { font-size: 0.93rem; color: var(--color-primary); margin-bottom: 8px; }
    .prog-card p { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.6; }

    .fac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .fac-item { position: relative; border-radius: var(--border-radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
    .fac-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
    .fac-item:hover img { transform: scale(1.08); }
    .fac-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(26,60,110,0.72) 0%, transparent 55%);
      display: flex; align-items: flex-end; padding: 16px;
      opacity: 0; transition: opacity 0.3s;
    }
    .fac-item:hover .fac-overlay { opacity: 1; }
    .fac-overlay span { color: #fff; font-weight: 600; font-size: 0.88rem; }

    /* ── ORGANIZATION ── */
    .org-section { background: var(--color-surface); }
    .org-tree { display: flex; flex-direction: column; align-items: center; margin-top: 48px; }
    .org-node {
      background: #fff; border-radius: var(--border-radius); padding: 16px 22px;
      text-align: center; box-shadow: var(--shadow);
      border-top: 3px solid var(--color-secondary); min-width: 160px;
    }
    .org-node.head { border-top-color: var(--color-accent); min-width: 210px; }
    .org-node h4 { font-size: 0.85rem; color: var(--color-primary); }
    .org-node p { font-size: 0.74rem; color: var(--color-text-muted); margin-top: 3px; }
    .org-vline { width: 2px; height: 36px; background: var(--color-secondary); opacity: 0.35; margin: 0 auto; }
    .org-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
    .org-col { display: flex; flex-direction: column; align-items: center; }

    /* ── TEACHERS ── */
    .teachers-section { background: var(--color-bg); }
    .teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .flip-card { height: 280px; perspective: 1000px; cursor: pointer; }
    .flip-inner {
      position: relative; width: 100%; height: 100%;
      transform-style: preserve-3d;
      transition: transform 0.62s cubic-bezier(0.4, 0.2, 0.2, 1);
    }
    .flip-card:hover .flip-inner { transform: rotateY(180deg); }
    .flip-front, .flip-back {
      position: absolute; inset: 0;
      border-radius: var(--border-radius);
      backface-visibility: hidden; -webkit-backface-visibility: hidden;
      overflow: hidden;
    }
    .flip-front {
      background: var(--color-surface); display: flex; flex-direction: column;
      align-items: center; justify-content: flex-end; box-shadow: var(--shadow);
    }
    .flip-front img { position: absolute; top: 0; left: 0; width: 100%; height: 76%; object-fit: cover; }
    .flip-front-info {
      position: relative; z-index: 1; width: 100%;
      padding: 12px 14px 16px; text-align: center;
      background: #fff;
    }
    .flip-front-info h3 { font-size: 0.88rem; color: var(--color-primary); }
    .flip-back {
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
      transform: rotateY(180deg);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 24px; text-align: center; box-shadow: var(--shadow);
    }
    .flip-back .f-icon { font-size: 2.3rem; color: var(--color-accent); margin-bottom: 12px; }
    .flip-back h3 { color: #fff; font-size: 0.93rem; margin-bottom: 6px; }
    .flip-back .f-subj {
      font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-bottom: 14px;
      background: rgba(255,255,255,0.14); padding: 4px 12px; border-radius: 20px;
    }
    .flip-back .f-quote { font-style: italic; font-size: 0.76rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

    /* ── STUDENT AFFAIRS ── */
    .kesiswaan-section { background: var(--color-surface); }
    .tabs { display: flex; gap: 8px; justify-content: center; margin-top: 40px; margin-bottom: 36px; flex-wrap: wrap; }
    .tab-btn {
      padding: 10px 24px; border-radius: 50px; cursor: pointer;
      border: 2px solid var(--color-secondary); background: transparent;
      color: var(--color-secondary); font-family: var(--font-heading);
      font-weight: 600; font-size: 0.88rem;
      transition: all 0.25s;
    }
    .tab-btn.active { background: var(--color-secondary); color: #fff; }
    .tab-pane { display: none; }
    .tab-pane.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; animation: fadePop 0.4s ease; }
    @keyframes fadePop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    .ks-card {
      background: var(--color-bg); border-radius: var(--border-radius);
      overflow: hidden; box-shadow: var(--shadow);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .ks-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(26,60,110,0.14); }
    .ks-card img { width: 100%; height: 155px; object-fit: cover; }
    .ks-card-body { padding: 16px; }
    .ks-card-body h3 { font-size: 0.9rem; color: var(--color-primary); margin-bottom: 4px; }
    .ks-card-body p { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.5; }

    /* ── ACHIEVEMENTS ── */
    .achieve-section { background: var(--color-bg); }
    .achieve-timeline { position: relative; padding-left: 44px; max-width: 740px; margin: 0 auto; }
    .achieve-timeline::before {
      content: ''; position: absolute; left: 16px; top: 8px; bottom: 8px;
      width: 2px; background: linear-gradient(to bottom, var(--color-secondary), transparent);
    }
    .achieve-item { position: relative; margin-bottom: 26px; }
    .achieve-item::before {
      content: ''; position: absolute; left: -34px; top: 8px;
      width: 14px; height: 14px; border-radius: 50%;
      background: var(--color-accent); border: 3px solid #fff;
      box-shadow: 0 0 0 3px var(--color-secondary);
    }
    .achieve-card {
      background: var(--color-surface); border-radius: var(--border-radius);
      padding: 16px 20px; box-shadow: var(--shadow);
      display: flex; align-items: center; gap: 16px;
    }
    .trophy { font-size: 1.7rem; }
    .trophy.gold   { color: #f5c518; }
    .trophy.silver { color: #aaa; }
    .trophy.bronze { color: #cd7f32; }
    .achieve-info h4 { font-size: 0.9rem; color: var(--color-primary); margin-bottom: 6px; }
    .achieve-meta { display: flex; gap: 8px; }
    .tag-year  { background: var(--color-primary); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
    .tag-level { background: var(--color-surface); color: var(--color-text-muted); font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; border: 1px solid #dde3ed; }

    /* ── NEWS ── */
    .news-section { background: var(--color-surface); }
    .news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin-top: 48px; }
    .news-stack { display: flex; flex-direction: column; gap: 18px; }
    .news-card {
      background: var(--color-bg); border-radius: var(--border-radius);
      overflow: hidden; box-shadow: var(--shadow);
      display: flex; gap: 0; transition: transform 0.3s, box-shadow 0.3s;
    }
    .news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(26,60,110,0.14); }
    .news-card img { width: 128px; height: 100%; object-fit: cover; flex-shrink: 0; }
    .news-body { padding: 16px; }
    .news-date { font-size: 0.73rem; color: var(--color-text-muted); margin-bottom: 6px; }
    .news-body h3 { font-size: 0.9rem; color: var(--color-primary); margin-bottom: 8px; line-height: 1.4; }
    .news-body p { font-size: 0.79rem; color: var(--color-text-muted); line-height: 1.6; }

    .news-aside h3 { font-size: 0.98rem; color: var(--color-primary); margin-bottom: 14px; border-bottom: 2px solid var(--color-surface); padding-bottom: 10px; }
    .ann-list { display: flex; flex-direction: column; gap: 10px; }
    .ann-item { display: flex; align-items: flex-start; gap: 10px; background: var(--color-bg); padding: 12px; border-radius: var(--border-radius); box-shadow: var(--shadow); }
    .badge-new { background: #e53e3e; color: #fff; font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; margin-top: 1px; letter-spacing: 0.5px; }
    .ann-item p { font-size: 0.79rem; color: var(--color-text); line-height: 1.4; }
    .cal-table { width: 100%; border-collapse: collapse; font-size: 0.79rem; margin-top: 10px; }
    .cal-table th { background: var(--color-primary); color: #fff; padding: 8px 12px; text-align: left; font-size: 0.75rem; }
    .cal-table td { padding: 8px 12px; border-bottom: 1px solid var(--color-surface); }
    .cal-table tr:last-child td { border-bottom: none; }

    /* ── GALLERY ── */
    .gallery-section { background: var(--color-surface); }
    .gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
    .gal-item { position: relative; border-radius: var(--border-radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
    .gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.42s ease; }
    .gal-item:hover img { transform: scale(1.1); }
    .gal-overlay {
      position: absolute; inset: 0;
      background: rgba(26,60,110,0.6);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.3s;
    }
    .gal-item:hover .gal-overlay { opacity: 1; }
    .gal-overlay span { color: #fff; font-size: 0.85rem; font-weight: 600; text-align: center; padding: 0 12px; }

    /* lightbox */
    .lightbox {
      position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none; transition: opacity 0.3s;
    }
    .lightbox.open { opacity: 1; pointer-events: all; }
    .lb-img { max-width: 90vw; max-height: 85vh; border-radius: var(--border-radius); object-fit: contain; }
    .lb-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; transition: color 0.2s; }
    .lb-close:hover { color: var(--color-accent); }
    .lb-caption { position: absolute; bottom: 22px; color: rgba(255,255,255,0.78); font-size: 0.9rem; }

    /* ── TESTIMONIALS ── */
    .testi-section { background: var(--color-primary); }
    .testi-wrap { position: relative; overflow: hidden; margin-top: 48px; }
    .testi-track { display: flex; transition: transform 0.55s ease; }
    .testi-slide { min-width: 100%; padding: 0 12px; }
    .testi-card {
      max-width: 700px; margin: 0 auto;
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 20px; padding: 40px; text-align: center;
    }
    .testi-card .qi { font-size: 2.4rem; color: var(--color-accent); margin-bottom: 16px; }
    .testi-card p { color: rgba(255,255,255,0.85); font-style: italic; font-size: 1rem; line-height: 1.8; margin-bottom: 24px; }
    .testi-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
    .testi-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-accent); }
    .testi-author-info h4 { font-size: 0.93rem; color: #fff; }
    .testi-author-info span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
    .testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
    .t-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; transition: all 0.3s; }
    .t-dot.active { background: var(--color-accent); width: 24px; border-radius: 4px; }

    /* ── LOCATION ── */
    .location-section { background: var(--color-bg); }
    .loc-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; margin-top: 48px; }
    .map-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
    .map-wrap iframe { width: 100%; height: 380px; border: none; display: block; }
    .loc-card { background: var(--color-primary); border-radius: 20px; padding: 32px; color: #fff; }
    .loc-card h3 { font-size: 1.05rem; margin-bottom: 22px; }
    .loc-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
    .loc-row i { color: var(--color-accent); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
    .loc-row p { font-size: 0.86rem; color: rgba(255,255,255,0.84); line-height: 1.6; }
    .hrs-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
    .hrs-table td { padding: 6px 0; color: rgba(255,255,255,0.78); border-bottom: 1px solid rgba(255,255,255,0.1); }
    .hrs-table td:last-child { text-align: right; }
    .hrs-table tr:last-child td { border-bottom: none; }

    /* ── CONTACT ── */
    .contact-section { background: var(--color-surface); }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 48px; }
    .contact-info h3 { font-size: 1.1rem; color: var(--color-primary); margin-bottom: 22px; }
    .wa-btn {
      display: inline-flex; align-items: center; gap: 10px;
      background: #25D366; color: #fff; padding: 13px 28px;
      border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-bottom: 28px;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .wa-btn:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
    .cinfo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
    .cinfo-icon {
      width: 42px; height: 42px; background: var(--color-primary); border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      color: var(--color-accent); font-size: 0.95rem; flex-shrink: 0;
    }
    .cinfo-row p { font-size: 0.88rem; color: var(--color-text); }
    .social-row { display: flex; gap: 10px; margin-top: 22px; }
    .soc-ico {
      width: 44px; height: 44px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; color: #fff;
      transition: transform 0.28s, filter 0.28s;
    }
    .soc-ico:hover { transform: rotate(10deg) scale(1.12); filter: brightness(1.2); }
    .soc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
    .soc-fb { background: #1877f2; }
    .soc-yt { background: #ff0000; }
    .soc-tt { background: #010101; }

    .contact-form { background: var(--color-bg); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
    .contact-form h3 { font-size: 1.05rem; color: var(--color-primary); margin-bottom: 22px; }
    .form-group { margin-bottom: 18px; }
    .form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--color-text); margin-bottom: 6px; }
    .form-group input, .form-group textarea {
      width: 100%; padding: 11px 14px; outline: none;
      border: 1.5px solid #dde3ed; border-radius: var(--border-radius);
      font-size: 0.88rem; font-family: var(--font-body); color: var(--color-text);
      background: var(--color-surface); transition: border-color 0.25s, box-shadow 0.25s;
    }
    .form-group input:focus, .form-group textarea:focus {
      border-color: var(--color-secondary);
      box-shadow: 0 0 0 3px rgba(46,109,180,0.12);
    }
    .form-group textarea { resize: vertical; min-height: 110px; }
    .form-submit {
      width: 100%; padding: 13px; background: var(--color-primary); color: #fff;
      border: none; border-radius: 50px; font-weight: 600; font-size: 0.93rem;
      cursor: pointer; font-family: var(--font-heading);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .form-submit:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(26,60,110,0.25); }

    /* ── FOOTER ── */
    .footer { background: var(--color-primary); color: rgba(255,255,255,0.72); padding: 60px 0 24px; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
    .footer-brand img { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 14px; }
    .footer-brand h3 { font-size: 0.98rem; color: #fff; margin-bottom: 8px; }
    .footer-brand p { font-size: 0.8rem; line-height: 1.75; }
    .ft-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
    .ft-soc {
      width: 36px; height: 36px; border-radius: 8px;
      background: rgba(255,255,255,0.1);
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.68); font-size: 0.88rem;
      transition: background 0.2s, color 0.2s;
    }
    .ft-soc:hover { background: var(--color-accent); color: #fff; }
    .footer-col h4 { font-size: 0.88rem; color: #fff; margin-bottom: 14px; }
    .footer-col ul { display: flex; flex-direction: column; gap: 10px; }
    .footer-col ul li a { font-size: 0.8rem; transition: color 0.2s; }
    .footer-col ul li a:hover { color: var(--color-accent); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.76rem; }
    .footer-bottom a { color: var(--color-accent); }

    /* ── RESPONSIVE ── */
    @media (max-width: 1024px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .prog-grid { grid-template-columns: repeat(2, 1fr); }
      .teachers-grid { grid-template-columns: repeat(3, 1fr); }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      .hero .container { grid-template-columns: 1fr; }
      .hero-img-wrap { display: none; }
      .about-grid { grid-template-columns: 1fr; }
      .vm-cards { grid-template-columns: 1fr; }
      .principal-card { position: static; }
      .prog-grid { grid-template-columns: 1fr 1fr; }
      .fac-grid { grid-template-columns: 1fr; }
      .news-layout { grid-template-columns: 1fr; }
      .loc-grid { grid-template-columns: 1fr; }
      .contact-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .gal-grid { grid-template-columns: repeat(2, 1fr); }
      .teachers-grid { grid-template-columns: repeat(2, 1fr); }
      .tab-pane.active { grid-template-columns: 1fr 1fr; }
      .nav-menu {
        display: none; position: fixed; inset: 0;
        background: var(--color-primary); flex-direction: column;
        justify-content: center; align-items: center; gap: 32px; z-index: 999;
      }
      .nav-menu.open { display: flex; }
      .nav-menu .nav-link { font-size: 1.2rem; color: #fff; }
      .nav-hamburger { display: flex; z-index: 1001; position: relative; }
    }
    @media (max-width: 480px) {
      .prog-grid, .gal-grid { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .tab-pane.active { grid-template-columns: 1fr; }
      .teachers-grid { grid-template-columns: 1fr 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .hero-btns { flex-direction: column; }
      .news-card { flex-direction: column; }
      .news-card img { width: 100%; height: 160px; }
    }