:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --text-dark: #0f172a;
    --text-body: #64748b;
    --bg-light: #ffffff;
    --font-family: 'Hind Siliguri', 'Inter', sans-serif;
    --transition: all 0.3s ease;
    
    --brand:#2563EB;
    --brand-dark:#1D4ED8;
    --brand-light:#EFF6FF;
    --accent:#F59E0B;
    --accent-light:#FFFBEB;
    --success:#10B981;
    --bg:#FFFFFF;
    --surface:#F8FAFC;
    --surface2:#F1F5F9;
    --border:#E2E8F0;
    --border2:#CBD5E1;
    --text-primary:#0F172A;
    --text-secondary:#475569;
    --text-muted:#94A3B8;
    --ink:#1E293B;
    --red:#EF4444;
}

* {
    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: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

.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: 110px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
    min-height: 65vh;
    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 {

    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%;
    max-height: 400px;
    width: auto;
    height: 400px;
    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 {
    background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================================
   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);
}

/* Category Toggle Switcher inside Sidebar */
.category-toggle-container {
    width: 100%;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.category-tab-btn {
    padding: 8px 10px;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    outline: none;
    text-align: center;
}

.category-tab-btn.active {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.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;
}

/* Step Banner */
.step-banner {
    background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
}

.step-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.step-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-banner p {
    font-size: 1.05rem;
    opacity: 0.95;
    color: white;
    margin: 0;
}

/* 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) & STANDALONE PAGE WRAPPER
   ============================================================ */
.auth-page-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle at 10% 20%, rgba(91, 98, 244, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 90% 80%, rgba(91, 98, 244, 0.04) 0%, rgba(255, 255, 255, 0) 50%),
        #fafaff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Floating background blobs for extra depth */
.auth-page-wrapper::before,
.auth-page-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: authBlobFloat 14s infinite alternate ease-in-out;
}

.auth-page-wrapper::before {
    width: 300px;
    height: 300px;
    background: rgba(91, 98, 244, 0.15);
    top: 15%;
    left: 10%;
}

.auth-page-wrapper::after {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.12);
    bottom: 15%;
    right: 10%;
    animation-delay: -7s;
}

@keyframes authBlobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 30px) scale(1.15);
    }
}

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

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

.auth-modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08),
        0 1px 3px rgba(15, 23, 42, 0.03);
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: authCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

@keyframes authCardEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f1f5f9;
    border: none;
    color: var(--text-body);
    font-size: 1.35rem;
    width: 32px;
    height: 32px;
    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);
    transform: rotate(90deg);
}

