/* ===== DESIGN TOKENS ===== */
:root {
  --blue: #2ba7e0;
  --blue-dark: #1273b0;
  --blue-light: #d6f0fb;
  --yellow: #ffcb2b;
  --yellow-dark: #f4a716;
  --yellow-light: #fff3cf;
  --red: #ff6b6b;
  --red-light: #ffe0e0;
  --green: #4cc98a;
  --green-light: #d8f6e6;
  --pink: #ff8fc7;
  --pink-light: #ffe1f0;
  --ink: #34435a;
  --muted: #6b7c93;
  --bg: #fffdf6;
  --bg-alt: #eefaff;
  --border: #ffe4b0;
  --white: #ffffff;
  --radius: 24px;
  --radius-lg: 34px;
  --shadow-sm: 0 4px 0 rgba(18, 115, 176, 0.10);
  --shadow: 0 10px 26px rgba(43, 167, 224, 0.16);
  --shadow-lg: 0 20px 44px rgba(43, 167, 224, 0.24);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--bg); }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name { font-family: 'Baloo 2', 'Nunito', sans-serif; line-height: 1.15; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.ic { width: 18px; height: 18px; fill: currentColor; fill-rule: evenodd; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 800; font-size: 1.05rem;
  font-family: 'Baloo 2', sans-serif; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--yellow); color: var(--blue-dark); box-shadow: 0 6px 0 var(--yellow-dark); }
.btn-primary:hover { background: var(--yellow); transform: translateY(-3px); box-shadow: 0 9px 0 var(--yellow-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--yellow-dark); }
.btn-outline-light { background: var(--white); color: var(--blue); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.btn-outline-light:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,.15); color: var(--red); }
.btn-outline-light:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.btn-block { width: 100%; }

/* ===== TOPBAR ===== */
.topbar { background: var(--blue); color: #eaf8ff; font-size: .85rem; font-weight: 600; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar-contact { display: flex; gap: 22px; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, color .2s, transform .2s; }
.topbar-social a:hover { background: var(--yellow); color: var(--blue-dark); transform: translateY(-2px) rotate(-8deg); }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 4px 0 var(--blue-light); transition: box-shadow .3s; }
.header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.nav-list { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-link {
  position: relative; padding: 10px 15px; font-weight: 800; color: var(--ink);
  border-radius: 50px; transition: color .2s, background .2s, transform .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--blue); background: var(--blue-light); transform: translateY(-2px); }
.nav-link.active { color: var(--white); background: var(--blue); }

.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 10px; }
.brand-logo { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(18,115,176,.25)); transition: transform .3s; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-size: 1.15rem; font-weight: 800; color: var(--blue-dark); text-align: center; line-height: .95; }
.brand-name small { display: block; font-size: .68rem; color: var(--red); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: var(--blue-light); border: none; cursor: pointer; padding: 12px; border-radius: 14px; }
.menu-toggle span { width: 24px; height: 3px; background: var(--blue-dark); border-radius: 3px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; background: var(--white); border-top: 3px dashed var(--blue-light); padding: 12px 20px; }
.mobile-menu .nav-link { padding: 13px 14px; border-radius: 14px; }
.mobile-menu.open { display: flex; animation: slideDown .3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HERO SLIDER ===== */
.hero { position: relative; height: calc(100vh - var(--header-h) - 42px); min-height: 540px; max-height: 780px; overflow: hidden; }
.slider { width: 100%; height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  display: flex; align-items: center; opacity: 0; visibility: hidden;
  transform: scale(1.08); transition: opacity .9s ease, transform 6s ease, visibility .9s;
}
.slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,115,176,.82) 0%, rgba(43,167,224,.55) 45%, rgba(43,167,224,.12) 100%); }
.slide-content { position: relative; color: var(--white); max-width: 660px; }
.slide-content .badge {
  display: inline-block; background: var(--yellow); color: var(--blue-dark); font-weight: 800;
  padding: 8px 22px; border-radius: 50px; font-size: .95rem; margin-bottom: 18px;
  font-family: 'Baloo 2', sans-serif; transform: translateY(20px) rotate(-2deg); opacity: 0;
  box-shadow: 0 5px 0 var(--yellow-dark);
}
.slide-content h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); margin-bottom: 18px; text-shadow: 0 3px 0 rgba(18,115,176,.35); transform: translateY(20px); opacity: 0; }
.slide-content p { font-size: 1.2rem; font-weight: 600; margin-bottom: 30px; max-width: 540px; transform: translateY(20px); opacity: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; transform: translateY(20px); opacity: 0; }
.slide.active .badge { animation: fadeUp .6s .3s forwards; }
.slide.active h1 { animation: fadeUp .6s .45s forwards; }
.slide.active p { animation: fadeUp .6s .6s forwards; }
.slide.active .hero-actions { animation: fadeUp .6s .75s forwards; }
@keyframes fadeUp { to { transform: translateY(0) rotate(0); opacity: 1; } }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--white); cursor: pointer;
  background: rgba(255,255,255,.25); color: var(--white); backdrop-filter: blur(4px);
  display: grid; place-items: center; transition: background .2s, transform .2s, color .2s;
}
.slider-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow:hover { background: var(--yellow); color: var(--blue-dark); border-color: var(--yellow); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.slider-arrow.next:hover { transform: translateY(-50%) translateX(3px); }

.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.slider-dots button { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--white); background: transparent; cursor: pointer; padding: 0; transition: .3s; }
.slider-dots button.active { background: var(--yellow); border-color: var(--yellow); width: 34px; border-radius: 8px; }

