/* Channah Kiddies School — public website styles */
:root {
  --red: #AB0A12;
  --red-500: #C8141E;
  --red-50: #FDECEC;
  --blue: #3B3A8F;
  --blue-600: #2F2E7A;
  --navy: #1E1D4E;
  --blue-50: #EEF0FA;
  --sun: #FFC93C;
  --ink: #1F2140;
  --muted: #5F6385;
  --line: #E3E5F1;
  --bg: #FFFFFF;
  --soft: #F7F8FD;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(30, 29, 78, .25);
  --shadow-sm: 0 4px 14px -6px rgba(30, 29, 78, .2);
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
svg { fill: currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 800; font-size: .98rem; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; text-decoration: none; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(171, 10, 18, .6); }
.btn-red:hover { background: var(--red-500); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(59, 58, 143, .6); }
.btn-blue:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { color: var(--red); box-shadow: var(--shadow); }
.btn-outline-white { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.link-arrow { font-weight: 800; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform .15s; }

/* Top bar & header */
.topbar { background: var(--navy); color: #d9dbf3; font-size: .86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--sun); }
.topbar svg { width: 15px; height: 15px; }
.topbar-contacts { display: flex; gap: 20px; }
.topbar-portal { background: var(--red); padding: 5px 14px; border-radius: 999px; font-weight: 800; }
.topbar-portal:hover { color: #fff !important; background: var(--red-500); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand img { width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--head); font-size: 1.35rem; color: var(--blue); font-weight: 800; }
.brand-text small { font-family: var(--head); font-size: .95rem; color: var(--red); font-weight: 700; letter-spacing: .32em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); font-weight: 700; padding: 8px 12px; border-radius: 10px; font-size: .97rem; }
.nav a:hover { color: var(--red); background: var(--red-50); }
.nav a.active { color: var(--blue); background: var(--blue-50); }
.nav a.nav-cta { color: #fff; margin-left: 8px; padding: 10px 20px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--red-500); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--navy); transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Alerts */
.flash-wrap { padding-top: 16px; }
.alert { display: block; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-weight: 600; border: 1px solid; }
.alert-success { background: #ECFDF3; border-color: #ABEFC6; color: #085D3A; }
.alert-error { background: #FEF3F2; border-color: #FECDCA; color: #912018; }
.alert-info { background: var(--blue-50); border-color: #C9CCF0; color: var(--navy); }
.alert-warning { background: #FFFAEB; border-color: #FEDF89; color: #93370D; }
.alert-close { float: right; margin-left: 12px; background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }

/* Slider */
.slider { position: relative; overflow: hidden; background: var(--navy); }
.slides { position: relative; aspect-ratio: 16 / 6.4; max-height: 600px; min-height: 260px; width: 100%; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide-cap { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(20, 19, 56, .78) 0%, rgba(20, 19, 56, .45) 45%, rgba(20, 19, 56, 0) 70%); }
.slide-cap .wrap { color: #fff; }
.slide-cap h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 3.1rem); max-width: 620px; margin-bottom: .3em; text-shadow: 0 2px 16px rgba(0, 0, 0, .25); transform: translateY(16px); opacity: 0; transition: .7s .25s; }
.slide-cap p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 520px; opacity: 0; transform: translateY(16px); transition: .7s .4s; margin-bottom: 18px; }
.slide-cap .btn { opacity: 0; transition: .7s .55s; }
.slide.is-active .slide-cap h2, .slide.is-active .slide-cap p, .slide.is-active .slide-cap .btn { opacity: 1; transform: none; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(20, 19, 56, .35); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; z-index: 2; }
.slider-btn:hover { background: var(--red); border-color: var(--red); }
.slider-btn svg { width: 26px; height: 26px; }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.slider-dots button.is-active { width: 34px; background: #fff; }
.slider-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .15); z-index: 2; }
.slider-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #ff6b72); }
.slider-progress span.run { width: 100%; transition: width linear; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff 0%, var(--blue-50) 100%); padding: 64px 0 90px; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(171, 10, 18, .12), transparent 70%); }
.blob-2 { width: 420px; height: 420px; left: -160px; bottom: -160px; background: radial-gradient(circle, rgba(59, 58, 143, .14), transparent 70%); }
.hero-dots { position: absolute; width: 140px; left: 46%; top: 30px; color: rgba(59, 58, 143, .18); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; font-weight: 800; color: var(--red); font-size: .9rem; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(171, 10, 18, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(171, 10, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(171, 10, 18, 0); } }
.hero h1 { color: var(--navy); }
.hero h1::after { content: ''; display: block; width: 90px; height: 7px; border-radius: 6px; background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%); margin-top: 18px; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; color: var(--navy); }
.hero-points span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .75rem; margin-right: 6px; }
.hero-visual { position: relative; }
.hero-art { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(30, 29, 78, .18)); }
.hero-photo { border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 16px 10px 10px; border-radius: 16px; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--head); color: var(--navy); line-height: 1.1; }
.float-card small { color: var(--muted); font-weight: 600; }
.float-card-1 { left: -10px; bottom: 40px; }
.float-card-2 { right: 0; top: 30px; animation-delay: -2.5s; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.fc-red { background: var(--red); }
.fc-blue { background: var(--blue); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 80px 0; }
.section-head { margin-bottom: 40px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { color: var(--muted); }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head.split h2 { margin-bottom: 0; }
.kicker { display: inline-block; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: 8px; }
.kicker::before { content: ''; display: inline-block; width: 22px; height: 3px; background: var(--red); border-radius: 3px; vertical-align: middle; margin-right: 8px; }
.prose { color: #3d4163; }
.prose p:last-child { margin-bottom: 0; }

.features { padding-top: 0; margin-top: -50px; position: relative; z-index: 2; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); border-bottom: 4px solid var(--blue); transition: transform .2s; }
.feature:nth-child(odd) { border-bottom-color: var(--red); }
.feature:hover { transform: translateY(-6px); }
.feature h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.feature-icon svg { width: 28px; height: 28px; }
.fi-red { background: var(--red-50); color: var(--red); }
.fi-blue { background: var(--blue-50); color: var(--blue); }

.welcome-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.welcome-visual { position: relative; }
.welcome-frame { background: radial-gradient(circle at 30% 30%, #fff, var(--blue-50)); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 14%; border: 12px solid #fff; box-shadow: var(--shadow), 0 0 0 2px var(--line); position: relative; }
.welcome-frame::before { content: ''; position: absolute; inset: -30px; border-radius: 50%; border: 3px dashed rgba(171, 10, 18, .3); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.welcome-badge { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; white-space: nowrap; font-size: .92rem; box-shadow: var(--shadow); }
.welcome-badge strong { color: var(--sun); }
.head-quote { margin: 24px 0; padding: 20px 24px; background: var(--soft); border-left: 5px solid var(--red); border-radius: 0 16px 16px 0; }
.head-quote p { font-style: italic; color: var(--navy); margin-bottom: 8px; }
.head-quote footer { font-weight: 800; color: var(--blue); }
.head-quote footer span { font-weight: 600; color: var(--muted); }

.programmes { background: var(--soft); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 30px; }
.prog { border-radius: 24px; padding: 30px; color: #fff; position: relative; overflow: hidden; min-height: 260px; box-shadow: var(--shadow); }
.prog h3 { color: #fff; font-size: 1.5rem; }
.prog p { opacity: .92; margin: 0; }
.prog-1 { background: linear-gradient(145deg, var(--red-500), var(--red)); }
.prog-2 { background: linear-gradient(145deg, #4C4BA8, var(--blue)); }
.prog-3 { background: linear-gradient(145deg, #2B2A6E, var(--navy)); }
.prog-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.prog-top svg { width: 64px; height: 64px; fill: rgba(255, 255, 255, .22); }
.prog-age { background: rgba(255, 255, 255, .18); padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; }

.stats { background: linear-gradient(90deg, var(--red), var(--blue)); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--head); font-size: 2.6rem; line-height: 1; }
.stat span { opacity: .9; font-weight: 700; }

.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.activity { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; transition: .2s; position: relative; overflow: hidden; }
.activity::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--ac); opacity: .07; }
.activity:hover { border-color: var(--ac); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.activity-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--ac); color: #fff; margin-bottom: 14px; }
.activity-icon svg { width: 26px; height: 26px; }
.activity h3 { margin-bottom: 4px; }
.activity p { margin: 0; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.mosaic-item { border-radius: 16px; overflow: hidden; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic-item:hover img { transform: scale(1.06); }
.mosaic-item.m1 { grid-column: span 2; grid-row: span 2; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); display: block; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), var(--red-50)); }
.post-card-img img.placeholder-logo, .placeholder-logo { width: 38%; height: auto; object-fit: contain; opacity: .85; margin: auto; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 { font-size: 1.2rem; }
.post-card-body h3 a { color: var(--navy); }
.post-card-body p { color: var(--muted); font-size: .95rem; }
.post-card-body .link-arrow { margin-top: auto; }
.meta { color: var(--muted); font-size: .86rem; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.meta svg { width: 15px; height: 15px; color: var(--red); }
.tag { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; color: #fff; background: var(--blue); }
.tag-event { background: var(--red); }
.album-body .tag { position: static; display: inline-block; margin-bottom: 6px; }

.portal-band { background: var(--red); background-image: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .14) 0 120px, transparent 121px), radial-gradient(circle at 10% 120%, rgba(59, 58, 143, .55) 0 200px, transparent 201px); color: #fff; padding: 60px 0; }
.portal-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.portal-band h2 { color: #fff; margin-bottom: 8px; }
.portal-band p { opacity: .92; max-width: 620px; margin: 0; }
.portal-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; background: var(--navy); background-image: linear-gradient(120deg, var(--navy) 0%, var(--blue) 70%, #5150b5 100%); color: #fff; padding: 56px 0 64px; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 34%, var(--blue) 34%); }
.page-hero h1 { color: #fff; margin: 4px 0 6px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { opacity: .88; font-size: 1.1rem; max-width: 640px; margin: 0; }
.page-hero-deco { position: absolute; right: -40px; top: -40px; width: 260px; color: rgba(255, 255, 255, .07); }
.crumbs { font-size: .88rem; font-weight: 700; opacity: .85; display: flex; gap: 8px; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--sun); }

/* About */
.mv-stack { display: grid; gap: 18px; }
.mv { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.mv h3 { margin-bottom: 4px; }
.mv p { margin: 0; color: var(--muted); }
.mv-icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.mv-icon svg { width: 26px; height: 26px; }
.mv-red .mv-icon { background: var(--red); }
.mv-blue .mv-icon { background: var(--blue); }
.values-sec { background: var(--soft); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.value { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; border: 2px solid var(--line); }
.value:nth-child(odd) .value-num { color: var(--red); }
.value-num { display: block; font-family: var(--head); font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.value strong { font-family: var(--head); font-size: 1.2rem; color: var(--navy); }
.head-card { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; }
.head-photo { aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, var(--blue-50), var(--red-50)); display: grid; place-items: center; box-shadow: var(--shadow); border: 8px solid #fff; }
.head-photo img { width: 100%; height: 100%; object-fit: cover; }
.head-photo img.placeholder-logo { width: 60%; height: auto; }
.signature { font-family: var(--head); font-size: 1.3rem; color: var(--navy); font-weight: 800; margin-top: 14px; }
.signature small { display: block; font-family: var(--body); font-size: .9rem; color: var(--red); font-weight: 700; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-grid > div { padding: 24px; border-radius: var(--radius); background: var(--soft); border-top: 4px solid var(--blue); }
.why-grid > div:nth-child(even) { border-top-color: var(--red); }
.why-grid p { color: var(--muted); margin: 0; }

/* Academics */
.acad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acad-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.acad-card p { color: var(--muted); }
.acad-card ul { padding: 0; margin: 0; list-style: none; }
.acad-card li { padding: 6px 0 6px 28px; position: relative; font-weight: 700; color: var(--navy); }
.acad-card li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: .75rem; }
.acad-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.tag-red { background: var(--red); }
.tag-blue { background: var(--blue); }
.approach { background: var(--soft); }
.approach-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 20px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 18px 62px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.steps li:nth-child(even)::before { background: var(--red); }
.steps strong { display: block; font-family: var(--head); font-size: 1.15rem; color: var(--navy); }
.steps span { color: var(--muted); }
.class-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 8px 18px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 800; }
.chip:nth-child(3n+1) { background: var(--red-50); color: var(--red); }

/* Forms */
.two-col { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: start; }
.card { background: #fff; border-radius: 22px; padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 600; color: var(--ink); padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 58, 143, .12); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-note { font-size: .85rem; color: var(--muted); }
.note-card { background: var(--blue-50); border-radius: 14px; padding: 16px 18px; color: var(--navy); }

/* Contact */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.contact-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: var(--ink); box-shadow: var(--shadow-sm); }
.contact-card small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; }
.contact-card strong { color: var(--navy); word-break: break-word; font-size: .95rem; }
.cc-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.cc-icon svg { width: 22px; height: 22px; }
.cc-red { background: var(--red); }
.cc-blue { background: var(--blue); }
.hours { color: var(--muted); }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Gallery */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.album { display: block; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: .2s; color: var(--ink); }
.album:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.album-cover { display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--blue-50), var(--red-50)); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover img.placeholder-logo { width: 40%; height: auto; }
.album-body { display: block; padding: 16px 20px 20px; }
.album-body strong { display: block; font-family: var(--head); font-size: 1.2rem; color: var(--navy); }
.album-body small { color: var(--muted); font-weight: 700; }
.photo-grid { columns: 3 260px; column-gap: 14px; }
.photo { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; position: relative; break-inside: avoid; }
.photo img { width: 100%; transition: transform .35s; }
.photo:hover img { transform: scale(1.04); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; color: #fff; font-weight: 700; font-size: .88rem; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.lightbox { position: fixed; inset: 0; background: rgba(15, 15, 40, .92); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 30px; flex-direction: column; gap: 12px; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 12px; }
.lightbox p { color: #fff; font-weight: 700; margin: 0; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state img { margin: 0 auto 16px; }

/* News */
.tabs-inline { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs-inline a { padding: 8px 18px; border-radius: 999px; font-weight: 800; background: var(--soft); color: var(--navy); border: 2px solid var(--line); }
.tabs-inline a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); font-weight: 800; }
.pager a.active { background: var(--blue); color: #fff; }
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.article-img { border-radius: 20px; margin-bottom: 24px; width: 100%; }
.article .prose { font-size: 1.07rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.event-meta div { background: var(--blue-50); border-radius: 14px; padding: 12px 18px; }
.event-meta div:first-child { background: var(--red-50); }
.event-meta small { display: block; color: var(--muted); font-weight: 700; }
.event-meta strong { color: var(--navy); }
.more { background: var(--soft); border-radius: 20px; padding: 22px; position: sticky; top: 100px; }
.more-item { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
.more-item:last-child { border-bottom: 0; }
.more-item small { display: block; color: var(--red); font-weight: 700; }

/* Footer */
.footer { background: var(--navy); color: #c9cbe8; position: relative; margin-top: 0; }
.footer-wave { height: 8px; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding: 56px 20px 40px; }
.footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 14px; }
.footer a { color: #e3e4f7; }
.footer a:hover { color: var(--sun); }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #ff9ea3; }
.brand-badge { background: #fff; border-radius: 14px; padding: 6px; display: inline-flex; }
.brand-badge img { width: 50px; }
.footer-about { margin-top: 16px; font-size: .93rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .94rem; }
.footer-contact svg { flex: 0 0 18px; width: 18px; height: 18px; color: #ff9ea3; margin-top: 3px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .87rem; text-align: center; }

/* Error page */
.error-page { background: linear-gradient(160deg, #fff, var(--blue-50)); min-height: 100vh; }
.error-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.error-logo { margin-bottom: 20px; }
.error-code { font-size: 5rem; margin: 0; background: linear-gradient(90deg, var(--red), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .welcome-grid, .two-col, .approach-grid, .head-card, .article-wrap { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 80px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .feature-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .prog-grid, .acad-grid, .post-grid, .album-grid, .activity-grid { grid-template-columns: 1fr 1fr; }
  .welcome-visual { max-width: 380px; margin: 0 auto 30px; }
  .head-card { gap: 24px; }
  .head-photo { max-width: 300px; }
  .more { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .slides { aspect-ratio: 4 / 3; }
  .slide-cap { align-items: flex-end; padding-bottom: 46px; background: linear-gradient(0deg, rgba(20, 19, 56, .85) 0%, rgba(20, 19, 56, .4) 55%, rgba(20, 19, 56, 0) 85%); }
  .slider-btn { display: none; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .topbar-contacts { gap: 12px; }
  .brand img { width: 50px; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text small { font-size: .8rem; }
  .header-inner { min-height: 68px; }
  .feature-grid, .why-grid, .prog-grid, .acad-grid, .post-grid, .album-grid, .activity-grid, .grid-2, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .float-card { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card { padding: 22px; }
  .welcome-badge { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Launching soon / maintenance page */
.soon-page { min-height: 100vh; background: var(--navy); background-image: radial-gradient(circle at 85% 10%, rgba(171, 10, 18, .65) 0 220px, transparent 221px), radial-gradient(circle at 5% 95%, rgba(59, 58, 143, .9) 0 320px, transparent 321px); }
.soon { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; }
.soon-card { background: #fff; border-radius: 28px; max-width: 640px; width: 100%; padding: 44px 36px; text-align: center; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); border-top: 8px solid var(--red); }
.soon-logo { margin: 0 auto 18px; }
.soon-card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.soon-lead { color: var(--muted); font-size: 1.08rem; }
.soon-contacts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 14px; }
.soon-note { font-size: .9rem; color: var(--muted); margin: 0; }
.soon-foot { color: rgba(255, 255, 255, .7); margin-top: 22px; font-size: .88rem; }
@media (max-width: 600px) { .soon-card { padding: 32px 20px; } .soon-contacts .btn { flex: 1 1 100%; } }

/* ---- 1.5.0: online admissions ---- */
.app-form fieldset { border: 0; border-top: 2px solid var(--line); margin: 0 0 8px; padding: 18px 0 0; }
.app-form legend { font-family: var(--head); font-weight: 800; color: var(--navy); font-size: 1.05rem; padding: 0 10px 0 0; }
.app-form legend small { font-family: var(--body, inherit); font-weight: 600; color: var(--muted); font-size: .8rem; }
.app-form input[type=file] { padding: 10px; font-weight: 600; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-line input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.app-no { font-family: var(--head); font-weight: 800; font-size: 2.4rem; color: var(--blue); letter-spacing: .04em; margin: 6px 0 12px; }
.track { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; counter-reset: t; }
.track li { counter-increment: t; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.track li::before { content: counter(t); display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: var(--soft); border: 2px solid var(--line); font-weight: 800; }
.track li.done::before { content: '✓'; background: var(--blue); border-color: var(--blue); color: #fff; }
.track li.now::before { background: var(--red); border-color: var(--red); color: #fff; }
.track li.now { color: var(--navy); }
@media (max-width: 560px) { .track { grid-template-columns: 1fr; text-align: left; } .track li { display: flex; align-items: center; gap: 10px; text-align: left; } .track li::before { margin: 0; } }
