/* ============================================================
   assets/css/style.css — School Website Styles
   Intellectitech Ntinda Hub Training Project
   ============================================================ */

/* ── RESET & CSS VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy:   #0B1F3A;
    --blue:   #1565C0;
    --teal:   #007A87;
    --green:  #1B5E20;
    --orange: #E65100;
    --gold:   #F9A825;
    --white:  #FFFFFF;
    --off:    #F3F6FB;
    --text:   #1E293B;
    --muted:  #5A6A80;
    --border: #D0DCF0;
    --shadow: 0 2px 16px rgba(0,0,0,.09);
    --radius: 10px;
    --radius-lg: 14px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: .7rem 1.8rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-outline  { border-color: var(--white); color: var(--white); }
.btn-blue     { background: var(--blue); color: var(--white); }
.btn-sm       { padding: .4rem 1rem; font-size: .9rem; }

/* ── TOP BAR ── */

.top-bar {
    background: #07182f;
    color: #c7d4e8;
    font-size: .82rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.top-contact,
.top-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-contact strong {
    color: var(--white);
    font-weight: 600;
}

.top-actions a {
    color: #c7d4e8;
    transition: color .2s;
}

.top-actions a:hover {
    color: var(--gold);
}

.top-actions .admin-link {
    color: var(--gold);
    font-weight: 600;
}


/* ── SITE HEADER ── */

.site-header {
    background: rgba(11, 31, 58, .98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
}

.logo {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.school-badge {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.logo-tagline {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
}

@media (max-width: 768px) {
    .school-badge {
        width: 48px;
        height: 48px;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-tagline {
        font-size: 0.58rem;
    }
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-name {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-tagline {
    color: var(--gold);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-top: .25rem;
}

.main-nav {
    display: flex;
    gap: 1.7rem;
    align-items: center;
}

.nav-link {
    color: #c7d4e8;
    font-size: .92rem;
    font-weight: 500;
    padding: 2rem 0;
    position: relative;
    border: none;
    transition: color .2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1.25rem;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .3rem;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

/* ── HERO SLIDER ── */

.hero {
    position: relative;
    min-height: 610px;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    height: 610px;
    background: var(--navy);
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1s ease,
        visibility 1s ease;

    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 20, 42, .97) 0%,
            rgba(7, 30, 61, .91) 45%,
            rgba(7, 30, 61, .55) 100%
        );

    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .05),
            rgba(0, 0, 0, .28)
        );

    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 3;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 4rem;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    background: rgba(249, 168, 37, .14);
    border: 1px solid rgba(249, 168, 37, .55);

    color: var(--gold);

    padding: .5rem 1rem;
    border-radius: 30px;

    font-size: .82rem;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;

    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 4.5vw, 4.3rem);
    line-height: 1.05;

    margin-bottom: 1.5rem;

    letter-spacing: -.035em;

    color: var(--white);
}

.hero p {
    font-size: 1.2rem;

    color: #d4deed;

    max-width: 640px;

    margin-bottom: 2.2rem;

    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;

    align-items: center;
    flex-wrap: wrap;
}

.hero .btn {
    padding: .9rem 1.8rem;
    font-size: .95rem;
}

.hero-highlight {
    width: 300px;

    background: rgba(255, 255, 255, .10);

    border: 1px solid rgba(255, 255, 255, .20);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 1.4rem;

    border-radius: 14px;

    display: flex;
    align-items: center;

    gap: 1rem;

    margin-bottom: 1rem;
}

.highlight-icon {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: var(--gold);
    color: var(--navy);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.3rem;

    flex-shrink: 0;
}

.hero-highlight span {
    display: block;

    color: #b9c9df;

    font-size: .75rem;

    text-transform: uppercase;

    letter-spacing: .08em;

    margin-bottom: .25rem;
}

.hero-highlight strong {
    color: var(--white);

    font-size: .95rem;

    line-height: 1.4;
}


/* ── HERO SLIDER ARROWS ── */

.hero-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, .25);

    background: rgba(5, 20, 42, .45);

    color: var(--white);

    font-size: 1.4rem;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.hero-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);

    color: var(--navy);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}


