:root {
    --primary-color: #5b62f4; /* The blue/purple from Eduleb */
    --primary-hover: #4a51d4;
    --text-dark: #0f172a; /* Dark text for headings */
    --text-body: #64748b; /* Lighter text for paragraphs */
    --bg-light: #ffffff;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-text {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
}

/* Solid sticky header for sub-pages */
.header-solid {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Smaller logo for sub-page solid header */
.header-solid .logo-img {
    height: 50px;
}

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.main-nav a i {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 245, 204, 0.6) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at 30% 70%, rgba(204, 229, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h2 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-body);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    z-index: 2;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Grid System (Basic Polyfill) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.align-items-center {
    align-items: center;
}
.mb-4 {
    margin-bottom: 1.5rem;
}
.col-lg-4, .col-lg-8, .col-sm-6, .col-xs-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
.text-right {
    text-align: right;
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}
@media (min-width: 576px) and (max-width: 991px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 991px) {
    .text-right {
        text-align: left;
        margin-top: 1rem;
    }
}

/* Course Section Styles */
.section-padding {
    padding: 100px 0;
}

.home_course {
    background-color: #ffffff;
}

.home_course .section-title h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

.home_course .section-title b {
    color: var(--primary-color);
}

.single_course {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--transition);
}

.single_course:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.single_c_img {
    position: relative;
}

