*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #f9fafb;
    scroll-behavior: smooth;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
}

.logo-img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    background: #111827;
}

.logo-text {
    letter-spacing: 0.02em;
}

.nav {
    display: none;
    gap: 16px;
    font-size: 14px;
}

.nav a {
    position: relative;
    padding: 4px 8px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: #012454;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease-out;
}

.nav a:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.nav a.active {
    background: #e5e7eb;
}

.nav a.active::after {
    transform: scaleX(1);
}

.lang-switcher {
    display: none;
    gap: 8px;
    font-size: 13px;
}

.lang-switcher a {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.lang-switcher a.active {
    border-color: #012454;
    color: #012454;
}

/* Compact toggle near menu (mobile) */
.lang-toggle-compact {
    display: none;
}

/* Mobile-only inline language toggle inside nav (deprecated, kept for compatibility) */
.nav-lang-toggle {
    display: none;
}

.menu-toggle {
    border: none;
    background: transparent;
    font-size: 20px;
    padding: 4px 8px;
    border-radius: 999px;
}

.menu-toggle:active {
    background: #e5e7eb;
}

@keyframes mobileNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    position: relative;
    display: flex;
    padding: 80px 0 60px;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    color: #111827;
    overflow: hidden;
}

.hero-inner {
    max-width: 640px;
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.45));
    padding: 20px 20px 22px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    transform: translate(var(--hero-offset-x, 0), var(--hero-offset-y, 0));
    transition: transform 0.25s ease;
}

.hero-inner h1,
.hero-inner p,
.hero-inner a {
    color: inherit;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
}

.hero-description {
    margin-top: 16px;
    font-size: 14px;
}

