﻿/* Fix study-notes pagination arrow size */
.study-notes-pagination .pagination .page-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}
.study-notes-pagination .pagination .page-item .page-link svg,
.study-notes-pagination .pagination .page-item .page-link i,
.study-notes-pagination .pagination .page-item .page-link .fa {
    font-size: 1.1em !important;
    width: 1.2em;
    height: 1.2em;
}
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
}
:root {
    --primary: #172554;
    --primary-dark: #0f1a3a;
    --accent: #14B8A6;
    --success: #22C55E;
    --dark: #0F172A;
    --light-bg: #F8FAFC;
    --navbar-height: 76px;
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 80px;
    }
}

.section-padding {
    padding: 80px 0;
}

.btn-modern {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.28);
}
        .bg-light-green-gradient:hover {
            background: linear-gradient(to bottom right, #c3e6cb, #f8f9fa);
            /* slightly darker */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .bg-light-green-gradient {
            background: linear-gradient(to bottom right, #d4edda, #ffffff);
        }

      .logo-img {
    width: auto;
    height: 65px;
    max-width: 100%;
    aspect-ratio: 1152 / 387;
    object-fit: contain;
    transition: 0.3s ease;
}

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

.hero-gradient {
    background: linear-gradient(135deg, #0f172a, #1e293b, #172554);
    color: white;
}

.brand-symbol {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-wordmark {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand-exa { color: #172554; }
.brand-prac { color: #14B8A6; }

.modern-footer .brand-exa { color: #e2e8f0; }
.modern-footer .brand-prac { color: #5eead4; }

.hero-logo {
    max-width: min(100%, 420px);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
}

        @media (max-width: 768px) {
            .logo-img {
                height: 50px;
                width: auto;
            }
        }

        /* Slider  */
.hero-section {
    min-height: 82vh;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 28%),
        linear-gradient(135deg, #0f172a, #162234, #1e293b);
    color: #fff;
    padding: 96px 0 84px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.hero-title {
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 14ch;
    margin-top: 18px;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: #cbd5e1;
    max-width: 620px;
    line-height: 1.8;
}

.text-gradient {
    background: linear-gradient(90deg, #5eead4, #22C55E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-quote {
    margin: 0;
    max-width: 560px;
    padding-left: 18px;
    border-left: 3px solid rgba(103, 232, 249, 0.7);
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.8;
}

.hero-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-proof-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-panel {
    max-width: 440px;
    margin-left: auto;
    padding: 34px 30px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
}

.hero-panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #67e8f9;
    margin-bottom: 18px;
}

.hero-panel-stat {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.hero-panel-copy {
    color: #cbd5e1;
    line-height: 1.8;
}

@media (min-width: 992px) {
    .hero-title {
        max-width: 38ch;
    }

    .hero-subtitle,
    .hero-quote {
        max-width: 920px;
    }
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Stats  */
.stats-section {
    padding: 48px 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(23, 37, 84), 0.12);
    border-color: rgba(23, 37, 84), 0.2);
}

.stat-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

/* Subjects  */
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.subjects-section {
    background: #f8fafc;
}

.subject-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.35s ease;
    position: relative;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(23, 37, 84), 0.15);
    border-color: #172554;
}

.subject-icon {
    font-size: 28px;
    margin-bottom: 15px;
    color: #172554;
    width: 56px;
    height: 56px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 37, 84), 0.08);
}

.subject-icon--tone-0 { color: #172554; background: rgba(23, 37, 84), 0.1); }
.subject-icon--tone-1 { color: #0369a1; background: rgba(3, 105, 161, 0.1); }
.subject-icon--tone-2 { color: #047857; background: rgba(4, 120, 87, 0.1); }
.subject-icon--tone-3 { color: #b45309; background: rgba(180, 83, 9, 0.1); }
.subject-icon--tone-4 { color: #be123c; background: rgba(190, 18, 60, 0.1); }
.subject-icon--tone-5 { color: #6d28d9; background: rgba(109, 40, 217, 0.1); }

.subject-title {
    font-weight: 600;
    margin-bottom: 18px;
    color: #0f172a;
    min-height: 52px;
}

.subject-card-heading {
    display: block;
    color: inherit;
    transition: color 0.2s ease;
}

.subject-card-heading:hover {
    color: #172554;
}

.subject-card-heading:hover .subject-title {
    color: #172554;
}

.subject-card-heading .subject-title {
    margin-bottom: 18px;
}

.subject-arrow {
    font-size: 14px;
    color: #172554;
    opacity: 0;
    transition: 0.3s ease;
}

.subject-card:hover .subject-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.subject-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.subject-card-actions .btn {
    min-width: 120px;
}

.subject-card-buy {
    width: 100%;
}

.subject-buy-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.25;
    padding-top: 10px;
    padding-bottom: 10px;
}

.subject-buy-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.subject-buy-price {
    font-size: 0.92rem;
    font-weight: 600;
}

.subject-price-current {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.subject-buy-pricing {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.subject-buy-btn .subject-price-struck,
.subject-buy-btn s.subject-price-struck {
    text-decoration: line-through !important;
    -webkit-text-decoration-line: line-through !important;
    text-decoration-thickness: 1px;
    opacity: 0.78;
    font-weight: 500;
    font-size: 0.88rem;
}

.subject-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.subject-price-original,
.subject-price-struck {
    color: inherit;
    text-decoration: line-through !important;
    -webkit-text-decoration-line: line-through !important;
}

.subject-price-offer {
    color: #059669;
    font-size: 1.15rem;
    font-weight: 700;
}

.subject-card-links {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subject-card-links a {
    color: #172554;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}

.subject-card-links a:hover {
    color: #4c1d95;
    text-decoration: underline;
}

.material-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.material-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(23, 37, 84), 0.12));
    color: #172554;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.material-card-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.material-card-text {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
}

.empty-materials-state {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.empty-materials-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #172554;
    font-size: 1.6rem;
}

/* Subject category tabs on home */
.subjects-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 6px;
    padding-bottom: 2px;
}

.subjects-category-tabs .nav-item {
    flex: 0 0 auto;
}

.subjects-category-tabs .nav-link {
    color: #64748b;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
}
.subjects-category-tabs .nav-link:hover {
    color: #172554;
    border-bottom-color: #e2e8f0;
}
.subjects-category-tabs .nav-link.active {
    color: #172554;
    background: #fff;
    border-bottom-color: #172554;
}

/* TESTIMONIALS  */

.testimonial-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.testimonial-stars {
    color: #facc15;
    font-size: 14px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    min-height: 80px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

/* NavBar  */

.modern-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Mobile menu (hamburger) icon â€“ dark so itâ€™s visible on light navbar */
.modern-navbar .nav-toggler-icon-dark,
.modern-navbar .nav-toggler-icon-dark i,
.modern-navbar .navbar-toggler i {
    color: #0f172a !important;
}
.modern-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* CLS: reserve hamburger / icon space before Font Awesome paints */
.modern-navbar .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modern-navbar .navbar-toggler .fas,
.mobile-subjects-toggle .fas,
.subject-icon .fas {
    display: inline-block;
    width: 1.25em;
    min-width: 1.25em;
    text-align: center;
    line-height: 1;
}

.nav-modern {
    color: #0f172a !important;
    font-weight: 500;
    position: relative;
}

.nav-modern:hover {
    color: #0ea5a4 !important; /* match your teal logo */
}

.subjects-dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
    min-width: 320px;
    max-width: min(92vw, 420px);
    overflow-x: hidden;
    white-space: normal;
}

/* Subjects mega menu — max 15 items per column */
@media (min-width: 992px) {
    .nav-mega-item .subjects-mega-menu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 0 0 20px 20px;
        border-top: 1px solid #e2e8f0;
        max-height: min(78vh, 680px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mega-menu-category {
        height: 100%;
    }

    .mega-menu-category-title {
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 0.65rem;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .mega-menu-subject-columns {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
        align-items: flex-start;
    }

    .mega-menu-subject-column {
        flex: 1 1 200px;
        min-width: 180px;
        max-width: 240px;
    }

    .mega-menu-link {
        display: block;
        padding: 0.32rem 0;
        color: #0f172a;
        text-decoration: none;
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .mega-menu-link:hover {
        color: #172554;
    }

    .mega-menu-footer {
        text-align: center;
    }

    .mega-menu-cta {
        color: #0891b2;
        font-weight: 600;
        text-decoration: none;
        font-size: 0.92rem;
    }

    .mega-menu-cta:hover {
        color: #0e7490;
        text-decoration: underline;
    }
}

.nav-compact-dropdown {
    min-width: 11rem;
    border-radius: 14px;
    padding: 0.35rem 0;
}

.nav-compact-dropdown .dropdown-item {
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
}

.nav-compact-dropdown .dropdown-item.active,
.nav-compact-dropdown .dropdown-item:active {
    background: #f1f5f9;
    color: #172554;
}

.modern-navbar .nav-link.dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
}

@media (min-width: 992px) {
    .modern-navbar .navbar-nav {
        flex-wrap: nowrap;
    }

    .modern-navbar .nav-link.nav-modern {
        font-size: 0.92rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        white-space: nowrap;
    }

    .modern-navbar .btn-modern.btn-sm {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
        white-space: nowrap;
    }
}

@media (min-width: 992px) {
    .modern-navbar .dropdown-menu.subjects-dropdown-menu {
        right: 0;
        left: auto;
    }

    .subjects-dropdown-menu .dropdown-item,
    .subjects-dropdown-menu .dropdown-header {
        white-space: normal;
    }
}

.nav-modern::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #06b6d4, #a855f7);
    transition: 0.3s ease;
}

.nav-modern:hover::after,
.nav-modern.active::after {
    width: 100%;
}

.nav-modern:hover {
    color: #06b6d4 !important;
}

body {
    padding-top: var(--navbar-height); /* reserve space for fixed navbar */
}

.mobile-subjects-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0 !important;
}

.mobile-subjects-toggle::after {
    display: none;
}

.mobile-subjects-panel {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    max-height: 52vh;
    overflow-y: auto;
}

.mobile-subject-group + .mobile-subject-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.mobile-subject-category {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.mobile-subject-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-subject-link:hover {
    background: #f1f5f9;
    color: #172554;
}

/* Footer  */
.modern-footer {
    background: #f8fafc;
    color: #334155;
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 15px;
    color: #0f172a;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #0ea5a4;
    padding-left: 4px;
}

.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: #e2e8f0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0f172a;
    transition: 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: #cbd5e1;
    margin: 30px 0 15px;
}

.footer-bottom {
    color: #64748b;
}

/* Blog List  */
.blog-section {
    background: #f8fafc;
}
.blog-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.blog-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
}

.blog-hero-subtitle {
    color: #cbd5e1;
    max-width: 650px;
    margin: auto;
}
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.35s ease;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.blog-image-wrapper {
    overflow: hidden;
    height: 220px;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
}

.blog-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.blog-share a {
    margin-right: 12px;
    color: #64748b;
    transition: 0.3s ease;
}

.blog-share a:hover {
    color: #06b6d4;
}

/* Blog Page  */
.article-wrapper {
    max-width: 800px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #0f172a;
}

.article-meta {
    font-size: 0.9rem;
    color: #64748b;
}

.article-share a {
    margin-right: 12px;
    color: #64748b;
    font-size: 1rem;
    transition: 0.3s ease;
}

.article-share a:hover {
    color: #06b6d4;
}

.article-image img {
    width: 100%;
    border-radius: 20px;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #0f172a;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-content th,
.article-content td {
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    vertical-align: top;
}

.article-content thead th {
    background: #f1f5f9;
    font-weight: 700;
}

.back-link {
    text-decoration: none;
    font-weight: 500;
    color: #06b6d4;
}

/* Test Page  */
.subject-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.subject-head {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 12px;
}

.subject-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
}

.test-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: 0.35s ease;
}

.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.final-test-box {
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    color: #fff;
    padding: 50px 30px;
    border-radius: 20px;
}

.instructions-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.subject-description {
    max-width: 900px;
    margin: auto;
}

.topic-mobile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.topic-mobile-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.topic-mobile-weight {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
}

.topic-mobile-details {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Practice Test  */
.exam-section {
    background: #f1f5f9;
    padding: 30px 0;
    min-height: 100vh;
}

.exam-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.exam-body {
    min-height: 250px;
}

.exam-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.question-palette {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.palette-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.palette-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.palette-btn:hover {
    transform: scale(1.1);
}

/* Status Colors */
.palette-unattempted {
    background: #cbd5e1;
}

.palette-attempted {
    background: #16a34a;
    color: #fff;
}

.palette-review {
    background: #dc2626;
    color: #fff;
}

/* About  */
.about-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.about-title {
    font-size: 2.6rem;
    font-weight: 800;
}

.about-subtitle {
    color: #cbd5e1;
    max-width: 600px;
    margin: auto;
}

.about-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

/* Contact Us  */
.contact-hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.contact-subtitle {
    color: #cbd5e1;
}

.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.modern-input {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    transition: 0.3s ease;
}

.modern-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.2);
}

/* Question  */
.question-wrapper {
    min-height: 500px;   /* makes section taller */
    padding-bottom: 20px;
}

.case-box {
    background: #f1f5f9;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
    font-size: 1rem;
    line-height: 1.6;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.8;
}

.option-radio {
    display: none;
}

.option-label-block {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: 0.25s ease;
}

.option-label-block:hover {
    background: #f1f5f9;
    transform: translateX(6px);
}

.option-radio:checked + .option-label-block:not(.is-correct):not(.is-incorrect) {
    border-color: #6366f1;
    background: #eef2ff;
}

.option-letter {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.option-radio:checked + .option-label-block:not(.is-correct):not(.is-incorrect) .option-letter {
    background: #6366f1;
    color: white;
}

.option-label-block.is-correct {
    border-color: #198754;
    background: #d1e7dd;
}

.option-label-block.is-incorrect {
    border-color: #dc3545;
    background: #fde8ea;
}

.option-label-block.is-correct .option-letter {
    background: #198754;
    color: #fff;
}

.option-label-block.is-incorrect .option-letter {
    background: #dc3545;
    color: #fff;
}

.option-radio:disabled + .option-label-block {
    cursor: default;
    transform: none;
}

.option-text {
    font-size: 1rem;
    line-height: 1.6;
}

.description-box {
    background: #dcfce7;
    padding: 18px;
    border-radius: 12px;
}

.test-timer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eef2ff;
    color: #312e81;
    font-weight: 700;
    min-width: 145px;
}

/* Practice test â€“ mobile: smaller fonts and option boxes, less scroll */
@media (max-width: 767px) {
    body:not(.page-sample-questions) .subject-hero {
        padding: 56px 0 42px;
    }
    body:not(.page-sample-questions) .subject-head {
        font-size: 1.25rem;
        line-height: 1.3;
        max-width: 100%;
        margin-bottom: 10px;
        padding: 0 8px;
    }
    body:not(.page-sample-questions) .subject-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        max-width: 320px;
        padding: 0 10px;
    }
    .subject-title {
        min-height: auto;
    }
    .subject-card-actions {
        flex-direction: column;
    }
    .subject-card-actions .btn {
        width: 100%;
    }
    .subject-card-links a {
        font-size: 0.88rem;
    }
    .topic-mobile-card {
        padding: 16px 14px;
    }
    .topic-mobile-title {
        font-size: 0.95rem;
    }
    .topic-mobile-details {
        font-size: 0.88rem;
    }
    .modern-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 16px 0 6px;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .modern-navbar .nav-compact-dropdown {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0.25rem 0 0.75rem;
        border: 1px solid #e2e8f0;
        box-shadow: none;
    }

    .modern-navbar .dropdown-toggle::after {
        float: right;
        margin-top: 0.55em;
    }
    .hero-section {
        min-height: auto;
        padding: 72px 0 56px;
    }
    .stats-section {
        margin-top: 0;
        padding: 36px 0;
    }
    .stat-card {
        padding: 20px 12px;
    }
    .stat-value {
        font-size: 1.45rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .hero-title {
        font-size: 2.35rem;
        max-width: none;
    }
    .hero-subtitle,
    .hero-quote {
        max-width: none;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        margin-right: 0 !important;
    }
    .hero-panel {
        margin: 0 auto;
        padding: 26px 22px;
    }
    .hero-panel-stat {
        font-size: 1.6rem;
    }
    .question-wrapper {
        min-height: 280px;
        padding-bottom: 12px;
    }
    .question-header {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }
    .question-header .mark-badge {
        font-size: 0.8rem;
    }
    .case-box {
        font-size: 0.85rem !important;
        line-height: 1.5;
        padding: 10px 12px !important;
        margin-bottom: 0.75rem !important;
    }
    .question-text {
        font-size: 0.95rem !important;
        line-height: 1.5;
        margin-bottom: 0.75rem !important;
    }
    .options-wrapper .option-block {
        margin-bottom: 0.5rem !important;
    }
    .option-label-block {
        padding: 10px 12px !important;
        border-radius: 10px;
    }
    .option-letter {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.85rem;
    }
    .option-text {
        font-size: 0.875rem !important;
        line-height: 1.45;
    }
    .description-box,
    .practice-explanation-wrapper .description-box {
        font-size: 0.85rem;
        padding: 12px;
        border-radius: 10px;
        margin-top: 0 !important;
    }
    .practice-explanation-wrapper .description-box strong {
        font-size: 0.9rem;
    }
    #explanation-container .description-box .mt-2 {
        margin-top: 0.35rem !important;
    }
}

/* Sample questions page — stable layout, no animation-driven shifts */
.page-sample-questions .sample-question-card {
    min-height: 16rem;
    margin-bottom: 1.5rem;
}

.page-sample-questions .sample-question-card .card-body {
    padding: 1.5rem;
}

.page-sample-questions .sample-q-img-wrap {
    display: block;
    width: 100%;
    min-height: 8rem;
    margin: 0.5rem 0;
    background: #f1f5f9;
    border-radius: 0.375rem;
    overflow: hidden;
}

.page-sample-questions .sample-q-img,
.page-sample-questions .sample-question-text img,
.page-sample-questions .sample-question-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-sample-questions .explore-more-section {
    background: #f8fafc;
}

@media (max-width: 767px) {
    .page-sample-questions .subject-hero.section-padding {
        padding: 2.5rem 0 2rem !important;
        min-height: 13rem;
    }

    .page-sample-questions .section-padding {
        padding: 2.5rem 0 !important;
    }

    .page-sample-questions .sample-question-card .card-body {
        padding: 1rem !important;
    }

    .page-sample-questions .explore-more-section {
        padding: 2rem 0 !important;
        min-height: 10rem;
    }
}

.page-study-note .study-note-cta {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0 !important;
}

.page-study-note .study-note-cta .section-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Study note article — faster mobile LCP for h1 */
@media (max-width: 767px) {
    .page-study-note .article-section.section-padding {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .page-study-note .article-title {
        font-size: 1.75rem;
        line-height: 1.35;
    }

    .page-study-note .study-note-cta {
        padding: 1.25rem;
    }
}

/* Success Stories */
.page-success-stories .success-story-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.page-success-stories .success-story-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 0;
}

.page-success-stories .success-story-name {
    color: #0f172a;
    font-weight: 700;
}

.page-success-stories .success-story-summary {
    color: #64748b;
    font-size: 0.95rem;
}

.page-success-stories .success-story-badge-open {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
    white-space: nowrap;
}

.page-success-stories .success-story-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.page-success-stories .success-story-cert-pill {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.82rem;
    margin: 0 0.35rem 0.35rem 0;
}

.page-success-stories .success-story-meta {
    margin: 0;
}

.page-success-stories .success-story-meta-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.page-success-stories .success-story-meta-row dt {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.page-success-stories .success-story-meta-row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.92rem;
}

.page-success-stories .success-story-filters .form-check {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

body.certificate-modal-open {
    overflow: hidden;
}

.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
}

.certificate-modal[hidden] {
    display: none !important;
}

.certificate-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.72);
}

.certificate-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100vw - 2.5rem));
    max-height: calc(100vh - 2.5rem);
    max-height: calc(100dvh - 2.5rem);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.certificate-modal-content {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2.5rem);
    max-height: calc(100dvh - 2.5rem);
}

.certificate-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.certificate-modal-body {
    overflow: auto;
    background: #f8fafc;
    padding: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    text-align: center;
}

.certificate-modal-loading {
    padding: 3rem 1rem;
    color: #64748b;
}

.certificate-modal-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.certificate-modal-frame {
    display: block;
    width: 100%;
    height: min(75vh, 720px);
    border: 0;
    background: #fff;
}

/* Pagination (Bootstrap subset in Vite omits this component) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    margin: 0;
    list-style: none;
    gap: 0.35rem;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem;
    color: var(--primary, #172554);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    font-size: 1rem;
}

.pagination .page-link:hover {
    color: #fff;
    background: var(--primary, #172554);
    border-color: var(--primary, #172554);
}

.pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #172554), var(--accent, #06b6d4));
    border-color: transparent;
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    pointer-events: none;
    background: #f8fafc;
}

.pagination .page-link svg,
.pagination .page-link i {
    width: 1em;
    height: 1em;
    font-size: 1em;
}

@media (max-width: 767px) {
    .certificate-modal {
        padding: 0.75rem;
    }

    .certificate-modal-dialog {
        width: calc(100vw - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
    }

    .certificate-modal-frame {
        height: min(70vh, 560px);
    }
}
