
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* =========================================================
   LOKSEWA TAYARI — EXAM SYLLABUS
   File: syllabus.css
   Complete Replacement
========================================================= */


/* =========================================================
   1. ROOT VARIABLES
========================================================= */

:root {
    --sy-primary: #5479ed;
    --sy-primary-dark: #3659b8;
    --sy-primary-light: #edf2ff;

    --sy-secondary: #16a085;
    --sy-secondary-light: #e8f8f3;

    --sy-purple: #8b5cf6;
    --sy-purple-light: #f2edff;

    --sy-orange: #f59e0b;
    --sy-orange-light: #fff7e6;

    --sy-red: #ef4444;
    --sy-red-light: #fff0f0;

    --sy-green: #16a34a;
    --sy-green-light: #eaf8ee;

    --sy-text: #202a3b;
    --sy-text-dark: #172033;
    --sy-muted: #8993a4;

    --sy-border: #e9edf4;
    --sy-border-dark: #dce2ec;

    --sy-bg: #f5f7fb;
    --sy-white: #ffffff;

    --sy-radius-sm: 10px;
    --sy-radius: 16px;
    --sy-radius-lg: 22px;

    --sy-shadow:
        0 5px 20px rgba(32, 42, 59, 0.045);

    --sy-shadow-hover:
        0 12px 30px rgba(32, 42, 59, 0.09);

    --sy-transition: all 0.25s ease;
}


/* =========================================================
   2. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--sy-bg);
    color: var(--sy-text);
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(84, 121, 237, 0.3);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   3. MAIN PAGE
========================================================= */

.syllabus-page {
    min-height: 100vh;
    width: 100%;
}

.syllabus-main {
    width: min(1450px, calc(100% - 60px));
    margin: 0 auto;
    padding: 32px 0 60px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--sy-text-dark);
    margin-top: 5px;
}

.section-heading p {
    color: var(--sy-muted);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.6;
}

.section-label {
    color: var(--sy-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


/* =========================================================
   4. HEADER
========================================================= */

.syllabus-header {
    width: 100%;
    min-height: 76px;
    padding: 12px max(30px, calc((100% - 1450px) / 2));
    background: var(--sy-white);
    border-bottom: 1px solid var(--sy-border);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    position: sticky;
    top: 0;
    z-index: 100;
}

.syllabus-header-left,
.syllabus-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.syllabus-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    border: 1px solid var(--sy-border);
    border-radius: 9px;

    color: var(--sy-text);
    font-size: 12px;
    font-weight: 700;

    transition: var(--sy-transition);
}

.syllabus-back-btn:hover {
    background: var(--sy-primary-light);
    border-color: var(--sy-primary);
    color: var(--sy-primary);
}

.back-icon {
    font-size: 19px;
    line-height: 1;
}

.syllabus-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.syllabus-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;

    display: grid;
    place-items: center;

    background: linear-gradient(
        135deg,
        var(--sy-primary),
        var(--sy-primary-dark)
    );

    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;

    box-shadow: 0 5px 12px rgba(84, 121, 237, 0.2);
}

.syllabus-brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--sy-text-dark);
}

.syllabus-brand-text span {
    display: block;
    color: var(--sy-muted);
    font-size: 10px;
    margin-top: 2px;
}

.syllabus-header-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sy-muted);
    font-size: 12px;
    font-weight: 600;
}

.header-dashboard-link {
    padding: 11px 16px;
    border-radius: 9px;

    background: var(--sy-primary);
    color: white;

    font-size: 12px;
    font-weight: 700;

    transition: var(--sy-transition);
}

.header-dashboard-link:hover {
    background: var(--sy-primary-dark);
    transform: translateY(-2px);
}


/* =========================================================
   5. WELCOME SECTION
========================================================= */

.syllabus-welcome {
    min-height: 235px;
    padding: 35px 40px;

    border-radius: var(--sy-radius-lg);

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(255, 255, 255, 0.17),
            transparent 28%
        ),
        linear-gradient(
            115deg,
            #243f82,
            #5479ed 65%,
            #718cf0
        );

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative;
    overflow: hidden;

    box-shadow: 0 12px 30px rgba(54, 89, 184, 0.15);
}

