/* Public school / college website. Colours and font come from Website settings:
   --p (primary), --s (secondary), --font. Layout = body.layout-classic | layout-modern | layout-minimal */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --p-soft: color-mix(in srgb, var(--p) 10%, white);
  --p-dark: color-mix(in srgb, var(--p) 75%, black);
  --radius: 14px;
}
body { font-family: var(--font); color: var(--ink); background: #fff; }
a { color: var(--p); }
h1, h2, h3, h4, h5 { letter-spacing: -.01em; }

.preview-bar { background: #fef3c7; color: #92400e; text-align: center; padding: .45rem; font-size: .9rem; }
.preview-bar a { color: #92400e; font-weight: 700; }

/* Announcement ticker */
.announce { background: var(--s); color: #fff; overflow: hidden; white-space: nowrap; font-size: .9rem; font-weight: 600; }
.announce-track { display: inline-block; padding: .4rem 0; animation: ticker 22s linear infinite; padding-left: 100%; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; padding-left: 1rem; } }

.topline { background: var(--p-dark); color: rgba(255, 255, 255, .85); padding: .35rem 0; }
.topline a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.topline a:hover { color: #fff; }

/* Navbar */
.site-nav { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15, 23, 42, .04); padding: .7rem 0; }
.site-nav .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .8rem !important; border-radius: 8px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--p); background: var(--p-soft); }
.navbar-toggler { border: 0; color: var(--ink); }
.site-logo { height: 46px; width: auto; max-width: 140px; object-fit: contain; }
.logo-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--p); color: #fff; font-weight: 800; font-size: 1.3rem; }
.brand-name { font-weight: 800; color: var(--ink); line-height: 1.1; display: block; max-width: 330px; white-space: normal; }
.brand-tag { font-size: .75rem; color: var(--muted); }

