/* 
 * Question Bank & Course Specific Styles
 * Organized for Hello Elementor Child Theme
 */

/* --- 1. LAYOUT STRUCTURE --- */
.qb-layout-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.qb-sidebar {
    flex: 0 0 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: fit-content;
}

.qb-sidebar h4 {
    margin: 20px 0 10px 0;
    font-size: 16px;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid #eee;
}

.qb-sidebar ul { list-style: none; padding: 0; margin: 0; }

.qb-sidebar li a { 
    text-decoration: none; 
    color: #333; 
    display: block; 
    padding: 5px 0;
    font-size: 16px;
}

.qb-sidebar li a:hover { color: #007bff; }

.qb-main-content {
    flex: 1;
}

/* --- 2. HERO & BREADCRUMBS --- */
.rv-course-hero {
    background-color: #0d1b2a; /* Deep blue/black like RV */
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

.rv-breadcrumbs { font-size: 14px; margin-bottom: 20px; opacity: 0.7; }
.rv-breadcrumbs a { color: #fff; text-decoration: none; }
.rv-breadcrumbs a:hover { text-decoration: underline; }
.rv-course-hero h1 { color: #fff; margin: 0; }
.rv-course-hero .hero-desc { color: rgba(255,255,255,0.8); margin-top: 10px; }

/* --- 3. DASHBOARD & TOPIC GRIDS --- */

/* Dashboard Layout */
.qb-dashboard-header {
    margin-bottom: 40px;
    text-align: center;
}

.qb-subject-intro {
    max-width: 800px;
    margin: 20px auto;
    color: #666;
    font-size: 1.2rem;
}

/* Topic Grid (Standard) */
.qb-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.topic-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.topic-card-content {
    padding: 25px;
    flex-grow: 1;
}

.topic-card-content h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.6rem;
}

.topic-card-content p {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 20px;
}

.topic-card-footer {
    background: #f8fafc;
    padding: 15px;
    text-align: center;
}

/* Topic Grid (RV Style) */
.rv-topic-section {
    padding: 60px 0 80px 0;
}

.rv-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.rv-topic-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.rv-topic-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.card-inner { padding: 30px; flex-grow: 1; }
.card-inner h3 { margin: 0 0 20px 0; font-size: 1.25rem; color: #1a202c; }

.rv-subtopic-list { list-style: none; padding: 0; margin: 0; }
.rv-subtopic-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.rv-subtopic-list li::before { 
    content: "•"; position: absolute; left: 0; color: #cbd5e0; 
}
.rv-subtopic-list li a { 
    text-decoration: none; color: #4a5568; font-size: 0.95rem; 
}
.rv-subtopic-list li a:hover { color: #007bff; }

.card-footer { border-top: 1px solid #f0f4f8; }

.rv-card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
}
.rv-card-link:hover { background: #f8faff; }

/* Question Bank Grid Rows */
.qb-topic-row {
    padding: 32px 0;
    border-bottom: 1px solid #f0f4f8;
}

.qb-topic-row.bg-light { background-color: #f8fafc; }
.qb-topic-row.bg-white { background-color: #ffffff; }

.row-header {
    margin-bottom: 50px;
    text-align: left;
}

.row-header h2 {
    font-size: 2.5rem;
    color: #1a202c;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.row-header p {
    color: #718096;
    font-size: 1.25rem;
    margin: 0;
}

.qb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.qb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #2d3748;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
}

.qb-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #007bff;
}

/* Icon Styling */
.qb-card-icon {
    font-size: 20px;
    color: #007bff;
	line-height: 28px;
}

.qb-card-all {
    border-top: 6px solid #007bff;
}

.qb-card-all .qb-card-icon {
    font-size: 28px;
    color: #001b9f;
    /*margin-bottom: 15px;*/
}

.qb-card-content {
    padding: 35px;
    flex-grow: 1;
}

.qb-card-all .qb-card-content {
	padding-top: 30px;
}

.qb-card-content h4 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: #1a202c;
    font-weight: 700;
}

.qb-card-content p {
    margin: 0;
    color: #718096;
    font-size: 1.1rem;
}

.qb-card-arrow {
    padding: 20px 35px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
}

/* --- 3. QUESTION BANK CONTENT --- */

.qb-question-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
}

.qb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Card Header Container for the Badge */
.qb-card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    min-height: 30px;
}

.qb-id {
    font-size: 16px;
    font-weight: 800;
}

.qb-specs {
    display: flex;
    gap: 5px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #e2e8f0;
}

.qb-badges {
    display: flex;
    gap: 8px;
}

.qb-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Badge Colors */
.badge-rv {
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.badge-blue {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.badge-gold {
    background-color: #fff9c4;
    color: #fbc02d;
    border: 1px solid #fbc02d;
}

.qb-badge.easy { background: #d4edda; color: #155724; }
.qb-badge.medium { background: #fff3cd; color: #856404; }
.qb-badge.hard { background: #f8d7da; color: #721c24; }
.qb-badge.calculator { background: #e2e6ea; color: #333; }
.qb-badge.no-calculator { background: #e2e6ea; color: #333; }

.badge-paper {
    background-color: #faf5ff;
    color: #6b46c1;
    border: 1px solid #d6bcfa;
    font-size: 10px;
}

.badge-type {
    background-color: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #81e6d9;
    font-size: 10px;
}

.qb-card-body {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 20px;
}

.qb-card-body img {
    max-width: 100%;
    height: auto;
}

.qb-card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* --- 4. QUESTION ACTION BUTTONS --- */

.btn-outline-red {
    background: transparent;
    border: 2px solid #d12a5e;
    color: #d12a5e;
}

.btn-outline-red:hover {
    background: #d12a5e;
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #2b5cb3;
    color: #2b5cb3;
}

.btn-outline-primary:hover {
    background: #2b5cb3;
    color: #fff;
}

.btn-outline-green {
    background: transparent;
    border: 2px solid #2d8a6e;
    color: #2d8a6e;
}

.btn-outline-green:hover {
    background: #2d8a6e;
    color: #fff;
}

.btn-success {
    background: #28a745;
    color: #fff;
}
.btn-success:hover { background: #218838; }

.btn i { font-size: 18px; }

/* User Interaction Buttons */
.user-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-action {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #718096;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 45px;
}

.btn-action:hover {
    border-color: #cbd5e0;
    color: #2d3748;
}

.btn-action.is-active i.fa-bookmark {
    color: #fbc02d;
}

.btn-done.is-active {
    background: #c6f6d5;
    color: #22543d;
    border-color: #9ae6b4;
}

.btn-action.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* --- 5. MODALS & OVERLAYS --- */

.qb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

/* Reduced padding for mark scheme and formula booklet modals to fill more space */
.qb-modal-overlay:has(.qb-mark-scheme-window) {
    padding: 10px;
}

.qb-modal-overlay:has(.qb-formula-booklet-window) {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.qb-modal-window {
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: rvModalSlide 0.3s ease-out;
}

/* Mark Scheme Two-Panel Layout (Revision Village Style) */
.qb-mark-scheme-window {
    max-width: 95%;
    width: 95%;
    max-height: 95vh;
    height: 95vh;
    border-radius: 8px;
    background: #f5f5f5;
}

.qb-modal-panels {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(95vh - 60px);
}

.qb-panel-left,
.qb-panel-right {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qb-panel-left {
    margin-right: 5px;
}

.qb-panel-right {
    margin-left: 5px;
}

.qb-panel-divider {
    width: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

.qb-panel-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    height: 100%;
}

.qb-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.qb-max-mark {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
    font-style: italic;
}

.qb-question-content,
.qb-solution-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d3748;
}

.qb-question-content p,
.qb-solution-content p {
    margin-bottom: 1em;
}

.qb-question-content h1,
.qb-question-content h2,
.qb-question-content h3,
.qb-solution-content h1,
.qb-solution-content h2,
.qb-solution-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
}

.qb-mark-scheme-window .qb-modal-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 8px 8px 0 0;
}

/* Scrollbar styling for panels */
.qb-panel-content::-webkit-scrollbar {
    width: 8px;
}

.qb-panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.qb-panel-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.qb-panel-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

@media (max-width: 1024px) {
    .qb-mark-scheme-window {
        max-width: 98%;
        width: 98%;
        max-height: 98vh;
        height: 98vh;
    }
    
    .qb-modal-panels {
        flex-direction: column;
        height: calc(98vh - 60px);
    }
    
    .qb-panel-left,
    .qb-panel-right {
        flex: 1;
        margin: 5px;
        min-height: 0;
    }
    
    .qb-panel-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
}

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

.qb-modal-header {
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qb-modal-body {
    padding: 30px;
    overflow-y: auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.qb-modal-body p { margin-bottom: 1em; }

.qb-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #edf2f7;
    text-align: right;
}

.js-close-modal {
    cursor: pointer;
    font-size: 20px;
    color: #a0aec0;
}
.js-close-modal:hover { color: #2d3748; }

/* Video Specific Modals */
.video-overlay {
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.85);
}

.video-window {
    max-width: 900px;
    background: #000;
}

.video-window .qb-modal-header {
    background: #1a202c;
    border-color: #2d3748;
    color: #fff;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* PDF Specific Modals - Formula Booklet Full-Screen Layout */
.qb-formula-booklet-window {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    background: #fff;
    margin: 0 !important;
}

.qb-formula-booklet-window .qb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 8px 15px !important;
    flex-shrink: 0;
}

.qb-pdf-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 15px;
}

.qb-pdf-zoom-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.qb-pdf-zoom-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.qb-pdf-zoom-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

.qb-pdf-zoom-level {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    min-width: 50px;
    text-align: center;
}

.qb-formula-booklet-window .qb-modal-body.qb-pdf-content {
    padding: 0 !important;
    overflow: auto;
    flex: 1;
    height: calc(100vh - 45px) !important;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.qb-pdf-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 5px !important;
    transition: transform 0.3s ease;
    transform-origin: top center;
    width: 100%;
    min-height: 100%;
}

.qb-formula-booklet-window .qb-pdf-content iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100vh - 45px) !important;
    border: none;
    box-shadow: none;
    background: #fff;
}

.pdf-window {
    max-width: 950px;
    width: 90%;
}

.pdf-window .qb-modal-body.no-padding {
    padding: 0;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .qb-formula-booklet-window {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        height: 100vh !important;
    }
    
    .qb-formula-booklet-window .qb-modal-body.qb-pdf-content {
        height: calc(100vh - 45px) !important;
    }
    
    .qb-pdf-controls {
        gap: 5px;
        margin-right: 10px;
    }
    
    .qb-pdf-zoom-btn {
        padding: 6px 10px;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .qb-pdf-zoom-level {
        font-size: 12px;
        min-width: 45px;
    }
    
    .qb-pdf-wrapper {
        padding: 2px !important;
    }
}

@media (max-width: 768px) {
    .qb-formula-booklet-window .qb-modal-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .qb-pdf-controls {
        order: 2;
        width: 100%;
        justify-content: center;
        margin: 10px 0 0 0;
    }
    
    .qb-formula-booklet-window .qb-modal-header strong {
        order: 1;
    }
    
    .qb-formula-booklet-window .qb-modal-header .js-close-modal {
        order: 3;
    }
}

@media (max-width: 768px) {
    .pdf-window iframe { height: 400px; }
}

/* --- 6. COURSE HUB SECTION --- */

.rv-course-hub {
    margin-top: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hub-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.hub-card:hover {
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.hub-icon {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.icon-qb { background: linear-gradient(135deg, #007bff, #0056b3); }
.icon-exams { background: linear-gradient(135deg, #28a745, #1e7e34); }
.icon-concepts { background: linear-gradient(135deg, #ffc107, #d39e00); }
.icon-papers { background: linear-gradient(135deg, #dc3545, #bd2130); }
.icon-bootcamps { background: linear-gradient(135deg, #6610f2, #520dc2); }
.icon-flashcards { background: linear-gradient(135deg, #e83e8c, #d63384); }

.hub-info { flex: 1; }
.hub-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a202c;
}

.hub-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #718096;
    line-height: 1.5;
}

/* --- 7. PRICING & SUBSCRIPTIONS --- */

.rv-pricing-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 50px 0;
}

.rv-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 40px;
    width: 350px;
    text-align: center;
}

.gold-featured {
    border: 3px solid #fbc02d;
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbc02d;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price { font-size: 48px; font-weight: 800; margin: 20px 0; }

.btn-rv-gold {
    display: block;
    background: #fbc02d;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

/* --- 8. FILTERS & UTILITIES --- */

.qb-filter-bar {
    background: #4d5b7a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.filter-item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.filter-item label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    color: #a0aec0;
    margin-bottom: 5px;
}

.filter-item select {
    border: 1px solid #cbd5e0;
    padding: 8px;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f8fafc;
}

.go-to-wrapper { position: relative; }

.btn-go-to {
    background: #fff;
    border: 1px solid #cbd5e0;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 38px;
}

.qb-jump-menu {
    position: absolute;
    top: 110%;
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 100;
    display: none;
}

.jump-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.jump-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 14px;
    font-weight: 800;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
}

.jump-link:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Locked State Styling */
.qb-locked-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    margin: 20px 0;
}

.qb-locked-container .lock-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.qb-locked-container h2 {
    color: #2d3748;
    margin-bottom: 10px;
}

.qb-locked-container p {
    color: #718096;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.qb-breadcrumbs { margin-bottom: 20px; color: #666; font-size: 16px; }

.page-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #222;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 40px 0;
}

/* Section Header Improvements */
.section-title-area {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 15px;
}
.section-title-area h2 { margin: 0; color: #1a202c; }
.section-title-area p { margin: 5px 0 0 0; color: #a0aec0; }

/* Main Post Content Section Styling */
.rv-course-main-content {
    padding: 0;
    background-color: #fff;
    border-top: 1px solid #edf2f7;
}

/* Full-width blue background when course content exists */
.rv-course-main-content:has(.course-content-section),
.rv-course-main-content.has-course-content {
    background-color: #4F59B9 !important;
    border-top: none !important;
    padding-bottom: 20px;
}

/* Course content section - centered container with transparent background */
.course-content-section {
    background-color: transparent !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 20px !important;
    display: block !important;
}

.course-content-inner {
    padding: 32px;
    color: #FAF7F7;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.3em;
    line-height: 1.7;
}

.course-content-section h2 {
    color: #FAF7F7;
    margin-top: 0;
    font-size: 1.5em;
    font-weight: 700;
}

.course-content-section .course-tips-title {
    color: #FAF7F7;
    margin-top: 30px;
    font-size: 1.5em;
    font-weight: 700;
}

.course-content-section p,
.course-content-section li {
    color: #FAF7F7;
}

.course-content-section ul,
.course-content-section ol {
    color: #FAF7F7;
    margin: 15px 0;
    padding-left: 30px;
}

.course-content-section li {
    margin-bottom: 15px;
}

.rv-course-main-content .content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2d3748;
}

.no-padding { padding: 0 !important; }

/* --- 9. RESPONSIVE DESIGN --- */

@media (max-width: 1024px) {
    .qb-grid { grid-template-columns: repeat(2, 1fr); }
    .hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .qb-layout-wrapper { flex-direction: column; }
    .qb-sidebar { flex: none; width: 100%; }
}

@media (max-width: 640px) {
    .qb-grid { grid-template-columns: 1fr; }
    .hub-grid { grid-template-columns: 1fr; }
}

.rv-course-custom-landing { line-height: 1.6; font-family: sans-serif; }
.rv-info-purple-section { background-color: #2e1065; color: #ffffff; padding: 100px 0; border-radius: 0px; }
.rv-info-white-section { background-color: #ffffff; padding: 100px 0; border-bottom: 1px solid #f1f5f9; }
.rv-info-flex { display: flex; align-items: center; gap: 80px; }
.rv-info-flex.reverse { flex-direction: row-reverse; }
.rv-info-text { flex: 1.2; }
.rv-info-image { flex: 1; text-align: center; }
.rv-info-image img { width: 100%; height: 400px; object-fit: cover; border-radius: 0px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.rv-info-text h2 { font-size: 36px; font-weight: 800; margin-bottom: 25px; letter-spacing: -0.5px; }
.rv-topics-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 35px; }
.rv-topic-item { background: rgba(255, 255, 255, 0.08); padding: 15px 25px; border-left: 4px solid #fbbf24; font-size: 15px; font-weight: 600; }
.rv-success-tips { list-style: none; padding: 0; margin: 30px 0 0 0; }
.rv-success-tips li { display: flex; gap: 25px; margin-bottom: 35px; align-items: flex-start; }
.rv-success-tips i { font-size: 22px; color: #6d28d9; background: #f5f3ff; padding: 18px; border-radius: 0px; border: 1px solid #ddd6fe; }
.rv-success-tips strong { display: block; font-size: 19px; color: #0f172a; margin-bottom: 8px; }
@media (max-width: 992px) {
    .rv-info-flex, .rv-info-flex.reverse { flex-direction: column; text-align: center; gap: 50px; }
    .rv-info-image img { height: 300px; }
    .rv-topics-list-grid { grid-template-columns: 1fr; }
    .rv-success-tips li { text-align: left; }
}