﻿/* ============================================================
   Kiko public-site theme - token-driven (per-tenant overridable).
   Defaults = Kiko Academy palette.
   ============================================================ */
:root {
    --primary: #5B49B6;
    --accent:  #F39C12;
    --dark:    #1C1F3A;

    --bg:      #F7F8FC;
    --bg-2:    #E6E8F1;
    --text:    #1C1F3A;
    --muted:   #5b6472;
    --white:   #ffffff;

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 18px 40px -24px rgba(28, 31, 58, .35);
    --container: 1180px;
    --font:      'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; /* anchors land clear of the sticky header */ }
::selection { background: var(--accent); color: var(--dark); }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--dark); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* -- Buttons ----------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; border: 2px solid transparent; border-radius: 999px;
    padding: .7rem 1.5rem; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-size: .95rem; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { box-shadow: 0 12px 24px -10px var(--primary); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { box-shadow: 0 12px 24px -10px var(--accent); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* -- Header / nav ------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--dark) 94%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 10px 30px -22px rgba(0,0,0,.65);
}
.nav-bar { display: flex; align-items: center; gap: 1.75rem; min-height: 76px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; padding: .35rem 0; }
.brand-logo { height: 46px; width: auto; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; flex-wrap: nowrap; }
.nav-links > a, .nav-drop > a {
    display: inline-flex; align-items: center; gap: .3rem;
    color: #eef0fa; font-weight: 500; font-size: .92rem; white-space: nowrap;
    padding: .5rem .7rem; border-radius: 9px;
    transition: color .15s, background .15s;
}
.nav-links > a:hover, .nav-drop > a:hover, .nav-drop:focus-within > a { color: #fff; background: rgba(255,255,255,.09); }
.nav-links a.btn { padding: .5rem 1.15rem; margin-left: .4rem; }
.nav-links a.btn:hover { color: var(--dark); background: var(--accent); }
/* icon-only entries (search) render as a tidy circle */
.nav-links > a.nav-icon { padding: .5rem; border-radius: 50%; font-size: 1rem; }
.nav-toggle, .nav-toggle-label { display: none; }

/* -- Hero -------------------------------------------------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(28,31,58,.92) 0%, rgba(28,31,58,.72) 45%, rgba(91,73,182,.45) 100%); }
.hero-content { position: relative; color: #fff; max-width: 760px; padding-top: 4rem; padding-bottom: 4rem; }
.hero-pill { display: inline-flex; align-items: center; background: rgba(243,156,18,.18); color: var(--accent);
    border: 1px solid rgba(243,156,18,.5); padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero-content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.5px; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,.85); margin: 1.25rem 0 2rem; max-width: 620px; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

/* -- Admissions strip -------------------------------------- */
.admissions-strip { background: linear-gradient(90deg, var(--primary), #6f5cd6); color: #fff; }
.admissions-strip .container { display: flex; align-items: center; gap: 1.25rem; padding: .9rem 1.25rem; flex-wrap: wrap; }
.admissions-strip span { font-weight: 600; }
.admissions-strip .deadline { background: rgba(255,255,255,.15); padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; }
.admissions-strip .btn { margin-left: auto; }

/* -- Sections ---------------------------------------------- */
.section { padding: 5rem 0; }
.section-muted { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: .75rem; }

/* -- Grid -------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* -- Program cards ----------------------------------------- */
.program-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s ease; }
.program-card:hover { transform: translateY(-6px); }
.program-img { height: 180px; background-size: cover; background-position: center; }
.program-body { padding: 1.4rem; }
.program-level { color: var(--accent); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.program-body h3 { font-size: 1.25rem; margin: .35rem 0 .6rem; }
.program-body p { color: var(--muted); font-size: .95rem; }

/* -- Feature cards ----------------------------------------- */
.feature-card { background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); }
.feature-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(91,73,182,.12); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 1.1rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .92rem; }

/* -- Stats band -------------------------------------------- */
.stats-band { background: var(--primary); color: #fff; padding: 3.5rem 0; }
.stats-band .stat { text-align: center; }
.stat-value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.stat-label { color: rgba(255,255,255,.8); font-weight: 500; margin-top: .25rem; }

/* -- About ------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-body h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: .5rem 0 1rem; }
.about-body p { color: var(--muted); margin-bottom: 1.5rem; }

/* -- CTA band ---------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--accent), #ffb648); color: var(--dark); text-align: center; padding: 4.5rem 0; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-band p { margin: .75rem 0 1.75rem; font-weight: 500; font-size: 1.1rem; }
.cta-band .btn-accent { background: var(--dark); color: #fff; }

/* -- Contact cards ----------------------------------------- */
.contact-card { background: var(--white); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.contact-card i { font-size: 1.8rem; color: var(--primary); }
.contact-card h3 { font-size: 1.1rem; margin: .75rem 0 .35rem; }
.contact-card p { color: var(--muted); }

/* -- Footer ------------------------------------------------ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75);
    border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.25rem; }
.footer-logo { height: 56px; margin-bottom: 1rem; }
.footer-motto { font-size: .95rem; max-width: 320px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a { display: block; color: rgba(255,255,255,.7); margin-bottom: .5rem; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { margin-bottom: .5rem; font-size: .92rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; margin: 0; }
.socials a:hover { background: var(--accent); color: var(--dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .85rem; text-align: center; }
.me-1 { margin-right: .25rem; } .me-2 { margin-right: .5rem; } .ms-1 { margin-left: .25rem; }

/* -- Forms / Apply ----------------------------------------- */
.page-banner { background: var(--dark); color: #fff; padding: 3.5rem 0; text-align: center; }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-banner p { color: rgba(255,255,255,.8); margin-top: .5rem; }
.form-wrap { max-width: 760px; }
.form-card, .confirm-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; }
.form-section-title { font-size: 1.1rem; color: var(--primary); margin: 1.75rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--bg-2); }
.form-section-title:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .25rem; }
.field label { font-weight: 600; font-size: .88rem; color: var(--dark); }
.field .req { color: var(--accent); }
.field input, .field select {
    border: 1.5px solid var(--bg-2); border-radius: var(--radius-sm); padding: .7rem .9rem;
    font-family: inherit; font-size: .95rem; color: var(--text); background: #fff; transition: border-color .15s; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { margin-top: 2rem; text-align: right; }
.form-alert { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.25rem; font-size: .92rem; }
.confirm-card { text-align: center; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(46,160,67,.12); color: #2ea043;
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 1.25rem; }
.ref-pill { display: inline-block; background: var(--bg-2); color: var(--primary); font-weight: 700; font-size: 1.25rem;
    letter-spacing: 1px; padding: .6rem 1.5rem; border-radius: 999px; margin: .75rem 0 1.25rem; }
.muted { color: var(--muted); }

/* -- Floating chat widget ---------------------------------- */
.chat-widget { position: fixed; right: 75px; bottom: 13px; z-index: 1000; }
.chat-toggle { position: absolute; opacity: 0; pointer-events: none; }
.chat-bubble { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: var(--dark);
    font-weight: 600; padding: .8rem 1.25rem; border-radius: 999px; cursor: pointer;
    box-shadow: 0 12px 30px -8px rgba(28,31,58,.45); transition: transform .15s ease; }
.chat-bubble:hover { transform: translateY(-2px); }
.chat-bubble i { font-size: 1.25rem; }
.chat-panel { display: none; position: absolute; right: 0; bottom: 0; width: 350px; max-width: calc(100vw - 40px);
    background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 28px 70px -24px rgba(28,31,58,.55); }
.chat-toggle:checked ~ .chat-panel { display: block; }
.chat-toggle:checked ~ .chat-bubble { display: none; }
.chat-panel-head { background: var(--dark); color: #fff; padding: .9rem 1.1rem; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between; }
.chat-panel-close { cursor: pointer; font-size: 1.5rem; line-height: 1; }
.chat-panel-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; max-height: 70vh; overflow-y: auto; }
.chat-row { display: flex; gap: .6rem; }
.chat-input { border: 1.5px solid var(--bg-2); border-radius: 10px; padding: .6rem .75rem; font-family: inherit; font-size: .9rem; width: 100%; color: var(--text); }
.chat-input:focus { outline: none; border-color: var(--primary); }
.chat-hint { font-size: .75rem; color: var(--muted); margin: .25rem 0 0; text-align: center; }
.w-100 { width: 100%; }

/* inline chat thread inside the bubble */
.chat-messages { height: 320px; max-height: 50vh; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; background: var(--bg); }
.kc-msg { max-width: 80%; border-radius: 14px; padding: .5rem .75rem; font-size: .9rem; line-height: 1.4; }
.kc-them { align-self: flex-start; background: #fff; border: 1px solid var(--bg-2); color: var(--text); }
.kc-mine { align-self: flex-end; background: var(--primary); color: #fff; }
.kc-who { font-size: .7rem; opacity: .7; margin-bottom: .15rem; }
.chat-compose { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--bg-2); }
.chat-compose .chat-input { margin: 0; }
.chat-ended { padding: .85rem 1rem; border-top: 1px solid var(--bg-2); background: #EEF0F7; color: #555; font-size: .85rem; text-align: center; }

/* -- Responsive -------------------------------------------- */
/* The nav carries a dozen entries - below ~1200px they can't share one row with the
   brand, so the hamburger takes over well before tablet widths (the old 768px cut-off
   left a broken, wrapping bar between 768 and 1200). */
@media (max-width: 1199.98px) {
    .nav-toggle-label { display: block; color: #fff; font-size: 1.7rem; cursor: pointer; margin-left: auto; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        background: var(--dark); padding: 1rem 1.25rem 1.5rem; gap: .35rem; align-items: stretch;
        max-height: calc(100vh - 76px); overflow-y: auto;
        border-bottom: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 30px 50px -20px rgba(0,0,0,.55);
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links > a, .nav-drop > a { padding: .6rem .75rem; }
    .nav-links a.btn { margin: .5rem 0 0; justify-content: center; }
    /* Touch has no hover - expand dropdowns inline within the collapsed menu instead. */
    .nav-drop { display: block; width: 100%; }
    .nav-drop > a i { display: none; }
    .nav-drop-menu { display: block; position: static; background: transparent; box-shadow: none;
        min-width: 0; padding: .25rem 0 .25rem 1.25rem; }
    .nav-drop-menu a { color: #f3f4fb !important; padding: .45rem .5rem; border-radius: 8px; }
    .nav-drop-menu a:hover { background: rgba(255,255,255,.07); color: var(--accent) !important; }
}
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .about-media { order: -1; }
}
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .admissions-strip .btn { margin-left: 0; }
}
@media (max-width: 560px) {
    .grid-4 { grid-template-columns: 1fr; }
}

/* -- Public Website CMS (notices + gallery) ------------------------------- */
.page-hero { background: linear-gradient(135deg, var(--primary), var(--dark)); color: #fff; padding: 4.5rem 0 2.5rem; }
.page-hero h1 { margin: 0 0 .35rem; }
.page-hero .muted, .page-hero p { color: rgba(255, 255, 255, .8); }

.notice-list { display: flex; flex-direction: column; gap: 1rem; max-width: 860px; margin: 0 auto; }
.notice-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; padding: 1.1rem 1.4rem; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.notice-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.notice-card h3 { margin: .3rem 0 .2rem; font-size: 1.1rem; }
.notice-card p { margin: 0; font-size: .92rem; }
.notice-card-arrow { color: var(--accent); font-size: 1.2rem; }
.notice-meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; flex-wrap: wrap; }
.badge-pill { display: inline-block; background: rgba(0, 0, 0, .06); border-radius: 999px; padding: .15rem .65rem; font-size: .75rem; font-weight: 600; }
.badge-accent { background: var(--accent); color: #fff; }
.page-hero .badge-pill { background: rgba(255, 255, 255, .18); color: #fff; }

.notice-detail { max-width: 760px; }
.notice-detail p { line-height: 1.75; margin-bottom: 1rem; }
.notice-cover { width: 100%; border-radius: 14px; margin-bottom: 1.5rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-card { display: block; background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .12); }
.gallery-card .gallery-card-img-wrap { overflow: hidden; }
.gallery-card img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card-empty { height: 180px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .05); font-size: 2rem; color: rgba(0, 0, 0, .3); }
.gallery-card-body { padding: .9rem 1.1rem; }
.gallery-card-body h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.gallery-card-body p { margin: 0; font-size: .85rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.photo-tile { margin: 0; }
.photo-tile a { display: block; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.photo-tile img { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; display: block; transition: transform .35s ease; }
.photo-tile a:hover img { transform: scale(1.05); }
.photo-tile figcaption { font-size: .82rem; color: rgba(0, 0, 0, .55); margin-top: .35rem; }

/* -- Lightbox (gallery album; wired by site.js) -- */
.lightbox { position: fixed; inset: 0; background: rgba(12, 14, 28, .93); z-index: 300;
    display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 2.5rem 1rem; }
.lightbox img { max-width: 94vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 40px 90px rgba(0,0,0,.6); }
.lightbox-caption { color: rgba(255,255,255,.85); font-size: .92rem; margin-top: 1rem; text-align: center; max-width: 80ch; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: #fff;
    font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .8; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12);
    border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.notice-card-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.section-alt { background: rgba(0, 0, 0, .025); }
.home-notices { margin-top: 1rem; }

/* -- CMS pages (W2-B): blocks, nav dropdowns, announcements --------------- */
.breadcrumb-trail { font-size: .85rem; margin-bottom: .6rem; opacity: .85; }
.breadcrumb-trail a { color: inherit; text-decoration: none; }
.breadcrumb-trail span { margin: 0 .3rem; }

.cms-prose { max-width: 820px; margin: 0 auto; line-height: 1.75; }
.cms-prose h2 { margin: 1.4rem 0 .6rem; }
.cms-prose h3 { margin: 1.1rem 0 .5rem; }
.cms-prose p { margin-bottom: 1rem; }
.cms-prose ul, .cms-prose ol { margin: 0 0 1rem 1.4rem; }
.cms-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cms-prose th, .cms-prose td { border: 1px solid rgba(0,0,0,.12); padding: .5rem .75rem; text-align: left; }

.cms-imagetext { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.cms-imagetext.image-right img { order: 2; }
.cms-imagetext img { width: 100%; border-radius: 14px; }
@media (max-width: 760px) { .cms-imagetext { grid-template-columns: 1fr; } .cms-imagetext.image-right img { order: 0; } }

.cms-video { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; max-width: 900px; margin: 0 auto; }
.cms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.nav-drop { position: relative; display: inline-block; }
.nav-drop > a i { font-size: .7rem; }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.14); padding: .4rem 0; z-index: 60; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: .5rem 1rem; color: #222 !important; }
.nav-drop-menu a:hover { background: rgba(0,0,0,.05); }

.announce-bar { background: var(--accent); color: #fff; font-size: .88rem; padding: .45rem 0; text-align: center; }
.announce-bar a { color: #fff; text-decoration: underline; }

.announce-popup { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 200; }
.announce-popup-card { background: #fff; border-radius: 16px; max-width: 420px; width: calc(100% - 2rem); padding: 2rem; text-align: center; position: relative; }
.announce-popup-close { position: absolute; top: .5rem; right: .8rem; border: 0; background: none; font-size: 1.6rem; cursor: pointer; }
.announce-popup-icon { font-size: 2rem; color: var(--accent); }

/* -- W2-C: events + downloads -- */
.event-list { display: flex; flex-direction: column; gap: 1rem; }
.event-card { display: flex; align-items: center; gap: 1.25rem; background: #fff; border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px; padding: 1rem 1.25rem; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease; }
.event-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.event-date-chip { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px; background: var(--primary);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-date-day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-month { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.event-date-past { background: #6b7280; }
.event-card-thumb { flex: 0 0 auto; width: 88px; height: 64px; object-fit: cover; border-radius: 10px; }
.event-card-body { flex: 1; min-width: 0; }
.event-card-body h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.event-card-body p { margin: 0; font-size: .88rem; }
.event-list-past .event-card { opacity: .85; }
.download-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.download-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px; padding: .85rem 1.1rem; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease; }
.download-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.download-icon { font-size: 1.6rem; color: var(--primary); }
.download-body { flex: 1; min-width: 0; }
.download-body h3 { margin: 0; font-size: 1rem; }
.download-body p { margin: 0; font-size: .8rem; }

/* -- W2-C slice 2: team, testimonials, logos, hero slider, faq -- */
/* Team page: groups flow as CENTERED rows of fixed-width cards - a section with one or
   two people reads as a deliberate feature, not a broken grid clinging to the left. */
.team-group { margin-bottom: 4rem; }
.team-group:last-child { margin-bottom: 0; }
.team-group-title { text-align: center; font-size: 1.5rem; margin-bottom: 2rem; }
.team-group-title::after { content: ""; display: block; width: 52px; height: 4px; border-radius: 2px;
    background: var(--accent); margin: .65rem auto 0; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.team-card { flex: 0 1 260px; background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: var(--radius);
    overflow: hidden; text-align: center; box-shadow: 0 12px 32px -26px rgba(28,31,58,.5);
    transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team-photo-empty { display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #eef1f8, #e2e6f2); color: #a5aec2; font-size: 3rem; }
.team-body { padding: 1.15rem 1.2rem 1.4rem; }
.team-body h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.team-role { display: inline-block; color: var(--primary); background: rgba(91,73,182,.09);
    font-weight: 600; font-size: .78rem; padding: .2rem .7rem; border-radius: 999px; margin: 0 0 .5rem; }
.team-bio { font-size: .85rem; margin: .45rem 0 0; display: -webkit-box; -webkit-line-clamp: 4;
    -webkit-box-orient: vertical; overflow: hidden; }
.testimonial-card { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 1.5rem; margin: 0; }
.testimonial-card blockquote { margin: 0 0 1rem; font-style: italic; color: #374151; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.logo-strip { padding: 2rem 0; background: #fff; border-top: 1px solid rgba(0,0,0,.05); }
.logo-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem; }
.logo-strip img { height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-strip img:hover { filter: none; opacity: 1; }
.hero-slider { position: relative; }
/* Every slide is a full-bleed flex layer (image + overlay absolute within it); the ACTIVE one
   becomes position:relative so it gives the section its height - but it must keep the hero's
   own sizing (full width + min-height + centered content), otherwise it collapses to the
   content box and the cover image only paints that small rectangle. */
.hero-slider .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
    pointer-events: none; display: flex; align-items: center; overflow: hidden; }
.hero-slider .hero-slide.active { opacity: 1; pointer-events: auto; position: relative;
    width: 100%; min-height: 86vh; }
.hero-dots { position: absolute; bottom: 1.25rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: .9rem 1.1rem; }
.faq-item summary { font-weight: 600; cursor: pointer; }
.faq-item p { margin: .6rem 0 0; color: #4b5563; }

/* -- W2-D: program pages + term dates -- */
.program-card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.program-card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.1); }
.grade-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.program-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.program-fact { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 1.1rem 1.25rem; }
.program-fact h3 { font-size: 1rem; margin: 0 0 .4rem; color: var(--primary); }
.program-fact p { margin: 0; color: #4b5563; }
.termdates-program { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
.termdates-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; overflow: hidden; }
.termdates-table td { padding: .6rem .9rem; border-bottom: 1px solid rgba(0,0,0,.05); }
.termdates-table tr:last-child td { border-bottom: 0; }
.termdates-table td.fw { font-weight: 600; width: 40%; }

/* -- W2-E: search + lang toggle -- */
.search-form { display: flex; gap: .6rem; max-width: 560px; margin-top: .75rem; }
.search-input { flex: 1; }
.lang-toggle { font-weight: 700; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; padding: .15rem .5rem !important; }