.auth-header {
    background: transparent;
    padding: 32px 32px 0 32px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #f1f5f9;
    padding: 6px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.auth-tab-btn {
    padding: 10px 16px;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 100px;
    outline: none;
    text-align: center;
    position: relative;
}

.auth-tab-btn.active {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.auth-bodies-container {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.auth-body {
    padding: 24px 32px 36px 32px;
    display: none;
}

.auth-body.active {
    display: block;
    animation: authFormFadeIn 0.35s ease forwards;
}

@keyframes authFormFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.auth-body p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.auth-body form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.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);
}

/* Show/Hide Password Eye Button Styling */
.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.input-wrapper input[type="password"] {
    padding-right: 44px !important;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 0.4rem;
    box-shadow: 0 4px 12px rgba(91, 98, 244, 0.25);
    transition: var(--transition);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 98, 244, 0.35);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-separator {
    text-align: center;
    position: relative;
    margin: 1.25rem 0;
}

.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 12px;
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.social-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.social-btn:active {
    transform: translateY(0);
}

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

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

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

/* ============================================================
   MOBILE RESPONSIVE STYLING FOR LOGO & HERO SECTION
   ============================================================ */
@media (max-width: 576px) {
    .logo-img {
        height: 48px !important;
    }

    .hero {
        padding-top: 90px !important;
        padding-bottom: 30px !important;
        min-height: auto !important;
    }

    .hero-container {
        gap: 1.5rem !important;
    }

    .hero-content {
        max-width: 100% !important;
    }

    .hero-content h2 {
        font-size: 1.65rem !important;
        line-height: 1.35 !important;
        margin-bottom: 1rem !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }

    .hero-buttons .btn-large {
        padding: 0.75rem 2rem !important;
        font-size: 0.95rem !important;
    }

    .hero-image img {
        max-height: 280px !important;
        height: 280px !important;
    }
}

/* ==========================================================================
   NEW FRONT HOME PAGE DESIGN CSS
   ========================================================================== */

/* ── TOPBAR ── */
.topbar{background:#1E3A8A;padding:7px 0;text-align:center}
.topbar p{font-size:.75rem;color:#BFDBFE;font-family:'Plus Jakarta Sans',sans-serif;letter-spacing:.2px}
.topbar span{color:#FCD34D;font-weight:700}

/* ── NAV ── */
.desktop-nav{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:200;height:62px;display:flex;align-items:center;padding:0 5%}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 10001 !important;
    box-shadow: -5px 0 30px rgba(15, 23, 42, 0.15) !important;
    padding: 30px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
    border-bottom: none !important;
    height: 100% !important;
}

.mobile-nav.active {
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

.mobile-nav-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.nav-inner{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.logo-icon{width:36px;height:36px;background:var(--brand);border-radius:9px;display:flex;align-items:center;justify-content:center}
.logo-icon svg{width:20px;height:20px;fill:#fff}
.logo-text{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:1.2rem;color:var(--text-primary);letter-spacing:-.5px}
.logo-text span{color:var(--brand)}
.nav-links{display:flex;align-items:center;gap:6px;list-style:none}
.nav-links a{padding:6px 12px;border-radius:6px;text-decoration:none;color:var(--text-secondary);font-size:.875rem;font-weight:500;transition:all .15s}
.nav-links a:hover{background:var(--surface);color:var(--text-primary)}
.nav-links a.active{color:var(--brand);background:var(--brand-light)}
.nav-actions{display:flex;align-items:center;gap:10px}
.btn-login{padding:7px 16px;border-radius:7px;border:1.5px solid var(--border2);background:#fff;color:var(--text-primary);font-size:.85rem;font-weight:600;cursor:pointer;font-family:'Hind Siliguri',sans-serif;transition:all .15s}
.btn-login:hover{border-color:var(--brand);color:var(--brand)}
.btn-nav-cta{padding:8px 20px;border-radius:7px;background:var(--brand);color:#fff;font-size:.85rem;font-weight:700;cursor:pointer;border:none;font-family:'Hind Siliguri',sans-serif;transition:all .15s;white-space:nowrap}
.btn-nav-cta:hover{background:var(--brand-dark)}

/* ── HERO ── */
.hero{background:linear-gradient(135deg,#0F172A 0%,#1E3A8A 50%,#1D4ED8 100%);padding:72px 5% 80px;position:relative;overflow:hidden}
.hero-bg-circle{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(96,165,250,.18) 0%,transparent 70%)}
.hero-bg-circle.c1{width:500px;height:500px;top:-150px;right:-100px}
.hero-bg-circle.c2{width:300px;height:300px;bottom:-100px;left:5%}
.hero-grid{display:grid;grid-template-columns:1fr 420px;gap:60px;align-items:center;position:relative;z-index:2;max-width:1200px;margin:0 auto}
.hero-pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:100px;padding:5px 14px 5px 5px;margin-bottom:22px}
.hero-pill-badge{background:var(--accent);color:#000;font-size:.65rem;font-weight:800;padding:3px 8px;border-radius:100px;font-family:'Plus Jakarta Sans',sans-serif}
.hero-pill span{color:#BFDBFE;font-size:.78rem;font-weight:500}
.hero h1{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(1.9rem,3.5vw,2.9rem);color:#fff;font-weight:800;line-height:1.2;margin-bottom:16px;letter-spacing:-.5px}
.hero h1 .highlight{color:#60A5FA}
.hero h1 .bengali-line{font-family:'Hind Siliguri',sans-serif;font-weight:700;font-size:clamp(1.5rem,3vw,2.3rem);display:block;color:#E0F2FE;margin-top:4px}
.hero-sub{color:#93C5FD;font-size:1rem;max-width:480px;margin-bottom:32px;line-height:1.7}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:36px}
.btn-hero-primary{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;background:var(--accent);color:#000;border-radius:10px;font-weight:800;font-size:1rem;text-decoration:none;transition:all .2s;box-shadow:0 4px 20px rgba(245,158,11,.4)}
.btn-hero-primary:hover{background:#D97706;transform:translateY(-1px)}
.btn-hero-ghost{display:inline-flex;align-items:center;gap:8px;padding:14px 24px;background:rgba(255,255,255,.08);border:1.5px solid rgba(255,255,255,.2);color:#fff;border-radius:10px;font-weight:600;font-size:.95rem;text-decoration:none;transition:all .2s}
.btn-hero-ghost:hover{background:rgba(255,255,255,.14)}
.hero-trust{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.trust-item{display:flex;align-items:center;gap:6px;color:#93C5FD;font-size:.8rem}
.trust-dot{width:6px;height:6px;border-radius:50%;background:#34D399;flex-shrink:0}

/* HERO CARD */
.hero-card{background:#fff;border-radius:16px;padding:28px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.hero-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.hc-badge{background:var(--brand-light);color:var(--brand);font-size:.72rem;font-weight:700;padding:4px 10px;border-radius:6px;font-family:'Plus Jakarta Sans',sans-serif}
.hc-live{display:flex;align-items:center;gap:5px;font-size:.72rem;color:var(--success);font-weight:600}
.hc-live-dot{width:7px;height:7px;border-radius:50%;background:var(--success);animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero-card h3{font-size:1.05rem;font-weight:700;color:var(--text-primary);margin-bottom:4px}
.hero-card p{font-size:.8rem;color:var(--text-secondary);margin-bottom:18px}
.hc-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.hc-tag{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:4px 10px;font-size:.72rem;color:var(--text-secondary);font-weight:500}
.hc-progress{margin-bottom:20px}
.hc-progress-label{display:flex;justify-content:space-between;font-size:.75rem;color:var(--text-muted);margin-bottom:6px}
.hc-bar{height:6px;background:var(--surface2);border-radius:10px;overflow:hidden}
.hc-bar-fill{height:100%;width:62%;background:linear-gradient(90deg,var(--brand),#60A5FA);border-radius:10px}
.hc-students{display:flex;align-items:center;gap:10px;padding:12px;background:var(--surface);border-radius:10px;margin-bottom:16px}
.hc-avatars{display:flex}
.hc-avatar{width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:var(--brand);display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:700;color:#fff;margin-left:-8px}
.hc-avatar:first-child{margin-left:0}
.hc-avatar.a2{background:#7C3AED}
.hc-avatar.a3{background:var(--success)}
.hc-avatar.a4{background:var(--accent);color:#000}
.hc-students-text{font-size:.78rem;color:var(--text-secondary)}
.hc-students-text strong{color:var(--text-primary);font-weight:700}
.btn-start-test{width:100%;padding:12px;background:var(--brand);color:#fff;border:none;border-radius:10px;font-family:'Hind Siliguri',sans-serif;font-size:.95rem;font-weight:700;cursor:pointer;transition:background .15s}
.btn-start-test:hover{background:var(--brand-dark)}

/* ── STATS ── */
.stats-strip{background:var(--surface);border-bottom:1px solid var(--border);padding:20px 5%}
.stats-inner{max-width:1200px;margin:0 auto;display:flex;justify-content:space-around;gap:20px;flex-wrap:wrap}
.stat-item{text-align:center}
.stat-num{font-family:'Plus Jakarta Sans',sans-serif;font-size:1.6rem;font-weight:800;color:var(--brand)}
.stat-label{font-size:.75rem;color:var(--text-muted);font-weight:500;margin-top:2px}

/* ── SECTIONS ── */
.section{padding:64px 5%}
.section-inner{max-width:1200px;margin:0 auto}
.sec-eyebrow{display:inline-block;background:var(--brand-light);color:var(--brand);font-size:.7rem;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:4px 12px;border-radius:6px;margin-bottom:12px;font-family:'Plus Jakarta Sans',sans-serif}
.sec-title{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(1.5rem,3vw,2rem);font-weight:800;color:var(--text-primary);margin-bottom:8px;letter-spacing:-.3px}
.sec-sub{color:var(--text-secondary);font-size:.95rem;max-width:560px}
.sec-header{margin-bottom:36px}
.sec-header-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.see-all{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-size:.85rem;font-weight:600;text-decoration:none}
.see-all:hover{text-decoration:underline}

/* ── EXAM CARDS ── */
.exam-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.exam-card{background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:20px;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}
.exam-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:var(--brand);opacity:0;transition:opacity .2s}
.exam-card:hover{border-color:var(--brand);box-shadow:0 4px 20px rgba(37,99,235,.1);transform:translateY(-2px)}
.exam-card:hover::before{opacity:1}
.exam-card.locked{opacity:.7}
.exam-card.coming-soon::after{content:'শীঘ্রই';position:absolute;top:10px;right:10px;background:var(--surface2);color:var(--text-muted);font-size:.62rem;font-weight:700;padding:2px 8px;border-radius:20px;font-family:'Plus Jakarta Sans',sans-serif}
.exam-card.active-now::after{content:'চালু আছে';position:absolute;top:10px;right:10px;background:#D1FAE5;color:var(--success);font-size:.62rem;font-weight:700;padding:2px 8px;border-radius:20px;font-family:'Plus Jakarta Sans',sans-serif}
.exam-icon-wrap{width:44px;height:44px;border-radius:10px;background:var(--brand-light);display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin-bottom:14px}
.exam-card h3{font-size:.9rem;font-weight:700;color:var(--text-primary);margin-bottom:4px}
.exam-card p{font-size:.75rem;color:var(--text-secondary);margin-bottom:12px}
.exam-card-footer{display:flex;align-items:center;justify-content:space-between}
.exam-test-count{font-size:.72rem;color:var(--text-muted);font-weight:500}
.exam-arrow{color:var(--brand);font-size:.85rem;font-weight:700;opacity:0;transition:opacity .2s}
.exam-card:hover .exam-arrow{opacity:1}

/* ── FREE TESTS ── */
.free-section{background:var(--surface)}
.test-list{display:flex;flex-direction:column;gap:12px}
.test-row{background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:20px 22px;display:flex;align-items:center;gap:18px;transition:all .2s}
.test-row:hover{border-color:var(--brand);box-shadow:0 2px 12px rgba(37,99,235,.08)}
.test-num{min-width:36px;height:36px;border-radius:8px;background:var(--brand-light);display:flex;align-items:center;justify-content:center;font-family:'Plus Jakarta Sans',sans-serif;font-size:.85rem;font-weight:800;color:var(--brand)}
.test-info{flex:1}
.test-info h3{font-size:.92rem;font-weight:700;color:var(--text-primary);margin-bottom:4px}
.test-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.tag{font-size:.68rem;padding:2px 8px;border-radius:5px;font-weight:600;font-family:'Plus Jakarta Sans',sans-serif}
.tag.free{background:#D1FAE5;color:#065F46}
.tag.default{background:var(--surface2);color:var(--text-secondary)}
.tag.new{background:#FEE2E2;color:#991B1B}
.test-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.test-meta-info{font-size:.72rem;color:var(--text-muted);text-align:right}
.btn-take{padding:8px 18px;background:var(--brand);color:#fff;border:none;border-radius:8px;font-family:'Hind Siliguri',sans-serif;font-size:.82rem;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s}
.btn-take:hover{background:var(--brand-dark)}
.btn-take.outline{background:transparent;border:1.5px solid var(--border2);color:var(--text-secondary)}
.btn-take.outline:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-light)}

/* ── PYQ ── */
.pyq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.pyq-card{background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:20px;transition:all .2s}
.pyq-card:hover{border-color:var(--brand);box-shadow:0 4px 16px rgba(37,99,235,.09)}
.pyq-year{font-family:'Plus Jakarta Sans',sans-serif;font-size:.68rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px}
.pyq-card h3{font-size:.92rem;font-weight:700;color:var(--text-primary);margin-bottom:6px}
.pyq-card p{font-size:.78rem;color:var(--text-secondary);margin-bottom:14px}
.pyq-footer{display:flex;gap:8px}
.btn-pyq{flex:1;padding:8px;border-radius:8px;font-family:'Hind Siliguri',sans-serif;font-size:.78rem;font-weight:700;cursor:pointer;transition:all .15s;text-align:center}
.btn-pyq.solid{background:var(--brand);color:#fff;border:none}
.btn-pyq.solid:hover{background:var(--brand-dark)}
.btn-pyq.border{background:#fff;color:var(--text-secondary);border:1.5px solid var(--border)}
.btn-pyq.border:hover{border-color:var(--brand);color:var(--brand)}

/* ── HOW IT WORKS ── */
.how-section{background:var(--surface)}
.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0;position:relative}
.steps-grid::before{content:'';position:absolute;top:28px;left:10%;right:10%;height:1px;background:var(--border);z-index:0}
.step-item{text-align:center;padding:0 16px;position:relative;z-index:1}
.step-circle{width:56px;height:56px;border-radius:50%;background:#fff;border:2px solid var(--brand);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:1rem;color:var(--brand)}
.step-item.done .step-circle{background:var(--brand);color:#fff}
.step-item h3{font-size:.92rem;font-weight:700;color:var(--text-primary);margin-bottom:6px}
.step-item p{font-size:.78rem;color:var(--text-secondary)}

/* ── PRICING ── */
.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;max-width:900px;margin:0 auto}
.plan-card{border:2px solid var(--border);border-radius:16px;padding:32px;background:#fff;position:relative;transition:all .2s}
.plan-card:hover{transform:translateY(-3px)}
.plan-card.featured{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-light)}
.plan-ribbon{position:absolute;top:-1px;left:50%;transform:translateX(-50%);background:var(--brand);color:#fff;font-size:.68rem;font-weight:700;padding:4px 20px;border-radius:0 0 10px 10px;font-family:'Plus Jakarta Sans',sans-serif;letter-spacing:.5px;white-space:nowrap}
.plan-name{font-family:'Plus Jakarta Sans',sans-serif;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);margin-bottom:14px}
.plan-price-wrap{margin-bottom:6px}
.plan-price{font-family:'Plus Jakarta Sans',sans-serif;font-size:2.8rem;font-weight:800;color:var(--text-primary);line-height:1}
.plan-period{font-size:.85rem;color:var(--text-muted)}
.plan-strike{font-size:.85rem;color:var(--text-muted);text-decoration:line-through;margin-bottom:20px}
.plan-divider{height:1px;background:var(--border);margin:20px 0}
.plan-features{list-style:none;margin-bottom:28px}
.plan-features li{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:.86rem;color:var(--text-secondary)}
.feat-icon{flex-shrink:0;font-size:.9rem}
.feat-icon.yes{color:var(--success)}
.feat-icon.no{color:var(--border2)}
.plan-features li.no-feat{color:var(--text-muted)}
.btn-plan{width:100%;padding:13px;border-radius:10px;border:none;font-family:'Hind Siliguri',sans-serif;font-size:.95rem;font-weight:700;cursor:pointer;transition:all .15s}
.btn-plan.primary{background:var(--brand);color:#fff}
.btn-plan.primary:hover{background:var(--brand-dark)}
.btn-plan.secondary{background:var(--surface);color:var(--text-primary);border:1.5px solid var(--border)}
.btn-plan.secondary:hover{border-color:var(--brand);color:var(--brand)}
.plan-note{text-align:center;font-size:.72rem;color:var(--text-muted);margin-top:10px}

/* ── TESTIMONIALS ── */
.testi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.testi-card{background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:22px}
.testi-stars{color:var(--accent);font-size:.85rem;margin-bottom:10px}
.testi-card p{font-size:.85rem;color:var(--text-secondary);line-height:1.7;margin-bottom:16px}
.testi-author{display:flex;align-items:center;gap:10px}
.testi-avatar{width:36px;height:36px;border-radius:50%;background:var(--brand);display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:#fff;flex-shrink:0}
.testi-avatar.v2{background:#7C3AED}
.testi-avatar.v3{background:var(--success)}
.testi-name{font-size:.82rem;font-weight:700;color:var(--text-primary)}
.testi-role{font-size:.72rem;color:var(--text-muted)}

/* ── CTA BANNER ── */
.cta-banner{background:linear-gradient(135deg,#1E3A8A,#1D4ED8);padding:56px 5%;text-align:center}
.cta-banner h2{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;color:#fff;margin-bottom:10px}
.cta-banner p{color:#93C5FD;font-size:.95rem;margin-bottom:28px}
.cta-price-tag{display:inline-block;background:var(--accent);color:#000;font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:1.2rem;padding:6px 20px;border-radius:8px;margin-bottom:20px}
.cta-banner-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn-cta-w{padding:13px 30px;background:#fff;color:var(--brand);border-radius:10px;font-weight:800;font-size:.95rem;cursor:pointer;border:none;font-family:'Hind Siliguri',sans-serif;transition:all .15s}
.btn-cta-w:hover{background:#F1F5F9}
.btn-cta-ghost{padding:13px 24px;background:transparent;border:1.5px solid rgba(255,255,255,.3);color:#fff;border-radius:10px;font-weight:600;font-size:.95rem;cursor:pointer;font-family:'Hind Siliguri',sans-serif;transition:all .15s}
.btn-cta-ghost:hover{background:rgba(255,255,255,.1)}

/* ── FOOTER ── */
footer{background:#0F172A;padding:52px 5% 28px}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-top{display:grid;grid-template-columns:2.2fr 1fr 1fr 1.2fr;gap:48px;margin-bottom:40px}
.footer-logo{display:flex;align-items:center;gap:10px;margin-bottom:14px;text-decoration:none}
.footer-logo-icon{width:32px;height:32px;background:var(--brand);border-radius:8px;display:flex;align-items:center;justify-content:center}
.footer-logo-icon svg{width:18px;height:18px;fill:#fff}
.footer-logo-text{font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;font-size:1.1rem;color:#fff;letter-spacing:-.3px}
.footer-brand p{font-size:.8rem;color:#64748B;line-height:1.8;margin-bottom:16px}
.footer-social{display:flex;gap:8px}
.social-btn{width:32px;height:32px;border-radius:7px;background:#1E293B;display:flex;align-items:center;justify-content:center;color:#64748B;font-size:.8rem;transition:all .15s;cursor:pointer}
.social-btn:hover{background:var(--brand);color:#fff}
.footer-col h4{font-family:'Plus Jakarta Sans',sans-serif;font-size:.78rem;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.8px;margin-bottom:16px}
.footer-col a{display:block;font-size:.82rem;color:#64748B;text-decoration:none;margin-bottom:9px;transition:color .15s}
.footer-col a:hover{color:#fff}
.footer-col .badge{display:inline-block;background:#1E3A8A;color:#93C5FD;font-size:.6rem;padding:1px 6px;border-radius:4px;margin-left:6px;font-family:'Plus Jakarta Sans',sans-serif;font-weight:700}
.footer-bottom{border-top:1px solid #1E293B;padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-bottom p{font-size:.75rem;color:#475569}

/* User Profile Menu & Dropdown */
.user-menu {
  position: relative;
  display: inline-block;
}
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  min-width: 160px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-radius: 10px;
  border: 1px solid var(--border);
  z-index: 1000;
  padding: 8px 0;
  margin-top: 5px;
  text-align: left;
}
.user-dropdown a {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
}
.user-dropdown a:hover {
  background: var(--surface);
}
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.user-dropdown button:hover {
  background: #fee2e2;
}

/* ── MOBILE MENU TOGGLE ── */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-card {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }
    
    .desktop-nav .nav-actions .btn-login,
    .desktop-nav .nav-actions .btn-nav-cta,
    .desktop-nav .nav-actions .user-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .desktop-nav {
        height: 56px;
        padding: 0 16px;
    }
    
    .desktop-nav .logo img {
        height: 44px !important;
        width: auto !important;
    }
    
    .hero {
        padding: 48px 16px 64px !important;
    }
    
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .hero h1 .bengali-line {
        font-size: 1.5rem !important;
    }
    
    .hero-sub {
        font-size: 0.92rem !important;
        margin-bottom: 24px !important;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .stats-strip {
        padding: 24px 16px;
    }
    
    .stats-inner {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .stat-item:last-child {
        grid-column: span 2;
    }
    
    .test-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    
    .test-meta {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 10px !important;
        border-top: 1px solid var(--border);
        padding-top: 12px;
    }
    
    .test-meta-info {
        text-align: left !important;
    }
    
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .steps-grid::before {
        display: none !important;
    }
    
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }
    
    .cta-banner {
        padding: 40px 16px !important;
    }
    
    .cta-banner-btns {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .cta-banner-btns button,
    .cta-banner-btns a {
        width: 100% !important;
    }
    
    .hero-card {
        display: none !important;
    }
}

