/* ==========================================================================
   ACADEMIA NOTES PAGE - MODERN EDUCATIONAL STYLESHEET
   Brand: Academia Classes | Primary: #0d47a1 | Accent: #ffca28
   ========================================================================== */

:root {
    --brand-primary: #0d47a1;
    --brand-dark: #002171;
    --brand-accent: #ffca28;
    --brand-accent-hover: #ffd54f;
    --brand-light: #f8fafc;
    --brand-border: #e2e8f0;
    --brand-text: #1e293b;
    --brand-muted: #64748b;
    
    /* Study Material Categories Colors */
    --cat-notes: #2563eb;
    --cat-exercises: #7c3aed;
    --cat-pyq: #dc2626;
    --cat-sample: #ea580c;
    --cat-aiq: #b45309;
    --cat-more: #475569;
    
    /* Availability */
    --avail-free: #16a34a;
    --avail-paid: #d97706;
}

/* Base resets & typography */
body.notes-body {
    background-color: #f8fafd;
    color: var(--brand-text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.notes-hero {
    background: linear-gradient(135deg, #071f5c 0%, #0d47a1 50%, #002171 100%);
    position: relative;
    padding: 130px 0 70px;
    color: #ffffff;
    overflow: hidden;
}

.notes-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 202, 40, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.notes-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeInDown 0.8s ease-out;
}

.notes-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.notes-hero-title .text-accent {
    color: var(--brand-accent);
    text-shadow: 0 2px 10px rgba(255, 202, 40, 0.3);
}

.notes-hero-desc {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 820px;
    margin: 0 auto 30px;
    line-height: 1.65;
    font-weight: 300;
}

/* Functional Hero Search Bar */
.notes-search-wrapper {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.notes-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 8px 6px 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.notes-search-box:focus-within {
    border-color: var(--brand-accent);
    box-shadow: 0 14px 40px rgba(255, 202, 40, 0.35);
    transform: translateY(-2px);
}

.notes-search-icon {
    color: var(--brand-primary);
    font-size: 1.25rem;
    margin-right: 14px;
}

.notes-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.02rem;
    color: #1e293b;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    background: transparent;
}

.notes-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.notes-search-clear {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 12px;
    display: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.notes-search-clear:hover {
    color: #ef4444;
}

.notes-search-btn {
    background: linear-gradient(135deg, #ffca28 0%, #f59e0b 100%);
    color: #002171;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.notes-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

/* Quick Search Tag Pills */
.notes-quick-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.notes-quick-tags span.label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.notes-tag-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.notes-tag-pill:hover {
    background: var(--brand-accent);
    color: #002171;
    border-color: var(--brand-accent);
    transform: translateY(-1px);
}

/* Hero Stats Bar */
.notes-hero-stats {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.notes-stat-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
}

.notes-stat-pill i {
    color: var(--brand-accent);
}

/* ==========================================================================
   2. EXPLORE BY CLASS (Class 6 - 12)
   ========================================================================== */
.notes-class-section {
    padding: 60px 0 40px;
    background: #ffffff;
    border-bottom: 1px solid var(--brand-border);
}

.section-header-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.section-sub-title {
    color: var(--brand-muted);
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Class Grid Cards */
.class-card-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
    margin-top: 35px;
}

@media (max-width: 1200px) {
    .class-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .class-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.class-tile-pyq {
    border: 1.5px solid #fecaca;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.class-tile-pyq:hover {
    border-color: #ef4444;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.15);
}

.class-tile-pyq.active {
    background: linear-gradient(145deg, #dc2626 0%, #991b1b 100%) !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35) !important;
}

.class-tile-pyq.active .class-tile-number {
    color: #ffffff !important;
}

.class-tile-pyq.active .class-tile-stage {
    color: rgba(255, 255, 255, 0.88) !important;
}

.class-tile-pyq.active .class-tile-badge {
    background: var(--brand-accent) !important;
    color: #002171 !important;
    border-color: var(--brand-accent) !important;
}

.class-tile-pyq .pyq-icon {
    background: #fee2e2;
    color: #dc2626;
}

.class-tile-pyq:hover .pyq-icon {
    background: #fecaca;
    color: #b91c1c;
}

.class-tile-pyq .badge-pyq {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.class-tile {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.class-tile:hover {
    transform: translateY(-6px);
    border-color: #3b82f6;
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.12);
}

.class-tile.active {
    background: linear-gradient(145deg, #0d47a1 0%, #002171 100%);
    border-color: #0d47a1;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.3);
}

.class-tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 12px;
    transition: all 0.25s;
}

.class-tile:hover .class-tile-icon {
    transform: scale(1.1);
    background: #dbeafe;
}

.class-tile.active .class-tile-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.class-tile-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 3px;
}

.class-tile.active .class-tile-number {
    color: #ffffff;
}

.class-tile-stage {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
    white-space: nowrap;
}

.class-tile.active .class-tile-stage {
    color: rgba(255, 255, 255, 0.8);
}

.class-tile-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: auto;
}

.class-tile.active .class-tile-badge {
    background: var(--brand-accent);
    color: #002171;
    font-weight: 700;
}

/* ==========================================================================
   3. ACADEMIA IMPORTANT QUESTIONS SPOTLIGHT
   ========================================================================== */
.notes-aiq-spotlight {
    padding: 45px 0;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde68a;
    position: relative;
    overflow: hidden;
}

.aiq-card-banner {
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid #f59e0b;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1);
    position: relative;
}

.aiq-badge-header {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(180, 83, 9, 0.25);
}

.aiq-highlight-pill {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

/* ==========================================================================
   4. MAIN STUDY MATERIALS EXPLORER & FILTERS
   ========================================================================== */
.notes-explorer-section {
    padding: 50px 0 80px;
}

/* Sticky Filter Card */
.notes-filter-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    position: sticky;
    top: 80px;
    z-index: 95;
    transition: box-shadow 0.3s ease;
}

.filter-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stream selector (Senior secondary) */
.stream-pills-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #e2e8f0;
}

.stream-pill {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stream-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.stream-pill.active {
    background: #0d47a1;
    color: #ffffff;
    border-color: #0d47a1;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
}

/* Category Filter Tabs (Horizontal Scroll / Wrap) */
.category-filter-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cat-filter-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-filter-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.cat-filter-btn.active {
    background: #0d47a1;
    color: #ffffff;
    border-color: #0d47a1;
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.2);
}

.cat-filter-btn.active.cat-btn-aiq {
    background: #d97706;
    border-color: #d97706;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.cat-filter-btn.active.cat-btn-notes {
    background: #2563eb;
    border-color: #2563eb;
}

.cat-filter-btn.active.cat-btn-pyq {
    background: #dc2626;
    border-color: #dc2626;
}

.cat-filter-btn.active.cat-btn-exercises {
    background: #7c3aed;
    border-color: #7c3aed;
}

.cat-filter-btn.active.cat-btn-sample {
    background: #ea580c;
    border-color: #ea580c;
}

/* Subject Filter Scrollable Strip */
.subject-pills-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.subject-pills-container::-webkit-scrollbar {
    height: 4px;
}

.subject-pills-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.subject-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subject-pill:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.subject-pill.active {
    background: #0d47a1;
    color: #ffffff;
    border-color: #0d47a1;
    font-weight: 600;
}

/* Availability & Controls Bar */
.notes-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
}

.avail-switch-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.avail-opt-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.avail-opt-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.avail-opt-btn.active.avail-free {
    color: #16a34a;
}

.avail-opt-btn.active.avail-paid {
    color: #d97706;
}

.sort-select-box {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 500;
    outline: none;
    background: #ffffff;
    cursor: pointer;
}

/* Active Filter Summary Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px 18px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.active-filter-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.active-tag {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.active-tag .remove-tag {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s;
}

.active-tag .remove-tag:hover {
    color: #ef4444;
}

.reset-all-btn {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* ==========================================================================
   5. RESOURCE CARDS GRID
   ========================================================================== */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991.98px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.resource-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 32px rgba(13, 71, 161, 0.09);
}

/* Top Thumbnail / Card Header */
.rc-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 14px 14px 12px 14px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 330px;
}

.rc-thumb-wrapper {
    width: 100%;
    height: 290px;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 24px 0 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    cursor: pointer;
    transition: none;
}

.resource-card:hover .rc-thumb-wrapper {
    transform: none;
}

.rc-pdf-cover-img,
.rc-pdf-cover-canvas {
    height: 285px;
    max-height: 285px;
    width: auto;
    max-width: 88%;
    aspect-ratio: 1 / 1.414;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(203, 213, 225, 0.9);
    display: block;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-card:hover .rc-pdf-cover-img,
.resource-card:hover .rc-pdf-cover-canvas {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.09);
}

.rc-thumb-hint {
    position: absolute;
    bottom: 4px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.resource-card:hover .rc-thumb-hint {
    opacity: 1;
    transform: translateY(0);
}

.rc-pdf-icon-art {
    font-size: 2rem;
    color: #ef4444;
}

/* Badges floating on card header */
.rc-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.rc-avail-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-free {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-paid {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Category Specific Colors */
.cat-notes { background: #dbeafe; color: #1d4ed8; }
.cat-exercises { background: #ede9fe; color: #6d28d9; }
.cat-pyq { background: #fee2e2; color: #b91c1c; }
.cat-sample { background: #ffedd5; color: #c2410c; }
.cat-aiq { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.cat-more { background: #f1f5f9; color: #334155; }

/* Card Body */
.rc-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rc-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rc-class-pill {
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #dbeafe;
}

.rc-subject-pill {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.rc-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rc-chapter-topic {
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-desc {
    font-size: 0.81rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rc-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #64748b;
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
    margin-top: auto;
    margin-bottom: 14px;
}

.rc-info-bar .pages-tag {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Price Row (if paid) */
.rc-price-tag {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rc-price-curr {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.rc-price-mrp {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.rc-discount-pill {
    background: #dcfce7;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Action Buttons in Card */
.rc-actions {
    display: flex;
    gap: 8px;
}

.btn-rc-preview {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-rc-preview:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-rc-download {
    flex: 1.2;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
}

.btn-rc-download:hover {
    background: #15803d;
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-rc-buy {
    flex: 1.3;
    background: linear-gradient(135deg, #0d47a1 0%, #002171 100%);
    border: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.25);
}

.btn-rc-buy:hover {
    background: #002171;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(13, 71, 161, 0.35);
    transform: translateY(-1px);
}

/* ==========================================================================
   6. PDF PREVIEW MODAL STYLES (PDF.JS)
   ========================================================================== */
.notes-modal .modal-content {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.notes-modal-header {
    background: #0d47a1;
    color: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.notes-modal-body {
    background: #f1f5f9;
    padding: 20px;
    max-height: 75vh;
    overflow-y: auto;
}

.pdf-preview-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.pdf-canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pdf-page-canvas {
    max-width: 100%;
    height: auto;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.pdf-sample-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 12px;
    padding: 14px 20px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   7. POPULAR & FREE HIGHLIGHTS CAROUSEL/SECTION
   ========================================================================== */
.notes-highlights-section {
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid var(--brand-border);
}

.highlight-box {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d47a1, #ffca28);
}

.highlight-box.highlight-free::before {
    background: linear-gradient(90deg, #16a34a, #86efac);
}

/* ==========================================================================
   8. TUTORING CTA BANNER
   ========================================================================== */
.notes-tutor-cta {
    background: linear-gradient(135deg, #002171 0%, #0d47a1 100%);
    border-radius: 24px;
    padding: 45px 40px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(13, 71, 161, 0.2);
    position: relative;
    overflow: hidden;
    margin: 40px 0 20px;
}

.notes-tutor-cta::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 202, 40, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .class-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .notes-hero-title {
        font-size: 2.5rem;
    }
    .class-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .notes-filter-card {
        position: static;
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .notes-hero {
        padding: 110px 0 50px;
    }
    .notes-hero-title {
        font-size: 2rem;
    }
    .notes-hero-desc {
        font-size: 0.95rem;
    }
    .class-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .notes-grid {
        grid-template-columns: 1fr;
    }
    .notes-control-row {
        flex-direction: column;
        align-items: stretch;
    }
    .notes-search-btn span.btn-text {
        display: none;
    }
    .notes-search-btn {
        padding: 12px 18px;
    }
    .notes-tutor-cta {
        padding: 30px 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .class-card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .class-tile {
        padding: 15px 10px;
    }
    .class-tile-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .class-tile-number {
        font-size: 1.05rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ==========================================================================
   LIVE SEARCH RESULTS DROPDOWN
   ========================================================================== */
.notes-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    border: 1px solid #e2e8f0;
    max-height: 480px;
    overflow-y: auto;
    z-index: 1050;
    text-align: left;
    padding: 10px;
    animation: fadeInDown 0.2s ease-out;
}

.notes-search-dropdown::-webkit-scrollbar {
    width: 6px;
}
.notes-search-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.search-group-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 8px 12px 4px;
    margin-top: 4px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 2px;
}

.search-result-item:hover {
    background: #f1f5f9;
    transform: translateX(3px);
    color: var(--brand-primary);
}

.search-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-item-icon.icon-chapter {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.search-item-icon.icon-topic {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.search-item-icon.icon-question {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.search-item-icon.icon-pdf {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.search-item-details {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-meta {
    font-size: 0.75rem;
    color: #64748b;
}

.search-item-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
    flex-shrink: 0;
}

.search-empty-state {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

/* ==========================================================================
   DYNAMIC BREADCRUMB STRIP
   ========================================================================== */
.notes-breadcrumb-strip {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.notes-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

.notes-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.notes-breadcrumb li + li::before {
    content: '/';
    margin-right: 8px;
    color: #94a3b8;
    font-weight: 300;
}

.notes-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notes-breadcrumb a:hover {
    color: var(--brand-primary);
}

.notes-breadcrumb li.active {
    color: var(--brand-text);
    font-weight: 700;
}

/* ==========================================================================
   CLASS VIEW: SUBJECT CARDS
   ========================================================================== */
.class-view-header .section-main-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
}

.class-view-header .section-sub-title {
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
}

.subject-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.subject-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(13, 71, 161, 0.12);
    border-color: #cbd5e1;
}

.subject-card-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-card-icon-wrap {
    transform: scale(1.08) rotate(3deg);
    background: linear-gradient(135deg, #0d47a1 0%, #1e40af 100%);
    color: #ffffff;
}

.subject-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.subject-card-stats {
    font-size: 0.84rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subject-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.subject-badge-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.subject-card-btn {
    margin-top: auto;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f8fafc;
    color: var(--brand-primary);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.subject-card:hover .subject-card-btn {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
}

/* ==========================================================================
   SUBJECT VIEW: CHAPTER LEARNING CARDS
   ========================================================================== */
.subject-switcher-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.subj-switch-pill {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.subj-switch-pill:hover,
.subj-switch-pill.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.chapter-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.chapter-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ch-number-badge {
    background: rgba(13, 71, 161, 0.1);
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 50px;
}

.ch-read-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.chapter-card-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.35;
}

.chapter-card-desc {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.chapter-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.ch-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ch-badge-topics { background: #eff6ff; color: #2563eb; }
.ch-badge-practice { background: #faf5ff; color: #7c3aed; }
.ch-badge-pyq { background: #fef2f2; color: #dc2626; }
.ch-badge-aiq { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; font-weight: 700; }
.ch-badge-pdfs { background: #f0fdf4; color: #16a34a; }

.chapter-actions-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-learn-chapter {
    flex: 1.4;
    background: linear-gradient(135deg, #0d47a1 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.btn-learn-chapter:hover {
    background: linear-gradient(135deg, #0a3880 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.3);
}

.btn-view-chapter-pdfs {
    flex: 1;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-view-chapter-pdfs:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================
   SUBJECT SUB-TABS & PYQ BOARD FILTER STYLES
   ========================================== */
.subj-nav-tab {
    font-size: 0.9rem;
    padding: 8px 18px !important;
    transition: all 0.2s ease;
}
.subj-nav-tab.active {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.pyq-board-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 600;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pyq-board-pill:hover,
.pyq-board-pill.active {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.badge-state-board {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-cbse {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pyq-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.pyq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
    border-color: #fca5a5;
}
.pyq-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}
.pyq-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
}
.pyq-card-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

/* ==========================================================================
   PYQ SPECIAL CARD IN CLASS VIEW
   ========================================================================== */
.pyq-special-card {
    border: 2px solid #fca5a5 !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%) !important;
    position: relative;
    overflow: hidden;
}
.pyq-special-card::after {
    content: "HIGH YIELD";
    position: absolute;
    top: 14px;
    right: -28px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 28px;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}
.pyq-special-icon {
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    color: #dc2626 !important;
}
.btn-pyq-explore {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}
.btn-pyq-explore:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   PROGRESSIVE PYQ HUB STYLING
   ========================================================================== */
.notes-pyq-hub-section {
    min-height: 500px;
}
.pyq-stage {
    animation: fadeInStage 0.3s ease-in-out;
}
@keyframes fadeInStage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pyq-board-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pyq-board-card:hover {
    border-color: #ef4444;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.1);
}
.pyq-board-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}
.pyq-board-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.pyq-board-cta {
    font-size: 0.88rem;
    font-weight: 700;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}
.pyq-board-card:hover .pyq-board-cta {
    transform: translateX(4px);
}

.pyq-exam-type-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 100%;
}
.pyq-exam-type-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}
.pyq-exam-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px auto;
}
.pyq-exam-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

/* Filter Pills for Year & District */
.pyq-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pyq-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}
.pyq-pill.active {
    background: #0d47a1;
    color: #ffffff;
    border-color: #0d47a1;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.25);
}

/* Table styling */
.pyq-papers-table {
    font-size: 0.9rem;
}
.pyq-papers-table th {
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 12px 18px;
}
.pyq-papers-table td {
    padding: 14px 18px;
    vertical-align: middle;
}
.pyq-papers-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ==========================================================================
   LEARNING STORE: HORIZONTAL SUBBAR, SIDEBAR & MULTI-SELECT DROPDOWNS
   ========================================================================== */
.store-subbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.store-subbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.store-subbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    transition: border-color 0.2s ease;
}

.store-sort-wrap:focus-within {
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.store-sort-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.store-sort-select {
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    padding: 3px 6px;
}

/* Filter Sidebar Card */
.store-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 90px;
    z-index: 50;
}

.store-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.store-sidebar-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.store-sidebar-clear-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: #dc2626;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.store-sidebar-clear-btn:hover {
    background: #fef2f2;
    text-decoration: underline;
}

/* Multi-select Dropdown Component */
.store-ms-group {
    margin-bottom: 14px;
    position: relative;
}

.store-ms-group:last-child {
    margin-bottom: 0;
}

.store-ms-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-ms-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.store-ms-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.store-ms-btn.open {
    border-color: #0d47a1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.store-ms-btn-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.store-ms-badge {
    background: #0d47a1;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    margin-right: 6px;
    line-height: 1.2;
}

.store-ms-chevron {
    font-size: 0.75rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.store-ms-btn.open .store-ms-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu Panel */
.store-ms-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
    overflow: hidden;
    animation: msFadeDown 0.18s ease-out;
}

.store-ms-menu.show {
    display: block;
}

@keyframes msFadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-ms-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.store-ms-action-btn {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2563eb;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.store-ms-action-btn:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.store-ms-action-btn.btn-clear {
    color: #64748b;
}

.store-ms-action-btn.btn-clear:hover {
    color: #ef4444;
}

.store-ms-search {
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.store-ms-search input {
    width: 100%;
    font-size: 0.78rem;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
}

.store-ms-search input:focus {
    border-color: #0d47a1;
}

.store-ms-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
}

.store-ms-list::-webkit-scrollbar {
    width: 5px;
}

.store-ms-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.store-ms-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
    margin: 0;
}

.store-ms-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.store-ms-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #0d47a1;
}

.store-ms-item-icon {
    width: 18px;
    text-align: center;
    margin-right: 6px;
    font-size: 0.82rem;
    color: #64748b;
}

.store-ms-item-text {
    flex: 1;
}

.store-ms-item-count {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-left: 4px;
}

/* Mobile Filter Toggle */
.store-mobile-filter-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .store-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .store-sidebar-card {
        position: static;
        margin-bottom: 20px;
    }
    .store-sidebar-collapse {
        display: none;
    }
    .store-sidebar-collapse.show {
        display: block;
    }
}

/* ==========================================================================
   7. SHOPPING CART SYSTEM STYLES
   ========================================================================== */
.store-nav-cart-btn {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.08);
}
.store-nav-cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}
.store-cart-count-badge {
    font-size: 0.72rem;
    padding: 3px 6px;
    font-weight: 700;
}

.store-subbar-cart-btn {
    background: #ffffff;
    border: 1.5px solid #0d47a1;
    color: #0d47a1;
    transition: all 0.2s ease;
}
.store-subbar-cart-btn:hover {
    background: #0d47a1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

.btn-rc-cart {
    background: #ffffff;
    border: 1.5px solid #0d47a1;
    color: #0d47a1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-rc-cart:hover {
    background: #eff6ff;
    color: #002171;
    border-color: #002171;
    transform: translateY(-1px);
}
.btn-rc-cart.in-cart {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
    font-weight: 700;
}
.btn-rc-cart.in-cart:hover {
    background: #d1fae5;
    border-color: #059669;
    color: #065f46;
}

.rc-actions-paid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}
.rc-actions-paid .btn-rc-preview {
    grid-column: 1 / -1;
}

/* Cart Item Rows in Cart Modal */
.cart-item-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.cart-item-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.cart-item-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
}
.cart-item-pricing {
    text-align: right;
    flex-shrink: 0;
}
.cart-item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d47a1;
}
.cart-item-orig {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: line-through;
}
.cart-item-remove-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}
.cart-item-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* Cart Checkout row in checkout modal */
.checkout-cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.86rem;
}
.checkout-cart-item-row:last-child {
    border-bottom: none;
}




