:root {
    --primary: #001f7a;
    --primary-dark: #00165a;
    --accent: #0b5cff;
    --bg: #f4f7ff;
    --surface: #ffffff;
    --text: #131722;
    --muted: #64748b;
    --border: #dbe4ff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

html {
    scroll-behavior: smooth;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--primary);
    backdrop-filter: blur(8px);
    border-bottom: none;
}

.navbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    color: #fff;
    min-width: max-content;
}

.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: transparent;
    border: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: none;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.brand-sub {
    font-size: .72rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: .4rem;
    display: flex;
    align-items: center;
    gap: .25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 22, 90, 0.08);
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-size: .9rem;
    font-weight: 600;
    padding: .6rem .95rem;
    border-radius: 999px;
    transition: .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary);
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.btn {
    text-decoration: none;
    border-radius: 10px;
    padding: .62rem .95rem;
    font-size: .88rem;
    font-weight: 700;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: .2s ease;
}

.btn-outline {
    color: var(--primary);
    border-color: var(--border);
    background: #fff;
}

.btn-outline:hover { border-color: var(--primary); }

.btn-solid {
    background: var(--primary);
    color: #fff;
}

.btn-solid:hover { background: var(--primary-dark); }

.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1rem;
    display: none;
    place-items: center;
    cursor: pointer;
}

.hero {
    padding: 4.3rem 0 3.8rem;
    min-height: calc(100vh - 78px);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(3, 16, 68, 0.92) 0%, rgba(2, 18, 81, 0.88) 45%, rgba(5, 41, 118, 0.83) 100%),
        radial-gradient(circle at 16% 20%, rgba(69, 139, 255, 0.25) 0%, rgba(69, 139, 255, 0) 50%),
        radial-gradient(circle at 86% 18%, rgba(96, 164, 255, 0.23) 0%, rgba(96, 164, 255, 0) 44%);
}


.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: none;
}
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    font-size: 2.2rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider-btn:hover {
    background: rgba(0,0,0,0.6);
}
.hero-slider-btn.prev { left: 2.5%; }
.hero-slider-btn.next { right: 2.5%; }

/* Optional: slider dots/indicators */
.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 2.5%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-slider-dot.active {
    background: #fff;
}


.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-size: min(40vw, 460px);
    background-position: right 6% center;
    opacity: .16;
    filter: saturate(1.2) contrast(1.1);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 1.6rem;
    align-items: stretch;
}

.hero-card,
.stats-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 228, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(0, 31, 122, 0.1);
    padding: 1.55rem;
    backdrop-filter: blur(3px);
}