/* ── HERO SLIDER DOTS ── */

.hero-dots {
    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    z-index: 10;

    display: flex;
    align-items: center;

    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .45);

    cursor: pointer;

    transition:
        width .3s ease,
        border-radius .3s ease,
        background .3s ease;
}

.hero-dot.active {
    width: 32px;

    border-radius: 10px;

    background: var(--gold);
}


/* ── HERO MOBILE ── */

@media (max-width: 768px) {

    .hero,
    .hero-slider {
        min-height: 620px;
        height: 620px;
    }

    .hero-slide {
        background-position: center;
    }

    .hero-slide::before {
        background:
            linear-gradient(
                90deg,
                rgba(5, 20, 42, .96),
                rgba(7, 30, 61, .82)
            );
    }

    .hero-container {
        align-items: center;

        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.8rem);
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-highlight {
        display: none;
    }

    .hero-btns {
        align-items: stretch;
    }

    .hero-btns .btn {
        text-align: center;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;

        font-size: 1rem;

        top: auto;
        bottom: 18px;

        transform: none;
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }

    .hero-dots {
        bottom: 32px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .hero-dot,
    .hero-arrow {
        transition: none;
    }

}
/* ── PREMIUM STATS SECTION ── */

.stats-bar {
    position: relative;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(249, 168, 37, .12),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #071a35 0%,
            #0b2549 50%,
            #071a35 100%
        );

    padding: 2.8rem 0;
    overflow: hidden;
}

.stats-bar::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;
    pointer-events: none;
}

.stats-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 1.1rem;

    padding: 1.2rem 2rem;

    transition:
        transform .3s ease,
        background .3s ease;
}

.stat-item:not(:last-child)::after {
    content: "";

    position: absolute;
    right: 0;
    top: 15%;

    width: 1px;
    height: 70%;

    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, .25),
        transparent
    );
}

.stat-item:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, .035);
}

.stat-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(249, 168, 37, .12);

    border: 1px solid rgba(249, 168, 37, .35);

    color: var(--gold);

    font-size: 1.25rem;

    box-shadow:
        inset 0 0 20px rgba(249, 168, 37, .05);
}

.stat-content {
    text-align: left;
}

.stat-num {
    color: var(--white);

    font-size: clamp(2rem, 3vw, 2.8rem);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -.03em;

    margin-bottom: .45rem;
}

.stat-label {
    color: #aebed3;

    font-size: .78rem;

    font-weight: 600;

    letter-spacing: .06em;

    text-transform: uppercase;
}


/* ── STATS RESPONSIVE ── */

@media (max-width: 900px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-item {
        padding: 1.8rem;
    }
}


@media (max-width: 520px) {

    .stats-bar {
        padding: 1.5rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        justify-content: flex-start;

        padding: 1.4rem 2rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-num {
        font-size: 2.2rem;
    }
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.13); }
.card-img   { width: 100%; height: 210px; object-fit: cover; }
.card-body  { padding: 1.25rem; flex: 1; }
.card-badge {
    display: inline-block; background: var(--blue); color: var(--white);
    font-size: .75rem; padding: .2rem .75rem; border-radius: 20px; margin-bottom: .6rem;
}
.card h3    { font-size: 1.1rem; color: var(--navy); margin: .4rem 0; line-height: 1.4; }
.card p     { color: var(--muted); font-size: .93rem; }
.card-footer {
    padding: .8rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    font-size: .85rem; color: var(--muted);
}
.card-footer a { color: var(--blue); font-weight: 600; }

/* ── EVENTS LIST ── */
.event-item {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1rem; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--border); margin-bottom: .75rem;
}
.event-date {
    text-align: center; background: var(--blue); color: var(--white);
    border-radius: var(--radius); padding: .7rem .9rem; min-width: 60px;
}
.event-date .day   { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: .75rem; }
.event-body strong { display: block; margin-bottom: .25rem; color: var(--navy); }
.event-body small  { color: var(--muted); }