/* Buttons */
.btn-site { background: var(--p); color: #fff; border: 0; font-weight: 600; border-radius: 10px; padding: .55rem 1.1rem; }
.btn-site:hover { background: var(--p-dark); color: #fff; }
.btn-outline-site { border: 2px solid var(--p); color: var(--p); font-weight: 600; border-radius: 10px; }
.btn-outline-site:hover { background: var(--p); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .45); font-weight: 600; border-radius: 10px; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Hero (shared) */
.hero { position: relative; color: #fff; }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
.hero .lead { font-size: 1.2rem; opacity: .92; max-width: 640px; }
.hero-chip { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; margin-bottom: 1rem; }
.hero-actions { margin-top: 1.6rem; }
.hero-art { aspect-ratio: 4 / 3; border-radius: 24px; display: grid; place-items: center; font-size: 7rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.eyebrow { color: var(--p); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: .4rem; }
.text-secondary { color: var(--muted) !important; }
.pill { background: var(--p-soft); color: var(--p); font-weight: 700; font-size: .75rem; border-radius: 999px; padding: .2rem .7rem; }

.card-site { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; color: var(--ink); text-decoration: none; }
a.card-site:hover, .card-site:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .08); color: var(--ink); }
.notice-img { width: calc(100% + 2.8rem); margin: -1.4rem -1.4rem 1rem; height: 170px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

.stats-strip { margin-top: -50px; position: relative; z-index: 2; }
.stat-box { background: #fff; border-radius: var(--radius); padding: 1.3rem; display: flex; gap: 1rem; align-items: center; box-shadow: 0 14px 34px rgba(15, 23, 42, .1); }
.stat-box i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); font-size: 1.5rem; flex-shrink: 0; }
.stat-box .n { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-box .l { color: var(--muted); font-size: .85rem; }

.events-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.event-card { display: flex; gap: 1rem; align-items: center; background: var(--p-soft); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--ink); }
.event-date { background: var(--p); color: #fff; border-radius: 12px; width: 62px; text-align: center; padding: .4rem 0; font-size: .8rem; text-transform: uppercase; font-weight: 700; flex-shrink: 0; }
.event-date span { display: block; font-size: 1.5rem; line-height: 1; }

.about-art { aspect-ratio: 4 / 3; border-radius: 24px; background: linear-gradient(135deg, var(--p-soft), color-mix(in srgb, var(--s) 15%, white)); display: grid; place-items: center; text-align: center; color: var(--p); font-size: 1.2rem; }
.about-art i { font-size: 5rem; }

.facility { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); height: 100%; }
.facility-ico { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto .9rem; display: grid; place-items: center; background: var(--p-soft); color: var(--p); font-size: 1.7rem; flex-shrink: 0; }

.principal { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: center; background: #fff; border-radius: 24px; padding: 2.5rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.principal-photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: var(--p-soft); display: grid; place-items: center; color: var(--p); font-size: 5rem; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--p); }
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.principal-photo.sm { width: 64px; height: 64px; font-size: 1.8rem; border-width: 3px; box-shadow: 0 0 0 2px var(--p); }
.principal blockquote { color: #334155; }
@media (max-width: 767px) { .principal { grid-template-columns: 1fr; text-align: center; padding: 1.6rem; } .principal-photo { margin: 0 auto; width: 140px; height: 140px; } }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; transition: transform .2s; }
.gallery-grid a:hover img { transform: scale(1.03); }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-txt { display: grid; place-items: center; background: var(--p); color: #fff; font-weight: 700; }

.cta-band { background: linear-gradient(120deg, var(--p), var(--p-dark)); color: #fff; padding: 50px 0; }

.page-head { background: linear-gradient(120deg, var(--p), var(--p-dark)); color: #fff; padding: 56px 0; }
.page-head a { color: #fff; }
.page-body p { line-height: 1.8; }

.site-footer { background: #0f172a; color: #e2e8f0; padding: 60px 0 26px; }
.site-footer h6 { font-weight: 700; color: #fff; margin-bottom: 1rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .45rem; }

.form-control, .form-select { border-radius: 10px; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--p); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--p) 20%, transparent); }

/* ===== Layout: Classic - full-width photo banner, centred text ===== */
.layout-classic .hero {
  background: linear-gradient(rgba(15, 23, 42, .62), rgba(15, 23, 42, .62)), var(--hero-img, linear-gradient(120deg, var(--p), var(--p-dark)));
  background-size: cover; background-position: center; padding: 120px 0 130px; text-align: center;
}
.layout-classic .hero-text { width: 100%; }
.layout-classic .hero .lead { margin: 0 auto; }
.layout-classic .hero-actions { justify-content: center; }
.layout-classic .hero-media { display: none; }

/* ===== Layout: Modern - split banner, image on the right, rounded everything ===== */
.layout-modern { --radius: 22px; }
.layout-modern .hero { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--s) 45%, transparent), transparent 40%), linear-gradient(135deg, var(--p), var(--p-dark)); padding: 90px 0 120px; }
.layout-modern .hero-text { flex: 0 0 auto; width: 55%; }
.layout-modern .hero-media { flex: 0 0 auto; width: 45%; }
.layout-modern .hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); transform: rotate(1.5deg); }
.layout-modern .site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.layout-modern .btn-site, .layout-modern .btn-outline-site, .layout-modern .btn-ghost { border-radius: 999px; }
.layout-modern .facility { background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.layout-modern .section-alt { background: var(--p-soft); }
@media (max-width: 991px) { .layout-modern .hero-text, .layout-modern .hero-media { width: 100%; } }

/* ===== Layout: Minimal - white, large type, thin lines ===== */
.layout-minimal { --radius: 6px; }
.layout-minimal .hero { color: var(--ink); background: #fff; padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.layout-minimal .hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
.layout-minimal .hero h1::after { content: ""; display: block; width: 80px; height: 6px; background: var(--s); margin-top: 1.2rem; border-radius: 3px; }
.layout-minimal .hero .lead { color: var(--muted); opacity: 1; }
.layout-minimal .hero-text { width: 62%; }
.layout-minimal .hero-media { width: 38%; }
.layout-minimal .hero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; filter: grayscale(.15); }
.layout-minimal .hero-art { background: var(--soft); border-color: var(--line); color: var(--p); }
.layout-minimal .hero-chip { background: var(--soft); border-color: var(--line); color: var(--ink); }
.layout-minimal .btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.layout-minimal .stats-strip { margin-top: 0; padding-top: 40px; }
.layout-minimal .stat-box { box-shadow: none; border: 1px solid var(--line); }
.layout-minimal .section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.layout-minimal .card-site:hover { transform: none; box-shadow: none; border-color: var(--p); }
.layout-minimal .page-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.layout-minimal .page-head a { color: var(--p); }
.layout-minimal .cta-band { background: var(--ink); }
@media (max-width: 991px) { .layout-minimal .hero-text, .layout-minimal .hero-media { width: 100%; } }

/* Video lessons */
.video-card { overflow: hidden; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #0f172a; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--p); font-size: 1.9rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.vbadge { position: absolute; top: 10px; left: 10px; border-radius: 6px; padding: .2rem .55rem; font-size: .75rem; font-weight: 700; }
.vbadge.free { background: #16a34a; color: #fff; }
.vbadge.paid { background: var(--s); color: #fff; }
.vbadge.owned { background: #0ea5e9; color: #fff; }
.lock-screen { aspect-ratio: 16 / 9; background-size: cover; background-position: center; color: #fff; display: grid; place-items: center; padding: 1.5rem; }
.lock-ico { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--s); font-size: 2rem; }
