:root {
    --navy: #142b49;
    --green: #107c41;
    --blue: #185abd;
    --background: #f1f5f9;
    --text: #243247;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1150px;
    margin: auto;
    padding: 0 24px;
}

header, footer {
    background: var(--navy);
    color: white;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    flex-wrap: wrap;
}

.brand {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}

.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

.hero {
    background: linear-gradient(120deg,#142b49,#254d76);
    color: white;
    padding: 55px 0 75px;
}

.hero h1 {
    font-size: clamp(32px,5vw,52px);
    margin: 12px 0;
}

.hero p { font-size: 18px; }

.eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
}

.subtitle { color: #dbeafe; }

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    background: white;
    border-radius: 12px;
    margin: -35px 0 35px;
    padding: 20px;
    box-shadow: 0 5px 25px #142b4912;
}

.stats div { text-align: center; }

.stats strong {
    display: block;
    font-size: 34px;
    color: var(--navy);
}

.stats span { color: #64748b; }

h2 { color: var(--navy); }

.course-grid, .exam-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}

.course, .exam, .help {
    background: white;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    padding: 25px;
}

.course.excel { border-top: 5px solid var(--green); }
.course.word { border-top: 5px solid var(--blue); }

.course h3 { font-size: 23px; margin: 12px 0; }

.course-icon {
    width: 52px;
    height: 52px;
    border-radius: 9px;
    color: white;
    display: grid;
    place-items: center;
    font-size: 27px;
    font-weight: bold;
}

.excel .course-icon,
.excel button { background: var(--green); }

.word .course-icon,
.word button { background: var(--blue); }

button {
    border: 0;
    border-radius: 7px;
    padding: 12px 18px;
    color: white;
    background: var(--navy);
    font-size: 15px;
    cursor: pointer;
}

.course button { width: 100%; }

button:hover { filter: brightness(1.12); }

button:focus-visible, a:focus-visible {
    outline: 3px solid #e6ad32;
    outline-offset: 3px;
}

button:disabled {
    background: #e2e8f0;
    color: #475569;
    cursor: not-allowed;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filters button { background: #64748b; }
.filters button.active { background: var(--navy); }

#exam-section, .help { margin-top: 35px; }

.exam h3 { margin-top: 0; }

.exam-meta { color: #64748b; font-size: 14px; }

footer {
    margin-top: 45px;
    padding: 30px;
    text-align: center;
}

[hidden] { display: none !important; }

@media (max-width: 650px) {
    .course-grid, .exam-grid {
        grid-template-columns: 1fr;
    }

    .navigation { padding: 15px 24px; }
    nav a { margin: 0 15px 0 0; }
}