/* ── TESTIMONIALS ── */
.testimonial-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 1.75rem; position: relative;
}
.testimonial-card::before {
    content: '"'; font-size: 5rem; color: var(--border);
    position: absolute; top: -1rem; left: 1rem; line-height: 1;
}
.testimonial-card p  { font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.testimonial-author  { font-weight: 700; color: var(--navy); }
.testimonial-role    { font-size: .875rem; color: var(--muted); }

/* ── STAFF GRID ── */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.staff-card {
    text-align: center;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    padding: 1.5rem 1rem;
    transition: transform .2s;
}
.staff-card:hover { transform: translateY(-3px); }
.staff-photo {
    width: 90px; height: 90px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 1rem;
    border: 3px solid var(--border);
}
.staff-card h4  { color: var(--navy); font-size: 1rem; margin-bottom: .25rem; }
.staff-card p   { color: var(--muted); font-size: .875rem; }
.staff-subjects { color: var(--teal); font-size: .8rem; margin-top: .3rem; }

/* ── GALLERY GRID ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
.gallery-item img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: var(--radius); cursor: zoom-in;
    transition: opacity .2s;
}
.gallery-item img:hover { opacity: .88; }
.gallery-caption { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-weight: 600;
    color: var(--navy); margin-bottom: .4rem; font-size: .95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: .7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: 1rem;
    background: var(--white); color: var(--text);
    transition: border-color .2s;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--blue);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.alert-success { background: #E8FFF0; color: var(--green); border: 1px solid #A8E0B8; }
.alert-error   { background: #FFF0F0; color: #B71C1C; border: 1px solid #F0A8A8; }

/* ── PAGE HERO ── */
.page-hero {
    background: var(--navy); color: var(--white);
    padding: 3rem 0; text-align: center;
}
.page-hero h1 { font-size: 2.5rem; }
.page-hero p  { color: #A8C0E0; margin-top: .5rem; }
.breadcrumb   { color: #A8C0E0; font-size: .9rem; margin-top: .75rem; }
.breadcrumb a { color: var(--gold); }

/* ── ABOUT PAGE ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.value-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem; text-align: center;
    border-top: 4px solid var(--blue);
}
.value-card h4 { color: var(--navy); margin-bottom: .4rem; }

/* ── ARTICLE PAGE ── */
.article-body { line-height: 1.9; font-size: 1.05rem; }
.article-body h2, .article-body h3 { color: var(--navy); margin: 1.5rem 0 .75rem; }
.article-body p  { margin-bottom: 1rem; }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }

/* ── ADMISSIONS ── */
.requirements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.req-item { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.req-check { color: var(--green); font-size: 1.3rem; flex-shrink: 0; }
.doc-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: .5rem;
    background: var(--white); box-shadow: var(--shadow);
}
.doc-info strong { display: block; color: var(--navy); }
.doc-info small  { color: var(--muted); }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-detail { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; min-width: 32px; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem; }
.map-embed iframe { width: 100%; height: 280px; border: none; display: block; }

/* ── ADMIN PANEL ── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy); color: var(--white); padding: 1.5rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { padding: 0 1.5rem 1.25rem; font-size: 1.1rem; font-weight: 700; border-bottom: 1px solid #1E3A5A; }
.admin-nav a { display: block; padding: .7rem 1.5rem; color: #A8C0E0; font-size: .95rem; transition: background .15s; }
.admin-nav a:hover, .admin-nav a.active { background: #1E3A5A; color: var(--white); }
.admin-main { background: var(--off); padding: 2rem; }
.admin-title { font-size: 1.5rem; color: var(--navy); margin-bottom: 1.5rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--navy); color: var(--white); padding: .75rem 1rem; text-align: left; font-size: .9rem; }
.admin-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); font-size: .95rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off); }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.badge-green  { background: #D1FAE5; color: var(--green); }
.badge-orange { background: #FEF3C7; color: #B45309; }
.badge-red    { background: #FEE2E2; color: #B91C1C; }
.stat-cards   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card    { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.stat-card-num   { font-size: 2.5rem; font-weight: 700; }
.stat-card-label { color: var(--muted); font-size: .9rem; margin-top: .3rem; }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: #A8C0E0; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.footer-col h3, .footer-col h4 { color: var(--white); margin-bottom: 1rem; }
.footer-col p   { font-size: .9rem; margin-bottom: .4rem; }
.footer-col a   { display: block; color: #A8C0E0; font-size: .9rem; margin-bottom: .4rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1E3A5A; padding: 1.25rem 0; margin-top: 2.5rem; text-align: center; font-size: .875rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cards-grid   { grid-template-columns: 1fr 1fr; }
    .staff-grid   { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid   { grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: 1fr; }
    .about-grid, .contact-grid, .requirements-grid, .form-row { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
}

@media (max-width: 640px) {
    .hero h1       { font-size: 2rem; }
    .cards-grid    { grid-template-columns: 1fr; }
    .staff-grid    { grid-template-columns: 1fr 1fr; }
    .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
    .hero-btns     { flex-direction: column; align-items: center; }
    .stat-cards    { grid-template-columns: 1fr 1fr; }
    .value-cards   { grid-template-columns: 1fr; }
    .main-nav {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); padding: 1rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0,0,0,.25);
    }
    .main-nav.open { display: flex; }
    .burger        { display: flex; }
    .top-bar-inner { justify-content: center; gap: 1rem; font-size: .78rem; }
}
@media (max-width: 900px) {

    .hero {
        min-height: 560px;
    }

    .hero-container {
        align-items: flex-start;
    }

    .hero-highlight {
        display: none;
    }

    .hero-content {
        max-width: 700px;
    }

}

@media (max-width: 640px) {

    .hero {
        min-height: 540px;

        background-position: center;

        text-align: left;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        align-items: flex-start;
    }

    .hero .btn {
        width: 100%;

        text-align: center;
    }

}
/* ============================================================
   PREMIUM LATEST NEWS SECTION
============================================================ */

.news-section {
    position: relative;
    padding: 6.5rem 0;
    background: #f7f9fc;
    overflow: hidden;
}

.news-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(249, 168, 37, .07);
    top: -220px;
    right: -160px;
    pointer-events: none;
}


/* ── SECTION HEADING ── */

.news-heading {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 3rem;
    margin-bottom: 3.2rem;
}

.news-heading-content {
    max-width: 680px;
}

.section-eyebrow {
    display: inline-block;

    color: var(--gold);

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .14em;
    text-transform: uppercase;

    margin-bottom: .8rem;
}

.news-heading h2 {
    color: var(--navy);

    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 1.08;

    letter-spacing: -.035em;

    margin-bottom: 1rem;
}

.news-heading p {
    max-width: 620px;

    color: var(--muted);

    font-size: 1.05rem;
    line-height: 1.75;

    margin: 0;
}


/* ── VIEW ALL BUTTON ── */

.news-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .8rem;

    min-width: 155px;

    padding: .9rem 1.4rem;

    border: 1px solid rgba(8, 36, 73, .18);
    border-radius: 8px;

    color: var(--navy);

    font-size: .9rem;
    font-weight: 700;

    text-decoration: none;

    background: var(--white);

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.news-view-all span {
    font-size: 1.2rem;
    transition: transform .3s ease;
}

.news-view-all:hover {
    transform: translateY(-3px);

    background: var(--navy);
    color: var(--white);

    border-color: var(--navy);
}

.news-view-all:hover span {
    transform: translateX(5px);
}


/* ── NEWS GRID ── */

.news-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1.7rem;
}