.syllabus-welcome::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    right: 100px;
    top: -180px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.syllabus-welcome-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.syllabus-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 21px;

    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.syllabus-breadcrumb a:hover {
    color: white;
}

.syllabus-eyebrow {
    display: inline-block;
    margin-bottom: 10px;

    color: #dce6ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.syllabus-welcome h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.2;
    color: white;
    font-weight: 800;
}

.syllabus-welcome h2 span {
    color: #c8d7ff;
}

.syllabus-welcome-content > p {
    max-width: 620px;
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.8;
}

.syllabus-welcome-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.syllabus-welcome-tags span {
    padding: 8px 12px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.15);

    color: white;
    font-size: 10px;
    font-weight: 600;
}

.syllabus-welcome-illustration {
    width: 190px;
    height: 190px;

    display: grid;
    place-items: center;

    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.syllabus-illustration-circle {
    width: 145px;
    height: 145px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);

    box-shadow:
        0 0 0 18px rgba(255, 255, 255, 0.04),
        0 0 0 36px rgba(255, 255, 255, 0.025);
}

.syllabus-illustration-circle span {
    font-size: 70px;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.15));
}


/* =========================================================
   6. EXAM SELECTION
========================================================= */

.exam-selection-section {
    margin-top: 38px;
}

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

.exam-card {
    width: 100%;
    min-height: 190px;
    padding: 22px;

    display: flex;
    flex-direction: column;
    text-align: left;

    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius);

    box-shadow: var(--sy-shadow);

    transition: var(--sy-transition);
    position: relative;
    overflow: hidden;
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sy-shadow-hover);
    border-color: #b8c8f7;
}

.exam-card.active {
    border: 2px solid var(--sy-primary);
    background: linear-gradient(
        145deg,
        #ffffff,
        #f7f9ff
    );
}

.exam-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;
    font-size: 20px;
}

.nrb-icon {
    background: var(--sy-primary-light);
}

.nayab-icon {
    background: var(--sy-secondary-light);
}

.exam-selected-indicator {
    width: 23px;
    height: 23px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: var(--sy-primary);

    color: white;
    font-size: 12px;
    font-weight: 800;

    opacity: 0;
    transform: scale(0.7);
    transition: var(--sy-transition);
}

.exam-card.active .exam-selected-indicator {
    opacity: 1;
    transform: scale(1);
}

.exam-card-content {
    margin-top: 15px;
}

.exam-card-category {
    color: var(--sy-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.exam-card h3 {
    margin-top: 5px;

    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.exam-card p {
    margin-top: 5px;
    color: var(--sy-muted);
    font-size: 11px;
    line-height: 1.6;
}

.exam-card-footer {
    margin-top: auto;
    padding-top: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: var(--sy-muted);
    font-size: 10px;
    font-weight: 700;
}

.exam-card-arrow {
    color: var(--sy-primary);
    font-size: 19px;
}


/* =========================================================
   7. OVERVIEW STATS
========================================================= */

.syllabus-overview-section {
    margin-top: 42px;
}

.overview-exam-label {
    padding: 9px 13px;
    border-radius: 8px;

    background: var(--sy-primary-light);
    color: var(--sy-primary-dark);

    font-size: 11px;
    font-weight: 700;
}

.syllabus-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.syllabus-stat-card {
    min-height: 112px;
    padding: 19px;

    display: flex;
    align-items: center;
    gap: 14px;

    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius);

    box-shadow: var(--sy-shadow);
    transition: var(--sy-transition);
}

.syllabus-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sy-shadow-hover);
}

.syllabus-stat-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 12px;
    font-size: 19px;
    font-weight: 800;
}

.total-icon {
    background: var(--sy-primary-light);
    color: var(--sy-primary);
}

.completed-icon {
    background: var(--sy-green-light);
    color: var(--sy-green);
}

