/* ============================================================
   SCHOOL WEBSITE - MAIN STYLESHEET
   Sri Lankan Government School
   Modern, colorful, responsive, professional education theme
   ============================================================ */

:root {
    --primary: #1e5aa8;          /* royal blue */
    --primary-dark: #123f7a;
    --primary-light: #2f7bd4;
    --accent: #f5a623;           /* golden amber */
    --accent-dark: #d98d0b;
    --success: #27ae60;
    --danger: #e74c3c;
    --heading: #232b3d;
    --text: #5a6478;
    --muted: #8b93a7;
    --bg: #f4f7fb;
    --white: #ffffff;
    --border: #e5eaf2;
    --shadow-sm: 0 2px 8px rgba(30, 90, 168, .08);
    --shadow-md: 0 10px 30px rgba(30, 90, 168, .12);
    --shadow-lg: 0 20px 50px rgba(30, 90, 168, .18);
    --grad: linear-gradient(135deg, #1e5aa8 0%, #2f7bd4 60%, #4b94e0 100%);
    --grad-accent: linear-gradient(135deg, #f5a623 0%, #f7c04a 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Poppins', 'Noto Sans Sinhala', 'Noto Sans Tamil', 'Segoe UI', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.si, body.ta { line-height: 1.9; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--primary); transition: .25s ease; }
a:hover { color: var(--accent); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 700; line-height: 1.3; }

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

.section { padding: 70px 0; }
.section-alt { background: var(--white); }
.section-sm { padding: 40px 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .tag {
    display: inline-block; background: rgba(30,90,168,.1); color: var(--primary);
    padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.section-head .divider {
    width: 60px; height: 4px; border-radius: 4px; background: var(--grad-accent);
    margin: 14px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border: 0; border-radius: 50px; cursor: pointer;
    font-family: var(--font); font-size: .92rem; font-weight: 600;
    background: var(--grad); color: #fff; position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 6px 18px rgba(30,90,168,.3);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(30,90,168,.4); color: #fff; }
.btn-accent { background: var(--grad-accent); color: #5a3d00; box-shadow: 0 6px 18px rgba(245,166,35,.35); }
.btn-accent:hover { color: #462f00; box-shadow: 0 10px 26px rgba(245,166,35,.45); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(30,90,168,.3); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-white:hover { color: var(--primary-dark); transform: translateY(-3px); }
.btn-sm { padding: 8px 18px; font-size: .84rem; }
.btn .fa-solid, .btn i { font-size: .95em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #dbe6f5; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 12px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar-contact a, .topbar-contact span { color: #dbe6f5; display: inline-flex; gap: 6px; align-items: center; }
.topbar-contact a:hover { color: var(--accent); }
.topbar-contact i { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a {
    width: 28px; height: 28px; display: grid; place-items: center;
    border-radius: 50%; color: #c9d8ee; font-size: .8rem;
}
.topbar-social a:hover { background: rgba(255,255,255,.15); color: var(--accent); }

.lang-switch { display: flex; gap: 4px; }
.lang-btn {
    padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600;
    color: #dbe6f5; border: 1px solid rgba(255,255,255,.25);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn.active { background: var(--accent); color: #5a3d00; border-color: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 900; background: #fff;
    box-shadow: 0 2px 16px rgba(20,40,80,.08);
}
.site-header.scrolled { box-shadow: 0 6px 26px rgba(20,40,80,.14); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
    width: 48px; height: 48px; border-radius: 14px; background: var(--grad);
    display: grid; place-items: center; color: #fff; font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(30,90,168,.35);
    overflow: hidden;
}
.logo-badge img, .footer-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 700; color: var(--heading); font-size: 1.05rem; }
.logo-sub { font-size: .74rem; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 10px; font-weight: 600;
    font-size: .92rem; color: var(--heading);
}
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--primary); background: rgba(30,90,168,.08); }
.dropdown-arrow { font-size: .66rem; transition: transform .25s; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 10px; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: .28s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(6px); }
.dropdown li a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .88rem; font-weight: 500; }
.dropdown li a:hover { background: rgba(30,90,168,.08); color: var(--primary); padding-left: 16px; }

.nav-login a { color: #fff !important; }
.nav-login a:hover { color: #462f00 !important; }

.nav-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
    background: #f7f9fd; color: var(--heading); cursor: pointer; font-size: .95rem;
    display: grid; place-items: center; transition: .25s;
}
.icon-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 3px; border-radius: 3px; background: var(--heading); transition: .3s; }

/* Mobile nav */
@media (max-width: 992px) {
    .hamburger { display: flex; }
    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
        background: #fff; flex-direction: column; align-items: stretch;
        padding: 90px 22px 30px; box-shadow: -20px 0 60px rgba(0,0,0,.15);
        transform: translateX(100%); transition: transform .35s ease; overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-list > li > a { padding: 13px 12px; font-size: 1rem; }
    .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .has-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
    .nav-actions { display: block; margin-top: 14px; }
    .nav-login { margin-top: 14px; }
    .nav-login a { justify-content: center; color: #fff !important; }
    .header-actions { gap: 8px; }
    #searchToggleDesktop { display: none; }
}

/* ---------- Search overlay ---------- */
.search-overlay {
    position: fixed; inset: 0; background: rgba(10,25,55,.92); z-index: 1200;
    display: grid; place-items: start center; padding-top: 18vh;
    opacity: 0; visibility: hidden; transition: .3s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-form { display: flex; align-items: center; gap: 10px; width: min(700px, 92%); background: #fff; border-radius: 50px; padding: 8px 10px 8px 22px; box-shadow: var(--shadow-lg); }
.search-form i { color: var(--primary); }
.search-form input { flex: 1; border: 0; outline: 0; font-family: var(--font); font-size: 1rem; color: var(--heading); background: transparent; }
.search-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #eef2f9; color: var(--text); font-size: 1rem; cursor: pointer; }
.search-close:hover { background: var(--danger); color: #fff; }

/* ---------- Hero slider ---------- */
.hero { position: relative; min-height: 560px; overflow: hidden; background: var(--primary-dark); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; z-index: 1;
    background-size: cover; background-position: center; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,45,.82), rgba(20,45,95,.55) 55%, rgba(20,50,100,.2)); }
.hero-content { position: relative; z-index: 3; max-width: 640px; color: #fff; padding: 40px 0; }
.hero-content h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3.1rem); margin-bottom: 14px; animation: slideUp .9s ease both; }
.hero-content p { color: rgba(255,255,255,.9); font-size: clamp(.95rem, 1.4vw, 1.1rem); max-width: 560px; margin-bottom: 26px; animation: slideUp 1.05s ease both; }
.hero-content .btn { animation: slideUp 1.2s ease both; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.16); color: #fff; font-size: 1.1rem; backdrop-filter: blur(4px);
    transition: .25s;
}
.hero-arrow:hover { background: var(--accent); color: #5a3d00; }
.hero-prev { left: 18px; } .hero-next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 8px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hero-dots button.active { background: var(--accent); width: 28px; border-radius: 8px; }

@media (max-width: 768px) {
    .hero { min-height: 440px; }
    .hero-arrow { width: 38px; height: 38px; font-size: .9rem; }
    .hero-prev { left: 10px; } .hero-next { right: 10px; }
}

@keyframes slideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats { position: relative; margin-top: -56px; z-index: 10; }
.stat-card {
    background: #fff; border-radius: var(--radius); padding: 26px 18px; text-align: center;
    box-shadow: var(--shadow-md); border-bottom: 4px solid var(--primary);
    transition: transform .3s, box-shadow .3s;
}
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stat-icon {
    width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.5rem; color: #fff;
    background: linear-gradient(135deg, #1e5aa8, #4b94e0);
}
.stat-icon.green { background: linear-gradient(135deg, #27ae60, #6fd093); }
.stat-icon.gold { background: linear-gradient(135deg, #f5a623, #f7c04a); }
.stat-icon.pink { background: linear-gradient(135deg, #e74c8c, #f07ab0); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--heading); }
.stat-label { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ---------- Vision / Mission ---------- */
.vm-card {
    background: #fff; border-radius: var(--radius); padding: 40px 32px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); height: 100%;
    position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.vm-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.vm-card.mission::before { background: var(--grad-accent); }
.vm-icon {
    width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center;
    font-size: 1.8rem; color: #fff; background: var(--grad); margin-bottom: 20px;
}
.vm-card.mission .vm-icon { background: var(--grad-accent); color: #5a3d00; }
.vm-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.vm-card p { color: var(--text); }

/* ---------- Principal ---------- */
.principal-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
    display: grid; grid-template-columns: 300px 1fr; overflow: hidden; position: relative;
}
.principal-photo { position: relative; overflow: hidden; background: #e8eefb; }
.principal-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.principal-card:hover .principal-photo img { transform: scale(1.06); }
.principal-bg { background: #fff; margin: 24px 12px 12px; }
.principal-info { padding: 40px 36px; }
.principal-quote { position: relative; padding-left: 42px; margin-bottom: 18px; color: var(--text); }
.principal-quote::before {
    content: "\201C"; position: absolute; left: 0; top: -18px;
    font-size: 4rem; color: var(--accent); font-family: Georgia, serif; line-height: 1;
}
.principal-name { font-size: 1.25rem; color: var(--primary); }
.principal-role { color: var(--accent-dark); font-weight: 600; font-size: .9rem; margin-bottom: 18px; }
.principal-sign { margin-top: 20px; }
.principal-sign img { max-height: 64px; }

@media (max-width: 860px) {
    .principal-card { grid-template-columns: 1fr; }
    .principal-photo { min-height: 320px; }
    .principal-info { padding: 30px 22px; }
}

/* ---------- Society cards ---------- */
.society-card {
    background: #fff; border-radius: var(--radius); padding: 32px 22px; text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); height: 100%;
    transition: transform .35s, box-shadow .35s; position: relative; overflow: hidden;
}
.society-card::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: .35s; }
.society-card:hover::after { transform: scaleX(1); }
.society-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.society-icon {
    width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 18px;
    display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: var(--grad); box-shadow: 0 8px 20px rgba(30,90,168,.28);
    transition: transform .3s;
}
.society-card:nth-child(2n) .society-icon { background: linear-gradient(135deg, #f5a623, #f7c04a); box-shadow: 0 8px 20px rgba(245,166,35,.3); }
.society-card:nth-child(3n) .society-icon { background: linear-gradient(135deg, #27ae60, #6fd093); box-shadow: 0 8px 20px rgba(39,174,96,.3); }
.society-card:nth-child(4n) .society-icon { background: linear-gradient(135deg, #e74c8c, #f07ab0); box-shadow: 0 8px 20px rgba(231,76,140,.3); }
.society-card:hover .society-icon { transform: rotate(-6deg) scale(1.08); }
.society-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.society-card p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }

/* ---------- Announcements ---------- */
.announcement-box {
    background: #fff; border-radius: var(--radius); padding: 18px 20px;
    box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary); margin-bottom: 16px;
    display: flex; gap: 18px; align-items: flex-start; transition: transform .25s, box-shadow .25s;
}
.announcement-box:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.announcement-box.important { border-left-color: var(--accent); }
.announcement-icon {
    flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(30,90,168,.1); color: var(--primary); font-size: 1.1rem;
}
.ann-icon-img { flex: 0 0 74px; height: 56px; border-radius: 10px; overflow: hidden; background: #e8eefb; }
.ann-icon-img img { width: 100%; height: 100%; object-fit: cover; }
.announcement-box.important .announcement-icon { background: rgba(245,166,35,.15); color: var(--accent-dark); }
.ann-note {
    flex: 0 0 auto;
}
.ann-title { font-weight: 700; color: var(--heading); font-size: .98rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge-important {
    background: var(--grad-accent); color: #5a3d00; font-size: .68rem; font-weight: 700;
    padding: 2px 10px; border-radius: 20px; letter-spacing: .04em;
}
.ann-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 14px; align-items: center; margin: 4px 0 6px; }
.ann-desc { font-size: .9rem; color: var(--text); }
.ann-actions { display: flex; gap: 6px; margin-left: auto; }

/* ---------- Cards (events / achievements / articles) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
@media (max-width: 900px) {
    [data-inline-grid] { grid-template-columns: 1fr !important; }
}
.card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e8eefb; }
.card-img .op-photo-placeholder {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #9fb3d4; font-size: 2.6rem; background: linear-gradient(135deg, #eef2fb 0%, #ffffff 100%);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.08); }
.card-img .card-badge {
    position: absolute; top: 12px; left: 12px; background: var(--grad); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.card-img .card-date, .card-date-chip {
    position: absolute; top: 12px; right: 12px; background: #fff; color: var(--primary);
    padding: 4px 12px; border-radius: 10px; font-size: .74rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card-body h3 a { color: var(--heading); }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.card-foot a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Top students ---------- */
.student-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); text-align: center; border: 1px solid var(--border);
    transition: transform .35s, box-shadow .35s;
}
.student-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.student-photo { width: 100%; aspect-ratio: 1; overflow: hidden; background: #e8eefb; position: relative; }
.student-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.student-card:hover .student-photo img { transform: scale(1.08); }
.student-photo .exam-chip {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    background: var(--grad-accent); color: #5a3d00; font-size: .7rem; font-weight: 700;
    padding: 4px 14px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.2); white-space: nowrap;
}
.student-body { padding: 18px 16px 22px; }
.student-body h3 { font-size: 1.02rem; }
.student-results { color: var(--primary); font-weight: 700; font-size: .92rem; margin: 4px 0; }
.student-achiev { font-size: .82rem; color: var(--accent-dark); font-weight: 600; }
.student-desc { font-size: .84rem; color: var(--muted); margin-top: 6px; }

/* ---------- Important links ---------- */
.imp-link-card {
    background: #fff; border-radius: var(--radius-sm); padding: 16px 18px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 100%;
    display: flex; align-items: center; gap: 14px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.imp-link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.imp-link-icon {
    flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(30,90,168,.09); color: var(--primary); font-size: 1.2rem; transition: .3s;
}
.imp-link-card:hover .imp-link-icon { background: var(--grad); color: #fff; }
.imp-link-card span { font-weight: 600; font-size: .92rem; color: var(--heading); }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero {
    background: var(--grad); position: relative; overflow: hidden; padding: 70px 0; color: #fff; text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px); background-size: 26px 26px; }
.page-hero.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-hero.has-bg::before { background: rgba(0,0,0,.55); }
.page-hero.has-bg > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); position: relative; }
.page-hero p { color: rgba(255,255,255,.85); position: relative; margin-top: 8px; max-width: 640px; margin-inline: auto; }
.breadcrumb { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 12px; font-size: .86rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--accent); font-weight: 600; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; } }
.detail-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    border: 1px solid var(--border); padding: 26px; margin-bottom: 22px;
}
.detail-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.12rem; }
.detail-card h3 i { color: var(--accent); }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.detail-item { display: flex; flex-direction: column; }
.detail-item .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.detail-item .value { font-weight: 600; color: var(--heading); }
@media (max-width: 600px) { .detail-list { grid-template-columns: 1fr; } }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before {
    content: ""; position: absolute; left: -30px; top: 8px; width: 19px; height: 19px;
    border-radius: 50%; background: #fff; border: 4px solid var(--primary); box-shadow: 0 0 0 4px rgba(30,90,168,.15);
}
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { color: var(--text); font-size: .94rem; margin-bottom: 10px; }
.timeline-item img { border-radius: 12px; margin-top: 8px; max-height: 220px; object-fit: cover; }

/* Tabs */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.tab-btn {
    background: #fff; border: 2px solid var(--border); color: var(--text);
    padding: 10px 22px; border-radius: 50px; font-family: var(--font); font-weight: 600;
    font-size: .9rem; cursor: pointer; transition: .25s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(30,90,168,.3); }
.tab-pane { display: none; animation: fadeIn .5s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.anthem-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px; text-align: center; max-width: 760px; margin: 0 auto; }
.anthem-lyrics { white-space: pre-line; text-align: center; color: var(--text); font-size: 1.05rem; margin: 24px 0; line-height: 2.2; }
.flag-box { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px; }
.flag-box img { max-width: 340px; margin: 0 auto 22px; border-radius: 12px; box-shadow: var(--shadow-md); }
.flag-logo { margin-bottom: 28px; }
.flag-logo img { max-width: 160px; height: auto; object-fit: contain; }
.flag-img img { max-width: 340px; }

/* ---------- Sections page ---------- */
.section-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); height: 100%;
    display: flex; flex-direction: column; text-align: center; transition: transform .35s, box-shadow .35s;
}
.section-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.section-card-icon {
    height: 130px; display: grid; place-items: center; color: #fff; font-size: 3rem;
    background: var(--grad); position: relative; overflow: hidden;
}
.section-card:nth-child(2n) .section-card-icon { background: linear-gradient(135deg, #27ae60, #6fd093); }
.section-card:nth-child(3n) .section-card-icon { background: linear-gradient(135deg, #f5a623, #e07f0b); }
.section-card:nth-child(4n) .section-card-icon { background: linear-gradient(135deg, #e74c8c, #f07ab0); }
.section-card-icon::after { content: "\f0dc"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; font-size: 7rem; opacity: .1; transform: rotate(20deg); }
.section-card-body { padding: 26px 22px 30px; flex: 1; display: flex; flex-direction: column; }
.section-card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.section-card-body .grades { color: var(--accent-dark); font-weight: 600; font-size: .84rem; margin-bottom: 10px; }
.section-card-body p { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 16px; }

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-btn {
    background: #fff; border: 2px solid var(--border); color: var(--text); padding: 8px 20px;
    border-radius: 50px; font-family: var(--font); font-weight: 600; font-size: .86rem; cursor: pointer; transition: .25s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(30,90,168,.3); }

.gallery-grid { columns: 4 240px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; transition: transform .3s; }
.gallery-item img { width: 100%; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
    position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,25,55,.85), rgba(10,25,55,0) 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
    opacity: 0; transition: .3s; color: #fff;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption strong { color: #fff; font-size: .92rem; }
.gallery-caption span { font-size: .76rem; color: var(--accent); }
.gal-thumb-wrap { position: relative; display: block; }
.gal-count { position: absolute; top: 10px; right: 10px; background: rgba(10,25,55,.8); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 30px; display: inline-flex; align-items: center; gap: 6px; z-index: 2; }
.gal-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,25,55,.35); color: #fff; font-size: 1.6rem; opacity: 0; transition: .3s; }
.gallery-item:hover .gal-zoom { opacity: 1; }

/* ---------- School Calendar ---------- */
.cal-toolbar { margin-bottom: 10px; }
.cal-toolbar .gallery-filter { margin-bottom: 18px; }
.cal-toolbar .filter-btn { text-decoration: none; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.cal-nav .btn { text-decoration: none; }
.cal-month { margin: 0; text-transform: capitalize; min-width: 190px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 30px; }
.cal-head { text-align: center; font-weight: 700; font-size: .8rem; color: var(--primary); padding: 8px 0; text-transform: uppercase; }
.cal-cell { background: #fff; border: 1px solid var(--border); border-radius: 8px; min-height: 92px; padding: 8px; position: relative; transition: .2s; }
.cal-cell:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.cal-empty { background: transparent; border-color: transparent; }
.cal-num { position: absolute; top: 6px; right: 10px; font-weight: 700; color: var(--text); opacity: .55; font-size: .82rem; }
.cal-gal-link { position: absolute; top: 6px; left: 10px; color: var(--primary); background: #fff; border: 1px solid var(--border); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: .72rem; transition: .2s; box-shadow: var(--shadow-sm); }
.cal-gal-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-days { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.cal-dot { font-size: .68rem; font-weight: 600; color: #fff; padding: 3px 7px; border-radius: 6px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cal-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px; }
.cal-list-head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 1.1rem; text-transform: capitalize; }
.cal-list-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cal-list-item { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.cal-list-date { display: flex; flex-direction: column; align-items: center; border-left: 4px solid var(--primary); padding-left: 10px; min-width: 44px; }
.cal-list-date strong { font-size: 1.15rem; line-height: 1; }
.cal-list-date span { font-size: .7rem; text-transform: uppercase; color: var(--primary); }
.cal-list-meta { display: flex; flex-direction: column; gap: 4px; }
.cal-list-meta strong { font-size: .95rem; }
.cal-badge { display: inline-block; padding: 2px 10px; border-radius: 30px; font-size: .72rem; font-weight: 600; width: fit-content; }
@media (max-width: 720px) {
    .cal-list-items { grid-template-columns: 1fr; }
    .cal-cell { min-height: 70px; padding: 6px; }
    .cal-dot { white-space: normal; }
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(8,15,35,.94); z-index: 1500;
    display: grid; place-items: center; padding: 30px;
    opacity: 0; visibility: hidden; transition: .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(900px, 92vw); max-height: 78vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 16px; max-width: 640px; }
.lightbox-close { position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox-close:hover { background: var(--danger); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 1.1rem; }
.lightbox-nav:hover { background: var(--accent); color: #5a3d00; }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }

/* ---------- Downloads ---------- */
.download-card {
    background: #fff; border-radius: var(--radius); padding: 22px; display: flex; gap: 18px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border); align-items: flex-start;
    transition: transform .3s, box-shadow .3s;
}
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.file-icon {
    flex: 0 0 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.4rem; color: #fff; background: var(--grad); position: relative;
}
.file-icon::after { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: rgba(255,255,255,.85) transparent transparent transparent; border-radius: 0 14px 0 0; }
.file-icon.pdf { background: linear-gradient(135deg, #e74c3c, #f07a6a); }
.file-icon.docx { background: linear-gradient(135deg, #2f7bd4, #5ea3e8); }
.file-icon.xlsx { background: linear-gradient(135deg, #27ae60, #6fd093); }
.file-icon.pptx { background: linear-gradient(135deg, #e67e22, #f0a35e); }
.download-body { flex: 1; min-width: 0; }
.download-body h3 { font-size: 1.02rem; }
.download-body p { font-size: .86rem; color: var(--muted); margin: 4px 0 8px; }
.download-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Article page ---------- */
.article-hero { background: var(--grad); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.article-hero h1 { color: #fff; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; margin-top: -30px; position: relative; z-index: 5; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.article-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.article-main .article-cover { max-height: 480px; overflow: hidden; }
.article-main .article-cover img { width: 100%; object-fit: cover; }
.article-content { padding: 34px 38px; }
.article-content h2, .article-content h3 { margin: 24px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: 12px; margin: 14px auto; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 20px; }
.sidebar-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 24px; margin-bottom: 22px; }
.sidebar-card h4 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.related-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.related-item:last-child { border-bottom: 0; }
.related-item img { width: 74px; height: 58px; object-fit: cover; border-radius: 8px; }
.related-item strong { font-size: .84rem; color: var(--heading); line-height: 1.4; display: block; }
.related-item small { color: var(--muted); font-size: .74rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    background: #fff; color: var(--text); font-weight: 600; border: 1px solid var(--border);
}
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination span.current { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Empty state ---------- */
.empty {
    text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty i { font-size: 3rem; color: #c9d4e4; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #16213f; color: #aeb9d4; margin-top: 60px; position: relative; }
.footer-wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; }
.footer-wave svg { width: 100%; height: 50px; }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; padding: 60px 0 40px;
}
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-accent); }
.footer-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.5rem; margin-bottom: 16px; }
.footer-about h4 { margin-bottom: 10px; }
.footer-about p { font-size: .9rem; margin-bottom: 16px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 8px; font-size: .88rem; }
.footer-contact i { color: var(--accent); margin-top: 4px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aeb9d4; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; }
.footer-links a i { font-size: .7rem; color: var(--accent); }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-map { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.footer-map iframe { display: block; }
.footer-map-placeholder { height: 170px; background: #1d2a4e; display: grid; place-items: center; color: #5a6b96; font-size: .9rem; flex-direction: column; gap: 8px; }
.footer-map-placeholder i { font-size: 2rem; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #c8d2ea; font-size: .95rem; transition: .25s;
}
.footer-social a:hover { background: var(--accent); color: #5a3d00; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; }
.footer-admin a { color: #7e8cb4; }
.footer-admin a:hover { color: var(--accent); }

/* ---------- Go to top ---------- */
.go-top {
    position: fixed; right: 22px; bottom: 92px; z-index: 800; width: 46px; height: 46px;
    border-radius: 14px; border: 0; background: var(--grad); color: #fff; font-size: 1rem;
    cursor: pointer; box-shadow: 0 8px 22px rgba(30,90,168,.4);
    opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s;
}
.go-top.show { opacity: 1; visibility: visible; transform: none; }
.go-top:hover { background: var(--accent); color: #5a3d00; }

/* ---------- Chat widget ---------- */
.chat-button {
    position: fixed; right: 22px; bottom: 24px; z-index: 950; width: 58px; height: 58px;
    border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 1.5rem;
    cursor: pointer; box-shadow: 0 10px 26px rgba(30,90,168,.45); transition: transform .25s;
    animation: pulse 2.4s infinite;
}
.chat-button:hover { transform: scale(1.1); }
.chat-button.pulse-pop { animation: none; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(30,90,168,.45); }
    70% { box-shadow: 0 0 0 16px rgba(30,90,168,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,90,168,0); }
}
.chat-widget {
    position: fixed; right: 22px; bottom: 92px; z-index: 950; width: min(370px, 92vw);
    background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(10,25,55,.35);
    overflow: hidden; display: flex; flex-direction: column; height: min(520px, 70vh);
    opacity: 0; visibility: hidden; transform: translateY(24px) scale(.96); transition: .3s ease; transform-origin: bottom right;
}
.chat-widget.open { opacity: 1; visibility: visible; transform: none; }
.chat-header {
    background: var(--grad); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.15rem; }
.chat-header-text { flex: 1; }
.chat-header-text strong { display: block; font-size: .95rem; }
.chat-header-text span { font-size: .76rem; color: rgba(255,255,255,.85); }
.online-dot { color: #6ff0a3; font-size: .7rem; }
.chat-close { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,.3); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #f4f7fb; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.55; animation: chatIn .3s ease; }
.chat-msg p { margin: 0; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-msg.bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); color: var(--text); }
.chat-msg.user { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-input input {
    flex: 1; border: 1px solid var(--border); border-radius: 40px; padding: 10px 16px;
    font-family: var(--font); font-size: .9rem; outline: 0; transition: border-color .2s;
}
.chat-input input:focus { border-color: var(--primary); }
.chat-input button {
    width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad);
    color: #fff; cursor: pointer; font-size: 1rem; flex-shrink: 0;
}
.chat-input button:hover { background: var(--accent); color: #5a3d00; }

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

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; font-weight: 500; }
.alert-success { background: #e8f7ee; color: #17723f; border: 1px solid #b9e8cd; }
.alert-error { background: #fdebec; color: #a0262a; border: 1px solid #f5c4c6; }
.alert-info { background: #e8f0fd; color: #1d55a0; border: 1px solid #c2d6f5; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #eef2f9; }
::-webkit-scrollbar-thumb { background: #c2cfe3; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 44px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 22px; } .mb-3 { margin-bottom: 34px; }
.gap-2 { gap: 22px; }
.flex-center { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hidden { display: none !important; }

.banner {
    background: linear-gradient(120deg, #1e5aa8, #2f7bd4); color: #fff; border-radius: var(--radius);
    padding: 40px 36px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.banner h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.banner p { color: rgba(255,255,255,.85); max-width: 540px; }

/* ---------- Responsive helpers ---------- */
@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-head { margin-bottom: 34px; }
    .topbar-contact span:first-child { display: none; }
    .stats { margin-top: -40px; }
    .stat-number { font-size: 1.8rem; }
}