/* ── NEWS CARD ── */

.news-card {
    min-width: 0;

    background: var(--white);

    border: 1px solid rgba(8, 36, 73, .08);
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(8, 36, 73, .07);

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}

.news-card:hover {
    transform: translateY(-8px);

    border-color: rgba(249, 168, 37, .35);

    box-shadow:
        0 24px 55px rgba(8, 36, 73, .14);
}


/* ── NEWS IMAGE ── */

.news-image {
    position: relative;

    display: block;

    height: 245px;

    overflow: hidden;

    background: var(--navy);
}

.news-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(5, 20, 42, .58) 100%
        );

    pointer-events: none;
}

.news-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .7s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.07);
}


/* ── IMAGE PLACEHOLDER ── */

.news-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #071e3d,
            #123f73
        );
}

.news-image-placeholder span {
    color: rgba(255, 255, 255, .12);

    font-size: 4rem;
    font-weight: 900;

    letter-spacing: .08em;
}


/* ── CATEGORY BADGE ── */

.news-category {
    position: absolute;

    left: 1.3rem;
    bottom: 1.2rem;

    z-index: 3;

    display: inline-flex;
    align-items: center;

    padding: .45rem .8rem;

    border-radius: 30px;

    background: var(--category-color);

    color: var(--white);

    font-size: .7rem;
    font-weight: 800;

    letter-spacing: .07em;
    text-transform: uppercase;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .18);
}


