/* ========== UTILITY ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tag { display: inline-block; font-family: var(--font-b); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); background: var(--orange-lt); padding: 6px 16px; border-radius: 50px; margin-bottom: 14px; }
.tag.teal  { color: var(--teal);   background: var(--teal-lt); }
.tag.blue  { color: var(--blue);   background: var(--blue-lt); }
.tag.purple{ color: var(--purple); background: var(--purple-lt); }
.section-title { font-family: var(--font-h); font-size: clamp(26px, 4vw, 44px); font-weight: 800; color: var(--dark); line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-title span { color: var(--orange); }
.section-title span.teal  { color: var(--teal); }
.section-sub { font-size: 15px; color: var(--tx2); line-height: 1.8; max-width: 560px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-family: var(--font-b); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: all 0.3s ease; white-space: nowrap; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 20px rgba(27,111,181,.32); }
.btn-orange:hover { background: #145A94; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(27,111,181,.42); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 20px rgba(18,139,165,.3); }
.btn-teal:hover { background: #0E7186; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--orange); font-weight: 800; }
.btn-white:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }

/* ========== SCROLL REVEAL ========== */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal].on { opacity: 1; transform: none; }

/* ========== TOP BAR ========== */
.topbar { background: var(--teal); padding: 9px 0; font-size: 13px; color: #fff; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: rgba(255,255,255,0.9); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: opacity .2s; }
.topbar a:hover { opacity: .75; }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.2); justify-content: center; font-size: 12px; font-weight: 700; }
.topbar-social a:hover { background: rgba(255,255,255,0.4); opacity: 1; }

/* ========== NAV ========== */
.nav { position: sticky; top: 0; z-index: 1000; background: var(--surface); box-shadow: 0 2px 16px rgba(0,0,0,0.06); overflow: visible; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 20px; max-width: 1340px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.nav-logo img { height: 54px; width: 54px; object-fit: cover; border-radius: 50%; flex-shrink: 0;
  background: #fff; box-shadow: 0 3px 14px rgba(7,42,77,.18); }
.nav-logo-text { min-width: 0; }
.nav-logo-text .logo-main { font-family: var(--font-b); font-size: 12.5px; font-weight: 800; color: var(--dark); line-height: 1.3; display: block; white-space: nowrap; }
.nav-logo-text .logo-sub  { font-size: 10.5px; color: var(--tx3); font-family: var(--font-b); display: block; margin-top: 1px; white-space: nowrap; }
.nav-menu { display: flex; gap: 0; list-style: none; flex-shrink: 1; }
.nav-menu a { display: block; padding: 6px 9px; font-family: var(--font-b); font-size: 12px; font-weight: 600; color: var(--tx2); text-decoration: none; border-radius: 8px; transition: all .25s; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--teal); background: var(--teal-lt); }
.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 10px 18px; font-size: 13px; white-space: nowrap; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; flex-shrink: 0; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }
.mobile-menu { display: none; padding: 16px 20px; background: var(--surface); border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 11px 0; font-family: var(--font-b); font-size: 14px; color: var(--tx); text-decoration: none; border-bottom: 1px solid var(--border); font-weight: 600; }

