/* =====================================================
   Little Child Care School — Modern Frontend
   Fonts: Hind Siliguri (Bangla) / fallback Noto Sans Bengali
   Brand: Navy #2f2d72 · Red #d53531 · Gold #e8a33d
   ===================================================== */

:root {
    /* Palette sampled from the school crest:
       indigo-navy #2f2d72 and the warm vermillion red #d53531.
       Amber is the complement that keeps the indigo from feeling cold. */
    --navy: #2f2d72;
    --navy-dark: #232159;
    --navy-deep: #16143d;
    --navy-bright: #4a47a3;
    --red: #d53531;
    --red-soft: #ea5a4f;
    --red-dark: #ab2622;
    --gold: #e8a33d;
    --gold-soft: #f7c366;
    --teal: #12876a;
    --teal-soft: #2fbf97;
    --ink: #232338;
    --muted: #6b6a86;
    --line: #e7e6f2;
    --bg-soft: #f6f5fb;
    --white: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 2px 10px rgba(35, 33, 89, 0.07);
    --shadow-md: 0 12px 34px rgba(35, 33, 89, 0.11);
    --shadow-lg: 0 24px 60px rgba(22, 20, 61, 0.18);
    --font: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 1.02rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.28s ease;
    line-height: 1.4;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(213, 53, 49, 0.35);
}
.btn-red:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(213, 53, 49, 0.45); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: var(--navy-dark);
    box-shadow: 0 10px 24px rgba(232, 163, 61, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(232, 163, 61, 0.5); }
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 22px; font-size: 0.95rem; }

/* ---------- Section heading system ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.section-label::before {
    content: '';
    width: 28px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
}
.section-head.center .section-label::after {
    content: '';
    width: 28px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red));
}
.section-title {
    font-size: clamp(1.75rem, 3.4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy-dark);
}
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Top bar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--navy-dark) 0%, var(--navy) 60%, #3a3785 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    position: relative;
    z-index: 60;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    flex-wrap: wrap;
    padding: 4px 0;
}
.topbar-contacts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--gold-soft); flex: none; }
.topbar-item a:hover { color: var(--gold-soft); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-login {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.25s;
}
.topbar-login:hover { background: var(--gold); color: var(--navy-dark); }
.topbar-login svg { width: 14px; height: 14px; }

/* ---------- Navbar ---------- */
.navbar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { width: 54px; height: 54px; flex: none; }
.brand-name { line-height: 1.25; }
.brand-name .bn {
    display: block;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--navy-dark);
}
.brand-name .en {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--red);
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li > a {
    display: block;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 1.01rem;
    color: var(--ink);
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
    position: relative;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--red); background: #fdf0ef; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2.4px; border-radius: 2px; background: var(--navy); transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    color: #fff;
    background: var(--navy-deep);
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center 25%;
    z-index: -2;
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(16, 20, 55, 0.55) 0%, rgba(16, 20, 55, 0.2) 40%, rgba(16, 20, 55, 0.6) 100%),
        linear-gradient(75deg, rgba(16, 20, 55, 0.97) 0%, rgba(9, 30, 68, 0.9) 38%, rgba(10, 34, 76, 0.62) 68%, rgba(10, 34, 76, 0.42) 100%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding: 84px 0 150px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--gold-soft);
    margin-bottom: 22px;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 6px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.3);
}
.hero h1 .accent { color: var(--gold-soft); }
.hero-en-name {
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    letter-spacing: 4.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 20px;
}
.hero-sub {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin-bottom: 26px;
}
.hero-motto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gold-soft);
    border-inline-start: 3px solid var(--gold);
    padding: 4px 0 4px 14px;
    margin-bottom: 34px;
    font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero glass card */
