/* ── Exam hub page styles ── */

.hub-hero {
    padding: 10rem 0 5rem;
    text-align: center;
}

.hub-hero .section-title {
    display: block;
    margin-bottom: 1rem;
}

.hub-hero .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.hub-subtitle {
    color: var(--color-text-dim);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Card grid */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 6rem;
}

.exam-card {
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.12);
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.exam-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.exam-card:hover::before { transform: scaleX(1); }

.exam-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.exam-code {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.exam-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.exam-desc {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

.exam-cta {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .exam-grid { grid-template-columns: 1fr; }
    .hub-hero { padding: 8rem 0 3rem; }
}