/* wavy divider under hero */
.wave-divider { position: relative; line-height: 0; margin-top: -2px; }
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ===== STATS ===== */
.stats { background: var(--yellow); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 46px 20px; }
.stat-card { text-align: center; color: var(--blue-dark); position: relative; }
.stat-card:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 15%; height: 70%; width: 3px; background: rgba(18,115,176,.18); border-radius: 3px; }
.stat-num, .stat-plus { font-family: 'Baloo 2', sans-serif; font-size: 2.8rem; font-weight: 800; color: var(--blue-dark); line-height: 1; }
.stat-card p { margin-top: 6px; font-weight: 800; }

/* ===== SECTIONS ===== */
.section { padding: 86px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block; color: var(--red); background: var(--red-light); font-weight: 800;
  font-family: 'Baloo 2', sans-serif; padding: 6px 18px; border-radius: 50px; font-size: .9rem;
  letter-spacing: .5px; margin-bottom: 14px; transform: rotate(-1.5deg);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--blue-dark); margin-bottom: 14px; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 1.08rem; font-weight: 600; text-wrap: pretty; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.about-media::before { content: ''; position: absolute; inset: -14px -14px auto auto; width: 90px; height: 90px; background: var(--yellow); border-radius: 50%; z-index: -1; }
.about-badge {
  position: absolute; bottom: -24px; right: -14px; background: var(--red); color: var(--white);
  border-radius: 22px; padding: 18px 24px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); border: 5px solid var(--white); transform: rotate(-4deg);
}
.ab-num { font-family: 'Baloo 2', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.ab-text { font-weight: 800; font-size: .9rem; line-height: 1.1; }
.about-content .eyebrow { margin-bottom: 14px; }
.about-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--blue-dark); margin-bottom: 18px; text-wrap: balance; }
.about-content > p { color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.about-list { display: grid; gap: 12px; margin-bottom: 28px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.check { width: 28px; height: 28px; flex-shrink: 0; background: var(--green); color: var(--white); border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.about-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vm-card { background: var(--white); border-radius: var(--radius); padding: 20px; border: 3px solid var(--border); }
.vm-card:nth-child(2) { border-color: var(--green-light); }
.vm-card h3 { color: var(--blue); margin-bottom: 6px; }
.vm-card:nth-child(2) h3 { color: var(--green); }
.vm-card p { font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ===== GRIDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Program cards */
.prog-card { background: var(--white); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); border: 3px solid var(--border); transition: transform .25s, box-shadow .25s; }
.prog-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.prog-card:nth-child(2) { border-color: var(--green-light); }
.prog-card:nth-child(3) { border-color: var(--pink-light); }
.prog-card:nth-child(4) { border-color: var(--blue-light); }
.prog-icon { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px; transform: rotate(-4deg); }
.prog-icon svg { width: 34px; height: 34px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prog-icon-blue { background: var(--blue-light); }
.prog-icon-blue svg { stroke: var(--blue); }
.prog-icon-yellow { background: var(--yellow-light); }
.prog-icon-yellow svg { stroke: var(--yellow-dark); }
.prog-icon-red { background: var(--red-light); }
.prog-icon-red svg { stroke: var(--red); }
.prog-icon-green { background: var(--green-light); }
.prog-icon-green svg { stroke: var(--green); }
.prog-card h3 { color: var(--blue-dark); margin-bottom: 10px; }
.prog-card > p { color: var(--muted); font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.prog-card ul { display: grid; gap: 8px; }
.prog-card ul li { position: relative; padding-left: 24px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.prog-card ul li::before { content: '★'; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 800; }

/* ===== EVENT ===== */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.event-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 3px solid var(--border); transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateY(-8px) rotate(1deg); box-shadow: var(--shadow-lg); }
.event-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.event-card:hover .event-media img { transform: scale(1.08); }
.event-date {
  position: absolute; top: 14px; left: 14px; background: var(--red); color: var(--white);
  border-radius: 16px; padding: 8px 12px; text-align: center; font-family: 'Baloo 2', sans-serif; box-shadow: var(--shadow-sm); transform: rotate(-5deg);
}
.ed-day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.ed-mon { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.event-body { padding: 22px; }
.event-tag { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: .78rem; font-weight: 800; padding: 5px 14px; border-radius: 50px; margin-bottom: 10px; text-transform: uppercase; }
.event-body h3 { color: var(--blue-dark); font-size: 1.25rem; margin-bottom: 10px; }
.event-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.event-meta .ic { fill: var(--red); flex-shrink: 0; }
.link-arrow { color: var(--blue); font-weight: 800; font-family: 'Baloo 2', sans-serif; transition: color .2s; display: inline-block; }
.link-arrow:hover { color: var(--red); }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-item { position: relative; border: 5px solid var(--white); padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--blue-light); box-shadow: var(--shadow-sm); }
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,115,176,.55), transparent 60%); opacity: 0; transition: opacity .3s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-zoom {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.5); z-index: 2;
  width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--blue-dark);
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; opacity: 0; transition: .3s; box-shadow: 0 5px 0 var(--yellow-dark);
}
.gallery-item:hover .gallery-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== NEWS ===== */
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 3px solid var(--border); transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.news-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-media img { transform: scale(1.08); }
.news-cat { position: absolute; top: 14px; left: 14px; background: var(--green); color: var(--white); font-size: .76rem; font-weight: 800; padding: 6px 14px; border-radius: 50px; text-transform: uppercase; transform: rotate(-3deg); }
.news-body { padding: 22px; }
.news-date { color: var(--red); font-weight: 800; font-size: .82rem; margin-bottom: 8px; }
.news-body h3 { color: var(--blue-dark); font-size: 1.22rem; margin-bottom: 10px; }
.news-body > p { color: var(--muted); font-size: .92rem; font-weight: 600; margin-bottom: 14px; }

/* ===== TEACHERS ===== */
.teacher-grid { grid-template-columns: repeat(4, 1fr); }
.teacher-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 3px solid var(--border); transition: transform .25s, box-shadow .25s, border-color .25s; text-align: center; position: relative; }
.teacher-card:hover { transform: translateY(-8px) rotate(1deg); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.teacher-card:nth-child(2) { border-color: var(--yellow-light); }
.teacher-card:nth-child(3) { border-color: var(--green-light); }
.teacher-card:nth-child(4) { border-color: var(--pink-light); }
.teacher-card:nth-child(2):hover { border-color: var(--yellow-dark); }
.teacher-card:nth-child(3):hover { border-color: var(--green); }
.teacher-card:nth-child(4):hover { border-color: var(--pink); }
.teacher-card::after { content: 'Klik untuk profil lengkap'; position: absolute; top: 10px; right: 10px; background: var(--blue); color: var(--white); font-size: 0.7rem; padding: 4px 10px; border-radius: 12px; font-weight: 700; opacity: 0; transition: opacity .3s; pointer-events: none; }
.teacher-card:hover::after { opacity: 1; }
.teacher-media { aspect-ratio: 1; overflow: hidden; background: var(--blue-light); position: relative; }
.teacher-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.teacher-card:hover .teacher-media img { transform: scale(1.06); filter: brightness(1.1); }
.teacher-body { padding: 20px; }
.teacher-body h3 { color: var(--blue-dark); font-size: 1.18rem; transition: color .3s; }
.teacher-card:hover .teacher-body h3 { color: var(--blue); }
.teacher-role { color: var(--red); font-weight: 800; font-size: .9rem; margin-bottom: 12px; }
.teacher-social { display: flex; justify-content: center; gap: 8px; }
.teacher-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); color: var(--blue); display: grid; place-items: center; transition: .2s; }
.teacher-social a:hover { background: var(--blue); color: var(--white); transform: translateY(-3px) rotate(-8deg); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 20px; border-radius: var(--radius); border: 3px solid var(--border); transition: transform .2s; }
.ci-item:hover { transform: translateX(6px); }
.ci-item:nth-child(1) .ci-icon { background: var(--blue); }
.ci-item:nth-child(2) .ci-icon { background: var(--red); }
.ci-item:nth-child(3) .ci-icon { background: var(--green); }
.ci-item:nth-child(4) .ci-icon { background: var(--yellow-dark); }
.ci-icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 16px; color: var(--white); display: grid; place-items: center; transform: rotate(-5deg); }
.ci-icon .ic { width: 24px; height: 24px; }
.ci-item h3 { color: var(--blue-dark); font-size: 1.08rem; margin-bottom: 4px; }
.ci-item p { color: var(--muted); font-size: .92rem; font-weight: 600; }