.progress-icon {
    background: var(--sy-orange-light);
    color: var(--sy-orange);
}

.remaining-icon {
    background: var(--sy-purple-light);
    color: var(--sy-purple);
}

.syllabus-stat-info span {
    color: var(--sy-muted);
    font-size: 10px;
    font-weight: 600;
}

.syllabus-stat-info h3 {
    margin-top: 3px;

    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 25px;
    font-weight: 800;
}

.syllabus-stat-info small {
    display: block;
    margin-top: 2px;
    color: #a0a8b6;
    font-size: 9px;
}


/* =========================================================
   8. OVERALL PROGRESS
========================================================= */

.overall-progress-card {
    margin-top: 18px;
    padding: 23px;

    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius);

    box-shadow: var(--sy-shadow);
}

.overall-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.overall-progress-top h3 {
    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.overall-progress-top p {
    margin-top: 4px;
    color: var(--sy-muted);
    font-size: 10px;
}

.overall-progress-percentage {
    color: var(--sy-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
}

.overall-progress-track {
    height: 10px;
    margin-top: 20px;

    background: #edf0f6;
    border-radius: 20px;
    overflow: hidden;
}

.overall-progress-fill {
    width: 0;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--sy-primary),
        #83a1ff
    );

    border-radius: 20px;
    transition: width 0.6s ease;
}

.overall-progress-bottom {
    margin-top: 10px;

    display: flex;
    justify-content: space-between;
    gap: 10px;

    color: var(--sy-muted);
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   9. PAPER SELECTION
========================================================= */

.paper-selection-section {
    margin-top: 42px;
}

.paper-tabs-wrapper {
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.paper-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.paper-tab {
    min-width: 155px;
    padding: 13px 17px;

    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: 11px;

    color: var(--sy-muted);
    text-align: left;

    transition: var(--sy-transition);
}

.paper-tab:hover {
    border-color: #bdcafa;
    color: var(--sy-primary);
}

.paper-tab.active {
    background: var(--sy-primary);
    border-color: var(--sy-primary);
    color: white;

    box-shadow: 0 5px 15px rgba(84, 121, 237, 0.18);
}

.paper-tab strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.paper-tab span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    opacity: 0.8;
}

.paper-tabs-loading {
    padding: 15px;
    color: var(--sy-muted);
    font-size: 12px;
}


/* =========================================================
   10. SELECTED PAPER INFORMATION
========================================================= */

.selected-paper-info {
    margin-top: 16px;
    padding: 23px;

    background: var(--sy-white);
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius);

    box-shadow: var(--sy-shadow);
}