.hero-title--mobile,
.hero-subtitle--mobile,
.hero-description--mobile {
    display: none;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video--desktop {
    display: none;
}

.hero-video--mobile {
    display: block;
}

.hero-pos-top-left {
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-pos-top-center {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.hero-pos-top-right {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
}

.hero-pos-center-left {
    align-items: center;
    justify-content: flex-start;
}

.hero-pos-center-center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-pos-center-right {
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.hero-pos-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.hero-pos-bottom-center {
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.hero-pos-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

.hero-pos-top-center .hero-cta,
.hero-pos-center-center .hero-cta,
.hero-pos-bottom-center .hero-cta {
    justify-content: center;
}

@media (max-width: 767px) {
    .hero-pos-mobile-top-left {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .hero-pos-mobile-top-center {
        align-items: flex-start;
        justify-content: center;
        text-align: center;
    }

    .hero-pos-mobile-top-right {
        align-items: flex-start;
        justify-content: flex-end;
        text-align: right;
    }

    .hero-pos-mobile-center-left {
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .hero-pos-mobile-center-center {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-pos-mobile-center-right {
        align-items: center;
        justify-content: flex-end;
        text-align: right;
    }

    .hero-pos-mobile-bottom-left {
        align-items: flex-end;
        justify-content: flex-start;
        text-align: left;
    }

    .hero-pos-mobile-bottom-center {
        align-items: flex-end;
        justify-content: center;
        text-align: center;
    }

    .hero-pos-mobile-bottom-right {
        align-items: flex-end;
        justify-content: flex-end;
        text-align: right;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.btn.primary {
    background: #0f172a;
    color: #f9fafb;
}

.btn.secondary {
    background: #012454;
    color: #f9fafb;
}

.btn.ghost {
    border-color: #d1d5db;
    background: #fff;
}

.btn.small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn:hover {
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.section {
    padding: 50px 0;
}

.section-alt {
    background: #f3f4f6;
}

.section h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.section-intro {
    max-width: 520px;
    font-size: 14px;
    color: #4b5563;
}

.about-grid {
    display: grid;
    gap: 20px;
    margin-top: 16px;
}

.about-grid h3 {
    margin-bottom: 4px;
    font-size: 16px;
}

.about-grid p,
.about-grid ul {
    font-size: 14px;
    color: #4b5563;
}

.card-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 14px 16px 16px;
    font-size: 14px;
}

.card-body h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.card-body p {
    margin: 0 0 10px;
    color: #4b5563;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.main-program-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
    color: #f9fafb;
    overflow: hidden;
}

.main-program-card .card-body {
    color: inherit;
    padding: 18px 18px 20px;
    text-align: center;
}

.main-program-card .card-body h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.main-program-card .card-body p {
    color: rgba(249, 250, 251, 0.88);
}

.main-program-card .meta {
    color: rgba(209, 213, 219, 0.9);
    margin-bottom: 10px;
}

.main-program-card .btn {
    margin-top: 8px;
}

.main-program-image {
    min-height: 220px;
}

.main-program-image--video {
    position: relative;
}

.main-program-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-program-image--desktop {
    display: none;
}

.main-program-image--mobile {
    display: block;
}

@media (min-width: 768px) {
    .main-program-image--desktop {
        display: block;
    }
    .main-program-image--mobile {
        display: none;
    }
    .main-program-card .card-body {
        padding: 22px 22px 24px;
    }
}

.meta {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    color: #6b7280;
}

.why-us {
    margin-top: 24px;
}

.why-us h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.why-us ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.why-us li {
    margin-bottom: 4px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 13px;
}

.events-grid {
    display: grid;
    gap: 20px;
    margin-top: 16px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.event-card--past {
    opacity: 0.85;
}

.event-card h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.event-date,
.event-location {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 4px;
}

.contact-grid {
    display: grid;
    gap: 20px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 14px;
    color: #4b5563;
}

.contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-icon::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-icon--location::before {
    background-image: url("../img/icon-location.svg");
}

.contact-icon--phone::before {
    background-image: url("../img/icon-phone.svg");
}

.contact-icon--mail::before {
    background-image: url("../img/icon-mail.svg");
}

.contact-icon--social::before {
    background-image: url("../img/icon-social.svg");
}

.contact-label {
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 13px;
    color: #4b5563;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-socials a {
    color: rgb(227, 153, 15);
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-size: 13px;
    display: grid;
    gap: 4px;
}

.contact-form input,
.contact-form textarea {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font: inherit;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 0;
    font-size: 13px;
    background: #f9fafb;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links,
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a,
.footer-meta a {
    color: #4b5563;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Enable animations only when JS is running (prevents blank content if JS fails). */
.js .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1), transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), filter 0.7s ease-out;
}

.js .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (min-width: 768px) {
    .header-inner {
        gap: 16px;
    }

    .nav {
        display: flex;
    }

    .lang-switcher {
        display: flex;
    }

    /* Compact language toggle is mobile-only */
    .lang-toggle-compact {
        display: none;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .about-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1.1fr 1fr;
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .hero {
        background-image: var(--hero-bg-mobile, var(--hero-bg, none)) !important;
    }

    .header-inner {
        gap: 8px;
    }

    .nav.open {
        display: flex;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
        padding: 12px 16px 14px;
        border-bottom: 1px solid #020617;
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: 10px;
        box-shadow: 0 30px 60px rgba(15, 23, 42, 0.75);
        transform: translateY(-8px);
        opacity: 0;
        animation: mobileNavFadeIn 0.18s ease-out forwards;
    }

    .nav.open a {
        padding: 6px 10px;
        margin-right: 8px;
        margin-bottom: 4px;
        background: rgba(31, 41, 55, 0.85);
        color: #f9fafb;
        border-radius: 999px;
        font-size: 13px;
        backdrop-filter: blur(4px);
        transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
    }

    .nav.open a:hover {
        background: rgba(55, 65, 81, 0.95);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.55);
    }

    .nav.open a.active {
        background: #012454;
        color: #0b1120;
    }

    .lang-switcher {
        display: none;
    }

    .lang-toggle-compact {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
    }

    .lang-toggle-compact a {
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.7);
        background: rgba(15, 23, 42, 0.9);
        color: #e5e7eb;
    }

    .lang-toggle-compact a:hover {
        background: rgba(30, 64, 175, 0.95);
    }

    .hero-inner {
        max-width: 100%;
        margin: 0;
        padding: 16px 14px 18px;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-title--desktop,
    .hero-subtitle--desktop,
    .hero-description--desktop {
        display: none;
    }

    .hero-title--mobile,
    .hero-subtitle--mobile,
    .hero-description--mobile {
        display: block;
    }

    .hero-inner {
        transform: translate(var(--hero-offset-x-mobile, var(--hero-offset-x, 0)), var(--hero-offset-y-mobile, var(--hero-offset-y, 0)));
    }

    .hero-video--desktop {
        display: none;
    }

    .hero-video--mobile {
        display: block;
    }

    .hero-pos-mobile-top-center .hero-cta,
    .hero-pos-mobile-center-center .hero-cta,
    .hero-pos-mobile-bottom-center .hero-cta {
        justify-content: center;
    }
}