.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); border: 3px solid var(--blue-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--blue-dark); font-size: .92rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 3px solid var(--border); border-radius: 16px;
  font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); transition: border-color .2s, box-shadow .2s; background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px var(--blue-light); }
.form-group textarea { resize: vertical; }
.form-note { text-align: center; margin-top: 14px; font-weight: 800; color: var(--green); min-height: 20px; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-dark); color: #cfeaf7; padding-top: 64px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 54px; height: 54px; object-fit: contain; }
.footer-logo span { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--white); }
.footer-brand p { font-size: .92rem; font-weight: 600; margin-bottom: 18px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); display: grid; place-items: center; transition: .2s; }
.footer-social a:hover { background: var(--yellow); color: var(--blue-dark); transform: translateY(-3px) rotate(-8deg); }
.footer-col h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 4px; background: var(--yellow); border-radius: 4px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul a { font-size: .92rem; font-weight: 600; transition: color .2s, padding .2s; }
.footer-col ul a:hover { color: var(--yellow); padding-left: 6px; }
.footer-col > p { font-size: .92rem; font-weight: 600; margin-bottom: 14px; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { flex: 1; padding: 13px 14px; border: none; border-radius: 14px; font-family: inherit; font-weight: 600; background: rgba(255,255,255,.14); color: var(--white); }
.newsletter input::placeholder { color: #a9d3e8; }
.newsletter input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,203,43,.5); }
.newsletter button { width: 50px; flex-shrink: 0; border: none; border-radius: 14px; background: var(--yellow); color: var(--blue-dark); font-size: 1.4rem; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.newsletter button:hover { transform: translateY(-2px); }
.footer-bottom { border-top: 2px dashed rgba(255,255,255,.15); padding: 20px 0; text-align: center; font-size: .88rem; font-weight: 600; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18,58,80,.92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { max-width: 900px; width: 100%; text-align: center; }
.lightbox-content img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); border: 6px solid var(--white); }
.lightbox-content figcaption { color: var(--white); margin-top: 14px; font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; font-weight: 700; }
.lightbox-close { position: absolute; top: 24px; right: 30px; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--white); color: var(--blue-dark); font-size: 1.8rem; cursor: pointer; line-height: 1; transition: background .2s, transform .2s; }
.lightbox-close:hover { background: var(--yellow); transform: rotate(90deg); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; border: none; background: var(--red); color: var(--white); cursor: pointer; box-shadow: 0 6px 0 #d84f4f; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s; }
.back-to-top svg { width: 28px; height: 28px; fill: currentColor; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards-grid, .teacher-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-card:nth-child(2)::after { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 78px; }
  .topbar-contact .tb-item:last-child { display: none; }
  .nav-left, .nav-right { display: none; }
  .nav { justify-content: space-between; }
  .brand { flex-direction: row; }
  .brand-logo { width: 50px; height: 50px; }
  .brand-name { text-align: left; font-size: 1.05rem; }
  .brand-name small { letter-spacing: 1px; }
  .menu-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .topbar-contact { gap: 12px; }
  .cards-grid, .teacher-grid, .news-grid, .event-grid { grid-template-columns: 1fr; }
  .about-vm { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1) { grid-row: span 1; }
  .gallery-item:nth-child(6) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-content h1 { font-size: 2.1rem; }
  .slide-content p { font-size: 1rem; }
  .slider-arrow { width: 44px; height: 44px; }
}

/* ===== GURU MODAL BIOGRAFI ===== */
.btn-bio {
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  font-family: 'Baloo 2', sans-serif;
}

.btn-bio:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 167, 224, 0.3);
}

.modal-bio {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(52, 67, 90, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-bio-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp .3s;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
  line-height: 1;
  font-weight: 300;
}

.modal-close:hover {
  background: var(--red);
  color: var(--white);
  transform: rotate(90deg);
}

.bio-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.bio-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--yellow);
  flex-shrink: 0;
}

.bio-header h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.bio-role {
  color: var(--red);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.bio-social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.bio-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: .2s;
}

.bio-social a:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.bio-text {
  color: var(--ink);
  line-height: 1.7;
}

.bio-text p {
  margin-bottom: 16px;
}

.bio-text h3, .bio-text h4 {
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--blue);
}

.bio-text ul, .bio-text ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.bio-text ul {
  list-style: disc;
}

.bio-text ol {
  list-style: decimal;
}

.bio-text li {
  margin-bottom: 8px;
}

@media (max-width: 620px) {
  .modal-bio-content {
    padding: 30px 20px;
  }
  
  .bio-header {
    flex-direction: column;
    text-align: center;
  }
  
  .bio-photo {
    width: 80px;
    height: 80px;
  }
  
  .bio-header h2 {
    font-size: 1.3rem;
  }
  
  .bio-social {
    justify-content: center;
  }
}
