/* ============================================================
   Codemaniac Studio - Curriculum & Subject/Chapter Stylesheet
   Luxury Aesthetic: Obsidian Dark / Warm Cream / Radiant Gold
   ============================================================ */

/* --- Subject Cards Grid on class.php --- */
.curriculum-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 26px;
    margin-bottom: 50px;
}

.curriculum-subject-card {
    background: #FFFFFF;
    border: 1px solid #ECE1D1;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.curriculum-subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, #D48C28);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curriculum-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
    border-color: #D48C28;
}

.curriculum-subject-card:hover::before {
    opacity: 1;
}

.subject-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.subject-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(212, 140, 40, 0.1);
    color: var(--card-accent, #D48C28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(212, 140, 40, 0.2);
    transition: transform 0.3s ease;
}

.curriculum-subject-card:hover .subject-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.subject-code-badge {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #F8F5F0;
    color: #64748B;
    border: 1px solid #E2D9CC;
}

.subject-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 8px;
    line-height: 1.3;
}

.subject-card-desc {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.55;
    margin-bottom: 18px;
    flex-grow: 1;
}

.subject-chapters-preview {
    background: #FAF7F2;
    border: 1px solid #ECE1D1;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.subject-chapters-count {
    font-size: 12px;
    font-weight: 700;
    color: #D48C28;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.subject-chapters-list-mini {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subject-chapters-list-mini li {
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-chapters-list-mini li i {
    font-size: 9px;
    color: #94A3B8;
}

/* Single Button to access the subject page */
.btn-subject-access {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #D48C28 0%, #B87319 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(212, 140, 40, 0.28);
    transition: all 0.25s ease;
}

.btn-subject-access:hover {
    background: linear-gradient(135deg, #E59A33 0%, #C77F20 100%);
    box-shadow: 0 6px 20px rgba(212, 140, 40, 0.4);
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

.btn-subject-access i {
    transition: transform 0.2s ease;
}

.btn-subject-access:hover i {
    transform: translateX(4px);
}

/* --- Dedicated Subject Page (subject.php) --- */
.subject-page-hero {
    background: linear-gradient(180deg, #101626 0%, #080C17 100%);
    color: #FFFFFF;
    padding: 55px 0 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subject-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.subject-page-breadcrumb a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subject-page-breadcrumb a:hover {
    color: #F59E0B;
}

.subject-page-breadcrumb .sep {
    color: #475569;
}

.subject-page-breadcrumb .active-crumb {
    color: #F59E0B;
    font-weight: 700;
}

.subject-hero-banner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.subject-hero-icon-large {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.subject-hero-meta {
    flex: 1;
    min-width: 280px;
}

.subject-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.subject-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 8px;
}

.subject-hero-desc {
    font-size: 1rem;
    color: #94A3B8;
    line-height: 1.6;
    max-width: 780px;
}

/* Chapters Grid / Cards */
.subject-chapters-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0 60px;
}

.chapter-overview-card {
    background: #FFFFFF;
    border: 1px solid #ECE1D1;
    border-radius: 18px;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.chapter-overview-card:hover {
    transform: translateY(-3px);
    border-color: #D48C28;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.chapter-card-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.chapter-num-badge {
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(212, 140, 40, 0.12);
    color: #B87319;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(212, 140, 40, 0.25);
}

.chapter-details-wrap {
    flex: 1;
}

.chapter-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 6px;
    line-height: 1.35;
}

.chapter-card-desc {
    font-size: 0.88rem;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* 4 Options Pills */
.chapter-options-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.opt-pill-item {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FAF7F2;
    color: #475569;
    border: 1px solid #E2D9CC;
}

.opt-pill-pdf {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.opt-pill-notes {
    background: rgba(59, 130, 246, 0.08);
    color: #2563EB;
    border-color: rgba(59, 130, 246, 0.2);
}

.opt-pill-sol {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.opt-pill-qa {
    background: rgba(245, 158, 11, 0.08);
    color: #D97706;
    border-color: rgba(245, 158, 11, 0.25);
}

.btn-chapter-access {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #1E293B;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-chapter-access:hover {
    background: #D48C28;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(212, 140, 40, 0.35);
}

/* --- Dedicated Chapter Page with 4 Options Tabs (chapter.php) --- */
.chapter-hero-section {
    background: linear-gradient(180deg, #0B1120 0%, #060913 100%);
    color: #FFFFFF;
    padding: 50px 0 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-hero-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.chapter-page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin-bottom: 10px;
}

.chapter-page-subtitle {
    font-size: 0.95rem;
    color: #94A3B8;
    max-width: 780px;
    line-height: 1.6;
}

/* 4 TABS NAVIGATION BAR */
.chapter-tabs-sticky-wrap {
    position: sticky;
    top: 68px;
    z-index: 95;
    background: #FFFFFF;
    border-bottom: 1px solid #E2D9CC;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.chapter-tabs-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.chapter-tabs-nav {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
}

.chapter-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-scroll-nav-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2D9CC;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}

.tab-scroll-left {
    left: -12px;
}

.tab-scroll-right {
    right: -12px;
}

.tab-scroll-nav-btn:hover {
    background: #D48C28;
    color: #FFFFFF;
    border-color: #D48C28;
}

.chapter-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #E2D9CC;
    background: #FAF7F2;
    color: #475569;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.chapter-tab-button:hover {
    background: #F1ECE1;
    border-color: #D48C28;
    color: #1E293B;
}

.chapter-tab-button.active {
    background: linear-gradient(135deg, #D48C28 0%, #B87319 100%);
    color: #FFFFFF !important;
    border-color: #B87319;
    box-shadow: 0 4px 14px rgba(212, 140, 40, 0.35);
}

.chapter-tab-button.active i {
    color: #FFFFFF;
}

/* Tab Panes */
.chapter-content-body {
    padding: 40px 0 60px;
}

.chapter-tab-pane {
    display: none;
    animation: fadeInPane 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-tab-pane.active {
    display: block;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chapter-panel-card {
    background: #FFFFFF;
    border: 1px solid #ECE1D1;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ECE1D1;
    flex-wrap: wrap;
    gap: 14px;
}

.panel-title-group h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title-group p {
    font-size: 0.88rem;
    color: #64748B;
    margin: 0;
}

.panel-action-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Formatted notes text styling */
.chapter-reading-view {
    font-size: 15.5px;
    line-height: 1.8;
    color: #334155;
}

.chapter-reading-view h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0F172A;
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ECE1D1;
}

.chapter-reading-view h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
    margin: 20px 0 8px;
}

.chapter-reading-view p {
    margin-bottom: 16px;
}

.chapter-reading-view ul, .chapter-reading-view ol {
    margin: 0 0 18px 24px;
}

.chapter-reading-view li {
    margin-bottom: 8px;
}

/* Images & Figures in Notes & Solutions */
.chapter-reading-view img,
.chapter-content-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #ECE1D1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chapter-reading-view img:hover,
.chapter-content-img:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.chapter-figure {
    margin: 24px 0;
    text-align: center;
}

.chapter-figure img,
.chapter-figure .chapter-content-img {
    margin: 0 auto 10px auto;
}

.chapter-figure figcaption {
    font-size: 13.5px;
    color: #64748B;
    font-style: italic;
    margin-top: 6px;
}

/* Multi-photo side-by-side grid */
.chapter-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.chapter-img-grid img {
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Callout and highlight blocks */
.chapter-callout-box {
    background: #F8FAFC;
    border-left: 4px solid #3B82F6;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #1E293B;
}

.chapter-callout-gold {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #F59E0B;
}

.chapter-reading-view code {
    background: #F1F5F9;
    color: #0F172A;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13.5px;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.chapter-reading-view pre {
    background: #0F172A;
    color: #F8FAFC;
    padding: 18px 22px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 13.5px;
    line-height: 1.6;
}

/* PDF Embedded Viewer Container */
.pdf-viewer-embed-wrap {
    width: 100%;
    height: 680px;
    background: #0F172A;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #CBD5E1;
    margin-top: 20px;
}

.pdf-viewer-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Previous / Next Chapter Footer */
.chapter-pager-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid #ECE1D1;
}

.btn-pager {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #E2D9CC;
    background: #FFFFFF;
    color: #1E293B;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-pager:hover {
    border-color: #D48C28;
    background: #FAF7F2;
    color: #D48C28;
}

/* ============================================================
   RESPONSIVE CURRICULUM DESIGN & COMPONENT ADAPTATIONS
   ============================================================ */

/* Universal MCQ, Questions, and Reading View formatting */
.chapter-reading-view {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chapter-reading-view h1,
.chapter-reading-view h2,
.chapter-reading-view h3,
.chapter-reading-view h4,
.chapter-reading-view h5,
.chapter-reading-view h6 {
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.35;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
}

.chapter-reading-view p {
    margin-bottom: 14px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chapter-reading-view table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-collapse: collapse !important;
    margin: 18px 0 !important;
}

.chapter-reading-view table th,
.chapter-reading-view table td {
    padding: 8px 12px;
    font-size: 14px;
}

.chapter-reading-view img {
    max-width: 100% !important;
    height: auto !important;
}

/* MCQ Options, Boxes and Radios */
.chapter-reading-view .mcq-item,
.chapter-reading-view .question-block,
.chapter-reading-view .mcq-card,
.chapter-reading-view [class*="mcq"],
.chapter-reading-view [class*="question"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.chapter-reading-view .mcq-options,
.chapter-reading-view .options-grid,
.chapter-reading-view .options-list,
.chapter-reading-view ul.options {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 14px 0 !important;
    list-style: none !important;
}

.chapter-reading-view .mcq-option,
.chapter-reading-view .option-row,
.chapter-reading-view li.option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    background: #FAF7F2 !important;
    border: 1px solid #E2D9CC !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.chapter-reading-view .option-circle,
.chapter-reading-view .mcq-circle,
.chapter-reading-view [class*="circle"],
.chapter-reading-view input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    border-radius: 50% !important;
}

@media (max-width: 1080px) {
    .chapter-tabs-sticky-wrap {
        top: 60px !important;
    }
}

@media (max-width: 768px) {
    .chapter-hero-section {
        padding: 28px 0 20px !important;
    }

    .chapter-hero-badge-row {
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .chapter-page-title {
        font-size: clamp(1.4rem, 4.5vw, 1.85rem) !important;
        line-height: 1.3 !important;
    }

    .chapter-page-subtitle {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    .chapter-tabs-sticky-wrap .container {
        padding: 0 8px !important;
        max-width: 100% !important;
    }

    .chapter-tabs-nav {
        padding: 10px 6px !important;
        gap: 8px !important;
    }

    .chapter-tab-button {
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        border-radius: 9px !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .chapter-tab-button i {
        font-size: 13px !important;
    }

    .tab-scroll-left {
        left: 2px !important;
    }

    .tab-scroll-right {
        right: 2px !important;
    }

    .chapter-content-body {
        padding: 20px 0 40px !important;
    }

    .chapter-content-body .container {
        padding: 0 12px !important;
    }

    .chapter-panel-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
        margin-bottom: 20px !important;
    }

    .panel-card-header {
        padding-bottom: 14px !important;
        margin-bottom: 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .panel-title-group h3 {
        font-size: 1.2rem !important;
        gap: 8px !important;
    }

    .panel-title-group p {
        font-size: 0.82rem !important;
    }

    .panel-action-btns {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .panel-action-btns a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .pdf-viewer-embed-wrap {
        height: 420px !important;
        border-radius: 10px !important;
    }

    .chapter-pager-nav {
        flex-direction: column !important;
        gap: 10px !important;
        padding-top: 20px !important;
    }

    .chapter-pager-nav > div {
        width: 100% !important;
    }

    .chapter-pager-nav .btn-pager {
        width: 100% !important;
        justify-content: center !important;
    }

    .subject-page-hero {
        padding: 28px 0 20px !important;
    }

    .subject-hero-banner {
        gap: 14px !important;
    }

    .subject-hero-icon-large {
        width: 58px !important;
        height: 58px !important;
        font-size: 26px !important;
        border-radius: 14px !important;
    }

    .subject-hero-title {
        font-size: clamp(1.4rem, 4.5vw, 1.85rem) !important;
    }

    .subject-hero-desc {
        font-size: 0.88rem !important;
    }

    .subject-chapters-grid {
        gap: 14px !important;
        margin: 24px 0 40px !important;
    }

    .chapter-overview-card {
        padding: 18px 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }

    .chapter-card-left {
        width: 100% !important;
        gap: 12px !important;
    }

    .btn-chapter-access {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .curriculum-subjects-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .curriculum-subject-card {
        padding: 20px 16px !important;
    }

    .chapter-img-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .chapter-page-title {
        font-size: 1.35rem !important;
    }

    .chapter-panel-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }

    .pdf-viewer-embed-wrap {
        height: 360px !important;
    }

    .chapter-content-body .container {
        padding: 0 8px !important;
    }
}