/* ── NEWS CONTENT ── */

.news-card-content {
    padding: 1.7rem;
}

.news-meta {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: .55rem;

    color: #8090a6;

    font-size: .72rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .04em;

    margin-bottom: 1rem;
}

.news-date {
    color: var(--gold);
}

.news-meta-dot {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #aab4c2;
}

.news-card h3 {
    margin: 0 0 .9rem;
}

.news-card h3 a {
    display: block;

    color: var(--navy);

    font-size: 1.35rem;
    line-height: 1.35;

    letter-spacing: -.015em;

    text-decoration: none;

    transition: color .3s ease;
}

.news-card:hover h3 a {
    color: var(--gold);
}

.news-card-content p {
    color: var(--muted);

    font-size: .92rem;
    line-height: 1.7;

    margin-bottom: 1.5rem;
}


/* ── READ MORE ── */

.news-read-more {
    display: inline-flex;
    align-items: center;

    gap: .65rem;

    color: var(--navy);

    font-size: .83rem;
    font-weight: 800;

    text-decoration: none;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.news-read-more span {
    color: var(--gold);

    font-size: 1.1rem;

    transition: transform .3s ease;
}

.news-read-more:hover span {
    transform: translateX(6px);
}


/* ── EMPTY NEWS STATE ── */

.news-empty {
    position: relative;
    z-index: 2;

    max-width: 720px;

    margin: 0 auto;

    padding: 4rem 2rem;

    text-align: center;

    background: var(--white);

    border: 1px solid rgba(8, 36, 73, .08);
    border-radius: 16px;

    box-shadow:
        0 18px 50px rgba(8, 36, 73, .07);
}

.news-empty-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 1.4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(249, 168, 37, .12);

    color: var(--gold);

    font-size: 1.6rem;
}

.news-empty h3 {
    color: var(--navy);

    font-size: 1.65rem;

    margin-bottom: .7rem;
}

.news-empty p {
    max-width: 500px;

    margin: 0 auto;

    color: var(--muted);

    font-size: .95rem;
    line-height: 1.7;
}


/* ── TABLET ── */

@media (max-width: 900px) {

    .news-section {
        padding: 5rem 0;
    }

    .news-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 1.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card-featured {
        grid-column: 1 / -1;
    }

    .news-card-featured .news-image {
        height: 340px;
    }

}


/* ── MOBILE ── */

@media (max-width: 640px) {

    .news-section {
        padding: 4rem 0;
    }

    .news-heading {
        margin-bottom: 2.2rem;
    }

    .news-heading h2 {
        font-size: 2.15rem;
    }

    .news-heading p {
        font-size: .95rem;
    }

    .news-view-all {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .news-card-featured {
        grid-column: auto;
    }

    .news-card-featured .news-image,
    .news-image {
        height: 230px;
    }

    .news-card-content {
        padding: 1.4rem;
    }

    .news-card h3 a {
        font-size: 1.2rem;
    }

    .news-empty {
        padding: 3rem 1.3rem;
    }

}
/* ============================================================
   WHY KALINABIRI SECTION
============================================================ */

.why-school {
    position: relative;
    padding: 7rem 0;
    background: #ffffff;
    overflow: hidden;
}

.why-school::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(249, 168, 37, .07);
    top: -220px;
    right: -150px;
    pointer-events: none;
}

