:root {
  --green: #176b4d;
  --green-dark: #104b38;
  --gold: #c6a340;
  /* Light palette tuned for stronger text contrast while keeping the soft
     Neumorphism character. Muted text now clears WCAG AA for normal text. */
  --page-bg: #e6ece6;
  --surface: #e4eae4;
  --surface-raised: #f0f4ef;
  --text: #1d3024;
  --muted: #4d5d51;
  --line: rgba(35, 68, 45, .19);
  --shadow-light: #f9fcf8;
  --shadow-dark: #bbc7bc;
  --gold-text: color-mix(in srgb, var(--gold) 35%, var(--text) 65%);
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-display: "Lora", Georgia, serif;
  --radius: 18px;
  --container: 1160px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #1d2922;
  --surface: #202e26;
  --surface-raised: #26362d;
  --text: #e6eee7;
  --muted: #aab9ad;
  --line: rgba(223, 240, 226, .09);
  --shadow-light: #2d4035;
  --shadow-dark: #152019;
  --gold-text: color-mix(in srgb, var(--gold) 42%, var(--text) 58%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; background: var(--page-bg); }
/* Global font override: keep every public element, especially the header,
   navigation labels, brand text and buttons, in sync with the Admin font choice. */
html[data-global-font-ready="true"] body,
html[data-global-font-ready="true"] body *,
html[data-global-font-ready="true"] .header,
html[data-global-font-ready="true"] .header * {
  font-family: var(--font-body) !important;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: color .25s ease, background-color .25s ease;
}
/* Admin-managed website background. The content surfaces keep their palette for readability. */
body.has-site-background-color { background: var(--site-background-color, var(--page-bg)); }
body.has-site-background-image {
  background-color: transparent;
  background-image: linear-gradient(rgba(230,236,230,var(--site-background-overlay,.86)),rgba(230,236,230,var(--site-background-overlay,.86))),var(--site-background-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html[data-theme="dark"] body.has-site-background-image {
  background-image: linear-gradient(rgba(29,41,34,var(--site-background-overlay,.86)),rgba(29,41,34,var(--site-background-overlay,.86))),var(--site-background-image);
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(100% - 40px, var(--container)); margin: 0 auto; }

/* Header and identity */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-logo {
  width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.15));
}
.brand-copy { display: grid; gap: 1px; line-height: 1.35; }
.brand-copy strong { color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: -.035em; }
.brand-copy small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
#menu { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
#menu a { color: var(--muted); padding: 9px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; transition: color .2s, background .2s; }
#menu a:hover, #menu a:focus-visible { color: var(--green); background: var(--surface); box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light); }
.nav-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.theme-toggle, .menu-btn {
  min-height: 40px; border: 0; border-radius: 12px; cursor: pointer;
  color: var(--text); background: var(--surface); box-shadow: 4px 4px 9px var(--shadow-dark), -4px -4px 9px var(--shadow-light);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.theme-icon { color: var(--gold-text, var(--gold)); font-size: 16px; line-height: 1; }
.theme-toggle:active, .menu-btn:active { box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light); transform: translateY(1px); }
.menu-btn { display: none; width: 42px; font-size: 19px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 82px 0 94px; color: #fff; background: linear-gradient(130deg, var(--green-dark), var(--green)); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.42) .75px, transparent .75px); background-size: 18px 18px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.hero-orb { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; pointer-events: none; }
.hero-orb-one { width: 470px; height: 470px; right: -145px; top: -245px; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.025); }
.hero-orb-two { width: 260px; height: 260px; left: -175px; bottom: -190px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 70px; position: relative; z-index: 1; }
.hero-copy { max-width: 690px; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); color: #f4e6b7; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.badge::before { content: "✦"; color: #e6c76d; }
.hero h1 { max-width: 720px; margin: 0; font-family: var(--font-display); font-size: clamp(38px, 5.3vw, 64px); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.tagline { max-width: 560px; margin: 20px 0 28px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.9; }
.hero-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--gold); color: #21392b; font-size: 11px; font-weight: 800; box-shadow: 5px 5px 12px rgba(0,0,0,.15), -3px -3px 8px rgba(255,255,255,.09); transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-outline { border: 1px solid rgba(255,255,255,.52); background: rgba(255,255,255,.07); color: #fff; box-shadow: none; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 29px; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-note-mark { color: #e8ca76; font-size: 16px; }
.hero-side { justify-self: center; width: min(100%, 340px); padding: 29px 25px 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.055)); box-shadow: 14px 14px 28px rgba(0,0,0,.13), -6px -6px 18px rgba(255,255,255,.07); text-align: center; backdrop-filter: blur(8px); }
.hero-emblem-wrap { position: relative; display: grid; place-items: center; width: 180px; height: 180px; margin: 0 auto 18px; }
.hero-emblem-halo { position: absolute; inset: 0; border: 1px solid rgba(238,211,128,.55); border-radius: 50%; box-shadow: 0 0 0 11px rgba(255,255,255,.035), 0 0 0 22px rgba(255,255,255,.025); }
.hero-emblem { position: relative; width: 145px; height: 132px; object-fit: contain; padding: 3px; border-radius: 0; background: transparent; box-shadow: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.20)); }
.hero-side-title { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: .08em; }
.hero-side-subtitle { margin: 5px 0 0; color: rgba(255,255,255,.65); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.hero-values { display: flex; justify-content: center; align-items: center; gap: 13px; margin-top: 21px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.18); color: #f1d68d; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.hero-values i { width: 4px; height: 4px; border-radius: 50%; background: #e4c66f; }

/* Floating statistics */
.stats { position: relative; z-index: 3; margin-top: -34px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-grid > div { min-width: 0; padding: 19px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 7px 7px 16px var(--shadow-dark), -7px -7px 16px var(--shadow-light); text-align: center; }
.stats-grid strong { display: block; color: var(--green); font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.3; }
.stats-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Shared sections and typography */
.section { padding: 82px 0; scroll-margin-top: 85px; }
.section.alt { background: color-mix(in srgb, var(--surface) 72%, var(--shadow-dark) 28%); }
.section-heading { max-width: 760px; margin: 0 0 30px; }
.eyebrow, .card-kicker { display: inline-block; color: var(--gold-text, var(--gold)); font-size: 9px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
h2 { position: relative; margin: 8px 0 0; padding-bottom: 16px; color: var(--text); font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.045em; line-height: 1.25; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 5px; background: var(--gold); }
.section-intro, .lead { max-width: 740px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
h3 { margin: 7px 0 10px; color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: -.025em; line-height: 1.45; }
p { overflow-wrap: anywhere; }
.grid { display: grid; gap: 20px; margin-top: 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two.single-column { grid-template-columns: 1fr; }
.card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light); transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 10px 10px 21px var(--shadow-dark), -10px -10px 21px var(--shadow-light); }
.card p, .card li { color: var(--muted); font-size: 12px; line-height: 1.9; }
.card.center { text-align: center; }
.card .btn { margin-top: 16px; background: var(--green); color: white; }
.card-kicker { font-size: 8px; letter-spacing: .15em; }
.profile-story { position: relative; overflow: hidden; }
.profile-story::after { content: "م"; position: absolute; right: 15px; bottom: -35px; color: var(--green); opacity: .055; font-family: var(--font-display); font-size: 130px; font-weight: 700; pointer-events: none; }
.card-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 12px; border-radius: 13px; background: var(--surface); color: var(--gold-text, var(--gold)); box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); font-size: 21px; }
.vision-card { background: linear-gradient(145deg, var(--surface-raised), var(--surface)); }
ul, ol { padding-left: 20px; }
.card ul:not(.data) li, .card ol li { margin-bottom: 7px; padding-left: 3px; }
.mission-list li::marker { color: var(--gold-text, var(--gold)); font-weight: 800; }
.data { list-style: none; padding: 0; margin: 10px 0 0; }
.data li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.data li:last-child { border-bottom: 0; }
.data b { color: var(--text); font-weight: 800; }
.icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 13px; border-radius: 16px; background: var(--surface); box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); font-size: 26px; }
.avatar { display: grid; width: 86px; height: 86px; place-items: center; margin: 0 auto 13px; overflow: hidden; border-radius: 50%; background: var(--surface); box-shadow: inset 4px 4px 9px var(--shadow-dark), inset -4px -4px 9px var(--shadow-light); font-size: 36px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card small { color: var(--gold-text, var(--gold)); font-size: 10px; font-weight: 800; letter-spacing: .05em; }

/* Gallery, admissions and contact */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 24px; }
.gallery figure { min-width: 0; margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 7px 7px 15px var(--shadow-dark), -7px -7px 15px var(--shadow-light); }
.gallery img, .ph { display: block; width: 100%; aspect-ratio: 4/3; border-radius: 11px; object-fit: cover; }
.ph { display: grid; place-items: center; background: var(--surface-raised); color: var(--muted); font-size: 12px; }
.gallery figcaption { padding: 9px 5px 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.ppdb { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 72%, var(--shadow-dark) 28%)); }
.ppdb-schedule { display: flex; flex-direction: column; align-items: flex-start; }
.ppdb-schedule .btn { margin-top: auto; }
.ppdb-contacts-panel { margin-top: 20px; }
.ppdb-contacts-heading { margin-bottom: 16px; }
.ppdb-contacts-heading h3 { margin: 7px 0 5px; color: var(--text); font-size: clamp(17px, 2.2vw, 21px); }
.ppdb-contacts-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.ppdb-contacts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ppdb-contact-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; }
.ppdb-contact-kicker { color: var(--gold-text, var(--gold)); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.ppdb-contact-card h3 { margin: 0; color: var(--text); font-size: 13px; line-height: 1.45; }
.ppdb-contact-name, .ppdb-contact-number { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.ppdb-contact-button { margin-top: auto; width: 100%; text-align: center; }
.contact-card { min-height: 100%; }
.map-card { padding: 10px; overflow: hidden; }
.map-card iframe { display: block; width: 100%; min-height: 320px; height: 360px; border: 0; border-radius: 14px; background:var(--surface-raised); }
@media (max-width:700px) { .map-card iframe { height:320px; min-height:280px; } .ppdb-contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width:480px) { .ppdb-contacts-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 30px 0; background: var(--green-dark); color: rgba(255,255,255,.86); }
.footer-inner { display: flex; align-items: center; gap: 17px; }
.footer-logo { width: 54px; height: 54px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.footer-inner strong { display: block; color: #fff; font-size: 13px; font-weight: 800; }
.footer-inner p { margin: 2px 0 3px; color: rgba(255,255,255,.67); font-size: 10px; }
.footer-inner small { color: rgba(255,255,255,.53); font-size: 9px; }
.admin-link { margin-left: auto; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.noscript { padding: 18px; text-align: center; }

@media (max-width: 1080px) {
  .nav { gap: 13px; }
  .brand { min-width: 185px; }
  #menu { gap: 0; }
  #menu a { padding: 8px 6px; font-size: 10px; }
  .theme-toggle { padding: 0 10px; }
}
@media (max-width: 900px) {
  .nav { min-height: 74px; }
  .menu-btn { display: inline-grid; place-items: center; }
  #menu { display: flex; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 0 20px; border-bottom: 1px solid transparent; background: var(--surface); box-shadow: 0 12px 22px rgba(0,0,0,0); max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: max-height .35s ease, opacity .25s ease, transform .25s ease, padding .25s ease, box-shadow .25s ease; }
  #menu.open { max-height: 75vh; padding: 13px 20px 18px; border-bottom-color: var(--line); opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); box-shadow: 0 12px 22px rgba(0,0,0,.09); }
  #menu a { padding: 11px 13px; font-size: 12px; transform: translateX(-7px); opacity: .4; transition: transform .25s ease, opacity .25s ease, color .2s, background .2s; }
  #menu.open a { transform: translateX(0); opacity: 1; }
  #menu.open a:nth-child(2) { transition-delay: .025s; }
  #menu.open a:nth-child(3) { transition-delay: .05s; }
  #menu.open a:nth-child(4) { transition-delay: .075s; }
  #menu.open a:nth-child(5) { transition-delay: .1s; }
  #menu.open a:nth-child(6) { transition-delay: .125s; }
  #menu.open a:nth-child(7) { transition-delay: .15s; }
  #menu.open a:nth-child(8) { transition-delay: .175s; }
  .hero-layout { gap: 35px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 30px, var(--container)); }
  .brand-logo { width: 48px; height: 48px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { max-width: 155px; font-size: 7px; }
  .theme-toggle { width: 40px; justify-content: center; padding: 0; }
  .theme-label { display: none; }
  .hero { padding: 60px 0 72px; }
  .hero-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(36px, 10vw, 49px); }
  .tagline { font-size: 13px; }
  .hero-side { width: min(100%, 300px); padding: 23px 20px; }
  .hero-emblem-wrap { width: 150px; height: 150px; }
  .hero-emblem { width: 120px; height: 112px; }
  .stats { margin-top: -25px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .stats-grid > div { padding: 15px 8px; }
  .stats-grid strong { font-size: 23px; }
  .section { padding: 60px 0; }
  .grid { gap: 14px; margin-top: 19px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 21px; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; min-width: 0; }
  .brand-copy small { letter-spacing: .07em; }
  .nav-actions { gap: 7px; }
  .hero-btn { align-items: stretch; }
  .hero-btn .btn { flex: 1 1 100%; }
  .grid.four { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; }
  .admin-link { margin: 5px 0 0 71px; }
}

/* Optional page background palettes. The light/dark switch works with each palette. */
html[data-palette="warm"] { --page-bg:#ece6d9; --surface:#ebe5d8; --surface-raised:#f7f1e5; --text:#31291f; --muted:#5d5343; --line:rgba(76,59,34,.20); --shadow-light:#fffaf0; --shadow-dark:#c9c0b0; }
html[data-theme="dark"][data-palette="warm"] { --page-bg:#29261f; --surface:#302c24; --surface-raised:#393429; --text:#f0eadc; --muted:#c1b8a5; --line:rgba(238,225,194,.1); --shadow-light:#3b362c; --shadow-dark:#211f19; }
html[data-palette="blue"] { --page-bg:#e3ebef; --surface:#e2eaf0; --surface-raised:#f1f6f8; --text:#1e303c; --muted:#4b606d; --line:rgba(37,65,81,.20); --shadow-light:#f9fcfe; --shadow-dark:#b9c8d0; }
html[data-theme="dark"][data-palette="blue"] { --page-bg:#202a31; --surface:#25323a; --surface-raised:#2d3c45; --text:#e5edf1; --muted:#a9bac3; --line:rgba(225,240,248,.1); --shadow-light:#30404a; --shadow-dark:#1a2329; }

/* Teacher marquee: four cards visible on desktop, continuous left-moving seamless loop. */
.guru-carousel { margin-top:24px; }
.guru-viewport { overflow:hidden; overflow:clip; touch-action:pan-y; overscroll-behavior-x:contain; cursor:grab; outline-offset:5px; }
.guru-viewport.is-dragging { cursor:grabbing; user-select:none; }
.guru-track { display:flex; align-items:stretch; gap:0; padding:8px 0 20px; margin:0; width:max-content; will-change:transform; }
.guru-slide { flex:0 0 calc(100% / var(--guru-visible-count, 4)); width:calc(100% / var(--guru-visible-count, 4)); min-width:0; padding:0 8px; display:flex; justify-content:center; }
.guru-marquee-track { will-change:transform; }
.guru-marquee-fallback { animation: guruMarqueeFallback var(--guru-marquee-duration, 30s) linear infinite; }
@keyframes guruMarqueeFallback { from { transform:translate3d(0,0,0); } to { transform:translate3d(calc(-1 * var(--guru-marquee-distance, 1000px)),0,0); } }
.teacher-card { width:min(100%,390px); min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; min-height:275px; padding:25px 18px; }
.teacher-card .avatar { width:132px; height:132px; flex:0 0 auto; border:4px solid var(--surface); box-shadow:0 0 0 1px var(--line), 7px 7px 13px var(--shadow-dark), -7px -7px 13px var(--shadow-light); }
.teacher-card .avatar img { transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.teacher-card:hover .avatar img { transform:scale(1.08); }
.teacher-card h3 { max-width:100%; margin-top:5px; font-size:14px; }
.teacher-card p { margin-top:0; }
.carousel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:3px 7px 0; }
.carousel-status { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.04em; }
.carousel-dot { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 16%,transparent); }
.carousel-hint { font-weight:500; letter-spacing:0; }
.carousel-actions { display:flex; align-items:center; gap:8px; }
.carousel-btn { display:inline-flex; min-width:38px; min-height:38px; align-items:center; justify-content:center; gap:7px; padding:0 11px; border:1px solid var(--line); border-radius:12px; color:var(--text); background:var(--surface); box-shadow:4px 4px 9px var(--shadow-dark),-4px -4px 9px var(--shadow-light); cursor:pointer; font-size:14px; font-weight:800; transition:transform .2s ease, color .2s ease, box-shadow .2s ease; }
.carousel-btn:hover { color:var(--green); transform:translateY(-2px); }
.carousel-btn:active { transform:translateY(0); box-shadow:inset 3px 3px 6px var(--shadow-dark),inset -3px -3px 6px var(--shadow-light); }
.carousel-play { min-width:76px; font-size:10px; }

/* Motion design: reveal on scroll, hero entrance, floating ornaments and soft hover. */
.hero-copy { animation:heroEnter .8s cubic-bezier(.2,.75,.25,1) both; }
.hero-side { animation:heroEnter .9s .12s cubic-bezier(.2,.75,.25,1) both; }
.hero-orb-one { animation:orbFloat 12s ease-in-out infinite alternate; }
.hero-orb-two { animation:orbFloat 10s 1s ease-in-out infinite alternate-reverse; }
@keyframes heroEnter { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes orbFloat { from { transform:translate3d(0,0,0) rotate(0deg); } to { transform:translate3d(-18px,20px,0) rotate(8deg); } }
.reveal { opacity:0; transform:translateY(24px) scale(.992); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.25,1); transition-delay:var(--reveal-delay,0ms); }
.reveal.is-visible { opacity:1; transform:translateY(0) scale(1); }
html[data-motion="soft"] .reveal { transform:translateY(12px); transition-duration:.45s; }
html[data-motion="off"] .reveal { opacity:1; transform:none; transition:none; }
html[data-motion="off"] .hero-copy, html[data-motion="off"] .hero-side, html[data-motion="off"] .hero-orb { animation:none; }
html[data-motion="soft"] .hero-orb { animation-duration:22s; }
.header { transition:box-shadow .25s ease, background-color .25s ease; }
.header.is-scrolled { box-shadow:0 8px 25px rgba(20,45,31,.09); }
#menu a.is-active { color:var(--green); background:var(--surface); box-shadow:inset 2px 2px 4px var(--shadow-dark),inset -2px -2px 4px var(--shadow-light); }

@media (max-width:600px) {
  .guru-slide { padding:0 5px; }
  .teacher-card { width:min(100%,360px); min-height:245px; padding:20px 14px; }
  .teacher-card .avatar { width:116px; height:116px; }
  .carousel-toolbar { align-items:flex-start; flex-direction:column; }
  .carousel-hint { display:none; }
  .carousel-actions { align-self:flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* The teacher marquee is an intentional content carousel: retain its infinite loop
   even when reduced motion is requested; JS slows it down for that preference. */
html .guru-marquee-fallback {
  animation-duration: var(--guru-marquee-duration, 36s) !important;
  animation-iteration-count: infinite !important;
  animation-timing-function: linear !important;
}

/* Location block: address is visible even without an embedded map. */
.location-address { margin:10px 0 14px; color:var(--muted); font-size:13px; line-height:1.8; white-space:pre-line; }
.map-link-button { display:inline-flex; align-items:center; gap:8px; margin-top:12px; padding:11px 15px; border-radius:11px; background:var(--green); color:#fff; font-size:11px; font-weight:800; text-decoration:none; transition:transform .2s ease, opacity .2s ease; }
.map-link-button:hover { transform:translateY(-2px); opacity:.92; }
.map-card h3 { margin:5px 0 8px; }


/* V4.5 design themes. Neumorphism remains the default; the saved accent color
   continues to power --gold and --accent in every theme. */
html[data-design-theme="glassmorphism"] {
  --surface: rgba(255,255,255,.62);
  --surface-raised: rgba(255,255,255,.76);
  --line: rgba(255,255,255,.66);
}
html[data-theme="dark"][data-design-theme="glassmorphism"] {
  --surface: rgba(37,53,44,.72);
  --surface-raised: rgba(45,64,53,.82);
  --line: rgba(230,245,234,.16);
}
html[data-design-theme="glassmorphism"] body {
  background-image: radial-gradient(ellipse at 8% 12%, color-mix(in srgb,var(--gold) 13%,transparent), transparent 34%), radial-gradient(ellipse at 90% 48%, color-mix(in srgb,var(--green) 12%,transparent), transparent 38%);
  background-attachment: fixed;
}
html[data-design-theme="glassmorphism"] .header {
  background: color-mix(in srgb,var(--surface) 76%,transparent);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(20,45,31,.07);
}
html[data-design-theme="glassmorphism"] .card,
html[data-design-theme="glassmorphism"] .stats-grid > div,
html[data-design-theme="glassmorphism"] .hero-side,
html[data-design-theme="glassmorphism"] .theme-toggle,
html[data-design-theme="glassmorphism"] .menu-btn,
html[data-design-theme="glassmorphism"] .carousel-btn,
html[data-design-theme="glassmorphism"] .teacher-card .avatar {
  background: color-mix(in srgb,var(--surface) 84%,transparent);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(22,48,34,.11), inset 0 1px 0 rgba(255,255,255,.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
html[data-design-theme="glassmorphism"] .section.alt {
  background: color-mix(in srgb,var(--surface) 48%,transparent);
  backdrop-filter: blur(10px);
}
html[data-design-theme="glassmorphism"] #menu a:hover,
html[data-design-theme="glassmorphism"] #menu a:focus-visible {
  background: color-mix(in srgb,var(--surface) 70%,transparent);
  box-shadow: 0 6px 18px rgba(22,48,34,.09);
}

html[data-design-theme="neubrutalism"] {
  --radius: 5px;
  --line: var(--text);
  --shadow-light: #fff;
}
html[data-design-theme="neubrutalism"] .header {
  border-bottom: 2px solid var(--text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-design-theme="neubrutalism"] .brand-logo,
html[data-design-theme="neubrutalism"] .card,
html[data-design-theme="neubrutalism"] .stats-grid > div,
html[data-design-theme="neubrutalism"] .hero-side,
html[data-design-theme="neubrutalism"] .theme-toggle,
html[data-design-theme="neubrutalism"] .menu-btn,
html[data-design-theme="neubrutalism"] .carousel-btn,
html[data-design-theme="neubrutalism"] .teacher-card .avatar {
  border: 2px solid var(--text);
  border-radius: 5px;
  box-shadow: 5px 5px 0 var(--gold);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-design-theme="neubrutalism"] .card:hover {
  transform: translate(-2px,-2px);
  box-shadow: 7px 7px 0 var(--gold);
}
html[data-design-theme="neubrutalism"] .btn {
  border: 2px solid #17291e;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #17291e;
  font-weight: 900;
}
html[data-design-theme="neubrutalism"] .btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 #17291e;
}
html[data-design-theme="neubrutalism"] .section.alt {
  background: color-mix(in srgb,var(--gold) 10%,var(--page-bg));
  border-block: 2px solid var(--text);
}
html[data-design-theme="neubrutalism"] #menu a:hover,
html[data-design-theme="neubrutalism"] #menu a:focus-visible {
  border: 1px solid var(--text);
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--gold);
}
html[data-design-theme="neubrutalism"] .hero-side {
  background: color-mix(in srgb,var(--green) 84%,#fff 16%);
}


/* V4.5.2 homepage motion polish: subtle, lightweight and accessible. */
.hero { isolation:isolate; }
.hero::after { content:""; position:absolute; z-index:-1; width:48vw; height:48vw; min-width:300px; min-height:300px; max-width:650px; max-height:650px; right:-18%; bottom:-58%; border-radius:50%; background:radial-gradient(circle, color-mix(in srgb,var(--gold) 23%,transparent), transparent 68%); filter:blur(5px); opacity:.65; animation:heroGlowDrift 18s ease-in-out infinite alternate; pointer-events:none; }
.hero .badge { animation:badgeSoftPulse 5s ease-in-out infinite; }
.hero-note-mark { display:inline-block; transform-origin:center; animation:sparkleTurn 7s ease-in-out infinite; }
.hero-emblem-wrap { animation:emblemFloat 7s ease-in-out infinite; }
.hero-emblem-halo { animation:haloBreathe 6s ease-in-out infinite; }
.hero-values span { display:inline-block; animation:valueLift 4.8s ease-in-out infinite; }
.hero-values span:nth-of-type(2) { animation-delay:.35s; }
.hero-values span:nth-of-type(3) { animation-delay:.7s; }
.hero-btn .btn:not(.btn-outline) { position:relative; overflow:hidden; isolation:isolate; }
.hero-btn .btn:not(.btn-outline)::after { content:""; position:absolute; top:-40%; bottom:-40%; left:-45%; width:28%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent); transform:skewX(-22deg); animation:buttonGleam 6.5s ease-in-out infinite; pointer-events:none; }
.stats-grid > div { transition:transform .28s ease, box-shadow .28s ease; }
.stats-grid > div:hover { transform:translateY(-5px); }
.section-heading .eyebrow { display:inline-flex; align-items:center; gap:7px; }
.section-heading .eyebrow::before { content:""; display:inline-block; width:17px; height:2px; border-radius:2px; background:var(--gold); opacity:.8; }
.gallery figure { transition:transform .28s ease, box-shadow .28s ease; }
.gallery figure:hover { transform:translateY(-5px) scale(1.008); box-shadow:10px 12px 22px var(--shadow-dark),-8px -8px 18px var(--shadow-light); }
@keyframes heroGlowDrift { from { transform:translate3d(0,0,0) scale(.92); } to { transform:translate3d(-8%, -10%, 0) scale(1.12); } }
@keyframes badgeSoftPulse { 0%,100% { box-shadow:0 0 0 0 rgba(232,202,118,0); } 50% { box-shadow:0 0 0 5px rgba(232,202,118,.08); } }
@keyframes sparkleTurn { 0%,75%,100% { transform:rotate(0) scale(1); } 82% { transform:rotate(22deg) scale(1.18); } 89% { transform:rotate(-12deg) scale(1.08); } }
@keyframes emblemFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
@keyframes haloBreathe { 0%,100% { transform:scale(1); opacity:.8; } 50% { transform:scale(1.045); opacity:1; } }
@keyframes valueLift { 0%,82%,100% { transform:translateY(0); } 90% { transform:translateY(-3px); } }
@keyframes buttonGleam { 0%,72% { left:-45%; } 94%,100% { left:130%; } }
html[data-motion="soft"] .hero::after { animation-duration:30s; opacity:.38; }
html[data-motion="soft"] .hero-emblem-wrap, html[data-motion="soft"] .hero-emblem-halo { animation-duration:10s; }
html[data-motion="off"] .hero::after, html[data-motion="off"] .badge, html[data-motion="off"] .hero-note-mark, html[data-motion="off"] .hero-emblem-wrap, html[data-motion="off"] .hero-emblem-halo, html[data-motion="off"] .hero-values span, html[data-motion="off"] .hero-btn .btn::after { animation:none !important; }
html[data-motion="off"] .stats-grid > div, html[data-motion="off"] .gallery figure { transition:none !important; }
@media (prefers-reduced-motion:reduce) {
  .hero::after,.badge,.hero-note-mark,.hero-emblem-wrap,.hero-emblem-halo,.hero-values span,.hero-btn .btn::after { animation:none !important; }
  .stats-grid > div,.gallery figure { transition:none !important; }
}

/* V1 Homepage Template Manager — the template changes layout only. All content,
   settings, brand assets, fonts, palettes and theme modes remain shared. */
html[data-home-template="photography"] .hero {
  padding-top: 94px;
  padding-bottom: 82px;
  background-size: cover !important;
  background-position: center !important;
}
html[data-home-template="photography"] .hero::before {
  opacity: .36;
  background-image: linear-gradient(90deg,rgba(5,31,22,.44),rgba(5,31,22,.10)),radial-gradient(rgba(255,255,255,.34) .8px,transparent .8px);
  background-size: auto,20px 20px;
  mask-image: none;
}
html[data-home-template="photography"] .hero-layout {
  grid-template-columns: minmax(0,1fr);
  gap: 28px;
  text-align: center;
}
html[data-home-template="photography"] .hero-copy { max-width: 900px; margin: 0 auto; }
html[data-home-template="photography"] .hero .badge { margin-inline:auto; }
html[data-home-template="photography"] .hero h1 { max-width: 900px; margin-inline:auto; font-size:clamp(42px,6.3vw,76px); }
html[data-home-template="photography"] .tagline { max-width:700px; margin:20px auto 27px; }
html[data-home-template="photography"] .hero-btn, html[data-home-template="photography"] .hero-note { justify-content:center; }
html[data-home-template="photography"] .hero-side {
  width:min(100%,720px); margin:0 auto; padding:18px 24px;
  display:grid; grid-template-columns:126px 1fr; grid-template-rows:auto auto 1fr;
  align-items:center; column-gap:20px; text-align:left; border-radius:19px;
  background:rgba(8,39,27,.48); border-color:rgba(255,255,255,.38);
  box-shadow:0 18px 48px rgba(0,0,0,.2); backdrop-filter:blur(15px);
}
html[data-home-template="photography"] .hero-emblem-wrap { grid-column:1; grid-row:1/4; width:116px; height:116px; margin:0; }
html[data-home-template="photography"] .hero-emblem { width:94px; height:88px; }
html[data-home-template="photography"] .hero-emblem-halo { box-shadow:0 0 0 7px rgba(255,255,255,.08); }
html[data-home-template="photography"] .hero-side-title { grid-column:2; grid-row:1; font-size:22px; }
html[data-home-template="photography"] .hero-side-subtitle { grid-column:2; grid-row:2; }
html[data-home-template="photography"] .hero-values { grid-column:2; grid-row:3; justify-content:flex-start; margin-top:11px; padding-top:10px; }
html[data-home-template="photography"] .stats { margin-top:-25px; }

html[data-home-template="editorial"] .hero {
  padding-top:70px; padding-bottom:76px;
  border-bottom:1px solid var(--line);
}
html[data-home-template="editorial"] .hero::before {
  opacity:.09; mask-image:linear-gradient(90deg,#000,transparent 90%);
}
html[data-home-template="editorial"] .hero-layout {
  grid-template-columns:minmax(0,1.18fr) minmax(260px,.82fr);
  gap:clamp(30px,6vw,86px);
}
html[data-home-template="editorial"] .hero-copy { max-width:760px; padding-left:25px; border-left:4px solid var(--gold); }
html[data-home-template="editorial"] .hero h1 { font-size:clamp(39px,5.4vw,68px); line-height:1.04; letter-spacing:-.055em; }
html[data-home-template="editorial"] .hero .badge { border-radius:5px; background:transparent; border:0; padding:0; color:#f2d98e; letter-spacing:.16em; }
html[data-home-template="editorial"] .hero-side {
  width:min(100%,350px); border-radius:9px; padding:32px 24px 25px;
  background:rgba(255,255,255,.13); box-shadow:0 22px 50px rgba(0,0,0,.15);
}
html[data-home-template="editorial"] .hero-emblem-wrap { width:155px; height:155px; }
html[data-home-template="editorial"] .hero-emblem { width:126px; height:116px; }
html[data-home-template="editorial"] .stats { margin-top:0; padding-top:22px; }
html[data-home-template="editorial"] .stats-grid > div { border-radius:5px; box-shadow:none; border-top:3px solid var(--gold); }
html[data-home-template="editorial"] .section-heading { max-width:850px; }
html[data-home-template="editorial"] .section-heading h2 { font-family:var(--font-display); font-size:clamp(29px,3.5vw,43px); letter-spacing:-.035em; }

html[data-home-template="creative"] .hero {
  padding-top:76px; padding-bottom:90px;
  background-size:cover !important;
}
html[data-home-template="creative"] .hero::before {
  opacity:.14; mask-image:none;
  background-image:linear-gradient(135deg,transparent 55%,rgba(255,255,255,.13) 55%),radial-gradient(rgba(255,255,255,.5) 1px,transparent 1px);
  background-size:auto,17px 17px;
}
html[data-home-template="creative"] .hero-layout {
  grid-template-columns:minmax(0,1.1fr) minmax(275px,.9fr);
  gap:clamp(24px,5vw,70px);
}
html[data-home-template="creative"] .hero-copy { max-width:720px; }
html[data-home-template="creative"] .hero h1 { font-size:clamp(42px,6.1vw,76px); line-height:.99; letter-spacing:-.065em; }
html[data-home-template="creative"] .hero .badge { border:2px solid rgba(255,255,255,.65); border-radius:5px; box-shadow:4px 4px 0 var(--gold); }
html[data-home-template="creative"] .hero-side {
  width:min(100%,360px); border:2px solid #fff; border-radius:9px;
  background:rgba(255,255,255,.13); box-shadow:9px 9px 0 var(--gold),18px 18px 0 rgba(0,0,0,.13);
  transform:rotate(1.5deg); backdrop-filter:blur(7px);
}
html[data-home-template="creative"] .hero-emblem { border-radius:5px; }
html[data-home-template="creative"] .stats { margin-top:-22px; }
html[data-home-template="creative"] .stats-grid > div { border:2px solid var(--text); border-radius:5px; box-shadow:5px 5px 0 var(--gold); }
html[data-home-template="creative"] .card { border-radius:7px; }
html[data-home-template="creative"] .section-heading h2::after { width:68px; height:5px; border-radius:0; }

@media(max-width:900px) {
  html[data-home-template="editorial"] .hero-layout,
  html[data-home-template="creative"] .hero-layout { gap:30px; }
}
@media(max-width:700px) {
  html[data-home-template="photography"] .hero { padding:58px 0 72px; }
  html[data-home-template="photography"] .hero-layout { gap:25px; }
  html[data-home-template="photography"] .hero h1 { font-size:clamp(35px,10vw,49px); }
  html[data-home-template="photography"] .hero-side { grid-template-columns:88px 1fr; padding:13px; column-gap:13px; }
  html[data-home-template="photography"] .hero-emblem-wrap { width:80px; height:80px; }
  html[data-home-template="photography"] .hero-emblem { width:67px; height:62px; }
  html[data-home-template="photography"] .hero-side-title { font-size:17px; letter-spacing:.03em; }
  html[data-home-template="photography"] .hero-side-subtitle { font-size:7px; letter-spacing:.07em; }
  html[data-home-template="photography"] .hero-values { gap:8px; font-size:8px; letter-spacing:.05em; }
  html[data-home-template="editorial"] .hero { padding:55px 0 65px; }
  html[data-home-template="editorial"] .hero-layout,
  html[data-home-template="creative"] .hero-layout { grid-template-columns:1fr; }
  html[data-home-template="editorial"] .hero-copy { padding-left:16px; }
  html[data-home-template="editorial"] .hero-side,
  html[data-home-template="creative"] .hero-side { width:min(100%,310px); margin-inline:auto; }
  html[data-home-template="editorial"] .stats { padding-top:15px; }
  html[data-home-template="creative"] .hero { padding:58px 0 70px; }
  html[data-home-template="creative"] .hero h1 { font-size:clamp(37px,10vw,54px); }
  html[data-home-template="creative"] .hero-side { transform:rotate(.6deg); }
}
@media(prefers-reduced-motion:reduce) {
  html[data-home-template="creative"] .hero-side { transform:none; }
}

/* Additional section styling for the alternate homepage templates. */
html[data-home-template="photography"] .section-heading { max-width:820px; margin-inline:auto; text-align:center; }
html[data-home-template="photography"] .section-heading h2::after { left:50%; transform:translateX(-50%); }
html[data-home-template="photography"] .section-intro { margin-inline:auto; }
html[data-home-template="photography"] .gallery figure { padding:7px; border-radius:12px; }
html[data-home-template="photography"] .gallery img { border-radius:8px; }
html[data-home-template="editorial"] .card,
html[data-home-template="editorial"] .gallery figure { border-radius:8px; box-shadow:0 7px 23px rgba(22,55,35,.055); }
html[data-home-template="editorial"] .section.alt { border-block:1px solid var(--line); }
html[data-home-template="editorial"] .section-heading h2::after { width:64px; height:4px; }
html[data-home-template="creative"] .card,
html[data-home-template="creative"] .gallery figure,
html[data-home-template="creative"] .stats-grid > div { border:2px solid var(--text); }
html[data-home-template="creative"] .card:hover { transform:translate(-2px,-2px) rotate(-.2deg); }
html[data-home-template="creative"] .section.alt { border-block:2px solid var(--text); }
html[data-home-template="creative"] .section-heading h2 { display:inline-block; padding:0 9px 13px 0; }


/* V4.6.3: transparent brand mark in public header/footer across all design themes. */
html[data-design-theme="neubrutalism"] .brand-logo,
html[data-design-theme="neubrutalism"] .footer-logo {
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
  box-shadow: none !important;
}


/* V4.6.4: keep the school mark itself transparent in every public theme.
   The image must blend into its parent surface; only the emblem artwork remains. */
.header .brand-logo,
.footer-logo {
  display: block;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}


/* V4.6.5: editable hero-logo surface fix. The pale glass surface behind the
   replaceable emblem looked like a white logo background. Keep the card subtly
   tinted green instead, and never paint a background on the uploaded image. */
.hero-side {
  background: rgba(5, 43, 30, .24) !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.hero-emblem-wrap,
.hero-emblem {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.hero-emblem {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}
html[data-design-theme="glassmorphism"] .hero-side {
  background: rgba(5, 43, 30, .24) !important;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}
html[data-design-theme="neubrutalism"] .hero-side {
  background: rgba(5, 43, 30, .30) !important;
}


/* V4.6.5 — hero logo upload surface: prevent the replaceable emblem from
   appearing inside a pale/milky box. The uploaded PNG itself remains alpha. */
.hero-side {
  background: rgba(4, 40, 28, .30) !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.hero-emblem-wrap,
.hero-emblem {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.hero-emblem {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}
html[data-design-theme="glassmorphism"] .hero-side {
  background: rgba(4, 40, 28, .30) !important;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}
html[data-design-theme="neubrutalism"] .hero-side {
  background: rgba(4, 40, 28, .34) !important;
}
.role-custom-wrap { margin-top: 10px; }


/* V4.6.10 — achievement gallery carousel: three cards visible on desktop,
   with previous/next controls and native touch scrolling on smaller screens. */
.prestasi-carousel { margin-top:24px; }
.prestasi-viewport { width:100%; overflow-x:auto; overflow-y:hidden; padding:8px 4px 19px; scrollbar-width:none; -ms-overflow-style:none; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }
.prestasi-viewport::-webkit-scrollbar { display:none; }
.prestasi-grid { display:flex; align-items:stretch; gap:18px; width:100%; margin:0; }
.prestasi-card { flex:0 0 calc((100% - 36px) / 3); min-width:0; padding:0; overflow:hidden; display:flex; flex-direction:column; scroll-snap-align:start; scroll-snap-stop:always; transition:transform .25s ease,box-shadow .25s ease; }
.prestasi-card:hover { transform:translateY(-5px); }
.prestasi-media { width:100%; aspect-ratio:4/3; overflow:hidden; background:var(--surface-raised); }
.prestasi-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.prestasi-card:hover .prestasi-media img { transform:scale(1.045); }
.prestasi-body { display:grid; gap:7px; padding:16px 17px 18px; }
.prestasi-body h3 { margin:0; color:var(--text); font-size:15px; line-height:1.4; }
.prestasi-body p { margin:0; color:var(--muted); font-size:11px; line-height:1.75; }
.prestasi-year { justify-self:start; padding:4px 9px; border-radius:999px; background:color-mix(in srgb,var(--gold) 22%,var(--surface)); color:var(--gold-text); font-size:9px; font-weight:850; letter-spacing:.05em; }
.prestasi-toolbar { margin:0 4px; }
.prestasi-toolbar .carousel-btn:disabled { opacity:.38; cursor:not-allowed; transform:none; box-shadow:none; }
html[data-home-template="photography"] .prestasi-grid { gap:15px; }
html[data-home-template="photography"] .prestasi-card { flex-basis:calc((100% - 30px) / 3); }
html[data-home-template="editorial"] .prestasi-card { border-radius:8px; box-shadow:0 7px 23px rgba(22,55,35,.055); }
html[data-home-template="creative"] .prestasi-card { border:2px solid var(--text); border-radius:7px; box-shadow:5px 5px 0 var(--gold); }
html[data-design-theme="glassmorphism"] .prestasi-card { background:color-mix(in srgb,var(--surface) 72%,transparent); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-color:color-mix(in srgb,var(--line) 65%,transparent); }
@media(max-width:800px){.prestasi-grid{gap:14px;}.prestasi-card{flex-basis:calc((100% - 14px) / 2);}html[data-home-template="photography"] .prestasi-grid{gap:14px;}html[data-home-template="photography"] .prestasi-card{flex-basis:calc((100% - 14px) / 2);}.prestasi-toolbar{align-items:center;}}
@media(max-width:520px){.prestasi-grid{gap:13px;}.prestasi-card{flex-basis:100%;}html[data-home-template="photography"] .prestasi-grid{gap:13px;}html[data-home-template="photography"] .prestasi-card{flex-basis:100%;}.prestasi-body{padding:13px 14px 15px;}.prestasi-toolbar{align-items:center;flex-direction:row;}.prestasi-toolbar .carousel-hint{display:none;}}
@media(prefers-reduced-motion:reduce){.prestasi-viewport{scroll-behavior:auto!important;}.prestasi-card,.prestasi-media img{transition:none!important}.prestasi-card:hover,.prestasi-card:hover .prestasi-media img{transform:none!important;}}

/* PHP homepage integration: match the Cloudflare homepage while keeping
   the logo and the "Belajar dan Bertumbuh" eyebrow completely steady. */
.hero-side,
.hero-emblem-wrap,
.hero-emblem-halo,
.hero-emblem,
.brand-logo,
.footer-logo,
.hero-note,
.hero-note-mark,
.hero .badge,
.hero-values span,
.program-eyebrow {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}
.hero-side { background: rgba(4,40,28,.30); }
.hero-emblem-wrap,
.hero-emblem { background: transparent !important; background-color: transparent !important; background-image: none !important; }
.hero-emblem { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; object-fit: contain; }
.program-eyebrow { display: inline-block; }

/* News cards */
.news-grid { align-items: stretch; }
.news-card { min-width: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-cover { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-raised); }
.news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-content { padding: 17px 19px 19px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; }
.news-meta span { color: var(--gold-text, var(--gold)); font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.news-content h3 { margin: 10px 0 7px; font-size: 15px; }
.news-content p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

/* Clickable photo surfaces remain transparent and keep the same card styling. */
.gallery-image-button,
.prestasi-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}
.gallery-image-button img { transition: transform .45s ease; }
.gallery-image-button:hover img { transform: scale(1.04); }
.prestasi-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-raised); }
.prestasi-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.teacher-bio { max-width: 100%; color: var(--muted); font-size: 10px !important; line-height: 1.65 !important; }
.ppdb-contact-empty { border: 1px dashed var(--line); border-radius: 13px; padding: 19px; color: var(--muted); background: var(--surface-raised); font-size: 11px; }

/* Do not let any text label wobble or pulse. Scroll reveals remain one-time only. */
.program-eyebrow,
.section-heading .eyebrow,
.hero-note,
.hero-note-mark,
.hero-side-title,
.hero-side-subtitle,
.hero-values span { animation: none !important; transform: none !important; }

@media (max-width: 800px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-content { padding: 15px; }
  .contact-card { min-height: 0; }
}

/* Achievement carousel controls sit beside the section title, not detached below the cards. */
.achievement-heading { max-width:none; display:flex; align-items:flex-end; justify-content:space-between; gap:18px; }
.achievement-heading-copy { min-width:0; max-width:760px; }
.achievement-heading .prestasi-toolbar { flex:0 0 auto; margin:0 0 3px; }
.achievement-heading .prestasi-toolbar .carousel-status { display:none; }
@media(max-width:700px) {
  .achievement-heading { align-items:flex-start; flex-direction:column; gap:12px; }
  .achievement-heading .prestasi-toolbar { align-self:flex-end; }
}


/* PHP homepage sync V1.2: lightbox must be a modal, never a visible block after footer. */
.lightbox {
  position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center;
  padding:24px; background:rgba(5,17,11,.90); color:#fff; opacity:0; visibility:hidden;
  transition:opacity .18s ease, visibility .18s ease;
}
.lightbox[hidden] { display:none !important; }
.lightbox.open { display:flex; opacity:1; visibility:visible; }
.lightbox figure { margin:0; width:min(100%,1100px); display:grid; justify-items:center; gap:12px; }
.lightbox figure img { display:block; max-width:100%; max-height:82vh; width:auto; height:auto; object-fit:contain; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.35); }
.lightbox figcaption { color:rgba(255,255,255,.9); font-size:13px; text-align:center; }
.lightbox button { position:absolute; display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:44px; height:44px; min-width:44px; min-height:44px; padding:0 !important; margin:0; border:1px solid rgba(255,255,255,.28); border-radius:50%; background:rgba(255,255,255,.12); color:#fff; font-family:Arial,sans-serif; font-size:27px; font-weight:400; line-height:1 !important; text-align:center; cursor:pointer; backdrop-filter:blur(8px); }
.lightbox button:hover { background:rgba(255,255,255,.23); }
.lightbox .lightbox-close { top:20px; right:20px; font-size:30px; }
.lightbox .lightbox-prev { left:20px; top:50%; transform:translateY(-50%); }
.lightbox .lightbox-next { right:20px; top:50%; transform:translateY(-50%); }
@media(max-width:600px) {
  .lightbox { padding:14px; }
  .lightbox figure img { max-height:74vh; }
  .lightbox .lightbox-prev { left:8px; }
  .lightbox .lightbox-next { right:8px; }
  .lightbox .lightbox-close { top:10px; right:10px; }
}


/* Cloudflare V4.6 parity: optional admin-managed hero image and PPDB detail cards */
.hero.has-photo-background {
  background-image: linear-gradient(115deg, rgba(7, 39, 28, .88), rgba(14, 76, 52, .78)), var(--hero-photo);
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.ppdb-info-grid { margin-top: 22px; align-items: stretch; }
.ppdb-info-grid .card { height: 100%; }
.ppdb-info-grid ul { color: var(--muted); font-size: 12px; line-height: 1.9; }
.ppdb-info-grid li { margin-bottom: 7px; }


/* Program detail cards and accessible information modal. */
.program-card { padding:0; overflow:hidden; }
.program-open { display:flex; width:100%; height:100%; min-height:190px; flex-direction:column; align-items:center; justify-content:flex-start; gap:10px; padding:24px 20px 21px; border:0; border-radius:inherit; background:transparent; color:inherit; font:inherit; text-align:center; cursor:pointer; }
.program-open:focus-visible { outline:3px solid var(--gold); outline-offset:-5px; }
.program-open .icon { margin:0; }
.program-card-title { color:var(--text); font-size:15px; font-weight:850; line-height:1.4; }
.program-card-text { color:var(--muted); font-size:11px; line-height:1.75; }
.program-card-more { margin-top:auto; padding-top:5px; color:var(--gold-text,var(--gold)); font-size:10px; font-weight:850; letter-spacing:.04em; }
.program-open:hover .program-card-more { text-decoration:underline; }
.program-modal[hidden] { display:none !important; }
.program-modal { position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:22px; }
.program-modal-backdrop { position:absolute; inset:0; background:rgba(5,17,11,.78); backdrop-filter:blur(5px); }
.program-modal-panel { position:relative; z-index:1; width:min(100%,720px); max-height:min(88vh,850px); overflow:auto; border:1px solid var(--line); border-radius:22px; background:var(--surface); color:var(--text); box-shadow:0 28px 90px rgba(0,0,0,.32); }
.program-modal-close { position:absolute; z-index:2; top:12px; right:12px; display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:40px; height:40px; min-width:40px; min-height:40px; padding:0 !important; margin:0; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--text); font-family:Arial,sans-serif; font-size:27px; font-weight:400; line-height:1 !important; text-align:center; cursor:pointer; }
.program-modal-image { display:block; width:100%; max-height:300px; aspect-ratio:16/7; object-fit:cover; background:var(--surface-raised); }
.program-modal-content { padding:27px clamp(20px,5vw,42px) 34px; }
.program-modal-icon { margin-bottom:12px; font-size:32px; }
.program-modal-content .eyebrow { display:block; margin-bottom:8px; color:var(--gold-text,var(--gold)); font-size:9px; font-weight:900; letter-spacing:.14em; }
.program-modal-content h2 { margin:0 48px 10px 0; color:var(--text); font-size:clamp(22px,4vw,30px); line-height:1.25; }
.program-modal-summary { margin:0 0 17px; color:var(--muted); font-size:13px; line-height:1.8; }
.program-modal-detail { color:var(--text); font-size:12px; line-height:1.9; white-space:pre-line; overflow-wrap:anywhere; }
body.program-modal-open { overflow:hidden; }
@media(max-width:520px) { .program-modal { padding:10px; } .program-modal-panel { max-height:92vh; border-radius:17px; } .program-modal-image { aspect-ratio:16/9; max-height:220px; } .program-modal-content { padding:22px 19px 26px; } .program-open { min-height:170px; padding:19px 15px; } }
@media(prefers-reduced-motion:reduce) { .program-modal-panel { scroll-behavior:auto; } }


/* Facility cards reuse the program card rhythm with a dedicated photo crop. */
.facility-card .facility-card-image{display:block;width:100%;height:150px;margin:-24px -20px 4px;overflow:hidden;background:var(--surface-raised)}
.facility-card .facility-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.facility-card .facility-open:hover .facility-card-image img{transform:scale(1.04)}
.facility-card .facility-open{overflow:hidden}
@media(max-width:520px){.facility-card .facility-card-image{height:135px;margin:-19px -15px 3px}}