.selected-paper-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.selected-paper-label {
    color: var(--sy-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.selected-paper-title h3 {
    margin-top: 6px;

    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.selected-paper-title p {
    margin-top: 5px;
    color: var(--sy-muted);
    font-size: 11px;
    line-height: 1.6;
}

.paper-marks-info {
    display: flex;
    gap: 12px;
}

.paper-marks-item {
    min-width: 90px;
    padding: 11px 14px;

    background: #f7f8fc;
    border: 1px solid var(--sy-border);
    border-radius: 10px;
}

.paper-marks-item span {
    display: block;
    color: var(--sy-muted);
    font-size: 9px;
    font-weight: 600;
}

.paper-marks-item strong {
    display: block;
    margin-top: 4px;

    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
}


/* Paper progress */

.paper-progress-area {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--sy-border);
}

.paper-progress-header,
.paper-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.paper-progress-header span {
    color: var(--sy-muted);
    font-size: 10px;
    font-weight: 600;
}

.paper-progress-header strong {
    color: var(--sy-primary);
    font-size: 13px;
    font-weight: 800;
}

.paper-progress-track {
    height: 8px;
    margin-top: 11px;

    background: #edf0f6;
    border-radius: 20px;
    overflow: hidden;
}

.paper-progress-fill {
    width: 0;
    height: 100%;

    background: var(--sy-secondary);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.paper-progress-footer {
    margin-top: 8px;
    color: var(--sy-muted);
    font-size: 9px;
}


/* =========================================================
   11. SYLLABUS CONTENT
========================================================= */

.syllabus-content-section {
    margin-top: 42px;
}

.syllabus-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.syllabus-toolbar-heading h2 {
    margin-top: 5px;

    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 700;
}

.syllabus-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.syllabus-search-box {
    width: 240px;
    height: 40px;
    padding: 0 11px;

    display: flex;
    align-items: center;
    gap: 8px;

    background: white;
    border: 1px solid var(--sy-border);
    border-radius: 9px;

    transition: var(--sy-transition);
}

.syllabus-search-box:focus-within {
    border-color: var(--sy-primary);
    box-shadow: 0 0 0 3px rgba(84, 121, 237, 0.08);
}

.search-icon {
    color: var(--sy-muted);
    font-size: 19px;
}

.syllabus-search-box input {
    width: 100%;
    min-width: 0;
    height: 100%;

    border: none;
    outline: none;
    background: transparent;

    color: var(--sy-text);
    font-size: 10px;
}

.syllabus-search-box input::placeholder {
    color: #a1a9b6;
}

.clear-search-btn {
    width: 22px;
    height: 22px;

    border: none;
    border-radius: 50%;

    background: #eef0f5;
    color: var(--sy-muted);
    font-size: 16px;
}

.syllabus-filter {
    height: 40px;
    padding: 0 10px;

    border: 1px solid var(--sy-border);
    border-radius: 9px;

    background: white;
    color: var(--sy-text);

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;
    outline: none;
}

.syllabus-filter:focus {
    border-color: var(--sy-primary);
}


/* =========================================================
   12. QUICK FILTERS
========================================================= */

.syllabus-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.quick-filter-btn {
    padding: 8px 13px;

    border: 1px solid var(--sy-border);
    border-radius: 20px;

    background: white;
    color: var(--sy-muted);

    font-size: 10px;
    font-weight: 700;

    transition: var(--sy-transition);
}

.quick-filter-btn:hover {
    border-color: var(--sy-primary);
    color: var(--sy-primary);
}

.quick-filter-btn.active {
    background: var(--sy-primary-light);
    border-color: #cdd8ff;
    color: var(--sy-primary-dark);
}


/* =========================================================
   13. SYLLABUS LIST CONTAINER
========================================================= */

.syllabus-list-container {
    margin-top: 18px;
    min-height: 200px;
}

.syllabus-subjects-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}


/* Loading */

.syllabus-loading-state {
    min-height: 230px;
    padding: 35px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: white;
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius);
}

.syllabus-loader {
    width: 36px;
    height: 36px;

    border: 3px solid #e6ebf5;
    border-top-color: var(--sy-primary);
    border-radius: 50%;

    animation: syllabusSpin 0.8s linear infinite;
}

@keyframes syllabusSpin {
    to {
        transform: rotate(360deg);
    }
}

.syllabus-loading-state h3 {
    margin-top: 15px;
    color: var(--sy-text-dark);
    font-size: 13px;
}

.syllabus-loading-state p {
    margin-top: 5px;
    color: var(--sy-muted);
    font-size: 10px;
}


/* =========================================================
   14. SUBJECT CARD
========================================================= */

.syllabus-subject-card {
    background: white;
    border: 1px solid var(--sy-border);
    border-radius: 14px;

    overflow: hidden;
    box-shadow: var(--sy-shadow);

    transition: var(--sy-transition);
}

.syllabus-subject-card:hover {
    border-color: #d5def3;
}

.syllabus-subject-header {
    min-height: 76px;
    padding: 16px 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    cursor: pointer;
    transition: var(--sy-transition);
}

.syllabus-subject-header:hover {
    background: #fafbff;
}

.syllabus-subject-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.subject-number {
    width: 37px;
    height: 37px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: var(--sy-primary-light);
    color: var(--sy-primary);

    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.subject-details {
    min-width: 0;
}

.subject-details h3 {
    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.subject-details p {
    margin-top: 4px;
    color: var(--sy-muted);
    font-size: 9px;
}

.syllabus-subject-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.subject-progress-text {
    color: var(--sy-primary);
    font-size: 11px;
    font-weight: 800;
}

.subject-topic-count {
    color: var(--sy-muted);
    font-size: 9px;
}

.subject-toggle-icon {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    background: #f3f5f9;
    border-radius: 50%;

    color: var(--sy-muted);
    font-size: 13px;

    transition: transform 0.25s ease;
}

.syllabus-subject-card.open .subject-toggle-icon {
    transform: rotate(180deg);
}


/* Subject Progress */

.subject-progress-track {
    height: 3px;
    background: #eff1f6;
}

.subject-progress-fill {
    height: 100%;
    width: 0;

    background: var(--sy-primary);
    transition: width 0.5s ease;
}


/* =========================================================
   15. TOPIC LIST
========================================================= */

.syllabus-topic-list {
    display: none;
    padding: 7px 18px 16px;

    border-top: 1px solid var(--sy-border);
    background: #fcfdff;
}

.syllabus-subject-card.open .syllabus-topic-list {
    display: block;
    animation: topicReveal 0.25s ease;
}

@keyframes topicReveal {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.syllabus-topic-item {
    padding: 13px 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    border-bottom: 1px solid #f0f2f7;
    transition: background 0.2s ease;
}

.syllabus-topic-item:last-child {
    border-bottom: none;
}

.syllabus-topic-item:hover {
    background: #f7f9ff;
}

.topic-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.topic-number {
    flex-shrink: 0;
    color: var(--sy-muted);
    font-size: 10px;
    font-weight: 700;
}

.topic-details {
    min-width: 0;
}

.topic-details h4 {
    color: var(--sy-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.topic-details p {
    margin-top: 4px;
    color: var(--sy-muted);
    font-size: 9px;
    line-height: 1.5;
}

.topic-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    flex-shrink: 0;
}

.topic-status-select {
    min-width: 115px;
    height: 32px;
    padding: 0 8px;

    background: white;
    border: 1px solid var(--sy-border);
    border-radius: 7px;

    color: var(--sy-text);
    font-size: 9px;
    font-weight: 600;
}

.topic-priority {
    padding: 6px 9px;
    border-radius: 20px;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.priority-high {
    background: var(--sy-red-light);
    color: var(--sy-red);
}

.priority-medium {
    background: var(--sy-orange-light);
    color: #bd7900;
}

.priority-low {
    background: var(--sy-green-light);
    color: var(--sy-green);
}


/* =========================================================
   16. TOPIC STATUS
========================================================= */

.status-not-started {
    background: #f1f3f7;
    color: #7c8799;
}

.status-in-progress {
    background: var(--sy-orange-light);
    color: #bd7900;
}

.status-completed {
    background: var(--sy-green-light);
    color: var(--sy-green);
}


/* =========================================================
   17. EMPTY STATE
========================================================= */

.syllabus-empty-state {
    min-height: 230px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: white;
    border: 1px dashed var(--sy-border-dark);
    border-radius: var(--sy-radius);
}

.empty-state-icon {
    font-size: 34px;
}

.syllabus-empty-state h3 {
    margin-top: 12px;
    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
}

.syllabus-empty-state p {
    margin-top: 6px;
    max-width: 340px;

    color: var(--sy-muted);
    font-size: 11px;
    line-height: 1.7;
}

.reset-filter-btn {
    margin-top: 15px;
    padding: 9px 15px;

    border: none;
    border-radius: 8px;

    background: var(--sy-primary);
    color: white;

    font-size: 10px;
    font-weight: 700;
}

.reset-filter-btn:hover {
    background: var(--sy-primary-dark);
}


/* =========================================================
   18. STUDY SUMMARY
========================================================= */

.study-summary-section {
    margin-top: 42px;
}

.study-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.study-summary-card {
    min-height: 95px;
    padding: 18px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: white;
    border: 1px solid var(--sy-border);
    border-radius: 13px;

    box-shadow: var(--sy-shadow);
    transition: var(--sy-transition);
}

.study-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sy-shadow-hover);
}

.summary-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 11px;
    background: var(--sy-purple-light);
    font-size: 18px;
}

.study-summary-card span {
    color: var(--sy-muted);
    font-size: 9px;
    font-weight: 600;
}

.study-summary-card h3 {
    margin-top: 4px;
    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
}


/* =========================================================
   19. GUIDELINES
========================================================= */

.syllabus-guidelines-section {
    margin-top: 42px;
    padding: 25px;

    background: white;
    border: 1px solid var(--sy-border);
    border-radius: var(--sy-radius);

    box-shadow: var(--sy-shadow);
}

.guidelines-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 23px;
}

.guidelines-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;
    background: var(--sy-orange-light);
    font-size: 20px;
}

.guidelines-header h3 {
    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.guidelines-header p {
    margin-top: 4px;
    color: var(--sy-muted);
    font-size: 10px;
}

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

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.guideline-number {
    width: 30px;
    height: 30px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: var(--sy-primary-light);
    color: var(--sy-primary);

    border-radius: 8px;

    font-size: 10px;
    font-weight: 800;
}

.guideline-item h4 {
    color: var(--sy-text-dark);
    font-size: 11px;
    font-weight: 700;
}

.guideline-item p {
    margin-top: 5px;
    color: var(--sy-muted);
    font-size: 9px;
    line-height: 1.7;
}


/* =========================================================
   20. SOURCE NOTICE
========================================================= */

.syllabus-source-notice {
    margin-top: 20px;
    padding: 17px 19px;

    display: flex;
    align-items: flex-start;
    gap: 13px;

    background: #eef4ff;
    border: 1px solid #dce7ff;
    border-radius: 12px;
}

.source-notice-icon {
    font-size: 19px;
    flex-shrink: 0;
}

.syllabus-source-notice h4 {
    color: var(--sy-primary-dark);
    font-size: 11px;
    font-weight: 800;
}

.syllabus-source-notice p {
    margin-top: 5px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.8;
}


/* =========================================================
   21. FOOTER
========================================================= */

.syllabus-footer {
    width: min(1450px, calc(100% - 60px));
    margin: 0 auto;

    padding: 23px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    border-top: 1px solid var(--sy-border);
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-left strong {
    color: var(--sy-text-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
}

.footer-left span,
.footer-right span {
    color: var(--sy-muted);
    font-size: 9px;
}

.footer-right {
    text-align: right;
}


/* =========================================================
   22. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1100px) {

    .syllabus-main {
        width: calc(100% - 40px);
    }

    .syllabus-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .syllabus-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .study-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guidelines-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
    }

    .syllabus-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .syllabus-toolbar-controls {
        width: 100%;
    }

    .syllabus-search-box {
        flex: 1;
    }

    .syllabus-footer {
        width: calc(100% - 40px);
    }

}


/* =========================================================
   23. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .syllabus-header {
        min-height: 65px;
        padding: 10px 15px;
    }

    .syllabus-header-left {
        gap: 10px;
    }

    .syllabus-header-right {
        gap: 8px;
    }

    .syllabus-back-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }

    .syllabus-back-btn span:last-child {
        display: none;
    }

    .syllabus-brand-icon {
        width: 34px;
        height: 34px;
    }

    .syllabus-brand-text h1 {
        font-size: 12px;
    }

    .syllabus-brand-text span {
        font-size: 8px;
    }

    .syllabus-header-date {
        display: none;
    }

    .header-dashboard-link {
        padding: 9px 11px;
        font-size: 9px;
    }

    .syllabus-main {
        width: calc(100% - 26px);
        padding-top: 20px;
    }

    .syllabus-welcome {
        min-height: auto;
        padding: 25px 20px;
        border-radius: 17px;
    }

    .syllabus-welcome-content {
        max-width: 100%;
    }

    .syllabus-welcome h2 {
        font-size: 27px;
    }

    .syllabus-welcome-content > p {
        font-size: 11px;
    }

    .syllabus-welcome-illustration {
        display: none;
    }

    .syllabus-welcome-tags {
        gap: 6px;
    }

    .syllabus-welcome-tags span {
        padding: 7px 9px;
        font-size: 8px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2,
    .syllabus-toolbar-heading h2 {
        font-size: 20px;
    }

    .exam-selection-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .exam-card {
        min-height: 175px;
        padding: 18px;
    }

    .syllabus-stats-grid {
        gap: 10px;
    }

    .syllabus-stat-card {
        min-height: 92px;
        padding: 12px;
        gap: 9px;
    }

    .syllabus-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .syllabus-stat-info span {
        font-size: 9px;
    }

    .syllabus-stat-info h3 {
        font-size: 21px;
    }

    .syllabus-stat-info small {
        font-size: 8px;
    }

    .overall-progress-card {
        padding: 17px;
    }

    .overall-progress-top h3 {
        font-size: 13px;
    }

    .overall-progress-percentage {
        font-size: 22px;
    }

    .paper-tabs {
        gap: 7px;
    }

    .paper-tab {
        min-width: 135px;
        padding: 11px 13px;
    }

    .selected-paper-info {
        padding: 17px;
    }

    .selected-paper-heading {
        flex-direction: column;
    }

    .selected-paper-title h3 {
        font-size: 17px;
    }

    .paper-marks-info {
        width: 100%;
    }

    .paper-marks-item {
        flex: 1;
    }

    .syllabus-toolbar-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .syllabus-search-box {
        width: 100%;
        grid-column: 1 / -1;
    }

    .syllabus-filter {
        width: 100%;
    }

    .syllabus-quick-filters {
        gap: 6px;
    }

    .quick-filter-btn {
        padding: 7px 10px;
        font-size: 9px;
    }

    .syllabus-subject-header {
        padding: 13px 11px;
    }

    .syllabus-subject-main {
        gap: 9px;
    }

    .subject-number {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    .subject-details h3 {
        font-size: 11px;
    }

    .subject-details p {
        font-size: 8px;
    }

    .syllabus-subject-meta {
        gap: 7px;
    }

    .subject-progress-text {
        font-size: 9px;
    }

    .subject-topic-count {
        display: none;
    }

    .subject-toggle-icon {
        width: 22px;
        height: 22px;
    }

    .syllabus-topic-list {
        padding: 5px 10px 10px;
    }

    .syllabus-topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding: 12px 5px;
    }

    .topic-details h4 {
        font-size: 10px;
    }

    .topic-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .topic-status-select {
        min-width: 105px;
    }

    .study-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .study-summary-card {
        min-height: 83px;
        padding: 12px;
        gap: 9px;
    }

    .summary-card-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .study-summary-card span {
        font-size: 8px;
    }

    .study-summary-card h3 {
        font-size: 19px;
    }

    .syllabus-guidelines-section {
        padding: 17px;
    }

    .guidelines-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .syllabus-source-notice {
        padding: 14px;
    }

    .syllabus-footer {
        width: calc(100% - 26px);
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
    }

}


/* =========================================================
   24. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .syllabus-brand-text h1 {
        font-size: 10px;
    }

    .syllabus-brand-text span {
        font-size: 7px;
    }

    .header-dashboard-link {
        padding: 8px;
        font-size: 8px;
    }

    .syllabus-welcome h2 {
        font-size: 23px;
    }

    .syllabus-stat-card {
        padding: 9px;
        gap: 7px;
    }

    .syllabus-stat-icon {
        width: 29px;
        height: 29px;
    }

    .syllabus-stat-info h3 {
        font-size: 18px;
    }

    .syllabus-stat-info span {
        font-size: 8px;
    }

    .overall-progress-bottom {
        font-size: 8px;
    }

}


/* =========================================================
   25. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   END OF SYLLABUS CSS
========================================================= */