.hero-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 30px 30px 22px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    justify-self: end;
    width: 100%;
}
.hero-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #fff;
}
.hero-card h3 svg { width: 20px; height: 20px; color: var(--gold-soft); }
.hero-card ul li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.9);
}
.hero-card ul li:last-child { border-bottom: 0; }
.hero-card ul li svg { width: 17px; height: 17px; margin-top: 5px; color: var(--gold-soft); flex: none; }
.hero-card ul li b { color: #fff; font-weight: 600; }

/* Hero bottom wave */
.hero-wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Notice ticker ---------- */
.ticker {
    background: linear-gradient(90deg, #f2b855 0%, var(--gold-soft) 55%, #fbd88f 100%);
    color: var(--navy-deep);
    position: relative;
    z-index: 5;
}
.ticker-inner { display: flex; align-items: stretch; min-height: 52px; }
.ticker-label {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--navy-dark);
    color: #fff;
    font-weight: 700;
    padding: 0 22px;
    white-space: nowrap;
    font-size: 0.97rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-inline-end: 34px;
}
.ticker-label svg { width: 17px; height: 17px; color: var(--gold-soft); animation: ring 2.2s ease-in-out infinite; transform-origin: top center; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(12deg);} 70% { transform: rotate(-10deg);} 75% { transform: rotate(8deg);} 80% { transform: rotate(-6deg);} 85% { transform: rotate(0);} }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move {
    display: inline-flex;
    gap: 56px;
    white-space: nowrap;
    padding-inline-start: 24px;
    animation: tickerMove 34s linear infinite;
    font-weight: 600;
}
.ticker-move:hover { animation-play-state: paused; }
.ticker-move a { display: inline-flex; align-items: center; gap: 9px; color: var(--navy-dark); }
.ticker-move a:hover { text-decoration: underline; }
.ticker-move a::before { content: '•'; color: var(--red); font-size: 1.4rem; line-height: 0; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 6; padding: 58px 0 8px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    padding: 26px 22px;
    display: flex;
    align-items: center;
    gap: 17px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-icon {
    width: 58px; height: 58px; flex: none;
    display: grid; place-items: center;
    border-radius: 15px;
    color: #fff;
}
.stat-icon svg { width: 27px; height: 27px; }
.stat-icon.i1 { background: linear-gradient(135deg, #2f2d72, #4a47a3); }
.stat-icon.i2 { background: linear-gradient(135deg, #d53531, #ee7469); }
.stat-icon.i3 { background: linear-gradient(135deg, #d18f28, #f7c366); }
.stat-icon.i4 { background: linear-gradient(135deg, #12876a, #2fbf97); }
.stat-num { font-size: 1.85rem; font-weight: 700; color: var(--navy-dark); line-height: 1.2; }
.stat-label { color: var(--muted); font-weight: 500; font-size: 0.97rem; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-media { position: relative; }
.about-media .photo-main {
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    width: 88%;
    aspect-ratio: 4 / 3.1;
    object-fit: cover;
}
.about-media .photo-sub {
    position: absolute;
    right: 0; bottom: -46px;
    width: 52%;
    aspect-ratio: 1 / 1.05;
    object-fit: cover;
    border-radius: 18px;
    border: 6px solid #fff;
    box-shadow: var(--shadow-lg);
}
.about-exp {
    position: absolute;
    top: 26px; right: 12px;
    background: linear-gradient(135deg, var(--red), var(--red-soft));
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 14px 30px rgba(213, 53, 49, 0.4);
}
.about-exp .num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.about-exp .txt { font-size: 0.82rem; font-weight: 600; opacity: 0.95; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 26px 0 32px; }
.about-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-weight: 600; color: var(--ink); font-size: 0.99rem;
}
.about-list li svg { width: 21px; height: 21px; color: #fff; background: linear-gradient(135deg, #12876a, #2fbf97); border-radius: 50%; padding: 4px; flex: none; margin-top: 3px; }
.about-foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.about-head-sign { display: flex; align-items: center; gap: 12px; }
.about-head-sign .avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--bg-soft);
    display: grid; place-items: center;
    color: var(--navy); border: 1.5px solid var(--line);
}
.about-head-sign .avatar svg { width: 24px; height: 24px; }
.about-head-sign .who b { display: block; color: var(--navy-dark); line-height: 1.35; }
.about-head-sign .who span { font-size: 0.87rem; color: var(--muted); }

/* ---------- Notice board ---------- */
.notice-section { background: var(--bg-soft); position: relative; overflow: hidden; }
.notice-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 163, 61, 0.15), transparent 65%);
}
.notice-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 34px;
    align-items: start;
}
/* Mission/objective main column + notice board sidebar */
.mission-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 34px;
    align-items: start;
}
.mission-block + .mission-block { margin-top: 40px; }
.mission-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}
.mission-head .mh-icon {
    width: 52px; height: 52px; flex: none;
    border-radius: 15px;
    display: grid; place-items: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.mission-head .mh-icon svg { width: 25px; height: 25px; }
.mission-head.goal .mh-icon { background: linear-gradient(135deg, #2f2d72, #4a47a3); }
.mission-head.aim .mh-icon { background: linear-gradient(135deg, #d53531, #ee7469); }
.mission-head h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.35;
}
.mission-intro {
    color: var(--muted);
    font-size: 1.04rem;
    margin-bottom: 20px;
    padding-inline-start: 67px;
}
.mission-list { display: grid; gap: 13px; }
.mission-list li {
    background: #fff;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--gold);
    border-radius: 13px;
    padding: 15px 20px;
    display: flex;
    gap: 13px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
}
.mission-block.aim-block .mission-list li { border-inline-start-color: var(--red); }
.mission-list li:hover { transform: translateX(5px); box-shadow: var(--shadow-md); }
.mission-list li > svg {
    width: 22px; height: 22px; flex: none; margin-top: 3px;
    color: var(--gold);
}
.mission-block.aim-block .mission-list li > svg { color: var(--red); }
.mission-list li b { color: var(--navy-dark); font-weight: 700; }
.mission-list li span { color: var(--muted); font-size: 0.99rem; }

/* Notice board sidebar variant */
.side-notice .side-card-body { padding: 6px 18px 16px; }
.side-notice-list li {
    display: flex;
    gap: 13px;
    padding: 13px 2px;
    border-bottom: 1px dashed var(--line);
}
.side-notice-list li:last-child { border-bottom: 0; }
.side-notice-date {
    flex: none;
    width: 52px; height: 52px;
    background: linear-gradient(160deg, var(--navy) 0%, #3d3a8e 100%);
    color: #fff;
    border-radius: 11px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    line-height: 1.1;
}
.side-notice-date .d { font-size: 1.15rem; font-weight: 700; }
.side-notice-date .m { font-size: 0.65rem; font-weight: 600; opacity: 0.88; }
.side-notice-body { min-width: 0; flex: 1; }
.side-notice-body a {
    display: block;
    font-weight: 600;
    color: var(--navy-dark);
    font-size: 0.97rem;
    line-height: 1.5;
}
.side-notice-body a:hover { color: var(--red); }
.side-notice-body .meta {
    display: flex; align-items: center; gap: 6px;
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 600;
}
.side-notice-body .meta svg { width: 12px; height: 12px; }
.side-notice-foot { padding: 14px 18px; border-top: 1px solid var(--line); text-align: center; }
.side-notice-foot a {
    font-weight: 600; color: var(--navy);
    display: inline-flex; align-items: center; gap: 7px;
}
.side-notice-foot a:hover { color: var(--red); }
.side-notice-foot svg { width: 15px; height: 15px; }
.side-empty { text-align: center; color: var(--muted); padding: 26px 6px; font-size: 0.96rem; }
.notice-list { display: flex; flex-direction: column; gap: 16px; }
.notice-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
    position: relative;
}
.notice-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: rgba(213, 53, 49, 0.25); }
.notice-date {
    flex: none;
    width: 68px; height: 68px;
    background: linear-gradient(160deg, var(--navy) 0%, #3d3a8e 100%);
    color: #fff;
    border-radius: 14px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    line-height: 1.15;
    box-shadow: 0 8px 18px rgba(35, 33, 89, 0.3);
}
.notice-date .d { font-size: 1.45rem; font-weight: 700; }
.notice-date .m { font-size: 0.78rem; font-weight: 600; opacity: 0.85; }
.notice-body { flex: 1; min-width: 0; }
.notice-body h4 { font-size: 1.08rem; font-weight: 700; color: var(--navy-dark); line-height: 1.45; }
.notice-body h4 a:hover { color: var(--red); }
.notice-meta { display: flex; gap: 14px; align-items: center; margin-top: 5px; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.notice-meta .chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fdf0ef; color: var(--red);
    font-weight: 600;
    border-radius: 30px;
    padding: 1.5px 12px;
    font-size: 0.8rem;
}
.notice-meta .chip svg { width: 12px; height: 12px; }
.badge-new {
    position: absolute;
    top: -9px; inset-inline-end: 16px;
    background: linear-gradient(135deg, var(--red), var(--red-soft));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 14px rgba(213, 53, 49, 0.4);
}
.notice-download {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--bg-soft);
    color: var(--navy);
    border: 1.5px solid var(--line);
    transition: all 0.25s;
}
.notice-download:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.notice-download svg { width: 19px; height: 19px; }
.notice-more { margin-top: 26px; }

/* Notice sidebar */
.side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.side-card-head {
    background: linear-gradient(120deg, var(--navy-dark), var(--navy));
    color: #fff;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex; align-items: center; gap: 10px;
}
.side-card-head svg { width: 18px; height: 18px; color: var(--gold-soft); }
.side-card-body { padding: 10px 22px 18px; }
.quick-links li { border-bottom: 1px dashed var(--line); }
.quick-links li:last-child { border-bottom: 0; }
.quick-links a {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 2px;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s, padding-inline-start 0.2s;
}
.quick-links a:hover { color: var(--red); padding-inline-start: 8px; }
.quick-links a svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: 0.97rem; }
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 600; color: var(--ink); }
.hours .time { color: var(--muted); }
.hours .off { color: var(--red); font-weight: 600; }

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    inset-inline-start: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red), var(--gold));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 62px; height: 62px;
    border-radius: 16px;
    display: grid; place-items: center;
    margin-bottom: 20px;
    color: #fff;
}
.feature-icon svg { width: 29px; height: 29px; }
.fi-1 { background: linear-gradient(135deg, #2f2d72, #4a47a3); }
.fi-2 { background: linear-gradient(135deg, #d53531, #ee7469); }
.fi-3 { background: linear-gradient(135deg, #d18f28, #f7c366); }
.fi-4 { background: linear-gradient(135deg, #12876a, #2fbf97); }
.fi-5 { background: linear-gradient(135deg, #6b3fa0, #9a76d8); }
.fi-6 { background: linear-gradient(135deg, #b06a2c, #e0a86e); }
.feature-card h3 { font-size: 1.14rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Classes ---------- */
.classes-section { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.class-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 20px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.class-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.class-card .glyph {
    width: 56px; height: 56px;
    margin: 0 auto 13px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1;
}
.class-card h4 { font-weight: 700; color: var(--navy-dark); font-size: 1.08rem; }
.class-card span { font-size: 0.85rem; color: var(--muted); }
.cg-1 { background: linear-gradient(135deg, #e05c86, #f2a6bf); }
.cg-2 { background: linear-gradient(135deg, #d18f28, #f7c366); }
.cg-3 { background: linear-gradient(135deg, #12876a, #2fbf97); }
.cg-4 { background: linear-gradient(135deg, #4a47a3, #8b88d6); }
.cg-5 { background: linear-gradient(135deg, #6b3fa0, #9a76d8); }
.cg-6 { background: linear-gradient(135deg, #d53531, #ee7469); }
.cg-7 { background: linear-gradient(135deg, #0e7490, #38bdf8); }
.cg-8 { background: linear-gradient(135deg, #b06a2c, #e0a86e); }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 18px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item { cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item .zoom-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-dark);
    display: grid; place-items: center;
    opacity: 0;
    transition: 0.35s;
    z-index: 3;
    box-shadow: var(--shadow-md);
}
.gallery-item .zoom-badge svg { width: 22px; height: 22px; }
.gallery-item:hover .zoom-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(22, 20, 61, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item figcaption {
    position: absolute;
    bottom: 14px; inset-inline-start: 18px;
    color: #fff; font-weight: 600;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.4s;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- CTA ---------- */
.cta {
    position: relative;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14) 0, transparent 28%),
        radial-gradient(circle at 88% 80%, rgba(255, 255, 255, 0.12) 0, transparent 30%),
        linear-gradient(118deg, var(--navy) 0%, var(--navy-dark) 42%, var(--red-dark) 105%);
    color: #fff;
    border-radius: 26px;
    padding: 58px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    flex-wrap: wrap;
    box-shadow: 0 26px 60px rgba(35, 33, 89, 0.32);
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    right: -70px; top: -70px;
    width: 240px; height: 240px;
    border: 34px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, 0.88); max-width: 520px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta .btn-call {
    background: rgba(255, 255, 255, 0.13);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}
.cta .btn-call:hover { background: #fff; color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 34px;
    align-items: stretch;
}
.contact-cards { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
    display: flex;
    gap: 17px;
    align-items: flex-start;
    transition: transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .cc-icon {
    width: 50px; height: 50px; flex: none;
    border-radius: 13px;
    display: grid; place-items: center;
    color: #fff;
}
.contact-card .cc-icon svg { width: 23px; height: 23px; }
.contact-card h4 { font-weight: 700; color: var(--navy-dark); font-size: 1.05rem; margin-bottom: 2px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 0.98rem; }
.contact-card a:hover { color: var(--red); }
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    min-height: 340px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer {
    background:
        radial-gradient(circle at 85% 10%, rgba(74, 71, 163, 0.25) 0, transparent 40%),
        linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    color: rgba(255, 255, 255, 0.82);
    padding: 74px 0 0;
    margin-top: 96px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--navy) 100%);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr;
    gap: 44px;
    padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand .bn { font-size: 1.15rem; font-weight: 700; color: #fff; display: block; line-height: 1.3; }
.footer-brand .en { font-size: 0.68rem; letter-spacing: 1.4px; color: var(--gold-soft); font-weight: 600; text-transform: uppercase; }
.footer p.about { font-size: 0.95rem; margin-bottom: 18px; }
.footer-motto {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--gold-soft);
    padding: 5px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}
.footer h4 {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0; inset-inline-start: 0;
    width: 34px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.96rem;
    transition: color 0.2s, padding-inline-start 0.2s;
}
.footer-links a::before { content: '›'; color: var(--gold-soft); font-weight: 700; }
.footer-links a:hover { color: var(--gold-soft); padding-inline-start: 5px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-soft); flex: none; margin-top: 5px; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: 0.25s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.footer-bottom a { color: var(--gold-soft); font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 18, 40, 0.94);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(1100px, 94vw);
    height: 100%;
    max-height: 100%;
}
.lightbox-counter {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1px;
    flex: none;
}
.lightbox-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.lightbox-stage img.swapping { opacity: 0; transform: scale(0.97); }
.lightbox-caption {
    flex: none;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.02rem;
    padding: 0 20px;
    min-height: 1.6em;
}
.lb-btn {
    position: absolute;
    width: 50px; height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(6, 18, 40, 0.55);
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
    z-index: 4;
}
.lb-btn:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.lb-btn svg { width: 21px; height: 21px; }
.lb-prev { inset-inline-start: -66px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: -66px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-close { top: 12px; inset-inline-end: 12px; width: 42px; height: 42px; }
.lb-close svg { width: 17px; height: 17px; }
.lightbox-thumbs {
    flex: none;
    display: flex;
    gap: 9px;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 4px 4px;
    scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumbs img {
    width: 66px; height: 46px;
    object-fit: cover;
    border-radius: 7px;
    opacity: 0.45;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.25s, border-color 0.25s;
    flex: none;
}
.lightbox-thumbs img:hover { opacity: 0.85; }
.lightbox-thumbs img.active { opacity: 1; border-color: var(--gold); }
body.lb-open { overflow: hidden; }

@media (max-width: 900px) {
    .lb-prev { inset-inline-start: 8px; }
    .lb-next { inset-inline-end: 8px; }
    .lb-btn { width: 42px; height: 42px; }
    .lightbox-caption { font-size: 0.94rem; }
    .lightbox-thumbs img { width: 54px; height: 38px; }
}


/* ---------- Gallery page ---------- */
.page-hero.with-photo {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
}
.page-hero.with-photo::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../img/page-hero.jpg');
    background-size: cover;
    background-position: center 40%;
}
.page-hero.with-photo::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 20, 55, 0.86) 0%, rgba(9, 30, 68, 0.78) 55%, rgba(16, 20, 55, 0.92) 100%);
}
.page-hero.with-photo .container { position: relative; z-index: 2; }
.page-hero .lead {
    color: rgba(255, 255, 255, 0.82);
    max-width: 620px;
    margin: 12px auto 0;
}

.album-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.album-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 40px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.97rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.album-chip .count {
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 0 9px;
    transition: all 0.25s ease;
}
.album-chip:hover { transform: translateY(-2px); border-color: rgba(213, 53, 49, 0.4); color: var(--red); }
.album-chip.active {
    background: linear-gradient(135deg, var(--navy) 0%, #3d3a8e 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(35, 33, 89, 0.28);
}
.album-chip.active .count { background: rgba(255, 255, 255, 0.2); color: #fff; }

.album-block + .album-block { margin-top: 56px; }
.album-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.album-head .ah-icon {
    width: 46px; height: 46px; flex: none;
    border-radius: 13px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-soft));
}
.album-head .ah-icon svg { width: 22px; height: 22px; }
.album-head h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.3;
}
.album-head .ah-count { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.album-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

/* Masonry-ish photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.photo-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: var(--bg-soft);
}
.photo-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.photo-tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(22, 20, 61, 0.72) 100%);
    opacity: 0;
    transition: opacity 0.35s;
}
.photo-tile:hover img { transform: scale(1.08); }
.photo-tile:hover::after { opacity: 1; }
.photo-tile .tile-cap {
    position: absolute;
    left: 14px; right: 14px; bottom: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.35s;
}
.photo-tile:hover .tile-cap { opacity: 1; transform: translateY(0); }
.photo-tile .tile-zoom {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy-dark);
    display: grid; place-items: center;
    opacity: 0;
    transition: 0.35s;
    z-index: 3;
}
.photo-tile .tile-zoom svg { width: 20px; height: 20px; }
.photo-tile:hover .tile-zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gallery-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.gallery-empty svg { width: 46px; height: 46px; color: #c6c4da; margin-bottom: 12px; }

/* ---------- Forms (admission etc.) ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.form-section { padding: 30px 34px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}
.form-section-head .fs-num {
    width: 38px; height: 38px; flex: none;
    border-radius: 11px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--navy), #4a47a3);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
}
.form-section-head h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy-dark); line-height: 1.3; }
.form-section-head p { font-size: 0.88rem; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
    margin-bottom: 7px;
}
.field label .req { color: var(--red); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fbfbfe;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(35, 33, 89, 0.08);
}
.field .hint { font-size: 0.83rem; color: var(--muted); margin-top: 5px; }
.field .err { font-size: 0.85rem; color: var(--red); font-weight: 600; margin-top: 5px; }
.field input.is-error, .field select.is-error { border-color: var(--red); }

/* photo picker */
.photo-picker { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo-preview {
    width: 118px; height: 130px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px dashed var(--line);
    background: var(--bg-soft);
    padding: 3px;
}
.photo-picker .pp-text { flex: 1; min-width: 210px; }

.form-foot {
    padding: 24px 34px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.form-foot .note { font-size: 0.9rem; color: var(--muted); }

.admission-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.admission-grid { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }

.alert-box {
    border-radius: 14px;
    padding: 15px 20px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid transparent;
}
.alert-box.ok { background: #e8f6f1; border-color: #b3e3d1; color: #0b6b52; }
.alert-box.bad { background: #fdf0ef; border-color: #f6cdc9; color: #9c211d; }
.alert-box ul { margin: 6px 0 0; padding-inline-start: 18px; list-style: disc; }

/* ---------- Login page ---------- */
.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--bg-soft);
}
.login-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 46px;
    color: #fff;
    background: var(--navy-deep);
}
.login-visual::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../img/login-side.jpg');
    background-size: cover;
    background-position: center 25%;
}
.login-visual::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(232, 163, 61, 0.22) 0, transparent 45%),
        linear-gradient(160deg, rgba(16, 20, 55, 0.88) 0%, rgba(9, 30, 68, 0.82) 50%, rgba(16, 20, 55, 0.94) 100%);
}
.login-visual-inner { position: relative; z-index: 2; max-width: 460px; }
.login-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.login-brand img {
    width: 74px; height: 74px;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.login-brand .bn { display: block; font-size: 1.28rem; font-weight: 700; line-height: 1.3; }
.login-brand .en {
    display: block; font-size: 0.7rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold-soft); font-weight: 600;
}
.login-visual h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.login-visual p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }
.login-points { display: grid; gap: 11px; }
.login-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; color: rgba(255, 255, 255, 0.9); }
.login-points svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--gold-soft); }

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}
.login-card { width: min(430px, 100%); }
.login-card .back-home {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--muted); font-weight: 600; font-size: 0.92rem;
    margin-bottom: 26px;
}
.login-card .back-home:hover { color: var(--red); }
.login-card .back-home svg { width: 16px; height: 16px; }
.login-card h1 { font-size: 1.75rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.login-card .sub { color: var(--muted); margin-bottom: 28px; }
.login-card .field { margin-bottom: 18px; }
.input-icon { position: relative; }
.input-icon svg {
    position: absolute;
    inset-inline-start: 15px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: var(--muted);
    pointer-events: none;
}
.input-icon input { padding-inline-start: 44px !important; }
.pw-toggle {
    position: absolute;
    inset-inline-end: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: 0;
    color: var(--muted);
    padding: 4px;
    display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--navy); }
.pw-toggle svg { position: static; transform: none; width: 19px; height: 19px; }
.login-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.login-row label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.93rem; color: var(--muted); font-weight: 500; }
.login-row a { font-size: 0.93rem; font-weight: 600; color: var(--navy); }
.login-row a:hover { color: var(--red); }
.btn-block { width: 100%; justify-content: center; }
.login-foot { margin-top: 26px; text-align: center; font-size: 0.92rem; color: var(--muted); }
.login-foot a { font-weight: 600; color: var(--red); }

@media (max-width: 900px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { padding: 36px 22px; min-height: 100vh; }
    .admission-grid { grid-template-columns: 1fr; }
    .admission-aside { position: static; }
    .form-grid { grid-template-columns: 1fr; }
    .form-section { padding: 24px 20px; }
    .form-foot { padding: 20px; }
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    bottom: 26px; inset-inline-end: 26px;
    width: 48px; height: 48px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, var(--red), var(--red-soft));
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 26px rgba(213, 53, 49, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.3s;
    z-index: 70;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Notices page ---------- */
.page-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(232, 163, 61, 0.18) 0, transparent 40%),
        linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: #fff;
    padding: 64px 0 70px;
    text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 8px; }
.page-hero .crumb { color: rgba(255, 255, 255, 0.75); font-weight: 500; }
.page-hero .crumb a { color: var(--gold-soft); }
.pagination-wrap { margin-top: 40px; display: flex; justify-content: center; }
.pagination-wrap .pagination { display: flex; gap: 8px; }
.pagination-wrap .page-item .page-link {
    display: grid; place-items: center;
    min-width: 42px; height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    background: #fff;
}
.pagination-wrap .page-item.active .page-link { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination-wrap .page-item.disabled .page-link { opacity: 0.45; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; padding-bottom: 170px; }
    .hero-card { justify-self: start; max-width: 480px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .class-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .notice-grid { grid-template-columns: 1fr; }
    .mission-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 84px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed;
        top: 0; inset-inline-end: 0;
        height: 100dvh;
        width: min(320px, 84vw);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 92px 26px 30px;
        box-shadow: -18px 0 50px rgba(22, 20, 61, 0.18);
        transform: translateX(110%);
        transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 55;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu > li > a { padding: 13px 16px; border-radius: 12px; font-size: 1.05rem; }
    .nav-toggle { display: inline-flex; z-index: 56; }
    .nav-cta .btn { display: none; }
    .nav-overlay {
        position: fixed; inset: 0;
        background: rgba(22, 20, 61, 0.45);
        backdrop-filter: blur(2px);
        opacity: 0; visibility: hidden;
        transition: 0.3s;
        z-index: 54;
    }
    .nav-overlay.show { opacity: 1; visibility: visible; }
    .topbar-right .topbar-note { display: none; }
}

@media (max-width: 640px) {
    .section { padding: 66px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-card { flex-direction: column; text-align: center; gap: 10px; padding: 22px 14px; }
    .features-grid { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-item.wide { grid-column: span 1; }
    .cta { padding: 40px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { min-height: 560px; }
    .hero-inner { padding: 64px 0 150px; }
    .notice-item { flex-wrap: wrap; }
    .mission-intro { padding-inline-start: 0; }
    .mission-head .mh-icon { width: 44px; height: 44px; }
    .mission-head .mh-icon svg { width: 21px; height: 21px; }
    .about-media .photo-sub { bottom: -30px; }
    .about-grid { gap: 70px; }
    .ticker-label span { display: none; }
    .topbar-contacts { gap: 12px; }
    .topbar-item.hide-sm { display: none; }
}