.hero-kicker {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

h1 {
    margin: .6rem 0 .8rem;
    font-size: clamp(1.8rem, 2.8vw, 2.7rem);
    line-height: 1.15;
}

.hero-copy {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    max-width: 56ch;
}

.hero-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hero-badges span {
    background: #eef4ff;
    border: 1px solid #dce8ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: .32rem .68rem;
    font-size: .78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.hero-badges i { color: var(--accent); }

.hero-points {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #334155;
    font-size: .92rem;
}

.hero-points i {
    color: var(--accent);
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
}

.hero-highlight {
    margin-top: 1rem;
    border: 1px solid #dce8ff;
    border-radius: 14px;
    background: linear-gradient(145deg, #f6f9ff 0%, #eaf1ff 100%);
    padding: .9rem 1rem;
}

.hero-highlight-title {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    font-size: .94rem;
}

.hero-highlight-copy {
    margin: .35rem 0 .5rem;
    color: #475569;
    font-size: .88rem;
    line-height: 1.55;
}

.hero-highlight-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: .86rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.hero-highlight-link:hover {
    color: var(--accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.stat-item {
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .9rem;
}

.stat-value {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-label {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
}

.panel-title {
    margin: 0 0 .85rem;
    font-size: 1.05rem;
    color: #0f172a;
}

.mini-note {
    margin-top: .9rem;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 500;
}

.section {
    padding: 4rem 0;
}

.section-header {
    max-width: 760px;
    margin-bottom: 1.4rem;
}

.section-kicker {
    margin: 0;
    color: var(--accent);
    text-transform: uppercase;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.section-header h2,
.about-card h2,
.contact-card h2 {
    margin: .5rem 0 .6rem;
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    color: #0f172a;
}

.section-header p,
.about-card p,
.contact-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.program-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 31, 122, 0.08);
    padding: 1.25rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(0, 31, 122, 0.14);
}

.program-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(11, 92, 255, 0.1);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: .7rem;
}

.program-card h3 {
    margin: 0 0 .45rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.program-card p { margin: 0; color: #475569; font-size: .92rem; line-height: 1.6; }

.section-about { background: #eff4ff; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-card,
.about-points,
.contact-card,
.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 31, 122, 0.08);
    padding: 1.25rem;
}

.about-card p + p {
    margin-top: .75rem;
}

.about-points {
    display: grid;
    gap: .8rem;
}

.about-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: .75rem;
    align-items: start;
    padding: .7rem;
    border: 1px solid #e7edff;
    border-radius: 12px;
    background: #f9fbff;
}

.about-item i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(11, 92, 255, 0.12);
    color: var(--accent);
}

.about-item h4 {
    margin: .15rem 0 .25rem;
    font-size: .98rem;
    color: #0f172a;
}

.about-item p {
    margin: 0;
    font-size: .88rem;
    color: #475569;
    line-height: 1.55;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.gallery-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 31, 122, 0.08);
}

.gallery-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f8fbff;
}

.gallery-card span {
    display: block;
    padding: .75rem .8rem;
    font-weight: 600;
    color: #0f172a;
    font-size: .9rem;
}

.section-contact {
    background: linear-gradient(180deg, #f4f7ff 0%, #e9f0ff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.contact-list li {
    display: flex;
    gap: .55rem;
    color: #334155;
    align-items: center;
}

.contact-list i { color: var(--accent); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.form-group { display: grid; gap: .35rem; margin-bottom: .75rem; }

.form-group label {
    color: #334155;
    font-size: .86rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #dce5ff;
    border-radius: 10px;
    padding: .65rem .75rem;
    font-family: inherit;
    font-size: .9rem;
    color: #0f172a;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
}

.site-footer {
    background: #071346;
    color: #dbe6ff;
    padding: 2.4rem 0 1.2rem;
}

/* footer content now uses responsive grid columns */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 1.6rem;
}

.footer-col h4 {
    margin: 0 0 .8rem;
    font-size: 1.05rem;
    color: #fff;
}

.footer-col p,
.footer-col ul,
.footer-col li {
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: .4rem;
}

.footer-col a {
    color: #e3ebff;
    text-decoration: none;
    font-size: .9rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-contact p i {
    margin-right: .6rem;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: .82rem;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: .9rem;
}

.events-hero {
    padding-top: 3.2rem;
    padding-bottom: 2.4rem;
    background: radial-gradient(circle at 18% 20%, rgba(11, 92, 255, 0.14) 0%, rgba(11, 92, 255, 0) 46%), radial-gradient(circle at 85% 22%, rgba(0, 31, 122, 0.14) 0%, rgba(0, 31, 122, 0) 44%);
}

.events-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1rem;
}

.events-hero-card,
.events-feature-card,
.events-card,
.events-empty {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 31, 122, 0.08);
    padding: 1.2rem;
}

.events-db-note {
    margin: .8rem 0 0;
    color: #334155;
    font-size: .88rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #edf3ff;
    border: 1px solid #dbe8ff;
    border-radius: 999px;
    padding: .32rem .72rem;
}

.events-db-note i { color: var(--accent); }

.events-hero-stats {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.events-stat-item {
    background: #f6f9ff;
    border: 1px solid #dfe8ff;
    border-radius: 12px;
    padding: .7rem .8rem;
    display: grid;
    gap: .2rem;
}

.events-stat-value {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
}

.events-stat-label {
    color: var(--muted);
    font-size: .8rem;
}

.events-feature-card h3 {
    margin: 0 0 .55rem;
    color: var(--accent);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.events-feature-card h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
}

.events-feature-card ul {
    list-style: none;
    margin: .9rem 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}

.events-feature-card li {
    display: flex;
    gap: .5rem;
    align-items: center;
    color: #334155;
}

.events-feature-card i,
.events-meta i {
    color: var(--accent);
}

.events-feature-card p,
.events-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.section-events-list {
    padding-top: 2.2rem;
}

.events-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .65rem;
}

.events-card-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.07rem;
}

.events-card {
    transition: transform .22s ease, box-shadow .22s ease;
    border-left: 4px solid #dbe8ff;
}

.events-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 31, 122, 0.12);
    border-left-color: var(--accent);
}

.events-status {
    background: #eaf1ff;
    color: var(--primary);
    border-radius: 999px;
    padding: .26rem .62rem;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.events-status-scheduled {
    background: #e6f6ff;
    color: #0369a1;
}

.events-status-completed {
    background: #e8f8ee;
    color: #166534;
}

.events-status-cancelled {
    background: #feecec;
    color: #b91c1c;
}

.events-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    margin-bottom: .55rem;
    color: #334155;
    font-size: .86rem;
}

