* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #eaf5f0 0%, #d4e5e0 100%);
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;

    min-height: 100vh;
    /* display: flex;
    flex-direction: column;
    align-items: center; */
    color: #14342b;
}

.page-wrapper {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
}

/* ----- header & action bar ----- */
.exam-header {
    text-align: center;
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.exam-header h1 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #166b4a, #2a7f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 0 0.8rem;
    text-shadow: 0 4px 12px rgba(22, 107, 74, 0.12);
}

.exam-header h1 i {
    -webkit-text-fill-color: #2a7f5e;
    color: #2a7f5e;
    margin-right: 10px;
    background: none;
}

.exam-header .sub {
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    padding: 0.4rem 2.2rem;
    border-radius: 20px;
    color: #1a4d3a;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 14px rgba(0, 30, 20, 0.04);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.exam-header .sub i {
    color: #1f7a56;
    margin-right: 8px;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.2rem 0 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.8rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(20, 70, 50, 0.10);
    text-decoration: none;
    background: white;
    color: #1a4d3a;
    border: 1px solid rgba(26, 77, 58, 0.15);
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(145deg, #1f7a56, #166b4a);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(22, 107, 74, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(22, 107, 74, 0.30);
    background: linear-gradient(145deg, #268a62, #1a7552);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(26, 77, 58, 0.25);
}

.btn-outline:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 70, 50, 0.08);
}

/* ----- syllabus cards (green+blue scheme) ----- */
.syllabus-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 1.8rem 0 1.2rem;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.8rem 1.8rem 2rem;
    box-shadow: 0 12px 32px -8px rgba(16, 70, 50, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px -12px rgba(16, 70, 50, 0.18);
    border-color: rgba(31, 122, 86, 0.2);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #104d38;
    border-bottom: 3px solid rgba(31, 122, 86, 0.2);
    padding-bottom: 0.65rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.2px;
}

.card-title i {
    color: #1f7a56;
    font-size: 1.7rem;
    width: 2.2rem;
    text-align: center;
}

.card-title .badge {
    margin-left: auto;
    background: linear-gradient(135deg, #1f7a56, #166b4a);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(31, 122, 86, 0.2);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

/* topic list – full display */
.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.topic-list li {
    font-size: 0.85rem;
    padding: 0.25rem 0 0.25rem 0.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #1a3f32;
}

.topic-list li i {
    color: #1f7a56;
    font-size: 0.5rem;
    min-width: 14px;
}

.topic-list li .num {
    font-weight: 600;
    color: #1f7a56;
    font-size: 0.7rem;
    margin-right: 2px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.1rem 0.6rem;
}

.grid-two .topic-list li {
    padding: 0.2rem 0;
    font-size: 0.82rem;
}

.topic-list-full {
    max-height: none;
    overflow: visible;
}

/* ---- info cards (green+blue) ---- */
.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 12px 28px -8px rgba(16, 70, 50, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
    font-size: 0.98rem;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    color: #1a4d3a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label i {
    color: #1f7a56;
    width: 1.3rem;
}

.value {
    font-weight: 600;
    color: #0d3d2e;
    text-align: right;
}

.highlight-box {
    background: rgba(31, 122, 86, 0.06);
    border-radius: 18px;
    padding: 0.6rem 1rem;
    margin-top: 0.6rem;
    border-left: 5px solid #1f7a56;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    margin: 0.5rem 0 0.2rem;
}

.chip {
    background: #e6f0eb;
    padding: 0.2rem 1.1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #104d38;
    border: 1px solid rgba(31, 122, 86, 0.1);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.chip i {
    color: #1f7a56;
    margin-right: 4px;
}



.flex-center {
    display: flex;
    justify-content: center;
}

/* responsive */
@media (max-width: 780px) {
    body { padding: 1.2rem 0.8rem; }
    .exam-header h1 { font-size: 2rem; }
    .exam-header .sub { font-size: 1rem; padding: 0.3rem 1.2rem; }
    .syllabus-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-two { grid-template-columns: 1fr; }
    .action-bar { gap: 0.8rem; }
    .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .exam-header h1 { font-size: 1.6rem; }
    .card-title { font-size: 1.2rem; }
    .info-row { flex-wrap: wrap; gap: 0.2rem; }
    .value { text-align: left; width: 100%; padding-left: 1.8rem; }
    .card { padding: 1.2rem; }
}

/* print styles */
@media print {
    body { background: white; padding: 0.5in; }
    .action-bar, .btn, .no-print { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
    .exam-header h1 { -webkit-text-fill-color: #166b4a; }
}