.single_c_img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single_c_img span {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-stars {
    padding: 1.5rem 1.5rem 0;
    color: #f59e0b;
    font-size: 0.9rem;
}

.single_course h4 {
    padding: 0.5rem 1.5rem 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.single_course h4 a {
    transition: var(--transition);
}

.single_course h4 a:hover {
    color: var(--primary-color);
}

.course-meta {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: var(--text-body);
}

.course-meta p i {
    margin-right: 5px;
    color: var(--primary-color);
}

.single_course .price {
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-nav, .header-actions {
        display: none;
    }
}

/* ============================================================
   SUB-PAGE SOLID STICKY HEADER OVERRIDE
   (cbt, notes, video, study pages)
   ============================================================ */
.sub-page header.header,
header.header.header-solid {
    background-color: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 0.8rem 0 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.sub-page header.header .logo-img,
header.header.header-solid .logo-img { height: 50px !important; }
.sub-page header.header .main-nav a,
header.header.header-solid .main-nav a { color: #0f172a !important; }
.sub-page header.header .main-nav a:hover,
.sub-page header.header .main-nav a.active,
header.header.header-solid .main-nav a:hover,
header.header.header-solid .main-nav a.active { color: var(--primary-color) !important; }
.sub-page header.header .btn-text,
header.header.header-solid .btn-text { color: #0f172a !important; }

/* ============================================================
   PAGE BANNER  (shared across cbt / notes / video / study)
   ============================================================ */
.page-banner {
    padding: 30px 0;
    color: white;
    text-align: center;
}
.page-banner h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.page-banner p  { opacity: 0.85; font-size: 0.95rem; }
.page-banner.banner-exams  { background: linear-gradient(135deg, #5b62f4, #8b5cf6); }
.page-banner.banner-notes  { background: linear-gradient(135deg, #ef4444, #f97316); }
.page-banner.banner-video  { background: linear-gradient(135deg, #10b981, #06b6d4); }
.page-banner.banner-study  { background: linear-gradient(135deg, #5b62f4, #8b5cf6); }

/* ============================================================
   PAGE LAYOUT (sidebar + content)
   ============================================================ */
.page-layout {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .page-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-sidebar { display: flex; flex-direction: column; gap: 16px; }

.filter-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.filter-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-card h4.color-exam  { color: #5b62f4; }
.filter-card h4.color-notes { color: #ef4444; }
.filter-card h4.color-video { color: #10b981; }
.filter-card h4.color-study { color: #5b62f4; }

.filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 6px;
}

.filter-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235b62f4' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    margin-bottom: 12px;
}
.filter-select:focus { outline: none; border-color: #5b62f4; }

.filter-btn {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.filter-btn.btn-exam  { background: #5b62f4; }
.filter-btn.btn-exam:hover  { background: #4a51d4; }
.filter-btn.btn-notes { background: linear-gradient(135deg, #ef4444, #f97316); }
.filter-btn.btn-notes:hover { opacity: 0.9; }
.filter-btn.btn-video { background: linear-gradient(135deg, #10b981, #06b6d4); }
.filter-btn.btn-video:hover { opacity: 0.9; }
.filter-btn.btn-reset { background: #f1f5f9; color: #64748b; margin-top: 8px; }
.filter-btn.btn-reset:hover { background: #e2e8f0; }
.filter-btn:hover { transform: translateY(-1px); }
.filter-btn.btn-reset:hover { transform: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-tag.tag-exam  { background: #eef0ff; color: #5b62f4; }
.filter-tag.tag-notes { background: #fee2e2; color: #ef4444; }
.filter-tag.tag-video { background: #d1fae5; color: #10b981; }

/* ============================================================
   RESULTS HEADER
   ============================================================ */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.results-header h2 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 0; }
.results-count {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 700;
}
.results-count.count-exam  { background: #eef0ff; color: #5b62f4; }
.results-count.count-notes { background: #fee2e2; color: #ef4444; }
.results-count.count-video { background: #d1fae5; color: #10b981; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    grid-column: 1 / -1;
}
.empty-state i { font-size: 3rem; color: #cbd5e1; margin-bottom: 16px; display: block; }
.empty-state p { color: #64748b; }

/* ============================================================
   CBT EXAM CARDS
   ============================================================ */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.exam-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.exam-card:hover {
    border-color: #5b62f4;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(91, 98, 244, 0.15);
}
.exam-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.class-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    display: inline-block;
}
.class-badge.badge-exam  { background: #eef0ff; color: #5b62f4; }
.class-badge.badge-notes { background: #fee2e2; color: #ef4444; }
.class-badge.badge-video { background: #d1fae5; color: #10b981; }

.exam-card h3 { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.exam-card p  { font-size: 0.83rem; color: #64748b; margin-bottom: 6px; }
.exam-meta { display: flex; gap: 12px; margin: 12px 0; }
.exam-meta span {
    font-size: 0.8rem; font-weight: 600; color: #64748b;
    display: flex; align-items: center; gap: 5px;
}
.exam-meta span i { color: #5b62f4; font-size: 0.75rem; }
.start-btn {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 10px;
    background: #5b62f4;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.start-btn:hover { background: #4a51d4; }

/* ============================================================
   NOTES / PDF CARDS
   ============================================================ */
.pdf-list { display: flex; flex-direction: column; gap: 16px; }
.pdf-card {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 18px;
}
.pdf-card:hover { border-color: #ef4444; box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12); }
.pdf-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: #fee2e2; color: #ef4444;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.pdf-info { flex: 1; }
.pdf-info h3  { font-size: 0.95rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.pdf-info p   { font-size: 0.8rem; color: #64748b; }
.pdf-info .sub-tag {
    font-size: 0.78rem; color: #64748b; margin-top: 4px;
    display: flex; align-items: center; gap: 6px;
}
.pdf-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.pdf-btn {
    padding: 8px 16px; border-radius: 8px; border: none;
    font-weight: 700; font-size: 0.82rem; cursor: pointer;
    transition: all 0.2s; text-decoration: none;
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.pdf-btn.download { background: #ef4444; color: white; }
.pdf-btn.download:hover { background: #dc2626; }
.pdf-btn.read { background: #fee2e2; color: #ef4444; border: 1px solid #fca5a5; }
.pdf-btn.read:hover { background: #fecaca; }

@media (max-width: 768px) {
    .pdf-card { flex-direction: column; align-items: flex-start; }
    .pdf-actions { flex-direction: row; }
}

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}
.video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background: #0f172a;
    overflow: hidden;
}
.video-thumb img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer; transition: background 0.2s;
}
.play-overlay:hover { background: rgba(0, 0, 0, 0.2); }
.play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); color: #10b981;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; transition: transform 0.2s;
}
.play-overlay:hover .play-btn { transform: scale(1.1); }
.video-info { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.video-info h3  { font-size: 0.92rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.video-info p   { font-size: 0.8rem; color: #64748b; margin-bottom: 10px; }
.video-meta { display: flex; gap: 12px; }
.video-meta span { font-size: 0.78rem; color: #64748b; display: flex; align-items: center; gap: 5px; }
.video-meta span i { color: #10b981; font-size: 0.7rem; }
.watch-btn {
    margin-top: auto; padding-top: 12px;
    display: flex; align-items: center; gap: 6px;
    color: #10b981; font-weight: 700; font-size: 0.85rem;
    cursor: pointer; text-decoration: none;
    border-top: 1px solid #e2e8f0;
}
.watch-btn:hover { color: #059669; }

/* Video Modal */
.video-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.8); z-index: 9999;
    align-items: center; justify-content: center; padding: 20px;
}
.video-modal.open { display: flex; }
.modal-inner {
    background: #000; border-radius: 16px; overflow: hidden;
    width: 100%; max-width: 860px; position: relative;
}
.modal-close {
    position: absolute; top: 12px; right: 14px; z-index: 10;
    background: rgba(255, 255, 255, 0.15); color: white; border: none;
    border-radius: 50%; width: 36px; height: 36px; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.3); }
.modal-video { position: relative; padding-bottom: 56.25%; height: 0; }
.modal-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ============================================================
   STUDY PORTAL  (study.html)
   ============================================================ */
.sub-page-bg { background: #f8fafc; }

/* Breadcrumb */
.breadcrumb {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
}
.breadcrumb-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #64748b; }
.breadcrumb-item.active { color: #5b62f4; font-weight: 700; }
.breadcrumb-item span.arrow { color: #cbd5e1; }

/* Step pills */
.steps-row { display: flex; justify-content: center; gap: 0; margin-top: 24px; }
.step-pill {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px; font-size: 0.85rem; font-weight: 700; cursor: default;
}
.step-pill:first-child { border-radius: 50px 0 0 50px; }
.step-pill:last-child  { border-radius: 0 50px 50px 0; }
.step-pill.done   { background: rgba(255, 255, 255, 0.3); }
.step-pill.active { background: white; color: #5b62f4; }
.step-pill .num {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.3); color: white;
    font-size: 0.75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.step-pill.active .num { background: #5b62f4; color: white; }
.step-pill.done   .num { background: #10b981; color: white; }

/* Portal container */
.portal-container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }

/* Section label / heading */
.section-label {
    font-size: 0.8rem; font-weight: 700; color: #5b62f4;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.section-heading { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin-bottom: 28px; }

/* Selector card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px; margin-bottom: 40px;
}
.card-grid.subjects { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card-grid.chapters { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.sel-card {
    background: white; border: 2px solid #e2e8f0; border-radius: 14px;
    padding: 20px 16px; text-align: center; cursor: pointer;
    transition: all 0.25s ease; position: relative; overflow: hidden;
}
.sel-card:hover {
    border-color: #5b62f4; background: #eef0ff;
    transform: translateY(-3px); box-shadow: 0 8px 24px rgba(91,98,244,0.15);
}
.sel-card.selected { border-color: #5b62f4; background: #eef0ff; }
.sel-card .card-icon  { font-size: 2rem; margin-bottom: 10px; display: block; }
.sel-card .card-label { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.sel-card .card-sub   { font-size: 0.78rem; color: #64748b; margin-top: 4px; }
.sel-card .check-badge {
    position: absolute; top: 8px; right: 8px;
    background: #5b62f4; color: white;
    width: 22px; height: 22px; border-radius: 50%; font-size: 0.7rem;
    display: none; align-items: center; justify-content: center;
}
.sel-card.selected .check-badge { display: flex; }

/* Subject color variants */
.sub-math    { --sc: #5b62f4; }
.sub-science { --sc: #10b981; }
.sub-english { --sc: #f59e0b; }
.sub-social  { --sc: #ef4444; }
.sub-hindi   { --sc: #8b5cf6; }
.sub-computer{ --sc: #06b6d4; }
.sel-card.sub-card:hover, .sel-card.sub-card.selected {
    border-color: var(--sc);
    background: color-mix(in srgb, var(--sc) 8%, white);
}
.sel-card.sub-card .card-icon { color: var(--sc); }
.sel-card.sub-card.selected .check-badge { background: var(--sc); }

/* Chapter list card */
.chapter-card {
    display: flex; align-items: center; gap: 14px;
    background: white; border: 2px solid #e2e8f0;
    border-radius: 14px; padding: 16px 20px;
    cursor: pointer; transition: all 0.25s; text-align: left;
}
.chapter-card:hover {
    border-color: #5b62f4; background: #eef0ff; transform: translateX(4px);
}
.chapter-num {
    width: 40px; height: 40px; border-radius: 10px;
    background: #eef0ff; color: #5b62f4;
    font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chapter-info h4 { font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.chapter-info p  { font-size: 0.8rem; color: #64748b; margin-top: 3px; }

/* Step section visibility */
.step-section         { display: none; }
.step-section.visible { display: block; }

/* Back button */
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    color: #5b62f4; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; margin-bottom: 20px;
    background: none; border: none; padding: 0;
}
.back-btn:hover { text-decoration: underline; }

/* Info tags */
.info-tags { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.info-tag {
    background: #eef0ff; color: #5b62f4; padding: 6px 14px;
    border-radius: 50px; font-size: 0.82rem; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
}

/* Content panel */
.content-panel {
    background: white; border-radius: 20px; padding: 36px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08); margin-bottom: 40px;
}
.content-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
    padding-bottom: 20px; border-bottom: 1px solid #e2e8f0;
}
.content-chapter-num {
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(135deg, #5b62f4, #8b5cf6);
    color: white; font-size: 1.3rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.content-header-text h2 { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.content-header-text p  { color: #64748b; font-size: 0.9rem; }

/* Resource grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 700px) { .resource-grid { grid-template-columns: 1fr; } }

.resource-card {
    border-radius: 16px; padding: 28px 20px; text-align: center;
    transition: all 0.25s; cursor: pointer; text-decoration: none; display: block;
}
.resource-card:hover { transform: translateY(-5px); }
.resource-card.mcq   { background: linear-gradient(135deg, #5b62f4, #8b5cf6); color: white; }
.resource-card.pdf   { background: linear-gradient(135deg, #ef4444, #f97316); color: white; }
.resource-card.video { background: linear-gradient(135deg, #10b981, #06b6d4); color: white; }
.resource-card i  { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.resource-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; color: white; }
.resource-card p  { font-size: 0.85rem; opacity: 0.9; color: white; }
.go-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.2); padding: 8px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; margin-top: 14px; color: white;
    transition: background 0.2s;
}
.resource-card:hover .go-btn { background: rgba(255,255,255,0.35); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    background-color: #f8fafc;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 991px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: var(--text-body);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.about-feature-icon {
    width: 46px;
    height: 46px;
    background-color: #eef0ff;
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.about-feature-item:hover .about-feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.about-feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.about-feature-text p {
    font-size: 0.92rem;
    color: var(--text-body);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(91, 98, 244, 0.08);
    border-color: #e2e8f0;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    background-color: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.info-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: #eef0ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background-color: var(--primary-color);
    color: white;
}

.info-text h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: 220px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper .text-area-icon {
    top: 18px;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 0.92rem;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
    background-color: #f8fafc;
}

.input-wrapper textarea {
    padding-top: 14px;
    resize: none;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(91, 98, 244, 0.15);
}

.input-wrapper input:focus + i,
.input-wrapper textarea:focus + i,
.input-wrapper input:focus ~ i,
.input-wrapper textarea:focus ~ i {
    color: var(--primary-color);
}

.submit-btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.submit-btn i {
    font-size: 0.85rem;
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translate(3px, -3px);
}

.form-success-msg {
    display: none;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    align-items: center;
    gap: 0.5rem;
}

.form-success-msg.show {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

/* ============================================================
   AUTH MODALS (SIGN IN / SIGN UP)
   ============================================================ */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden; /* Prevent scrolling of outer container */
    align-items: center; /* Flex centering */
    justify-content: center;
    padding: 20px;
}

.auth-modal.open {
    display: flex;
}

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    transition: var(--transition);
    z-index: 1;
}

.auth-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; /* Flex layout to stretch internal content */
    flex-direction: column;
    max-height: calc(100vh - 40px); /* Limit height to viewport bounds */
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    color: var(--text-body);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    z-index: 100;
}

.auth-modal-close:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

.auth-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.auth-tab-btn {
    padding: 1.2rem;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    outline: none;
}

.auth-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--primary-color);
    background: #ffffff;
}

.auth-tab-btn.active::after {
    background-color: var(--primary-color);
}

.auth-bodies-container {
    overflow-y: auto; /* Scrollbar only on form contents */
    flex: 1; /* Stretch to take remaining card height */
    min-height: 0; /* Crucial for scrollable flex items */
}

.auth-body {
    padding: 2rem; /* Reduced padding from 2.5rem to save vertical height */
    display: none;
}

.auth-body.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.auth-body h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.auth-body p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.25rem; /* Reduced from 2rem */
}

.auth-body form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced from 1.25rem */
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-pass {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.forgot-pass:hover {
    text-decoration: underline;
}

.form-options {
    margin-top: 0.15rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    user-select: none;
}

.checkbox-container a {
    color: var(--primary-color);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-submit-btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.auth-separator {
    text-align: center;
    position: relative;
    margin: 1rem 0; /* Reduced from 1.5rem */
}

.auth-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.auth-separator span {
    background-color: #ffffff;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.social-logins {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-btn {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    background-color: white;
    border-radius: 8px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn i {
    font-size: 1rem;
}

.google-btn i {
    color: #ea4335;
}

.facebook-btn i {
    color: #1877f2;
}