.why-school-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 6rem;
    align-items: center;
}


/* ── IMAGE SIDE ── */

.why-school-visual {
    position: relative;
    min-width: 0;
}

.why-image-frame {
    position: relative;
    height: 610px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 30px 70px rgba(7, 30, 61, .18);
}

.why-image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(5, 20, 42, .35) 100%
    );
    pointer-events: none;
}

.why-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.why-experience-card {
    position: absolute;
    right: -35px;
    bottom: 45px;
    z-index: 3;

    width: 210px;
    min-height: 145px;

    padding: 1.7rem;

    background: var(--gold);
    color: var(--navy);

    border-radius: 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0 20px 45px rgba(5, 20, 42, .25);
}

.why-experience-card strong {
    display: block;
    font-size: 2.7rem;
    line-height: 1;
    letter-spacing: -.04em;
    margin-bottom: .6rem;
}

.why-experience-card span {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}


/* ── CONTENT SIDE ── */

.why-school-content {
    min-width: 0;
}

.why-school-content .section-eyebrow {
    display: inline-block;
    margin-bottom: 1.2rem;

    color: #e28d00;

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .16em;
    text-transform: uppercase;
}

.why-school-content h2 {
    max-width: 650px;

    margin: 0 0 1.5rem;

    color: var(--navy);

    font-size: clamp(2.5rem, 4vw, 4.4rem);
    line-height: 1.06;

    letter-spacing: -.045em;
}

.why-school-content h2 span {
    color: #e28d00;
}

.why-intro {
    max-width: 650px;

    margin-bottom: 2.5rem;

    color: var(--muted);

    font-size: 1.05rem;
    line-height: 1.8;
}


/* ── FEATURE GRID ── */

.why-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.why-feature {
    display: flex;
    gap: 1rem;

    padding: 1.25rem;

    border: 1px solid #e6ebf2;
    border-radius: 16px;

    background: #ffffff;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.why-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 168, 37, .5);
    box-shadow: 0 18px 40px rgba(7, 30, 61, .09);
}

.why-feature-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(249, 168, 37, .12);
    color: #e28d00;

    font-size: 1rem;
}

.why-feature h3 {
    margin: 0 0 .45rem;

    color: var(--navy);

    font-size: 1rem;
}

.why-feature p {
    margin: 0;

    color: var(--muted);

    font-size: .86rem;
    line-height: 1.65;
}


/* ── DISCOVER LINK ── */

.why-link {
    display: inline-flex;
    align-items: center;
    gap: .8rem;

    color: var(--navy);

    font-size: .9rem;
    font-weight: 800;

    text-decoration: none;
}

.why-link span {
    width: 35px;
    height: 35px;

    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--gold);
    color: var(--navy);

    transition: transform .3s ease;
}

.why-link:hover span {
    transform: translateX(6px);
}


/* ── WHY SECTION RESPONSIVE ── */

@media (max-width: 1000px) {

    .why-school-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .why-school-visual {
        max-width: 700px;
    }

    .why-image-frame {
        height: 520px;
    }

    .why-experience-card {
        right: 25px;
    }

}


@media (max-width: 640px) {

    .why-school {
        padding: 4.5rem 0;
    }

    .why-school-grid {
        gap: 3rem;
    }

    .why-image-frame {
        height: 430px;
        border-radius: 20px;
    }

    .why-experience-card {
        right: 15px;
        bottom: 20px;

        width: 175px;
        min-height: 115px;

        padding: 1.3rem;
    }

    .why-experience-card strong {
        font-size: 2.1rem;
    }

    .why-school-content h2 {
        font-size: 2.5rem;
    }

    .why-features {
        grid-template-columns: 1fr;
    }

}