.events-meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.events-empty {
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    min-height: 120px;
    display: grid;
    place-items: center;
    gap: .4rem;
}

.events-empty i {
    font-size: 1.5rem;
    color: #94a3b8;
}

.events-note {
    margin-top: .9rem;
    color: #64748b;
    font-size: .9rem;
    background: #f2f6ff;
    border: 1px solid #dbe8ff;
    border-radius: 10px;
    padding: .65rem .8rem;
}

.events-ref-hero {
    padding-top: 3rem;
    padding-bottom: 1.2rem;
    background: #f7f9ff;
}

.events-ref-kicker {
    margin: 0;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
}

.events-ref-title {
    margin: .45rem 0 .5rem;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    color: #111827;
}

.events-ref-subtitle {
    margin: 0;
    color: #475569;
    max-width: 66ch;
}

.events-ref-section {
    padding-top: 1.6rem;
    padding-bottom: 2rem;
}

.events-ref-past-wrap {
    background: #f8fbff;
}

.events-ref-block {
    background: #fff;
    border: 1px solid #e6ecff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 24px rgba(0, 31, 122, 0.06);
}

.events-ref-block h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
}

.events-ref-intro {
    margin: .35rem 0 1rem;
    color: #64748b;
}

.events-ref-list {
    display: grid;
    gap: .85rem;
}

.events-ref-item {
    border: 1px solid #e8eeff;
    border-radius: 12px;
    background: #fff;
    padding: .9rem;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: .9rem;
}

.events-ref-date {
    border: 1px solid #dfe8ff;
    border-radius: 10px;
    background: #f4f8ff;
    color: #1e3a8a;
    padding: .65rem .75rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .9rem;
    height: fit-content;
}

.events-ref-content h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
}

.events-ref-content p {
    margin: .45rem 0 0;
    color: #475569;
    line-height: 1.58;
}

.events-ref-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.events-ref-meta {
    font-size: .88rem;
    color: #334155;
}

.events-ref-meta i {
    color: var(--accent);
}

.events-ref-empty {
    border: 1px dashed #cfdcff;
    border-radius: 12px;
    padding: 1rem;
    color: #64748b;
    background: #f8faff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-spacer {
    padding: 1rem 0 3rem;
}

.section-note {
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1020px) {
    .brand-badge {
        width: 50px;
        height: 50px;
    }

    .nav-links {
        position: fixed;
        left: 0;
        right: 0;
        top: 78px;
        margin: 0 auto;
        width: min(92%, 500px);
        border-radius: 16px;
        display: grid;
        grid-template-columns: 1fr;
        gap: .3rem;
        padding: .65rem;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: .2s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        justify-content: flex-start;
        border-radius: 10px;
    }

    .menu-toggle { display: grid; }

    .nav-actions .btn-outline { display: none; }

    .hero-grid { grid-template-columns: 1fr; }

    .hero {
        min-height: auto;
        padding: 3.4rem 0 3rem;
    }

    .hero-bg-overlay {
        background-size: min(56vw, 320px);
        background-position: center 18%;
        opacity: .12;
    }

    .program-grid,
    .gallery-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .events-hero-grid {
        grid-template-columns: 1fr;
    }

    .events-list {
        grid-template-columns: 1fr;
    }

    .events-ref-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand-badge {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .brand-title { font-size: .92rem; }
    .brand-sub { display: none; }
    .btn-solid { padding: .6rem .82rem; font-size: .82rem; }
    .hero {
        padding-top: 2.8rem;
        padding-bottom: 2.8rem;
    }

    .hero-bg-overlay {
        background-size: 60vw;
        background-position: center 14%;
    }
    .stats-grid { grid-template-columns: 1fr; }

    .hero-points li { align-items: flex-start; }

    .hero-badges {
        gap: .4rem;
    }

    .hero-badges span {
        font-size: .74rem;
    }

    .program-grid,
    .gallery-grid,
    .about-grid,
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .events-hero-stats {
        grid-template-columns: 1fr;
    }

    .events-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .events-feature-card .events-card-head {
        gap: .45rem;
    }

    .events-ref-block {
        padding: 1rem .85rem;
    }

    .section {
        padding: 3.25rem 0;
    }

    /* ensure hero images shrink on small screens */
    .hero-slide img {
        height: auto;
        max-height: 70vh;
    }
}