/* ========== HERO ========== */
.hero { background: var(--bg); padding: 44px 0 64px; overflow: hidden; position: relative; display: flex; align-items: center; max-width: 100%; }
.hero-bg-shape { position: absolute; top: -70px; right: -110px; width: 40vw; max-width: 500px; opacity: .8; aspect-ratio: 1; background: var(--hero-blob); border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%; z-index: 0; animation: morphBlob 8s ease-in-out infinite; pointer-events: none; }
@keyframes morphBlob { 0%,100%{border-radius:60% 40% 55% 45%/50% 45% 55% 50%} 33%{border-radius:40% 60% 45% 55%/55% 50% 45% 50%} 66%{border-radius:55% 45% 40% 60%/45% 55% 50% 50%} }
.hero-deco { position: absolute; pointer-events: none; opacity: .55; }
.hero-deco.star1 { top: 10%; left: 4%; font-size: 20px; animation: float1 3s ease-in-out infinite; }
.hero-deco.star2 { top: 18%; right: 46%; font-size: 14px; animation: float1 4s ease-in-out infinite reverse; }
.hero-deco.star3 { bottom: 14%; left: 3%; font-size: 17px; animation: float1 3.5s ease-in-out infinite .5s; }
.hero-deco.pencil { top: 6%; right: 38%; font-size: 22px; animation: spin 8s linear infinite; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes spin { to{transform:rotate(360deg)} }
.hero-grid { display: grid; grid-template-columns: 1fr 1.14fr; gap: 44px; align-items: center; position: relative; z-index: 2; }
.hero-content { padding-bottom: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--orange-lt); padding: 8px 18px; border-radius: 50px; font-family: var(--font-b); font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.hero-title { font-family: var(--font-h); font-size: clamp(32px, 4.5vw, 58px); font-weight: 800; line-height: 1.05; margin-bottom: 18px; letter-spacing: -1px; color: var(--dark); }
.hero-title .hl { color: var(--orange); display: block; }
.hero-title .hl2 { color: var(--teal); }
.hero-sub { font-size: 15.5px; color: var(--tx2); line-height: 1.8; margin-bottom: 30px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { font-family: var(--font-h); font-size: 28px; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.hero-stat .lbl { font-size: 12px; color: var(--tx3); font-family: var(--font-b); font-weight: 600; }
.hero-stat .num span { color: var(--orange); }
.hero-img-wrap { position: relative; display: flex; justify-content: center; align-items: center; padding-bottom: 0; }
.hero-img-blob { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); width: 74%; aspect-ratio: 1; opacity: .9; background: var(--img-blob); border-radius: 60% 40% 45% 55% / 55% 45% 55% 45%; z-index: 0; }
.hero-img-main { position: relative; z-index: 1; width: 100%; max-width: 580px; aspect-ratio: 1/1; display: block; object-fit: cover; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; box-shadow: 0 24px 64px rgba(7,42,77,.20); }
.hero-card-float { position: absolute; z-index: 3; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; animation: float1 3s ease-in-out infinite; }
.hero-card-float.c1 { top: 10%; left: -4%; animation-delay: 0s; }
.hero-card-float.c2 { bottom: 12%; right: -4%; animation-delay: .8s; }
.hero-card-float .ci { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hero-card-float .ct strong { display: block; font-family: var(--font-b); font-size: 14px; font-weight: 800; color: var(--dark); }
.hero-card-float .ct span { font-size: 12px; color: var(--tx3); font-family: var(--font-b); }
.admission-badge { position: absolute; top: 2%; right: 4%; background: var(--orange); color: #fff; padding: 14px 16px; border-radius: 50%; width: 80px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--font-b); font-size: 10px; font-weight: 800; line-height: 1.3; box-shadow: 0 8px 24px rgba(27,111,181,.42); animation: pulse 2s ease-in-out infinite; z-index: 4; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }

/* ========== FEATURES ========== */
.features { padding: 10px 0 76px; }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feat-card { background: var(--surface); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: all .3s; border: 2px solid transparent; }
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feat-card:nth-child(1) { border-color: var(--orange-lt); }
.feat-card:nth-child(2) { border-color: var(--teal-lt); }
.feat-card:nth-child(3) { border-color: var(--purple-lt); }
.feat-card:nth-child(4) { border-color: var(--yellow-lt); }
.feat-icon { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.feat-card:nth-child(1) .feat-icon { background: var(--orange-lt); }
.feat-card:nth-child(2) .feat-icon { background: var(--teal-lt); }
.feat-card:nth-child(3) .feat-icon { background: var(--purple-lt); }
.feat-card:nth-child(4) .feat-icon { background: var(--yellow-lt); }
.feat-title { font-family: var(--font-b); font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.feat-desc { font-size: 13px; color: var(--tx2); line-height: 1.7; }

/* ========== ABOUT ========== */
.about { padding: 90px 0; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-imgs { position: relative; }
.about-img-main { width: 75%; border-radius: 30px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-side { position: absolute; right: 0; top: 10%; width: 45%; border-radius: 24px; overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.about-img-side img { width: 100%; height: 100%; object-fit: cover; }
.about-badge { position: absolute; bottom: -20px; left: 15%; background: var(--orange); color: #fff; padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.about-badge .bn { font-family: var(--font-h); font-size: 32px; font-weight: 800; display: block; letter-spacing: -1px; }
.about-badge .bt { font-size: 11px; font-family: var(--font-b); font-weight: 700; opacity: .9; }
.about-checklist { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-icon { width: 24px; height: 24px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.check-text { font-size: 14px; color: var(--tx2); line-height: 1.6; }
.check-text strong { color: var(--dark); font-family: var(--font-b); font-weight: 700; }
.vision-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.vision-pill { padding: 9px 18px; border-radius: 50px; font-family: var(--font-b); font-size: 13px; font-weight: 700; }
.vp1 { background: var(--orange-lt); color: var(--orange); }
.vp2 { background: var(--teal-lt); color: var(--teal); }
.vp3 { background: var(--purple-lt); color: var(--purple); }
.vp4 { background: var(--yellow-lt); color: var(--yellow); }

/* ========== PROGRAMS ========== */
.programs { padding: 90px 0; background: var(--bg); }
.programs-header { text-align: center; margin-bottom: 50px; }
.programs-header .section-sub { margin: 0 auto; }
.age-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.age-tab { padding: 10px 24px; border-radius: 50px; font-family: var(--font-b); font-size: 14px; font-weight: 700; cursor: pointer; border: 2px solid var(--border); background: var(--surface); color: var(--tx2); transition: all .25s; }
.age-tab.active, .age-tab:hover { border-color: var(--teal); background: var(--teal); color: #fff; }
.programs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.prog-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; cursor: pointer; }
.prog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.prog-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.prog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prog-card:hover .prog-img img { transform: scale(1.06); }
.prog-img-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.3)); }
.prog-body { padding: 22px; }
.prog-chip { display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 11px; font-weight: 800; font-family: var(--font-b); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.chip-o { background: var(--orange-lt); color: var(--orange); }
.chip-t { background: var(--teal-lt);   color: var(--teal); }
.chip-b { background: var(--blue-lt);   color: var(--blue); }
.chip-p { background: var(--purple-lt); color: var(--purple); }
.chip-g { background: var(--green-lt);  color: var(--green); }
.chip-y { background: var(--yellow-lt); color: var(--yellow); }
.prog-title { font-family: var(--font-b); font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.prog-desc { font-size: 13px; color: var(--tx2); line-height: 1.7; }
.prog-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.prog-age { font-size: 12px; color: var(--tx3); font-family: var(--font-b); font-weight: 600; }
.prog-arrow { width: 32px; height: 32px; background: var(--teal-lt); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 16px; transition: all .25s; }
.prog-card:hover .prog-arrow { background: var(--teal); color: #fff; }

/* ========== STATS BAND ========== */
.stats-band { background: linear-gradient(135deg, var(--navy, #072A4D) 0%, var(--orange) 100%); padding: 60px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/svg%3E"); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; text-align: center; position: relative; }
.stat-box { color: #fff; }
.stat-num { font-family: var(--font-h); font-size: 50px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.stat-unit { font-size: 26px; color: var(--yellow); font-weight: 800; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 8px; font-family: var(--font-b); font-weight: 600; letter-spacing: .5px; }
.stat-line { width: 36px; height: 3px; background: var(--yellow); border-radius: 2px; margin: 10px auto 0; }

/* ========== FACILITIES ========== */
.facilities { padding: 90px 0; background: var(--surface); }
.facilities-header { text-align: center; margin-bottom: 50px; }
.fac-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.fac-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: all .3s; position: relative; }
.fac-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fac-img { aspect-ratio: 1; overflow: hidden; }
.fac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fac-card:hover .fac-img img { transform: scale(1.08); }
.fac-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.6)); display: flex; align-items: flex-end; padding: 16px; }
.fac-info { color: #fff; }
.fac-icon-badge { width: 36px; height: 36px; background: rgba(255,255,255,.2); backdrop-filter: blur(6px); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 6px; }
.fac-name { font-family: var(--font-b); font-size: 15px; font-weight: 800; }
.fac-desc { font-size: 12px; opacity: .85; margin-top: 2px; }

/* ========== GALLERY ========== */
.gallery { padding: 90px 0; background: var(--bg); }
.gallery-header { text-align: center; margin-bottom: 40px; }
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.f-btn { padding: 9px 22px; border-radius: 50px; background: var(--surface); border: 2px solid var(--border); font-family: var(--font-b); font-size: 13.5px; font-weight: 700; color: var(--tx2); cursor: pointer; transition: all .25s; }
.f-btn.active, .f-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.gallery-masonry { columns: 4; column-gap: 16px; }
.g-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; }
.g-item img { width: 100%; display: block; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-hover { position: absolute; inset: 0; background: rgba(255,107,53,.5); opacity: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; transition: opacity .3s; }
.g-item:hover .g-hover { opacity: 1; }

/* ========== TEACHERS ========== */
.teachers { padding: 90px 0; background: var(--surface); }
.teachers-header { text-align: center; margin-bottom: 50px; }
.teachers-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.teacher-card { text-align: center; transition: all .3s; }
.teacher-card:hover { transform: translateY(-6px); }
.teacher-photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: var(--shadow); position: relative; }
.teacher-photo::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(135deg, var(--orange), var(--teal)) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.teacher-name { font-family: var(--font-b); font-size: 16px; font-weight: 800; color: var(--dark); }
.teacher-role { font-size: 13px; color: var(--tx3); margin-top: 4px; font-family: var(--font-b); }
.teacher-badge { display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 50px; font-size: 11px; font-weight: 700; font-family: var(--font-b); }
.tb1 { background: var(--orange-lt); color: var(--orange); }
.tb2 { background: var(--teal-lt);   color: var(--teal); }
.tb3 { background: var(--purple-lt); color: var(--purple); }
.tb4 { background: var(--blue-lt);   color: var(--blue); }

/* ========== SAFETY ========== */
.safety { padding: 90px 0; background: var(--bg); }
.safety-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.safety-img { border-radius: 30px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.safety-img img { width: 100%; height: 100%; object-fit: cover; }
.safety-list { display: flex; flex-direction: column; gap: 18px; }
.safety-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all .3s; }
.safety-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.si-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.si1 { background: var(--orange-lt); }
.si2 { background: var(--teal-lt); }
.si3 { background: var(--purple-lt); }
.si4 { background: var(--blue-lt); }
.si5 { background: var(--yellow-lt); }
.si-text strong { display: block; font-family: var(--font-b); font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.si-text span { font-size: 13px; color: var(--tx2); line-height: 1.7; }

/* ========== TESTIMONIALS ========== */
.testimonials { padding: 90px 0; background: var(--surface); }
.testimonials-header { text-align: center; margin-bottom: 50px; }
.testi-wrap { position: relative; padding: 0 50px; overflow: hidden; overflow-x: clip; overflow-y: visible; }
.testi-track { display: flex; transition: transform .5s ease; }
.testi-card { flex: 0 0 calc(33.333% - 16px); margin-right: 24px; background: var(--bg); border-radius: var(--radius); padding: 28px; border: 2px solid var(--border); transition: all .3s; }
.testi-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); }
.testi-stars { color: var(--yellow); font-size: 18px; margin-bottom: 12px; }
.testi-text { font-size: 14px; color: var(--tx2); line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.testi-name { font-family: var(--font-b); font-size: 14px; font-weight: 800; color: var(--dark); }
.testi-role { font-size: 12px; color: var(--tx3); font-family: var(--font-b); }
.testi-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: var(--surface); border: 2px solid var(--border); border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--dark); transition: all .25s; box-shadow: var(--shadow-sm); }
.testi-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.testi-prev { left: 0; }
.testi-next { right: 0; }

/* ========== NEWS ========== */
.news { padding: 90px 0; background: var(--bg); }
.news-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.news-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.news-main { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .3s; }
.news-main:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-main-img { aspect-ratio: 16/9; overflow: hidden; }
.news-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-main:hover .news-main-img img { transform: scale(1.04); }
.news-main-body { padding: 26px; }
.news-cat { display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 11px; font-weight: 800; font-family: var(--font-b); letter-spacing: 1px; text-transform: uppercase; background: var(--orange); color: #fff; margin-bottom: 10px; }
.news-title { font-family: var(--font-b); font-size: 19px; font-weight: 800; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.news-excerpt { font-size: 14px; color: var(--tx2); line-height: 1.7; }
.news-meta { display: flex; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--tx3); font-family: var(--font-b); }
.news-side { display: flex; flex-direction: column; gap: 16px; }
.news-item { background: var(--surface); border-radius: var(--radius-sm); padding: 14px; display: flex; gap: 14px; box-shadow: var(--shadow-sm); cursor: pointer; transition: all .3s; }
.news-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.ni-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.ni-img img { width: 100%; height: 100%; object-fit: cover; }
.ni-title { font-family: var(--font-b); font-size: 13.5px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 4px; }

/* ========== FAQ ========== */
.faq-section { padding: 80px 0; background: var(--surface); }
.faq-header { text-align: center; margin-bottom: 50px; }
.faq-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.faq-item { border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); transition: border-color .25s; }
.faq-item:hover { border-color: var(--teal); }
.faq-q { width: 100%; border: none; background: none; padding: 18px 20px; text-align: left; font-family: var(--font-b); font-size: 14.5px; font-weight: 700; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: all .25s; }
.faq-q:hover { background: var(--teal-lt); color: var(--teal); }
.faq-q.open { background: var(--teal); color: #fff; }
.faq-ic { font-size: 18px; transition: transform .3s; flex-shrink: 0; }
.faq-q.open .faq-ic { transform: rotate(45deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-ans-inner { padding: 14px 20px; font-size: 14px; color: var(--tx2); line-height: 1.8; }

/* ========== CTA ========== */
.cta { padding: 90px 0; background: linear-gradient(135deg, var(--orange) 0%, var(--navy, #072A4D) 100%); position: relative; overflow: hidden; text-align: center; }
.cta::before { content: ''; position: absolute; top: -50%; left: -10%; width: 60%; aspect-ratio: 1; background: rgba(255,255,255,.06); border-radius: 50%; }
.cta::after  { content: ''; position: absolute; bottom: -50%; right: -10%; width: 55%; aspect-ratio: 1; background: rgba(255,255,255,.06); border-radius: 50%; }
.cta h2 { font-family: var(--font-h); font-size: clamp(26px, 4vw, 44px); color: #fff; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta p  { font-size: 16px; color: rgba(255,255,255,.88); margin-bottom: 36px; position: relative; }
.cta .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ========== CONTACT ========== */
.contact { padding: 90px 0; background: var(--bg); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-left { display: flex; flex-direction: column; gap: 20px; }
.c-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 18px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.c-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ci-o { background: var(--orange-lt); }
.ci-t { background: var(--teal-lt); }
.ci-b { background: var(--blue-lt); }
.ci-p { background: var(--purple-lt); }
.c-item strong { display: block; font-family: var(--font-b); font-size: 14px; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.c-item span { font-size: 13px; color: var(--tx2); line-height: 1.6; }
.c-map { border-radius: var(--radius); overflow: hidden; height: 200px; background: var(--border); margin-top: 8px; }
.c-map iframe { width: 100%; height: 100%; border: none; }
.contact-form { background: var(--surface); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cf-title { font-family: var(--font-b); font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-family: var(--font-b); font-size: 12.5px; font-weight: 700; color: var(--dark); margin-bottom: 6px; letter-spacing: .5px; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 12px; font-family: var(--font-t); font-size: 14px; color: var(--tx); background: var(--bg); transition: all .25s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.fg textarea { min-height: 110px; resize: vertical; }
.cf-submit { width: 100%; justify-content: center; font-size: 15px; padding: 15px; }

/* ========== FOOTER ========== */
.footer { background: var(--footer-bg); color: #fff; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-brand .fb-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .fb-logo img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; background: #fff; }
.footer-brand .fb-name { font-family: var(--font-b); font-size: 13px; font-weight: 800; color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.8; margin-bottom: 20px; }
.f-social { display: flex; gap: 8px; }
.f-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); text-decoration: none; font-size: 15px; font-weight: 800; transition: all .25s; }
.f-social a:hover { background: var(--orange); color: #fff; }
.f-col h4 { font-family: var(--font-b); font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.1); }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.f-col ul a { font-size: 13.5px; color: rgba(255,255,255,.6); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color .2s; font-family: var(--font-b); }
.f-col ul a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 8px; font-family: var(--font-b); }

/* ========== FLOATING ========== */
.floats { position: fixed; right: 20px; bottom: 76px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.fl-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.18); transition: transform .25s; color: #fff; font-weight: 800; }
.fl-btn:hover { transform: scale(1.12); }
.fl-fb { background: #1877F2; }
.fl-line { background: #06C755; }
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 500; width: 42px; height: 42px; background: var(--orange); border-radius: 50%; display: none; align-items: center; justify-content: center; color: #fff; font-size: 18px; cursor: pointer; box-shadow: var(--shadow); transition: all .25s; border: none; }
.back-top.show { display: flex; }
.back-top:hover { background: var(--teal); transform: translateY(-3px); }

/* ========== LIGHTBOX ========== */
.lb { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 90vw; max-height: 85vh; border-radius: 12px; object-fit: contain; }
.lb-close { position: fixed; top: 20px; right: 20px; width: 42px; height: 42px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.lb-close:hover { background: var(--red); }

/* ==========================================================================
   COMPONENTS เพิ่มเติม (ปุ่มธีม/ภาษา, คณะครู, แกลเลอรี, ฟอร์ม)
   ========================================================================== */

/* --- ปุ่มไอคอนบนแถบนำทาง (โหมดกลางคืน / ภาษา) --- */
.icon-btn { display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px;
  padding:0 11px; border-radius:50px; border:2px solid var(--border); background:var(--surface);
  color:var(--tx2); font-family:var(--font-b); font-size:13px; font-weight:800; line-height:1;
  cursor:pointer; text-decoration:none; transition:all .25s; flex-shrink:0; }
.icon-btn:hover { border-color:var(--teal); color:var(--teal); transform:translateY(-2px); }
.icon-btn .ic-sun  { display:none; font-size:16px; }
.icon-btn .ic-moon { display:inline; font-size:16px; }
html[data-theme="dark"] .icon-btn .ic-sun  { display:inline; }
html[data-theme="dark"] .icon-btn .ic-moon { display:none; }
.nav-cta { display:flex; align-items:center; gap:8px; }
.nav.scrolled { box-shadow:0 4px 30px rgba(0,0,0,.10); }
.mm-tools { display:flex; align-items:center; gap:10px; padding:14px 0 4px; border-top:1px solid var(--border); margin-top:8px; flex-wrap:wrap; }

/* --- ปุ่ม outline บนพื้นสีส้ม (section CTA) --- */
.btn-onorange { border-color:rgba(255,255,255,.55); color:#fff; }
.btn-onorange:hover { background:#fff; border-color:#fff; color:var(--orange); }

/* --- about / contact ที่จัดกลุ่มปุ่ม --- */
.about-btns { margin-top:28px; display:flex; gap:12px; flex-wrap:wrap; }
.contact-head { text-align:center; margin-bottom:56px; }
.safety-list { margin-top:24px; }
.c-map { margin-top:16px; }
.c-item a { color:var(--teal); text-decoration:none; }
.c-item a:hover { text-decoration:underline; }

/* --- คณะครู: หัวข้อย่อยและปุ่มขยาย --- */
.team-sub { font-family:var(--font-b); font-size:17px; font-weight:800; color:var(--dark);
  margin:44px 0 20px; display:flex; align-items:center; gap:10px; }
.team-sub::before { content:''; width:5px; height:20px; border-radius:3px; background:var(--teal); }
.team-count { font-size:12px; font-weight:700; color:var(--teal); background:var(--teal-lt);
  padding:2px 10px; border-radius:50px; }
.team-toggle-wrap { text-align:center; margin-top:40px; }
#teamMore[hidden] { display:none; }
.teacher-card .teacher-name { min-height:2.4em; }

/* --- แกลเลอรี: ซ่อนแบบไม่กระตุก --- */
.g-item.g-hidden { display:none; }
.fac-card[data-full] { cursor:zoom-in; }

/* --- Lightbox: คำบรรยายใต้ภาพ --- */
.lb-cap { position:absolute; left:0; right:0; bottom:22px; text-align:center; color:#fff;
  font-size:14px; padding:0 24px; text-shadow:0 2px 8px rgba(0,0,0,.8); pointer-events:none; }

/* --- ฟอร์ม: ช่องดักบอท (ต้องมองไม่เห็น) --- */
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }

/* --- รูปที่หาไม่เจอ ไม่ให้ทำ layout พัง --- */
img.img-missing { display:none; }
img { max-width:100%; height:auto; }

/* --- topbar ที่อยู่ยาว --- */
.tb-addr { color:rgba(255,255,255,.9); display:flex; align-items:center; gap:6px; }
