/* ===========================================================
   MMI Academy — Shared Styles
   Brand blue (#04395E) extracted directly from the Principal's
   graduation gown trouser fabric. "Liquid glass" frosted-panel
   aesthetic, inspired by iOS-style glassmorphism.
   =========================================================== */
:root {
    --color-primary: #04395E;      /* deep teal-navy — from the gown */
    --color-primary-light: #0F5D8C;
    --color-accent: #D4AF37;       /* warm gold — academic accent */
    --color-bg-1: #E8F0F5;
    --color-bg-2: #D9E6EE;
    --color-text: #1B2A33;
    --color-white: #FFFFFF;

    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: rgba(4, 57, 94, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--color-text);
    line-height: 1.6;
    background: linear-gradient(160deg, var(--color-bg-1) 0%, var(--color-bg-2) 45%, #EFE9DA 100%);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Floating blurred light blobs behind everything — the "liquid" part of liquid glass */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    opacity: 0.55;
    animation: float 18s ease-in-out infinite;
}

body::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, var(--color-primary-light), transparent 70%);
}

body::after {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, var(--color-accent), transparent 70%);
    animation-delay: -9s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}

/* --- Glass header --- */
header.site-header {
    /* NOTE: no backdrop-filter/transform/filter/will-change directly on this
       element. Those properties create a new "containing block" for any
       position:fixed descendants, which would make our fixed mobile nav
       and backdrop position themselves relative to this (small) header box
       instead of the viewport. The frosted-glass look is applied via the
       ::before pseudo-element below instead, so header stays "clean". */
    color: var(--color-white);
    padding: 1.3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

header.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 57, 94, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    z-index: -1;
}

header.site-header h1 {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

header.site-header nav a {
    color: var(--color-white);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
    white-space: nowrap;
    transition: opacity 0.2s, color 0.2s;
}
header.site-header nav a:hover { opacity: 1; color: var(--color-accent); }

/* --- Hero: full-width background, centered split-layout content inside --- */
.hero {
    background: linear-gradient(135deg, rgba(4,57,94,0.92), rgba(15,93,140,0.85));
    color: var(--color-white);
    padding: 4.5rem 3rem;
    position: relative;
    width: 100%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Hamburger menu toggle (checkbox-based, no JS needed) --- */
.nav-toggle { display: none; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    cursor: pointer;
    margin-left: auto;
    z-index: 20;
}
.nav-hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-white);
    border-radius: 2px;
}

/* --- Mobile navigation --- */
.nav-toggle {
    display: none;
}

.nav-backdrop {
    display: none;
}

@media (max-width: 768px) {
    .hero-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-card {
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .hero-content {
        text-align: center !important;
        flex: none !important;
        min-width: 0 !important;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    header.site-header {
        position: sticky;
        top: 0;
        flex-wrap: nowrap;
        padding: 1rem 1.2rem;
        z-index: 100;
    }

    header.site-header h1 {
        font-size: 1.15rem;
    }

    .nav-hamburger {
        display: flex;
        position: relative;
        z-index: 110;
    }

    header.site-header nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 240px;
        max-width: 75%;
        background: rgba(4, 57, 94, 0.97);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 105;
        box-shadow: -8px 0 24px rgba(0,0,0,0.25);
    }

    header.site-header nav a {
        margin: 0.6rem 0;
        font-size: 1.05rem;
        text-align: left;
    }

    header.site-header nav span {
        margin: 0.2rem 0 !important;
    }

    .nav-toggle:checked ~ nav {
        transform: translateX(0);
    }

    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 104;
    }

    .nav-toggle:checked ~ .nav-backdrop {
        display: block;
    }
}
.hero-content { text-align: left; min-width: 0; }
.hero-card { min-width: 0; }

.hero h2 { font-size: 2.6rem; margin-bottom: 1rem; line-height: 1.15; }
.hero p { font-size: 1.1rem; max-width: 480px; margin: 0 0 2rem; opacity: 0.92; }

/* --- Glass buttons --- */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), #C79A2E);
    color: var(--color-primary);
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.45);
}

main { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }

/* --- Glass cards: the core "liquid glass" panel --- */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--glass-shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* subtle glossy highlight across the top of every glass panel */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.card h2 { color: var(--color-primary); }

form label {
    display: block;
    margin: 1rem 0 0.4rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--color-primary);
}

form input, form select, form textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid rgba(4,57,94,0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    transition: border 0.2s, box-shadow 0.2s;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(15,93,140,0.15);
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-success { background: rgba(230,244,234,0.85); color: #1E7A34; border: 1px solid rgba(183,225,194,0.7); }
.alert-error { background: rgba(252,232,230,0.85); color: #A6291E; border: 1px solid rgba(245,194,190,0.7); }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 0.7rem; border-bottom: 1px solid rgba(4,57,94,0.08); }
th { background: rgba(4,57,94,0.85); color: var(--color-white); backdrop-filter: blur(10px); }
tr:hover td { background: rgba(4,57,94,0.04); }

footer {
    color: #5A6B75;
    font-size: 0.85rem;
    position: relative;
    margin-top: 2rem;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
    display: grid;
      grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

.footer-grid h3 {
    color: var(--color-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-grid a {
    color: #5A6B75;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-grid a:hover { color: var(--color-primary-light); }

.footer-links, .footer-contact {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 700px) {
    .footer-links, .footer-contact { align-items: center; }
}

.footer-bottom {
    border-top: 1px solid rgba(4,57,94,0.1);
    padding: 1.2rem 2rem;
    text-align: center;
    color: #8A97A0;
    font-size: 0.8rem;
}