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

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #388E3C;
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #2E7D32;
    text-decoration: underline;
}

::selection {
    background: #388E3C;
    color: #fff;
}

.nepali {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.breadcrumb {
    max-width: 800px;
    margin: 10px auto 0;
    padding: 8px 20px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #388E3C;
}

.syllabus-wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.doc-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.doc-header h1 {
    color: #388E3C;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.doc-header h2 {
    color: #000;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.doc-header h3 {
    color: #388E3C;
    font-size: 15px;
    font-weight: 700;
}

h2.section-title {
    color: #388E3C;
    font-size: 16px;
    font-weight: 700;
    margin: 28px 0 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

h3.sub-title {
    color: #388E3C;
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 8px;
}

h4.topic-title {
    color: #388E3C;
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 6px;
}

h5.sub-topic {
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin: 12px 0 4px;
}

.marks {
    font-weight: 700;
    float: right;
}

.center {
    text-align: center;
}

.page-divider {
    text-align: center;
    margin: 30px 0 10px;
    padding: 10px;
    background: #388E3C;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    letter-spacing: .3px;
}

.syllabus-wrapper hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 30px 0;
}

.syllabus-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
}

.syllabus-wrapper th,
.syllabus-wrapper td {
    border: 1px solid #000;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.syllabus-wrapper th {
    background: #388E3C;
    color: #fff;
    font-weight: 600;
}

.syllabus-wrapper tr:nth-child(even) {
    background: #f9f9f9;
}

.syllabus-wrapper ul,
.syllabus-wrapper ol {
    margin: 6px 0 12px 28px;
}

.syllabus-wrapper ul li,
.syllabus-wrapper ol li {
    margin-bottom: 4px;
    font-size: 14px;
}

.syllabus-wrapper ul {
    list-style-type: disc;
}

.syllabus-wrapper ul ul,
.syllabus-wrapper ol ul,
.syllabus-wrapper ul ol,
.syllabus-wrapper ol ol {
    margin: 4px 0 4px 20px;
}

.syllabus-wrapper p {
    margin: 6px 0;
    font-size: 14px;
}

.note-box {
    border: 1px solid #388E3C;
    border-left: 4px solid #388E3C;
    padding: 14px 18px;
    margin: 20px 0;
    background: #f6fdf6;
    border-radius: 8px;
}

.note-box h3 {
    color: #388E3C;
    font-size: 15px;
    margin-bottom: 8px;
}

.mcq-section {
    margin: 20px 0;
}

.mcq-question {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    transition: background-color .2s;
}

.mcq-question:last-child {
    border-bottom: none;
}

.mcq-question:hover {
    background: #fafafa;
}

.mcq-question p {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    margin-bottom: 4px;
}

.mcq-options {
    margin-left: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.mcq-options strong {
    color: #388E3C;
}

.syllabus-wrapper::-webkit-scrollbar {
    width: 6px;
}

.syllabus-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.syllabus-wrapper::-webkit-scrollbar-thumb {
    background: #388E3C;
    border-radius: 3px;
}

.syllabus-wrapper::-webkit-scrollbar-thumb:hover {
    background: #2E7D32;
}

/* ✅ Floating Top Button */
.top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: #1B5E20;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(27,94,32,.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s;
}

.top-btn:hover {
    background: #0d3310;
}

@media print {
    body {
        background: #fff;
    }

    .syllabus-wrapper {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 10px;
    }

    .page-divider {
        background: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .breadcrumb,
    .seo-hidden {
        display: none;
    }

    .note-box {
        border: 1px solid #000;
        background: #f5f5f5;
    }

    .syllabus-wrapper th {
        background: #333;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .mcq-question:hover {
        background: transparent;
    }
}

@media (max-width: 768px) {
    .syllabus-wrapper {
        margin: 15px;
        padding: 16px;
        border-radius: 8px;
    }

    .doc-header h1 {
        font-size: 16px;
    }

    .page-divider {
        font-size: 14px;
        padding: 8px;
    }

    h2.section-title {
        font-size: 15px;
    }

    h3.sub-title {
        font-size:
