/* ===== Exam List Pages ===== */

.exam-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
}
.exam-hero h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
}
.exam-hero p {
    opacity: 0.9;
    font-size: 1.1em;
    text-align: center;
}
.exam-hero .breadcrumb {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 12px;
}
.exam-hero .breadcrumb a {
    color: white;
    text-decoration: underline;
}

.exam-container {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ===== Tab Bar ===== */
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: #64748b;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab-btn:hover {
    color: #1e3a5f;
}
.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ===== Year Sections ===== */
.year-section {
    margin-bottom: 40px;
}
.year-section h2 {
    font-size: 1.3em;
    color: #1e3a5f;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 16px;
}
.section-note {
    color: #64748b;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 12px;
}

/* ===== Paper Table ===== */
.paper-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.paper-table thead {
    background: #f8fafc;
}
.paper-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.9em;
    border-bottom: 2px solid #e2e8f0;
}
.paper-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.paper-table tbody tr:hover {
    background: #f8fafc;
}
.paper-table tbody tr:last-child td {
    border-bottom: none;
}

/* Empty notice */
.empty-notice td {
    text-align: center;
    color: #94a3b8;
    padding: 30px 16px;
    font-style: italic;
}

/* Type badges */
.type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}
.type-badge.mcq {
    background: #dbeafe;
    color: #1d4ed8;
}
.type-badge.frq {
    background: #fef3c7;
    color: #d97706;
}
.type-badge.key {
    background: #dcfce7;
    color: #16a34a;
}
.type-badge.full {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Download button */
.dl-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.2s;
}
.dl-btn:hover {
    background: #1d4ed8;
}

/* Button group (View + Download side by side) */
.btn-group {
    display: flex;
    gap: 6px;
}
.view-btn {
    display: inline-block;
    background: #f1f5f9;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.2s;
    border: 1px solid #e2e8f0;
}
.view-btn:hover {
    background: #e2e8f0;
}

/* UK-specific hero gradient */
.exam-hero.uk-theme {
    background: linear-gradient(135deg, #1a2744 0%, #3b82f6 100%);
}

/* Paper card layout (alternative to table for mobile-friendly view) */
.paper-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.paper-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border-left: 4px solid #2563eb;
}
.paper-card .card-year {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}
.paper-card .card-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 10px;
}
.paper-card .card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.paper-card .card-links a {
    font-size: 0.8em;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}
.paper-card .card-links .link-paper {
    background: #2563eb;
    color: white;
}
.paper-card .card-links .link-solution {
    background: #dcfce7;
    color: #16a34a;
}
.paper-card .card-links .link-report {
    background: #fef3c7;
    color: #d97706;
}

/* Tab bar scrollable on mobile */
@media (max-width: 768px) {
    .tab-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tab-btn { white-space: nowrap; }
    .paper-cards { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .exam-hero h1 { font-size: 1.6em; }
    .exam-container { margin: 20px auto; }
    .tab-btn { padding: 10px 16px; font-size: 0.9em; }
    .paper-table th,
    .paper-table td { padding: 10px 12px; font-size: 0.9em; }
    .paper-table th:nth-child(3),
    .paper-table td:nth-child(3) { display: none; }
}
