.exam-page {
    min-height: calc(100vh - var(--site-header-height));
}

.exam-hero {
    padding: 36px 16px 20px;
}

.exam-hero-inner,
.exam-overview,
.exam-principles-section,
.exam-flow-section,
.exam-program-section,
.exam-prep-section,
.exam-regulation-section {
    max-width: 1120px;
    margin: 0 auto;
}

.exam-kicker,
.section-kicker {
    margin: 0 0 10px;
    color: darkred;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.22em;
    font-size: 12px;
    text-transform: uppercase;
}

.exam-hero h1,
.section-head h2,
.column-head h3 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.04em;
    line-height: 1.05;
}

.exam-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
}

.exam-lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
}

.exam-hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.exam-doc-button {
    box-shadow: 0 10px 24px rgba(139, 0, 0, 0.12);
    transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease;
}

.exam-doc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(139, 0, 0, 0.16);
}

.exam-doc-note,
.exam-program-hint {
    color: #666;
    line-height: 1.6;
}

.exam-overview,
.exam-principles-section,
.exam-flow-section,
.exam-program-section,
.exam-prep-section,
.exam-regulation-section {
    padding: 0 16px 48px;
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
}

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

.exam-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.exam-card,
.exam-column,
.exam-level,
.exam-regulation-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.exam-card {
    padding: 20px;
    transform: translateY(0);
    transition: transform .2s ease, box-shadow .24s ease, border-color .24s ease;
    animation: examFadeUp .5s ease both;
}

.exam-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    border-color: rgba(139,0,0,0.18);
}

.exam-card h2,
.exam-card h3 {
    margin: 0 0 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
}

.exam-card p {
    margin: 0;
    color: #4b4b4b;
    line-height: 1.7;
}

.exam-card-accent {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,242,239,0.92));
}

.exam-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.flow-step {
    padding: 20px;
    border-left: 3px solid darkred;
    background: rgba(255,255,255,0.78);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
    animation: examFadeUp .55s ease both;
}

.flow-step span {
    display: inline-block;
    margin-bottom: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: darkred;
}

.flow-step h3 {
    margin: 0 0 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
}

.flow-step p {
    margin: 0;
    color: #4c4c4c;
    line-height: 1.65;
}

.exam-column {
    padding: 18px;
}

.column-head {
    margin-bottom: 14px;
}

.column-head h3 {
    font-size: 28px;
}

.column-head p {
    margin: 8px 0 0;
    color: #555;
    line-height: 1.65;
}

.exam-level {
    margin-top: 12px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
    animation: examFadeUp .6s ease both;
}

.exam-level:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.1);
    border-color: rgba(139,0,0,0.18);
}

.exam-level summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    position: relative;
}

.exam-level summary::-webkit-details-marker {
    display: none;
}

.exam-level summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(139,0,0,0.08);
    color: darkred;
    font-size: 18px;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease;
}

.exam-level[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    background: rgba(139,0,0,0.14);
}

.exam-level summary strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
}

.exam-level summary small,
.exam-level summary em,
.exam-level-toggle {
    display: block;
    color: #666;
    font-style: normal;
    margin-top: 4px;
}

.exam-level-meta {
    padding-right: 44px;
    text-align: right;
}

.exam-level-toggle {
    color: darkred;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.exam-level[open] summary {
    background: rgba(139,0,0,0.05);
    border-bottom: 1px solid rgba(139,0,0,0.1);
}

.exam-level-body {
    padding: 18px 20px 20px;
    animation: examExpand .24s ease;
}

.exam-level-body p {
    margin: 0 0 12px;
    color: #444;
    line-height: 1.7;
}

.exam-level-body ul {
    margin: 0;
    padding-left: 20px;
    color: #333;
}

.exam-level-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.exam-regulation-card {
    padding: 24px;
}

.exam-regulation-text {
    white-space: pre-wrap;
    color: #303030;
    line-height: 1.8;
}

@keyframes examFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1000px) {
    .exam-grid-four,
    .exam-grid-three,
    .exam-grid-two,
    .exam-program-columns,
    .exam-flow {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .exam-grid-four,
    .exam-grid-three,
    .exam-grid-two,
    .exam-program-columns,
    .exam-flow {
        grid-template-columns: 1fr;
    }

    .exam-card,
    .exam-column,
    .flow-step,
    .exam-level summary,
    .exam-level-body,
    .exam-regulation-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .exam-level summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .exam-level summary::after {
        top: 22px;
        transform: none;
    }

    .exam-level[open] summary::after {
        transform: rotate(180deg);
    }

    .exam-level-meta {
        padding-right: 0;
        text-align: left;
    }
}
