:root {
    --accent1: #0d47a1;
    --accent2: #1976d2;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f9f9fb;
    color: #333;
    text-align: center;
    padding-bottom: 80px;
}

h1 {
    margin: 48px 0 8px;
    color: var(--accent1);
    font-size: 1.9rem;
}

.exam-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    padding: 3px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    flex: 1 1 360px;
    max-width: 520px;
    margin: 0 0 32px;
    padding: 32px 24px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    text-align: left;
}

section h2 {
    margin-top: 0;
    color: var(--accent1);
    font-size: 1.2rem;
}

section p {
    font-size: .92rem;
    line-height: 1.65;
    color: #555;
    margin-top: 0;
}

/* Subject info strip */
.subject-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.meta-chip {
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e8eaf6;
    color: var(--accent1);
    border: 1px solid #c5cae9;
}

/* Button grid */
.mocktest-grid,
.studymaterial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    min-width: 180px;
}
.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.btn-icon { flex-shrink: 0; width: 18px; height: 18px; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-label { flex: 1; }
.btn-arrow { flex-shrink: 0; width: 16px; height: 16px; opacity: .7; }

.btn.coming-soon {
    background: #e0e0e0;
    color: #999;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

/* Coming soon box */
.coming-soon-box {
    max-width: 600px;
    margin: 32px auto;
    padding: 40px 32px;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.coming-soon-icon { font-size: 3rem; margin-bottom: 12px; }
.coming-soon-box h2 { font-size: 1.4rem; margin: 0 0 12px; color: var(--text-primary); }
.coming-soon-box p { color: var(--text-secondary); font-size: .95rem; line-height: 1.6; margin: 0 0 24px; }
.btn-back {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--accent1);
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: opacity .2s;
}
.btn-back:hover { opacity: .85; }

/* Subject QA section */
.subject-qa {
    max-width: 760px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: left;
}
.subject-qa h2 {
    font-size: 1.15rem;
    color: var(--accent1);
    margin-bottom: 12px;
}
.qa-intro {
    font-size: .9rem;
    color: #555;
    margin-bottom: 18px;
}
.qa-list { display: flex; flex-direction: column; gap: 8px; }
.qa-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.qa-q {
    cursor: pointer;
    padding: 14px 18px;
    font-size: .9rem;
    font-weight: 600;
    color: #222;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qa-q::after { content: "+"; font-size: 1.2rem; color: var(--accent1); }
details[open] .qa-q::after { content: "−"; }
.qa-a {
    padding: 0 18px 14px;
    font-size: .87rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px 0;
    background-color: #f0f0f0;
    color: #333;
    font-size: .85rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body { background: #121212; color: #e0e0e0; }
    section { background: rgba(30,30,30,.85); }
    .qa-item { background: #1e1e1e; border-color: #333; }
    .qa-q { color: #e0e0e0; }
    .qa-a { color: #bbb; }
    .meta-chip { background: #1e2a4a; border-color: #2a3a6a; }
    .footer { background: #1a1a1a; color: #aaa; }
}
[data-theme="dark"] body { background: #121212; color: #e0e0e0; }
[data-theme="dark"] section { background: rgba(30,30,30,.85); }
[data-theme="dark"] .qa-item { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .qa-q { color: #e0e0e0; }
[data-theme="dark"] .qa-a { color: #bbb; }
[data-theme="dark"] .meta-chip { background: #1e2a4a; border-color: #2a3a6a; }
[data-theme="dark"] .footer { background: #1a1a1a; color: #aaa; }
