/* ============================================================
   RESPONSIVE CSS — Mobile / Tablet / Desktop / Large Screen
   Breakpoints:
     xs  : 0–575px      (small phones)
     sm  : 576–767px    (large phones)
     md  : 768–991px    (tablets)
     lg  : 992–1199px   (small desktops / laptops)
     xl  : 1200–1399px  (desktops)
     xxl : 1400px+      (large screens / wide monitors)
   ============================================================ */
/* ── CSS Custom Properties & Shared Variables ──────────────── */
:root {
    /* Navbar */
    --nb-top-h: 0px;
    --nb-nav-h: 0px;

    /* Layout */
    --container-padding: 1rem;
    --section-py: 4rem;

    /* Brand Palette - Slate & Premium Blue */
    --brand: #1E293B;            /* Deep slate brand color */
    --brand-medium: #334155;     /* Medium slate */
    --brand-accent: #2563EB;     /* Premium blue accent */
    --brand-light: #F8FAFC;      /* Background slate-50 */
    --brand-hover: #1D4ED8;      /* Hover blue-700 */
    --brand-glow: rgba(37, 99, 235, 0.08);
    --amber: #F59E0B;            /* Warning amber */

    /* Card */
    --radius-card: 20px;
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);

    /* Text */
    --text-1: #0F172A;           /* Slate-900 */
    --text-2: #64748B;           /* Slate-500 */
    --text-3: #94A3B8;           /* Slate-400 */

    /* Border */
    --border: #E2E8F0;

    /* Quiz Colors */
    --c-correct: #10B981;        /* Modern success green */
    --c-correct-bg: #E6F4EA;

    --c-wrong: #EF4444;          /* Modern danger red */
    --c-wrong-bg: #FCE8E6;

    --c-skip: #64748B;
    --c-skip-bg: rgba(100, 116, 139, 0.1);
}

/* ============================================================
   PREMIUM FRONTEND REDESIGN OVERRIDES
   ============================================================ */
body {
    background-color: var(--brand-light);
    color: var(--text-1);
    font-family: 'Inter', sans-serif !important;
}

/* Sticky Navbar Glassmorphism */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02) !important;
}
.nav-link-item {
    color: var(--text-2) !important;
    font-weight: 500;
    transition: all 0.25s ease;
}
.nav-link-item:hover, .nav-link-item.active {
    color: var(--brand-accent) !important;
    background: rgba(37, 99, 235, 0.04) !important;
}

/* Buttons Styling */
.btn {
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-primary {
    background-color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15) !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-hover) !important;
    border-color: var(--brand-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25) !important;
}
.btn-outline-primary {
    color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
    color: #ffffff !important;
}
.rounded-pill {
    border-radius: 50px !important;
}

/* Cards Redesign */
.card, .q-card, .day-card-premium, .ca-card-premium {
    background-color: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-card) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.card:hover, .hover-lift:hover, .q-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.12) !important;
}

/* Inputs & Forms */
.form-control {
    border-radius: 12px !important;
    border: 1.5px solid var(--border) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--text-1) !important;
    transition: all 0.2s ease !important;
}
.form-control:focus {
    border-color: var(--brand-accent) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

/* Badges */
.badge {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.bg-soft-primary {
    background-color: rgba(37, 99, 235, 0.08) !important;
    color: var(--brand-accent) !important;
}
.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.08) !important;
    color: #10B981 !important;
}
.bg-soft-danger {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #EF4444 !important;
}
.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.08) !important;
    color: #F59E0B !important;
}

/* Responsive Tables */
.table-responsive {
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    overflow: hidden !important;
}
.table {
    margin-bottom: 0 !important;
}
.table th {
    background-color: var(--brand-light) !important;
    color: var(--text-2) !important;
    font-weight: 600 !important;
    padding: 14px 16px !important;
    border-bottom: 1.5px solid var(--border) !important;
}
.table td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--border) !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 250, 252, 0.5) !important;
}

/* Modals Redesign */
.modal-content {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12) !important;
    padding: 12px !important;
}
.modal-backdrop {
    background-color: #0f172a !important;
}
.modal-backdrop.show {
    opacity: 0.45 !important;
}

/* Spacing and Utilities */
.text-primary {
    color: var(--brand-accent) !important;
}
.text-muted {
    color: var(--text-2) !important;
}

/* Navigation Top Bar */
.header-topbar {
    background: #0f172a !important; /* Deepest slate */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-social {
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
}
.topbar-social:hover {
    background: var(--brand-accent) !important;
    color: #ffffff !important;
}

/* Live Quiz Badge */
.nav-live-badge {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #EF4444 !important;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    transition: all 0.25s ease;
}
.nav-live-badge:hover {
    background-color: #EF4444 !important;
    color: #ffffff !important;
}
.nav-live-badge i {
    animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* User Profile Badge */
.nav-profile-btn {
    border-color: var(--border) !important;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}
.nav-profile-btn:hover {
    border-color: var(--brand-accent) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.nav-profile-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* Nav dropdowns */
.dropdown-menu {
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08) !important;
    padding: 8px !important;
}
.dropdown-item {
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: var(--text-2) !important;
    transition: all 0.2s ease !important;
}
.dropdown-item:hover {
    background-color: var(--brand-light) !important;
    color: var(--brand-accent) !important;
}


@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --section-py: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --container-padding: 1.5rem;
        --section-py: 3rem;
    }
}

@media (min-width: 1400px) {
    :root {
        --container-padding: 2rem;
        --section-py: 5rem;
    }
}

/* ============================================================
   GLOBAL / BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    min-width: 320px;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.page-section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.header-topbar {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 13px;
    padding: 6px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.topbar-social:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* xs: hide topbar contact items on very small screens */
@media (max-width: 399px) {
    .topbar-item {
        font-size: 11px;
        gap: 4px;
    }

    .topbar-left {
        gap: 10px;
    }

    .header-topbar {
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    .topbar-inner {
        justify-content: center;
        gap: 8px;
    }

    .topbar-left {
        justify-content: center;
    }

    .topbar-right {
        justify-content: center;
    }
}

/* ============================================================
   MAIN NAVBAR
   ============================================================ */
.main-navbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 12px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.nav-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #1E3A6E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.nav-logo-tagline {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

/* Mobile toggle */
.nav-mobile-toggle {
    display: none;
    border: 1px solid #e2e8f0;
    background: transparent;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.navbar-toggler-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #475569;
    position: relative;
    border-radius: 2px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #475569;
    position: absolute;
    left: 0;
    border-radius: 2px;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

/* Nav links list */
.nav-links-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.nav-link-item:hover,
.nav-link-item.active {
    background: #F8FAFC;
    color: #1E3A6E;
}

.nav-link-item i {
    font-size: 13px;
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-live-badge .fa-circle {
    font-size: 7px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1E3A6E;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav-login-btn:hover {
    background: #2E5B9A;
    color: #fff;
}

.nav-profile-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    font-size: 16px;
}

/* Profile dropdown */
.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.nav-profile-btn:hover {
    background: #f1f5f9;
}

.nav-profile-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.nav-profile-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown menu */
.nav-dropdown {
    min-width: 200px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px;
    margin-top: 8px !important;
}

.nav-dd-header {
    padding: 8px 10px 6px;
}

.nav-dd-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.nav-dd-email {
    font-size: 12px;
    color: #64748b;
}

.nav-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #475569;
    transition: background 0.15s;
}

.nav-dd-item:hover {
    background: #f8fafc;
}

.nav-dd-item i {
    font-size: 13px;
    color: #94a3b8;
}

/* ── Collapse — Mobile / Tablet ────────────────────── */
@media (max-width: 991px) {
    .nav-mobile-toggle {
        display: inline-flex;
    }

    .navbar-collapse {
        position: absolute;
        top: calc(var(--nb-top-h, 0px) + 64px);
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        padding: 12px 16px 16px;
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .navbar-collapse:not(.show) {
        display: none;
    }

    .navbar-inner {
        position: relative;
    }

    .nav-links-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
        margin-bottom: 12px;
    }

    .nav-link-item {
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 8px;
    }

    .nav-actions {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }

    .nav-live-badge,
    .nav-login-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}

@media (max-width: 575px) {
    .navbar-inner {
        height: 56px;
    }

    .nav-logo-img {
        height: 32px;
    }

    .nav-logo-mark {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .nav-logo-name {
        font-size: 14px;
    }

    .nav-logo-tagline {
        font-size: 10px;
    }

    .navbar-collapse {
        top: calc(var(--nb-top-h, 0px) + 56px);
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #f0fdf4 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F8FAFC;
    color: #1E3A6E;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    border: 1px solid #c7d2fe;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1E3A6E;
}

.hero-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.hero-quiz-demo {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.1);
    margin-bottom: 1rem;
}

.demo-q {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.demo-opts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-opt {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.demo-opt.correct {
    background: #dcfce7;
    border-color: #86efac;
    color: #16a34a;
    font-weight: 600;
}

.hero-daily-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1E3A6E;
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 13px;
    transition: background 0.2s;
}

.hero-daily-card:hover {
    background: #2E5B9A;
    color: #fff;
}

.hero-daily-card small {
    display: block;
    opacity: 0.7;
    margin-bottom: 2px;
    font-size: 11px;
}

/* lg */
@media (max-width: 1199px) {
    .hero-inner {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    }
}

/* md */
@media (max-width: 991px) {
    .hero-section {
        padding: 3.5rem 0 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

/* sm */
@media (max-width: 767px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .hero-stat-num {
        font-size: 18px;
    }
}

/* xs */
@media (max-width: 575px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        gap: 1rem;
    }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background: var(--brand);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 0.5rem;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-num {
        font-size: 22px;
    }
}

@media (max-width: 399px) {
    .stat-num {
        font-size: 18px;
    }

    .stat-label {
        font-size: 12px;
    }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    margin-bottom: 2.5rem;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1E3A6E;
    background: #F8FAFC;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-sub {
    font-size: 15px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 575px) {
    .section-header {
        margin-bottom: 1.75rem;
    }

    .section-sub {
        font-size: 14px;
    }
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1E3A6E;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .cat-card {
        padding: 1rem 0.75rem;
        gap: 8px;
    }

    .cat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 10px;
    }

    .cat-name {
        font-size: 12px;
    }
}

@media (max-width: 399px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

.step-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1E3A6E;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.step-card-body p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .step-card {
        padding: 1.1rem;
    }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-img-stack {
    position: relative;
    padding-bottom: 3rem;
    padding-right: 3rem;
}

.about-img-main {
    width: 100%;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    object-fit: cover;
    max-height: 380px;
}

.about-img-sec {
    width: 50%;
    border-radius: 12px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 1;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-tag {
    font-size: 12px;
    font-weight: 600;
    background: #F8FAFC;
    color: #1E3A6E;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #c7d2fe;
}

.about-founder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 991px) {
    .about-img-stack {
        padding-bottom: 2.5rem;
        padding-right: 2.5rem;
    }

    .about-img-main {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .about-img-stack {
        padding-bottom: 2rem;
        padding-right: 2rem;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .about-img-stack {
        padding-bottom: 1.5rem;
        padding-right: 1.5rem;
    }

    .about-img-main {
        border-radius: 12px;
        max-height: 240px;
    }

    .about-img-sec {
        border-radius: 8px;
        border-width: 3px;
    }

    .about-img-sec {
        width: 42%;
    }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testiSwiper {
    padding-bottom: 2.5rem !important;
}

.testi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testi-stars {
    display: flex;
    gap: 3px;
    font-size: 16px;
}

.testi-star-filled {
    color: #4F8EF7;
}

.testi-star-empty {
    color: #e2e8f0;
}

.testi-quote p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.testi-avatar-img {
    background-size: cover;
    background-position: center;
}

.testi-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.testi-role {
    font-size: 12px;
    color: #64748b;
}

.testi-pagination {
    bottom: 0 !important;
}

.testi-pagination .swiper-pagination-bullet {
    background: #c7d2fe;
    opacity: 1;
}

.testi-pagination .swiper-pagination-bullet-active {
    background: #1E3A6E;
}

@media (max-width: 575px) {
    .testi-card {
        padding: 1.1rem;
    }

    .testi-quote p {
        font-size: 13px;
    }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
    padding: 4rem 0;
    color: #fff;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.75rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-white {
    display: inline-block;
    background: #fff;
    color: #1E3A6E;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #2E5B9A;
}

@media (max-width: 767px) {
    .cta-section {
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-section p {
        font-size: 14px;
    }

    .btn-white {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-wrap {
    background: #0f172a;
    color: #94a3b8;
    font-size: 14px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-accent);
    display: inline-block;
}

.footer-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-logo-name {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
}

.footer-logo-tag {
    font-size: 11px;
    color: #64748b;
}

/* Contact items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.footer-contact-icon {
    width: 30px;
    height: 30px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    font-size: 12px;
    flex-shrink: 0;
}

/* Social */
.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-social-btn:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

/* Quick links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    padding: 3px 0;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--brand-accent);
}

.footer-links a i {
    font-size: 10px;
    color: var(--brand-accent);
}

/* Gallery */
.footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.footer-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
}

.footer-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.footer-gallery-thumb:hover img {
    transform: scale(1.08);
}

/* Newsletter */
.footer-nl-input-wrap {
    position: relative;
}

.footer-nl-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.footer-nl-input::placeholder {
    color: #475569;
}

.footer-nl-input:focus {
    border-color: var(--brand-accent);
}

.footer-nl-input.is-invalid {
    border-color: #ef4444;
}

.footer-nl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.footer-nl-btn:hover {
    background: var(--brand-hover);
}

.footer-nl-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Divider */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.07);
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 1.25rem 0;
    font-size: 13px;
    color: #94a3b8;
}

.footer-copy a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-copy a:hover {
    color: var(--brand-accent);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom-links a:hover {
    color: var(--brand-accent);
}

/* Footer grid responsive */
@media (max-width: 1199px) {
    .footer-top-grid .col-xl-3 {
        flex: 0 0 auto;
        width: 33.33%;
    }
}

@media (max-width: 991px) {

    .footer-top-grid .col-lg-4,
    .footer-top-grid .col-lg-3,
    .footer-top-grid .col-lg-2 {
        width: 50%;
    }

    .footer-nl-btn {
        width: auto;
    }
}

@media (max-width: 767px) {
    .footer-wrap {
        padding-top: 3rem;
    }

    .footer-top-grid .col-md-6 {
        width: 100%;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .footer-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-nl-btn {
        width: 100%;
    }
}

/* ============================================================
   UTILITY — HIDE/SHOW HELPERS
   ============================================================ */
@media (max-width: 575px) {
    .d-xs-none {
        display: none !important;
    }
}

@media (min-width: 576px) {
    .d-xs-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .d-sm-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .d-md-none {
        display: none !important;
    }
}

/* ============================================================
   ACCESSIBILITY — FOCUS RINGS
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1E3A6E;
    outline-offset: 2px;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    .header-topbar,
    .main-navbar,
    .nav-mobile-toggle,
    .hero-btns,
    .cta-section,
    .footer-nl-btn,
    .footer-social {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .hero-section,
    .stats-strip {
        background: #fff !important;
        color: #000 !important;
    }

    .container {
        max-width: 100% !important;
    }
}

/* ============================================================
   QUIZ PAGES — RESPONSIVE CSS
   Pages: Quiz Attempt (.qap) · Leaderboard (.lb) · Quiz Result (.qr)
   Breakpoints:
     xs  : 0–575px      (small phones)
     sm  : 576–767px    (large phones)
     md  : 768–991px    (tablets)
     lg  : 992–1199px   (laptops)
     xl  : 1200–1399px  (desktops)
     xxl : 1400px+      (wide monitors)
   ============================================================ */



/* ============================================================
   SHARED WRAPPERS
   ============================================================ */
.qap,
.lb,
.qr {
    padding: 2rem 0 4rem;
    background: #f1f5f9;
    min-height: 100vh;
}

.qap-wrap,
.lb-wrap,
.qr-wrap {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================================
   QUIZ ATTEMPT PAGE (.qap)
   ============================================================ */

/* Header card */
.qap-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.qap-header-left {
    flex: 1;
    min-width: 0;
}

.qap-quiz-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
    margin-bottom: 4px;
}

.qap-quiz-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 8px;
}

.qap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qap-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Timer pill */
.qap-timer {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.qap-timer.warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.qap-timer.danger {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    animation: pulse-danger 1s infinite;
}

@keyframes pulse-danger {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.65;
    }
}

/* Progress card */
.qap-progress-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}

.qap-prog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #475569;
}

.qap-prog-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
}

.qap-prog-track {
    height: 7px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.qap-prog-fill {
    height: 100%;
    width: 0;
    background: var(--brand);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.qap-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.qap-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background 0.25s;
    flex-shrink: 0;
}

.qap-dot.done {
    background: var(--brand);
}

/* Question card */
.qap-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s;
}

.qap-card.done {
    border-color: #a5b4fc;
}

.qap-q-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.qap-q-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.qap-q-text {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.55;
    margin: 0;
}

/* Options */
.qap-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qap-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, transform 0.1s;
    position: relative;
    user-select: none;
}

.qap-opt:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
    transform: translateX(2px);
}

.qap-opt.selected {
    border-color: var(--brand);
    background: var(--brand-light);
}

.qap-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qap-opt-key {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    transition: background 0.2s, color 0.2s;
}

.qap-opt.selected .qap-opt-key {
    background: var(--brand);
    color: #fff;
}

.qap-opt-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.45;
    flex: 1;
}

/* Submit row */
.qap-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-card);
    flex-wrap: wrap;
}

.qap-submit-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.qap-submit-info strong {
    color: #0f172a;
}

.qap-submit-info span {
    color: #64748b;
}

.qap-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.qap-submit-btn:hover {
    background: #2E5B9A;
    transform: translateY(-1px);
}

.qap-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sticky timer */
.qap-sticky {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}

.qap-sticky.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.qap-sticky .qap-timer {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ── Quiz Attempt Responsive ─────────────────────────────── */

@media (max-width: 1199px) {
    .qap-wrap {
        max-width: 760px;
    }
}

@media (max-width: 991px) {

    .qap,
    .lb,
    .qr {
        padding: 1.5rem 0 3rem;
    }

    .qap-wrap {
        max-width: 100%;
        padding: 0 1.25rem;
    }

    .qap-quiz-title {
        font-size: 16px;
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .qap-wrap {
        padding: 0 1rem;
    }

    .qap-header {
        flex-direction: column;
        gap: 10px;
        padding: 1rem 1.1rem;
    }

    .qap-timer {
        align-self: flex-start;
        font-size: 14px;
        padding: 5px 14px;
    }

    .qap-quiz-title {
        font-size: 15px;
    }

    .qap-progress-card {
        padding: 0.875rem 1rem;
    }

    .qap-dots {
        gap: 4px;
    }

    .qap-dot {
        width: 8px;
        height: 8px;
    }

    .qap-card {
        padding: 1.1rem 1rem;
    }

    .qap-q-text {
        font-size: 14px;
    }

    .qap-opt {
        padding: 9px 11px;
        gap: 8px;
    }

    .qap-opt-text {
        font-size: 13px;
    }

    .qap-opt-key {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .qap-submit-row {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
    }

    .qap-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 11px;
    }

    .qap-sticky {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 575px) {
    .qap {
        padding: 1rem 0 2.5rem;
        background: #f8fafc;
    }

    .qap-wrap {
        padding: 0 0.75rem;
    }

    .qap-header {
        padding: 0.9rem;
    }

    .qap-quiz-title {
        font-size: 14px;
    }

    .qap-q-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .qap-q-text {
        font-size: 13.5px;
    }

    .qap-opt {
        padding: 8px 10px;
    }

    .qap-sticky .qap-timer {
        font-size: 13px;
        padding: 5px 12px;
    }

    .qap-sticky {
        bottom: 0.75rem;
        right: 0.75rem;
    }
}

@media (min-width: 1400px) {
    .qap-wrap {
        max-width: 860px;
    }

    .qap-q-text {
        font-size: 16px;
    }
}

/* ============================================================
   LEADERBOARD PAGE (.lb)
   ============================================================ */

/* Hero */
.lb-hero {
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.lb-hero-inner {
    max-width: 480px;
    margin: 0 auto;
}

.lb-trophy {
    font-size: 40px;
    display: block;
    margin-bottom: 0.5rem;
}

.lb-hero h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

.lb-hero p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.lb-hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lb-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Podium */
.lb-podium-wrap {
    margin-bottom: 1.5rem;
}

.lb-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.lb-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 180px;
}

.lb-pod-av {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.lb-pod-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.av-1 {
    background: linear-gradient(135deg, #1E3A6E, #2E5B9A);
}

.av-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.av-3 {
    background: linear-gradient(135deg, #2E5B9A, #4F8EF7);
}

.lb-crown {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    z-index: 1;
}

.lb-pod-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-pod-score {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.gold-score {
    color: #1E3A6E !important;
    font-weight: 800 !important;
}

.lb-pod-block {
    width: 100%;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.b1 {
    height: 80px;
    background: linear-gradient(160deg, #1E3A6E, #2E5B9A);
}

.b2 {
    height: 60px;
    background: linear-gradient(160deg, #94a3b8, #64748b);
}

.b3 {
    height: 46px;
    background: linear-gradient(160deg, #2E5B9A, #4F8EF7);
}

/* Table card */
.lb-table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}

.lb-table-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.lb-table-hd h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.lb-count-badge {
    font-size: 12px;
    background: var(--brand-light);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.lb-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lb-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
}

.lb-table thead th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.lb-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.lb-table tbody tr:hover {
    background: #fafafe;
}

.lb-table tbody tr.top3 {
    background: #fffbeb;
}

.lb-table tbody tr:last-child {
    border-bottom: none;
}

.lb-table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
}

.lb-rank-cell {
    text-align: center;
    font-size: 20px;
    line-height: 1;
}

.lb-rank-num {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-block;
}

.lb-player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.lb-player-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.lb-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.c0 {
    background: #6366f1
}

.c1 {
    background: #14b8a6
}

.c2 {
    background: #2E5B9A
}

.c3 {
    background: #8b5cf6
}

.c4 {
    background: #10b981
}

.c5 {
    background: #ef4444
}

.c6 {
    background: #3b82f6
}

.c7 {
    background: #ec4899
}

.lb-player-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.lb-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 2px;
}

.lb-badge.leader {
    background: #fef3c7;
    color: #92400e;
}

.lb-badge.top3 {
    background: #fce7f3;
    color: #9d174d;
}

.lb-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.gold-pill {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.lb-cell-val {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.lb-cell-val.green {
    color: var(--c-correct);
}

/* Empty state */
.lb-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.lb-empty-icon {
    font-size: 42px;
    margin-bottom: 0.75rem;
}

.lb-empty h4 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 6px;
}

.lb-empty p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 1.25rem;
}

.lb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.lb-action-btn:hover {
    background: #2E5B9A;
    color: #fff;
}

/* CTA */
.lb-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #1E3A6E, #7c3aed);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
}

.lb-cta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lb-cta-text strong {
    font-size: 15px;
    color: #fff;
}

.lb-cta-text span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.lb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.lb-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ── Leaderboard Responsive ─────────────────────────────── */

@media (max-width: 991px) {
    .lb-wrap {
        max-width: 100%;
        padding: 0 1.25rem;
    }
}

@media (max-width: 767px) {
    .lb-wrap {
        padding: 0 1rem;
    }

    .lb-hero {
        padding: 1.5rem 1rem;
    }

    .lb-trophy {
        font-size: 32px;
    }

    .lb-pod-av {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .lb-podium {
        gap: 8px;
    }

    .lb-pod-name {
        font-size: 12px;
    }

    .lb-pod-score {
        font-size: 11px;
    }

    .b1 {
        height: 64px;
    }

    .b2 {
        height: 48px;
    }

    .b3 {
        height: 38px;
    }

    .lb-table {
        min-width: 420px;
        font-size: 13px;
    }

    .lb-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.1rem 1rem;
    }

    .lb-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .lb {
        padding: 1rem 0 2.5rem;
        background: #f8fafc;
    }

    .lb-wrap {
        padding: 0 0.75rem;
    }

    .lb-hero {
        border-radius: 12px;
    }

    .lb-hero h2 {
        font-size: 1.2rem;
    }

    .lb-pod-av {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .lb-crown {
        font-size: 13px;
        top: -12px;
    }

    /* hide less-important columns on tiny screens */
    .col-correct,
    .col-quizzes {
        display: none;
    }

    .lb-table {
        min-width: 280px;
    }

    .lb-player-name {
        max-width: 100px;
    }

    .lb-table-hd h5 {
        font-size: 14px;
    }

    .lb-hero-pill {
        font-size: 11px;
        padding: 4px 9px;
    }
}

@media (min-width: 1400px) {
    .lb-wrap {
        max-width: 900px;
    }

    .lb-pod-av {
        width: 72px;
        height: 72px;
        font-size: 24px;
    }

    .b1 {
        height: 100px;
    }

    .b2 {
        height: 76px;
    }

    .b3 {
        height: 58px;
    }
}

/* ============================================================
   QUIZ RESULT PAGE (.qr)
   ============================================================ */

/* Hero banner */
.qr-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
    border-radius: var(--radius-card);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.qr-hero-left {
    color: #fff;
    flex: 1;
    min-width: 0;
}

.qr-emoji {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.qr-hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.qr-hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Score circle */
.qr-score-wrap {
    flex-shrink: 0;
}

.qr-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.qr-score-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.qr-score-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* Stats row */
.qr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}

.qr-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.qr-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 17px;
}

.qr-stat-num {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 3px;
}

.qr-stat-lbl {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Performance card */
.qr-perf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}

.qr-perf-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.qr-perf-pct {
    color: var(--brand);
    font-size: 16px;
    font-weight: 800;
}

.qr-prog-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.qr-prog-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(.22, 1, .36, 1);
}

.qr-prog-fill.good {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.qr-prog-fill.ok {
    background: linear-gradient(90deg, #2e5b9a, #4f8ef7);
}

.qr-prog-fill.bad {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.qr-grade-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.qr-grade-badge.success {
    background: #dcfce7;
    color: #15803d;
}

.qr-grade-badge.warn {
    background: #fef3c7;
    color: #92400e;
}

.qr-grade-badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* Action buttons */
.qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.qr-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.qr-btn-green {
    background: #dcfce7;
    color: #15803d;
}

.qr-btn-amber {
    background: #fef3c7;
    color: #92400e;
}

.qr-btn-primary {
    background: var(--brand-light);
    color: var(--brand);
}

.qr-btn-slate {
    background: #f1f5f9;
    color: #475569;
}

/* Review header */
.qr-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 6px;
}

.qr-review-head h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.qr-review-count {
    font-size: 12px;
    background: var(--brand-light);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Review cards */
.qr-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-left: 4px solid #e2e8f0;
    border-radius: var(--radius-card);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.qr-card.correct {
    border-left-color: var(--c-correct);
}

.qr-card.wrong {
    border-left-color: var(--c-wrong);
}

.qr-card.skip {
    border-left-color: var(--c-skip);
}

.qr-card-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.qr-q-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-q-text {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    min-width: 0;
}

.qr-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
    flex-shrink: 0;
}

.qr-card.correct .qr-status-badge {
    background: var(--c-correct-bg);
    color: var(--c-correct);
}

.qr-card.wrong .qr-status-badge {
    background: var(--c-wrong-bg);
    color: var(--c-wrong);
}

.qr-card.skip .qr-status-badge {
    background: var(--c-skip-bg);
    color: var(--c-skip);
}

/* Options */
.qr-opts {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 1rem;
}

.qr-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    background: #fafafa;
    font-size: 13px;
    position: relative;
}

.qr-opt.is-correct {
    border-color: #86efac;
    background: var(--c-correct-bg);
}

.qr-opt.is-wrong {
    border-color: #fca5a5;
    background: var(--c-wrong-bg);
}

.qr-opt-key {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
}

.qr-opt.is-correct .qr-opt-key {
    background: #16a34a;
    color: #fff;
}

.qr-opt.is-wrong .qr-opt-key {
    background: #dc2626;
    color: #fff;
}

.qr-opt-text {
    flex: 1;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

.qr-opt-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-correct {
    background: #16a34a;
    color: #fff;
}

.tag-wrong {
    background: #dc2626;
    color: #fff;
}

/* Explanation */
.qr-explain {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

.qr-explain-label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 5px;
    color: #92400e;
}

/* Bottom CTA */
.qr-bottom {
    text-align: center;
    padding: 2rem 0 1rem;
}

/* ── Quiz Result Responsive ─────────────────────────────── */

@media (max-width: 1199px) {
    .qr-wrap {
        max-width: 760px;
    }
}

@media (max-width: 991px) {
    .qr-wrap {
        max-width: 100%;
        padding: 0 1.25rem;
    }
}

@media (max-width: 767px) {
    .qr-wrap {
        padding: 0 1rem;
    }

    .qr-hero {
        padding: 1.25rem;
    }

    .qr-score-circle {
        width: 84px;
        height: 84px;
    }

    .qr-score-num {
        font-size: 18px;
    }

    .qr-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .qr-stat-num {
        font-size: 18px;
    }

    .qr-actions {
        gap: 6px;
    }

    .qr-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .qr-card {
        padding: 1rem;
    }

    .qr-q-text {
        font-size: 13.5px;
    }

    .qr-opt {
        padding: 8px 10px;
        gap: 8px;
    }

    .qr-opt-text {
        font-size: 12px;
    }

    .qr-perf-card {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .qr {
        padding: 1rem 0 2.5rem;
        background: #f8fafc;
    }

    .qr-wrap {
        padding: 0 0.75rem;
    }

    .qr-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.1rem;
        gap: 0.875rem;
    }

    .qr-score-wrap {
        align-self: flex-start;
    }

    .qr-score-circle {
        width: 76px;
        height: 76px;
    }

    .qr-score-num {
        font-size: 16px;
    }

    .qr-stats {
        gap: 7px;
    }

    .qr-stat {
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
    }

    .qr-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .qr-stat-num {
        font-size: 16px;
    }

    /* 2-column grid for action buttons */
    .qr-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .qr-btn {
        justify-content: center;
        padding: 9px 10px;
        font-size: 12px;
    }

    .qr-card-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .qr-status-badge {
        margin-left: auto;
    }
}

@media (min-width: 1400px) {
    .qr-wrap {
        max-width: 900px;
    }

    .qr-score-circle {
        width: 110px;
        height: 110px;
    }

    .qr-score-num {
        font-size: 26px;
    }

    .qr-stat-num {
        font-size: 26px;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    .qap-sticky,
    .qap-submit-row,
    .lb-cta,
    .qr-actions,
    .qr-bottom {
        display: none !important;
    }

    .qap,
    .lb,
    .qr {
        background: #fff !important;
        padding: 0 !important;
    }

    .qap-card,
    .qr-card,
    .lb-table-card {
        box-shadow: none !important;
    }
}




.ca-page {
    padding: 2.5rem 1rem;
}

.ca-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ca-page-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: .35rem;
}

.ca-page-header p {
    font-size: .875rem;
    color: #6b7280;
}

/* Filter bar */
.ca-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.ca-filter-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: .8125rem;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.ca-filter-btn.active,
.ca-filter-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Month section */
.ca-month-section {
    margin-bottom: 2rem;
}

.ca-month-label {
    font-size: .75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: .875rem;
}

.ca-month-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f3f4f6;
}

.ca-count-badge {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    font-size: .6875rem;
    color: #6b7280;
    padding: 2px 8px;
    font-weight: 500;
}

/* Cards grid */
.ca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
}

/* Card */
.ca-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem .875rem;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    outline: none;
}

.ca-card:hover,
.ca-card:focus-visible {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-1px);
}

.ca-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #4b5563;
    flex-shrink: 0;
}

.ca-card:hover .ca-card-icon,
.ca-card:focus-visible .ca-card-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.ca-card-date {
    font-size: .9375rem;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.2;
}

.ca-card-sub {
    font-size: .6875rem;
    color: #9ca3af;
}

/* ── Modal overlay ───────────────────────────────────────── */
.ca-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: flex-end;
    /* sheet on mobile */
    justify-content: center;
    z-index: 1050;
    padding: 0;
}

@media (min-width: 640px) {
    .ca-modal-backdrop {
        align-items: center;
        padding: 1.5rem;
    }
}

.ca-modal-backdrop.open {
    display: flex;
}

.ca-modal {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp .22s ease;
}

@media (min-width: 640px) {
    .ca-modal {
        border-radius: 14px;
        max-width: 600px;
        max-height: 80vh;
        animation: fadeIn .18s ease;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.97)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.ca-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.ca-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ca-modal-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #1d4ed8;
    flex-shrink: 0;
}

.ca-modal-header h2 {
    font-size: .9375rem;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
}

.ca-modal-header p {
    font-size: .75rem;
    color: #6b7280;
    margin: 0;
}

.ca-modal-close {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6b7280;
    flex-shrink: 0;
    transition: all .12s;
}

.ca-modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.ca-modal-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}

/* Q&A items */
/* .ca-qa-item {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: .875rem 1rem;
        margin-bottom: .625rem;
    } */

.ca-qa-num {
    font-size: .6875rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Download container ke andar site CSS override na ho */
#ca-download-wrap .ca-qa-item {
    border: none !important;
    border-bottom: 1px solid #e8eaf6 !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    margin-bottom: 0 !important;
}

#ca-download-wrap .ca-qa-ans {
    color: #1565c0 !important;
}

#ca-download-wrap .ca-qa-q {
    font-size: 13px !important;
    color: #212121 !important;
}

/* .ca-qa-q {
        font-size: .875rem;
        color: #1e1e1e;
        line-height: 1.55;
        margin-bottom: .5rem;
    } */

/* .ca-qa-ans {
        font-size: .8125rem;
        font-weight: 600;
        color: #16a34a;
        display: flex;
        align-items: flex-start;
        gap: 5px;
    } */

.ca-qa-ans-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Skeleton loader */
.ca-skeleton {
    height: 85px;
    background: #f3f4f6;
    border-radius: 10px;
    margin-bottom: .625rem;
    animation: ca-pulse 1.4s ease-in-out infinite;
}

@keyframes ca-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

/* Footer */
.ca-modal-footer {
    padding: .875rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.ca-btn-secondary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: .8125rem;
    cursor: pointer;
    transition: all .12s;
}

.ca-btn-secondary:hover {
    background: #f3f4f6;
}

.ca-btn-primary {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: .8125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .12s;
}

.ca-btn-primary:hover {
    background: #d1fae5;
}

/* Empty / error states */
.ca-empty {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: .875rem;
}

.ca-empty-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

/* Handle body scroll lock */
body.ca-modal-open {
    overflow: hidden;
}


/* ============================================================
   AUTH & PROFILE — RESPONSIVE CSS
   Breakpoints:
     xs  : 0–575px      (small phones)
     sm  : 576–767px    (large phones)
     md  : 768–991px    (tablets)
     lg  : 992–1199px   (small laptops)
     xl  : 1200–1399px  (desktops)
     xxl : 1400px+      (wide monitors)
   ============================================================ */

/* ============================================================
   SHARED AUTH PAGE SHELL
   ============================================================ */
.auth-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Split card */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 960px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

/* ── Left panel ─────────────────────────────────────────── */
.auth-panel-left {
    background: linear-gradient(160deg, #1E3A6E 0%, #6366f1 60%, #818cf8 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.auth-panel-left h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-panel-left p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Auth features list (login page) */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.auth-features li strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.auth-features li span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Steps (signup / forgot / reset) */
.auth-steps,
.reset-steps,
.reset-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-steps li,
.reset-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-steps li strong,
.reset-steps li strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.auth-steps li span,
.reset-steps li span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Reset tips (bullet list) */
.reset-tips li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}

.reset-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* OTP tips */
.otp-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.otp-tips li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.otp-tips li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
}

/* Icon wrap (forgot, reset, otp) */
.auth-icon-wrap,
.otp-shield-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin-bottom: 1rem;
}

/* Brand label at bottom of left panel */
.auth-brand {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2rem;
}

/* ── Right panel ────────────────────────────────────────── */
.auth-panel-right {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    /* max-height: 100vh; */
}

/* Logo */
.auth-logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.25rem;
}

.auth-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 1.25rem;
}

/* Form elements */
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-input {
    font-size: 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 10px 14px;
    width: 100%;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.auth-input:focus {
    border-color: #1E3A6E;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.auth-input.is-invalid {
    border-color: #ef4444;
}

/* Password group */
.auth-pw-group {
    border-radius: 10px;
    overflow: hidden;
}

.auth-pw-group .form-control {
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.auth-pw-group .pw-toggle {
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 0 14px;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    transition: background 0.15s;
}

.auth-pw-group .pw-toggle:hover {
    background: #f1f5f9;
}

/* Icon input group (forgot password) */
.auth-icon-input .input-group-text {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0 14px;
    color: #94a3b8;
}

.auth-icon-input .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Submit button */
.btn-auth-primary {
    background: #1E3A6E;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    padding: 11px;
    width: 100%;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-primary:hover {
    background: #2E5B9A;
    color: #fff;
    transform: translateY(-1px);
}

.btn-auth-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Social login */
.social-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.social-login-btn:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
    color: #374151;
}

/* Reset info note */
.reset-info-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
}

/* Strength meter */
.strength-track {
    height: 5px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-label {
    font-size: 11px;
    font-weight: 600;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.back-link:hover {
    color: #1E3A6E;
}

/* ── OTP boxes ──────────────────────────────────────────── */
.otp-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.otp-box {
    width: 48px;
    height: 54px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    caret-color: transparent;
}

.otp-box:focus {
    border-color: #1E3A6E;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: #fff;
}

.otp-box.filled {
    border-color: #1E3A6E;
    background: #F8FAFC;
    color: #1E3A6E;
}

.otp-box--error,
.otp-box.otp-error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.otp-error-msg {
    font-size: 12px;
    color: #ef4444;
    min-height: 18px;
    margin-bottom: 0.5rem;
}

/* OTP timer */
.otp-timer-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    gap: 6px;
}

.otp-timer-val {
    font-weight: 700;
    color: #334155;
}

.otp-timer-val.urgent {
    color: #dc2626;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0.4;
    }
}

/* Resend link */
.resend-link {
    color: #1E3A6E;
    text-decoration: none;
    font-size: 13px;
}

.resend-link.disabled {
    color: #94a3b8;
    pointer-events: none;
}

.resend-link:not(.disabled):hover {
    text-decoration: underline;
}

/* ============================================================
   AUTH — RESPONSIVE BREAKPOINTS
   ============================================================ */

/* lg — slight padding reduction */
@media (max-width: 1199px) {
    .auth-split {
        max-width: 880px;
    }

    .auth-panel-left,
    .auth-panel-right {
        padding: 2.25rem;
    }
}

/* md — tablet: stack panels vertically, hide left */
@media (max-width: 991px) {
    .auth-split {
        grid-template-columns: 1fr;
        max-width: 520px;
        border-radius: 16px;
    }

    .auth-panel-left {
        display: none !important;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .auth-panel-right {
        padding: 2.5rem 2rem;
        max-height: none;
        overflow-y: visible;
    }

    .auth-logo {
        height: 36px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {

    .auth-page {
        padding: 1rem;
        align-items: flex-start;
        min-height: 100vh;
        height: auto;
    }

    .auth-split {
        max-width: 100%;
        width: 100%;
        border-radius: 14px;
        box-shadow: none;
        /* reduces heavy feel */
    }

    .auth-panel-right {
        padding: 1.75rem 1.25rem;
    }

    .auth-panel-left {
        display: none !important;
        /* safety fallback */
    }

    /* OTP improvement */
    .otp-row {
        gap: 6px;
    }

    .otp-box {
        width: 40px;
        height: 46px;
        font-size: 16px;
        border-radius: 8px;
    }

    /* Social buttons compact */
    .social-login-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* xs — small phones */
@media (max-width: 575px) {
    .auth-page {
        padding: 1rem 0.75rem;
        background: #fff;
    }

    .auth-split {
        border-radius: 0;
        box-shadow: none;
    }

    .auth-panel-right {
        padding: 1.75rem 1.25rem;
        min-height: 100vh;
    }

    .auth-logo {
        height: 32px;
    }

    .auth-logo-placeholder {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .auth-input {
        font-size: 16px;
    }

    /* prevent iOS zoom */
    .btn-auth-primary {
        font-size: 14px;
        padding: 10px;
    }

    .otp-row {
        gap: 6px;
    }

    .otp-box {
        width: calc((100% - 30px) / 6);
        height: 46px;
        font-size: 17px;
        border-radius: 9px;
    }

    /* Social login: wrap to single column */
    .d-flex.gap-2.mb-4 {
        flex-direction: column;
    }

    .social-login-btn {
        width: 100%;
        justify-content: center;
    }

    .reset-info-note {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* xxl — wide monitors */
@media (min-width: 1400px) {
    .auth-split {
        max-width: 1040px;
    }

    .auth-panel-left,
    .auth-panel-right {
        padding: 3rem;
    }
}

/* ============================================================
   PROFILE PAGE (.pp)
   ============================================================ */
.pp {
    padding: 2rem 0 4rem;
    background: #f8fafc;
    min-height: 100vh;
}

.pp-wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Page header */
.pp-page-head {
    margin-bottom: 1.75rem;
}

.pp-page-head h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.pp-page-head p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Two-column grid */
.pp-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.pp-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.pp-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

.pp-avatar-wrap {
    position: relative;
    display: inline-block;
}

.pp-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    display: block;
}

.pp-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1E3A6E;
    border: 2px solid #fff;
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.pp-avatar-edit:hover {
    background: #2E5B9A;
}

.pp-avatar-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.pp-avatar-email {
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

/* Sidebar nav */
.pp-nav {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.pp-nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.pp-nav-item.active {
    background: #F8FAFC;
    color: #1E3A6E;
}

.pp-nav-item i {
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.pp-nav-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}

/* ── Main panel card ────────────────────────────────────── */
.pp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.pp-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.pp-card-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3A6E;
    font-size: 16px;
    flex-shrink: 0;
}

.pp-card-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.pp-card-header-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.pp-card-body {
    padding: 1.5rem;
}

/* Fields */
.pp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pp-field {
    display: flex;
    flex-direction: column;
}

.pp-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pp-label .hint {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
}

.pp-input {
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    color: #1e293b;
    background: #fff;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.pp-input:focus {
    border-color: #1E3A6E;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.pp-input[readonly] {
    background: #f8fafc;
    color: #94a3b8;
    cursor: default;
}

.pp-input.is-invalid {
    border-color: #ef4444;
}

.pp-input-group {
    position: relative;
    display: flex;
}

.pp-input-group .pp-input {
    padding-right: 44px;
}

.pp-input-group-addon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

/* Upload zone */
.pp-upload-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: #f9f9ff;
    transition: border-color 0.2s, background 0.2s;
}

.pp-upload-zone:hover {
    border-color: #1E3A6E;
    background: #F8FAFC;
}

.pp-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3A6E;
    font-size: 18px;
    flex-shrink: 0;
}

.pp-upload-text {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.pp-upload-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Password group */
.pp-pw-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.pp-pw-group:focus-within {
    border-color: #1E3A6E;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.pp-pw-group .pp-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
}

.pp-pw-group .pp-input:focus {
    box-shadow: none;
    border-color: transparent;
}

.pp-pw-toggle {
    width: 40px;
    height: 100%;
    min-height: 42px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
    flex-shrink: 0;
    border-left: 1px solid #e2e8f0;
}

.pp-pw-toggle:hover {
    background: #f1f5f9;
    color: #1E3A6E;
}

/* Strength meter */
.pp-strength-track {
    height: 5px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.pp-strength-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.pp-strength-lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
}

/* Match hints */
.pp-match-hint {
    display: none;
    font-size: 12px;
    margin-top: 4px;
}

.pp-match-ok {
    color: #16a34a;
}

.pp-match-no {
    color: #dc2626;
}

/* Info bar */
.pp-info-bar {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.pp-info-bar i {
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Divider */
.pp-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 1.25rem 0;
}

/* Error text */
.pp-err {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.req {
    color: #ef4444;
    font-size: 12px;
}

/* Submit button */
.pp-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1E3A6E;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.pp-submit:hover {
    background: #2E5B9A;
    transform: translateY(-1px);
}

.pp-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   PROFILE — RESPONSIVE BREAKPOINTS
   ============================================================ */

/* lg */
@media (max-width: 1199px) {
    .pp-wrap {
        max-width: 100%;
        padding: 0 1.25rem;
    }

    .pp-grid {
        grid-template-columns: 220px 1fr;
        gap: 1.25rem;
    }
}

/* md — tablet: collapse sidebar to top bar */
@media (max-width: 991px) {
    .pp {
        padding: 1.5rem 0 3rem;
    }

    .pp-wrap {
        padding: 0 1rem;
    }

    .pp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pp-sidebar {
        position: static;
        border-radius: 14px;
    }

    /* Horizontal nav on tablet */
    .pp-avatar-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem 1.25rem;
    }

    .pp-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        gap: 4px;
        border-top: 1px solid #f1f5f9;
    }

    .pp-nav-item {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .pp-nav-divider {
        display: none;
    }
}

/* sm — large phones */
@media (max-width: 767px) {
    .pp {
        padding: 1rem 0 2.5rem;
    }

    .pp-wrap {
        padding: 0 0.875rem;
    }

    .pp-page-head h4 {
        font-size: 17px;
    }

    .pp-avatar-img {
        width: 56px;
        height: 56px;
    }

    .pp-card-header {
        padding: 1rem;
        gap: 10px;
    }

    .pp-card-header-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .pp-card-header-title {
        font-size: 14px;
    }

    .pp-card-body {
        padding: 1.1rem 1rem;
    }

    .pp-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pp-submit {
        width: 100%;
        justify-content: center;
    }

    .pp-upload-zone {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 8px;
    }
}

/* xs — small phones */
@media (max-width: 575px) {
    .pp-wrap {
        padding: 0 0.75rem;
    }

    .pp-nav-item {
        font-size: 12px;
        padding: 8px;
        min-width: auto;
        flex: none;
    }

    .pp-nav-item span {
        display: none;
    }

    .pp-nav-item i {
        width: auto;
        font-size: 16px;
    }

    .pp-avatar-email {
        display: none;
    }

    .pp-input {
        font-size: 16px;
    }

    /* prevent iOS zoom */

    .pp-info-bar {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* xxl */
@media (min-width: 1400px) {
    .pp-wrap {
        max-width: 1160px;
    }

    .pp-grid {
        grid-template-columns: 260px 1fr;
    }
}

/* ============================================================
   GLOBAL PRINT
   ============================================================ */
@media print {

    .auth-panel-left,
    .pp-sidebar,
    .pp-submit,
    .btn-auth-primary {
        display: none !important;
    }

    .auth-split,
    .pp-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}



/* ============================================================
   PAGES RESPONSIVE CSS
   Pages: Subcategory (.sc-page) · Contact (.cp-page) ·
          Important Days (.idp) · Quiz Questions (.quiz-page) ·
          Quiz Bank (.qz-page) · Quiz History (.history-page) ·
          Quiz Attempt/Result (.quiz-page / .result-page) ·
          Testimonial (.ts-page) · Pagination (.ca-pagination-wrap)
   Breakpoints:
     xs  : 0–575px      (small phones)
     sm  : 576–767px    (large phones)
     md  : 768–991px    (tablets)
     lg  : 992–1199px   (laptops)
     xl  : 1200–1399px  (desktops)
     xxl : 1400px+      (wide monitors)
   ============================================================ */



/* ============================================================
   SHARED HERO PATTERN
   (.sc-hero, .cp-hero, .idp-hero)
   ============================================================ */
.sc-hero,
.cp-hero,
.idp-hero {
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sc-hero-inner,
.cp-hero-inner,
.idp-hero-inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sc-hero h1,
.cp-hero h1,
.idp-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.sc-hero p,
.cp-hero p,
.idp-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Chip / Badge */
.sc-hero-chip,
.cp-hero-badge,
.idp-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

/* Breadcrumb */
.sc-breadcrumb,
.cp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 13px;
}

.sc-breadcrumb a,
.cp-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.sc-breadcrumb a:hover,
.cp-breadcrumb a:hover {
    color: #fff;
}

.sc-breadcrumb .sep,
.cp-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.4);
}

.sc-breadcrumb .active,
.cp-breadcrumb .active {
    color: #fff;
    font-weight: 600;
}

/* Hero meta pills */
.sc-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.sc-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
}

/* IDP hero stats */
.idp-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.idp-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.idp-stat-lbl {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

/* Dots background */
.sc-hero-dots,
.cp-hero-dots,
.idp-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* ── Hero Responsive ─────────────────────────────────────── */
@media (max-width: 767px) {

    .sc-hero,
    .cp-hero,
    .idp-hero {
        padding: 2.5rem 1.25rem 2rem;
    }
}

@media (max-width: 575px) {

    .sc-hero,
    .cp-hero,
    .idp-hero {
        padding: 2rem 1rem 1.75rem;
    }

    .idp-hero-stats {
        gap: 1.25rem;
    }

    .idp-stat-num {
        font-size: 18px;
    }
}

/* ============================================================
   SECTION CONTAINERS
   ============================================================ */
.sc-section,
.cp-section {
    padding: 3rem 0 4rem;
    background: #f8fafc;
}

.sc-container,
.cp-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.idp-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

@media (max-width: 991px) {

    .sc-section,
    .cp-section {
        padding: 2rem 0 3rem;
    }

    .sc-container,
    .cp-container {
        padding: 0 1.25rem;
    }

    .idp-content {
        padding: 1.5rem 1.25rem 3rem;
    }
}

@media (max-width: 575px) {

    .sc-section,
    .cp-section {
        padding: 1.5rem 0 2.5rem;
    }

    .sc-container,
    .cp-container {
        padding: 0 0.875rem;
    }

    .idp-content {
        padding: 1.25rem 0.875rem 2.5rem;
    }
}

/* ============================================================
   SHARED SECTION HEADING
   ============================================================ */
.sc-heading,
.cp-heading,
.idp-sec-head {
    text-align: center;
    margin-bottom: 2rem;
}

.sc-heading-eyebrow,
.cp-heading-eyebrow,
.idp-sec-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    background: var(--brand-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.sc-heading h2,
.cp-heading h2,
.idp-sec-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}

.sc-heading p,
.cp-heading p {
    font-size: 14px;
    color: var(--text-2);
}

@media (max-width: 575px) {

    .sc-heading,
    .cp-heading,
    .idp-sec-head {
        margin-bottom: 1.25rem;
    }
}

/* ============================================================
   SUBCATEGORY PAGE (.sc-page)
   ============================================================ */

/* Search */
.sc-search-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto 1.75rem;
}

.sc-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 13px;
}

.sc-search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-1);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.sc-search:focus {
    border-color: var(--brand);
}

/* Grid */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

/* Card */
.sc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 1.25rem 1rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.sc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.sc-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.sc-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.3;
}

.sc-card-arrow {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 11px;
    color: var(--text-3);
    opacity: 0;
    transition: opacity 0.2s;
}

.sc-card:hover .sc-card-arrow {
    opacity: 1;
}

/* Empty state */
.sc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.sc-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.sc-empty h4 {
    font-size: 17px;
    color: var(--text-1);
    margin-bottom: 6px;
}

.sc-empty p {
    font-size: 13px;
    color: var(--text-2);
}

.sc-no-results {
    display: none;
    grid-column: 1/-1;
    text-align: center;
    padding: 2rem;
}

/* Color themes */
.cat-blue {
    background: #F8FAFC;
}

.cat-teal {
    background: #CCFBF1;
}

.cat-amber {
    background: #FEF3C7;
}

.cat-coral {
    background: #FFE4E6;
}

.cat-purple {
    background: #F3E8FF;
}

.cat-green {
    background: #DCFCE7;
}

.cat-pink {
    background: #FCE7F3;
}

/* ── Subcategory Responsive ─────────────────────────────── */
@media (max-width: 991px) {
    .sc-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

@media (max-width: 767px) {
    .sc-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .sc-card {
        padding: 1rem 0.875rem 0.875rem;
    }

    .sc-icon-bubble {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .sc-card-label {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .sc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sc-search-wrap {
        max-width: 100%;
    }
}

@media (min-width: 1400px) {
    .sc-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ============================================================
   CONTACT PAGE (.cp-page)
   ============================================================ */

/* Info cards */
.cp-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.75rem;
}

.cp-info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.cp-info-card:hover {
    transform: translateY(-2px);
}

.cp-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 17px;
}

.ic-blue {
    background: #F8FAFC;
    color: #1E3A6E;
}

.ic-teal {
    background: #CCFBF1;
    color: #0d9488;
}

.ic-amber {
    background: #f8fafc;
    color: #2e5b9a;
}

.ic-purple {
    background: #F3E8FF;
    color: #9333ea;
}

.cp-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
    margin-bottom: 4px;
}

.cp-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    margin: 0;
    line-height: 1.4;
}

/* FAQ snippets */
.cp-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.75rem;
}

.cp-faq-snippet {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-card);
}

.cp-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 13px;
    flex-shrink: 0;
}

.cp-faq-q {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 3px;
}

.cp-faq-a {
    font-size: 12px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.5;
}

/* Form card */
.cp-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
}

.cp-form-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.cp-form-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 15px;
    flex-shrink: 0;
}

.cp-form-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
}

.cp-form-card-sub {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 2px;
}

.cp-form-body {
    padding: 1.5rem;
}

/* Alert */
.cp-alert {
    display: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 1rem;
}

.cp-alert.show {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cp-alert.success {
    background: #dcfce7;
    color: #15803d;
}

.cp-alert.error {
    background: #fee2e2;
    color: #b91c1c;
}

/* Form fields */
.cp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cp-form-row.full {
    grid-template-columns: 1fr;
}

.cp-field {
    display: flex;
    flex-direction: column;
}

.cp-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.req {
    color: #ef4444;
}

.cp-input,
.cp-select,
.cp-textarea {
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-1);
    background: #fff;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cp-input:focus,
.cp-select:focus,
.cp-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.cp-textarea {
    resize: vertical;
    min-height: 100px;
}

.cp-error-text {
    font-size: 12px;
    color: #ef4444;
    margin-top: 3px;
    min-height: 16px;
}

/* Checkbox */
.cp-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
}

.cp-check-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Submit */
.cp-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cp-submit-btn:hover {
    background: #2E5B9A;
    transform: translateY(-1px);
}

.cp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.cp-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* Social */
.cp-social-section {
    text-align: center;
}

.cp-social-label {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 0.75rem;
}

.cp-social-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.cp-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-1);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.cp-social-pill:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

.cp-hours {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 0.75rem;
}

.cp-hours-badge {
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    color: var(--text-2);
}

/* ── Contact Responsive ──────────────────────────────────── */
@media (max-width: 1199px) {
    .cp-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .cp-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-faq-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .cp-form-body {
        padding: 1.1rem 1rem;
    }

    .cp-form-card-header {
        padding: 1rem;
    }

    .cp-form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cp-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .cp-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cp-info-card {
        padding: 1rem 0.75rem;
    }

    .cp-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .cp-input,
    .cp-select,
    .cp-textarea {
        font-size: 16px;
    }

    /* prevent iOS zoom */
    .cp-social-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cp-hours {
        gap: 6px;
    }

    .cp-hours-badge {
        font-size: 11px;
    }
}

/* ============================================================
   IMPORTANT DAYS PAGE (.idp)
   ============================================================ */

/* Tab bar */
.idp-tabs-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 100;
}

.idp-tabs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.idp-tabs-inner::-webkit-scrollbar {
    display: none;
}

.idp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.idp-tab:hover {
    color: var(--brand);
}

.idp-tab.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* Calendar */
.idp-calendar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.idp-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 8px;
}

.idp-cal-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.idp-cal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    white-space: nowrap;
}

.idp-cal-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-2);
    transition: background 0.15s;
}

.idp-cal-btn:hover {
    background: #f1f5f9;
}

.idp-today-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--brand);
    background: var(--brand-light);
    color: var(--brand);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.idp-today-btn:hover {
    background: var(--brand);
    color: #fff;
}

.idp-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.idp-cal-wday {
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
}

.idp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.idp-cal-day {
    min-height: 80px;
    padding: 6px 5px;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.idp-cal-day.other-month {
    background: #fafafa;
    opacity: 0.5;
}

.idp-cal-day.today {
    background: #F8FAFC;
}

.idp-cal-day.today .idp-cal-num {
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idp-cal-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
}

.idp-cal-event {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-blue {
    background: #dbeafe;
    color: #1e40af;
}

.ev-green {
    background: #dcfce7;
    color: #166534;
}

.ev-amber {
    background: #fef3c7;
    color: #92400e;
}

.ev-red {
    background: #fee2e2;
    color: #991b1b;
}

.ev-purple {
    background: #f3e8ff;
    color: #6b21a8;
}

.ev-teal {
    background: #ccfbf1;
    color: #115e59;
}

.idp-cal-more {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
}

/* Month scroll pills */
.idp-month-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
    scrollbar-width: none;
    flex-wrap: wrap;
}

.idp-month-scroll::-webkit-scrollbar {
    display: none;
}

.idp-month-pill {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.idp-month-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.idp-month-pill.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* Days grid */
.idp-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.idp-day-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}

.idp-day-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.idp-day-banner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.idp-day-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idp-day-banner-icon {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.85);
}

.idp-day-arrow {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.idp-day-card:hover .idp-day-arrow {
    opacity: 1;
}

.idp-day-body {
    padding: 10px 12px;
}

.idp-day-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idp-day-date {
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Personalities grid */
.idp-persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.idp-person-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.idp-person-card:hover {
    transform: translateY(-3px);
}

.idp-person-banner {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.idp-person-banner-icon {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.85);
}

.idp-person-tag {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
}

.idp-person-body {
    padding: 1rem;
}

.idp-person-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 3px;
}

.idp-person-dates {
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.idp-person-known {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 8px;
}

.idp-person-excerpt {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.idp-person-quote {
    font-size: 12px;
    font-style: italic;
    color: var(--text-2);
    border-left: 3px solid var(--brand);
    padding-left: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.idp-person-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--brand-light);
    color: var(--brand);
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.idp-person-read-btn:hover {
    background: #c7d2fe;
}

/* Modals */
.idp-modal-overlay,
.idp-pmodal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(2px);
}

.idp-modal-overlay.open,
.idp-pmodal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.idp-modal-box,
.idp-pmodal-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(16px);
    transition: transform 0.25s;
}

.idp-modal-overlay.open .idp-modal-box,
.idp-pmodal-overlay.open .idp-pmodal-box {
    transform: translateY(0);
}

.idp-modal-close,
.idp-pmodal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.idp-modal-close:hover,
.idp-pmodal-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

.idp-modal-hero {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.idp-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idp-modal-icon-wrap {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.85);
}

.idp-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.idp-modal-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    background: var(--brand-light);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.idp-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 0.75rem;
}

.idp-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.idp-meta-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.idp-meta-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.mi-teal {
    background: #ccfbf1;
    color: #0d9488;
}

.mi-amber {
    background: #f8fafc;
    color: #2e5b9a;
}

.idp-meta-lbl {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 700;
    text-transform: uppercase;
}

.idp-meta-val {
    font-size: 13px;
    color: var(--text-1);
    font-weight: 600;
}

.idp-modal-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.idp-modal-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.idp-share-lbl {
    font-size: 12px;
    color: var(--text-3);
}

.idp-share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
}

.idp-share-btn:hover {
    background: #e2e8f0;
}

.idp-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 10px;
    color: var(--text-3);
    font-size: 13px;
}

.idp-modal-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Person modal */
.idp-pmodal-hero {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idp-pmodal-hero-icon {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.85);
}

.idp-pmodal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.idp-pmodal-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 3px;
}

.idp-pmodal-dates {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.idp-pmodal-known {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 10px;
}

.idp-pmodal-quote {
    font-size: 13px;
    font-style: italic;
    color: var(--text-2);
    border-left: 3px solid var(--brand);
    padding-left: 10px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.idp-pmodal-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
    margin-bottom: 6px;
}

.idp-pmodal-history {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.75;
    margin: 0;
}

/* Empty */
.idp-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.idp-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.idp-empty h4 {
    font-size: 16px;
    color: var(--text-1);
    margin-bottom: 5px;
}

.idp-empty p {
    font-size: 13px;
    color: var(--text-2);
    margin: 0;
}

/* Banner colors (days & persons) */
.bblue {
    background: linear-gradient(135deg, #1E3A6E, #818cf8);
}

.bteal {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
}

.bamber {
    background: linear-gradient(135deg, #1E3A6E, #2E5B9A);
}

.bcoral {
    background: linear-gradient(135deg, #ef4444, #fb923c);
}

.bpurple {
    background: linear-gradient(135deg, #9333ea, #c084fc);
}

.bpink {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

.bslate {
    background: linear-gradient(135deg, #475569, #94a3b8);
}

.bgreen {
    background: linear-gradient(135deg, #16a34a, #4ade80);
}

/* ── IDP Responsive ─────────────────────────────────────── */
@media (max-width: 991px) {
    .idp-days-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 10px;
    }

    .idp-persons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .idp-cal-day {
        min-height: 68px;
    }
}

@media (max-width: 767px) {
    .idp-tabs-bar {
        top: 56px;
    }

    .idp-tabs-inner {
        gap: 0;
    }

    .idp-tab {
        font-size: 12px;
        padding: 10px 12px;
    }

    .idp-cal-day {
        min-height: 56px;
        padding: 4px 3px;
    }

    .idp-cal-event {
        font-size: 9px;
        padding: 1px 3px;
    }

    .idp-cal-num {
        font-size: 11px;
    }

    .idp-days-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .idp-persons-grid {
        grid-template-columns: 1fr;
    }

    .idp-month-scroll {
        flex-wrap: nowrap;
    }

    .idp-modal-body,
    .idp-pmodal-body {
        padding: 1rem;
    }

    .idp-modal-title,
    .idp-pmodal-name {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .idp-cal-day {
        min-height: 48px;
        padding: 3px 2px;
    }

    .idp-cal-wday {
        font-size: 9px;
        padding: 6px 2px;
    }

    .idp-cal-event {
        display: none;
    }

    .idp-cal-day.has-events {
        background: #ede9fe;
    }

    .idp-cal-more {
        font-size: 9px;
    }

    .idp-days-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .idp-day-banner {
        height: 64px;
    }

    .idp-day-banner-icon {
        font-size: 22px;
    }

    .idp-modal-box,
    .idp-pmodal-box {
        border-radius: 14px;
        max-height: 95vh;
    }

    .idp-modal-hero {
        height: 110px;
    }

    .idp-modal-desc {
        font-size: 13px;
    }
}

@media (min-width: 1400px) {
    .idp-days-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .idp-persons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   QUIZ QUESTIONS PAGE (.quiz-page — category questions)
   ============================================================ */
.quiz-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem 0 4rem;
}

/* Header */
.quiz-page-header {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
}

.quiz-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.quiz-page-breadcrumb a {
    color: var(--text-2);
    text-decoration: none;
}

.quiz-page-breadcrumb a:hover {
    color: var(--brand);
}

.quiz-page-breadcrumb i {
    font-size: 10px;
}

.quiz-page-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 8px;
}

.quiz-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quiz-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-2);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Question cards */
.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.q-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.q-header {
    padding: 1.25rem 1.25rem 0;
}

.q-number-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.q-num-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    line-height: 1.55;
    margin: 0;
}

/* Options */
.q-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0 1.25rem 1rem;
}

.q-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    background: #fafafa;
    font-size: 13px;
    color: var(--text-1);
    transition: border-color 0.2s, background 0.15s;
    user-select: none;
}

.q-option:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
}

.q-option.correct {
    border-color: #86efac;
    background: #dcfce7;
    color: #15803d;
}

.q-option.wrong {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #b91c1c;
}

.q-option-key {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-2);
}

.q-option.correct .q-option-key {
    background: #16a34a;
    color: #fff;
}

.q-option.wrong .q-option-key {
    background: #dc2626;
    color: #fff;
}

.q-option-text {
    font-size: 13px;
    color: inherit;
    line-height: 1.4;
    flex: 1;
}

/* Footer & toggle */
.q-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.q-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-light);
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.q-toggle-btn:hover {
    background: #c7d2fe;
}

.q-toggle-btn.revealed {
    background: #dcfce7;
    color: #15803d;
}

/* Answer box */
.q-answer-box {
    display: none;
    padding: 1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
}

.q-answer-box.show {
    display: block;
}

.q-answer-correct {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.q-answer-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    font-size: 12px;
    flex-shrink: 0;
}

.q-answer-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.q-answer-text {
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
}

.q-explain {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9px;
    padding: 10px 12px;
}

.q-explain-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.q-explain-text {
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
    margin: 0;
}

/* Empty / pagination */
.quiz-empty {
    padding: 3rem;
    text-align: center;
}

.quiz-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.quiz-empty h3 {
    font-size: 18px;
    color: var(--text-1);
    margin-bottom: 6px;
}

.quiz-empty p {
    font-size: 14px;
    color: var(--text-2);
}

.quiz-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* ── Quiz Questions Responsive ─────────────────────────── */
@media (max-width: 767px) {
    .quiz-page {
        padding: 1.5rem 0 3rem;
    }

    .quiz-page-header {
        padding: 1.1rem;
    }

    .q-header {
        padding: 1rem 1rem 0;
    }

    .q-options {
        padding: 0 1rem 0.875rem;
    }

    .q-footer {
        padding: 0.6rem 1rem;
    }

    .q-answer-box {
        padding: 0.875rem 1rem;
    }

    .q-text {
        font-size: 14px;
    }

    .q-option {
        padding: 8px 10px;
        gap: 8px;
    }

    .q-option-text {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .quiz-page {
        padding: 1rem 0 2.5rem;
    }

    .q-text {
        font-size: 13.5px;
    }

    .q-toggle-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* ============================================================
   QUIZ BANK PAGE (.qz-page)
   ============================================================ */
.qz-page {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Hero */
.qz-hero {
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.qz-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.qz-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.qz-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.qz-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.qz-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.qz-stat-lbl {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

/* Exam section */
.qz-exam-section {
    margin-bottom: 2.5rem;
}

.qz-exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 10px;
    flex-wrap: wrap;
}

.qz-exam-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qz-exam-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.qz-exam-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.qz-exam-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Quiz grid */
.qz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

/* Quiz card */
.qz-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.qz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.qz-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 0;
}

.qz-cat-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.qz-card-id {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
    flex-shrink: 0;
}

.qz-card-body {
    padding: 10px 12px;
    flex: 1;
}

.qz-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qz-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
}

.qz-card-footer {
    padding: 10px 12px;
    border-top: 1px solid #f1f5f9;
}

.qz-card-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.qz-progress-bar {
    height: 100%;
    background: var(--brand);
    border-radius: 99px;
}

.qz-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.qz-start-btn:hover {
    background: #2E5B9A;
    color: #fff;
}

/* Empty */
.qz-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.qz-empty-icon {
    font-size: 3rem;
    color: var(--text-3);
    margin-bottom: 0.75rem;
}

.qz-empty h4 {
    font-size: 18px;
    color: var(--text-1);
    margin-bottom: 6px;
}

.qz-empty p {
    font-size: 14px;
    color: var(--text-2);
}

/* ── Quiz Bank Responsive ───────────────────────────────── */
@media (max-width: 991px) {
    .qz-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .qz-hero {
        padding: 2rem 1rem;
    }

    .qz-hero-stats {
        gap: 1.25rem;
    }

    .qz-stat-num {
        font-size: 18px;
    }

    .qz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .qz-exam-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 575px) {
    .qz-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .qz-card-title {
        font-size: 13px;
    }
}

@media (min-width: 1400px) {
    .qz-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ============================================================
   QUIZ HISTORY PAGE (.history-page)
   ============================================================ */
.history-page {
    background: #f8fafc;
    min-height: 100vh;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-2);
}

.hist-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-2);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.hist-btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.hist-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.hist-btn-primary:hover {
    background: #2E5B9A;
    color: #fff;
}

/* Summary strip */
.summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.sum-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.sum-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 3px;
}

.sum-lbl {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

.sum-blue .sum-val {
    color: #2563eb;
}

.sum-green .sum-val {
    color: #16a34a;
}

.sum-red .sum-val {
    color: #dc2626;
}

/* Table card */
.hist-table-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hist-toolbar {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.hist-toolbar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
}

.hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hist-table thead th {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-3);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.hist-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.hist-table tbody tr:hover {
    background: #fafafe;
}

.hist-table tbody tr:last-child {
    border-bottom: none;
}

.hist-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
}

.row-num {
    color: var(--text-3);
    font-weight: 600;
    white-space: nowrap;
}

.quiz-name {
    font-weight: 600;
    color: var(--text-1);
    font-size: 13px;
}

.quiz-deleted {
    font-size: 12px;
    color: var(--text-3);
    font-style: italic;
}

.stat-green {
    color: #16a34a;
    font-weight: 700;
}

.stat-red {
    color: #dc2626;
    font-weight: 700;
}

.stat-muted {
    color: var(--text-3);
}

.score-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-bar {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    flex-shrink: 0;
}

.mini-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s;
}

.score-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.score-high {
    background: #dcfce7;
    color: #15803d;
}

.score-mid {
    background: #fef3c7;
    color: #92400e;
}

.score-low {
    background: #fee2e2;
    color: #b91c1c;
}

.date-cell {
    color: var(--text-3);
    font-size: 12px;
    white-space: nowrap;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand);
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.view-btn:hover {
    background: #c7d2fe;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
}

.empty-sub {
    font-size: 13px;
    color: var(--text-2);
}

/* Footer */
.hist-footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.hist-count {
    font-size: 12px;
    color: var(--text-3);
}

/* ── History Responsive ─────────────────────────────────── */
@media (max-width: 991px) {
    .summary-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .hist-table {
        min-width: 560px;
    }

    .summary-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .sum-val {
        font-size: 18px;
    }

    .mini-bar {
        width: 40px;
    }
}

@media (max-width: 575px) {
    .summary-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .sum-card {
        padding: 0.75rem;
    }

    .sum-val {
        font-size: 16px;
    }

    .hist-table {
        min-width: 480px;
        font-size: 12px;
    }

    .hist-table thead th,
    .hist-table tbody td {
        padding: 8px 10px;
    }
}

/* ============================================================
   QUIZ RESULT / SCORE PAGE (.result-page)
   ============================================================ */
.result-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* Score hero */
.score-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.score-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#1E3A6E 0%, #e2e8f0 0%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px #F8FAFC;
}

.score-pct {
    font-size: 20px;
    font-weight: 800;
    color: #1E3A6E;
    line-height: 1;
}

.score-pct-lbl {
    font-size: 10px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-pass {
    background: #dcfce7;
    color: #15803d;
}

.badge-fail {
    background: #fee2e2;
    color: #b91c1c;
}

.score-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
}

.score-sub {
    font-size: 12px;
    color: var(--text-3);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.stat-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-1);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-3);
}

.stat-correct .stat-val {
    color: #16a34a;
}

.stat-wrong .stat-val {
    color: #dc2626;
}

.stat-skip .stat-val {
    color: #2E5B9A;
}

/* Breakdown */
.breakdown-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.breakdown-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
}

.bar-track {
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
}

.bar-correct {
    background: #0F6E56;
}

.bar-wrong {
    background: #E24B4A;
}

.bar-skip {
    background: #E8C54A;
}

.leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-2);
}

.leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Review */
.review-section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
}

.q-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}

.q-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-num-ok {
    background: #dcfce7;
    color: #15803d;
}

.q-num-bad {
    background: #fee2e2;
    color: #b91c1c;
}

.q-num-skip {
    background: #fef3c7;
    color: #92400e;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.opt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: #fafafa;
    font-size: 13px;
}

.opt-correct {
    border-color: #86efac;
    background: #dcfce7;
}

.opt-wrong {
    border-color: #fca5a5;
    background: #fee2e2;
}

.opt-badge {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-2);
}

.opt-correct .opt-badge {
    background: #16a34a;
    color: #fff;
}

.opt-wrong .opt-badge {
    background: #dc2626;
    color: #fff;
}

.opt-text {
    font-size: 13px;
    color: inherit;
    flex: 1;
    line-height: 1.4;
}

.opt-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.pill-ok {
    background: #dcfce7;
    color: #15803d;
}

.pill-you {
    background: #dbeafe;
    color: #1d4ed8;
}

.q-explanation {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

/* CTA */
.btn-result-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-result-primary:hover {
    background: #2E5B9A;
    color: #fff;
}

.btn-result-outline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--text-1);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: border-color 0.2s;
}

.btn-result-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* Quiz attempt header (within result-page layout) */
.quiz-header {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.quiz-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
}

.quiz-meta {
    font-size: 12px;
    color: var(--text-2);
}

.quiz-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timer-pill {
    background: #f1f5f9;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    white-space: nowrap;
}

.timer-val.urgent {
    color: #dc2626;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0.4;
    }
}

/* Progress bar */
.quiz-progress-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.prog-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 99px;
    transition: width 0.3s;
}

.prog-label {
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Nav dots */
.q-nav-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.q-nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
}

.q-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.q-dot {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    background: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.q-dot.done {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.q-dot:hover:not(.done) {
    border-color: var(--brand);
    color: var(--brand);
}

/* Submit row */
.submit-row {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.submit-info strong {
    font-size: 14px;
}

.btn-quiz-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-quiz-submit:hover {
    background: #2E5B9A;
}

.btn-quiz-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Opt label (attempt form) */
.opt-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    background: #fafafa;
    font-size: 13px;
    color: var(--text-1);
    transition: border-color 0.2s, background 0.15s;
    margin-bottom: 7px;
}

.opt-label input[type="radio"] {
    display: none;
}

.opt-label:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
}

.opt-label.selected {
    border-color: var(--brand);
    background: var(--brand-light);
}

.opt-label.answered .opt-badge {
    background: var(--brand);
    color: #fff;
}

/* ── Result / Attempt Responsive ────────────────────────── */
@media (max-width: 767px) {
    .score-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .score-ring {
        width: 84px;
        height: 84px;
    }

    .score-pct {
        font-size: 17px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .stat-val {
        font-size: 16px;
    }

    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .timer-pill {
        align-self: flex-start;
    }

    .btn-quiz-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .score-ring {
        width: 76px;
        height: 76px;
    }

    .score-pct {
        font-size: 15px;
    }

    .q-dot {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .opt-text {
        font-size: 12px;
    }

    .btn-result-primary,
    .btn-result-outline {
        padding: 9px 16px;
        font-size: 13px;
    }
}

/* ============================================================
   TESTIMONIAL PAGE (.ts-page)
   ============================================================ */
.ts-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 3rem 0 4rem;
}

/* Hero */
.ts-hero {
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
    border-radius: var(--radius-card);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.ts-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin: 0 auto 1rem;
}

.ts-hero h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

.ts-hero p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Card */
.ts-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

/* Alerts */
.ts-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 1.25rem;
}

.ts-alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.ts-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Section label */
.ts-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.1rem;
    margin-top: 1rem;
}

.ts-section-label span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand);
    background: var(--brand-light);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Form grid */
.ts-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ts-form-group {
    margin-bottom: 1rem;
}

.ts-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ts-req {
    color: #ef4444;
}

.ts-optional {
    font-size: 10px;
    color: var(--text-3);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 4px;
    font-weight: 400;
}

.ts-input-wrap {
    position: relative;
}

.ts-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 12px;
    pointer-events: none;
}

.ts-input {
    width: 100%;
    font-size: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px 10px 36px;
    color: var(--text-1);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ts-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ts-input-error {
    border-color: #ef4444;
}

.ts-textarea {
    padding: 10px 14px !important;
    min-height: 110px;
    resize: vertical;
}

/* File upload */
.ts-file-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: #f9f9ff;
    transition: border-color 0.2s, background 0.2s;
}

.ts-file-upload input[type="file"] {
    display: none;
}

.ts-file-upload:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.ts-upload-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 16px;
    flex-shrink: 0;
}

.ts-file-upload p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    margin: 0;
}

.ts-file-upload span {
    font-size: 11px;
    color: var(--text-3);
}

#uploadPreview {
    display: flex;
    align-items: center;
    gap: 12px;
}

#uploadPreview img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

#uploadPreview strong {
    display: block;
    font-size: 13px;
    color: var(--text-1);
    margin-bottom: 2px;
}

#uploadPreview span {
    font-size: 11px;
    color: var(--text-3);
}

/* Star rating */
.ts-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.ts-stars input[type="radio"] {
    display: none;
}

.ts-stars label {
    font-size: 28px;
    color: #e2e8f0;
    cursor: pointer;
    transition: color 0.15s;
}

.ts-stars input:checked~label,
.ts-stars label:hover,
.ts-stars label:hover~label {
    color: #4F8EF7;
}

.ts-star-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
}

/* Char count */
.ts-char-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.ts-char-row span {
    font-size: 11px;
    color: var(--text-3);
}

/* Submit row */
.ts-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.ts-privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
}

.ts-privacy i {
    color: #16a34a;
}

.ts-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.ts-submit-btn:hover {
    background: #2E5B9A;
    transform: translateY(-1px);
}

/* ── Testimonial Responsive ─────────────────────────────── */
@media (max-width: 767px) {
    .ts-page {
        padding: 2rem 0 3rem;
    }

    .ts-card {
        padding: 1.25rem;
    }

    .ts-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ts-stars label {
        font-size: 24px;
    }

    .ts-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ts-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .ts-page {
        padding: 1.25rem 0 2.5rem;
    }

    .ts-hero {
        padding: 1.5rem 1rem;
    }

    .ts-input {
        font-size: 16px;
    }

    /* prevent iOS zoom */
    .ts-file-upload {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}

/* ============================================================
   PAGINATION (.ca-pagination-wrap)
   ============================================================ */
.ca-pagination-wrap {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.ca-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.ca-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    background: #fff;
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.ca-page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

.ca-page-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.ca-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Pagination Responsive ─────────────────────────────── */
@media (max-width: 575px) {
    .ca-page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }

    .ca-pagination {
        gap: 4px;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    .sc-hero,
    .cp-hero,
    .idp-hero,
    .idp-tabs-bar,
    .sc-search-wrap,
    .ts-hero,
    .qz-hero,
    .cp-submit-btn,
    .ts-submit-btn,
    .qz-start-btn,
    .btn-quiz-submit,
    .btn-result-primary,
    .btn-result-outline,
    .ca-pagination-wrap,
    .idp-modal-overlay,
    .idp-pmodal-overlay {
        display: none !important;
    }

    .sc-page,
    .cp-page,
    .idp,
    .quiz-page,
    .qz-page,
    .history-page,
    .result-page,
    .ts-page {
        background: #fff !important;
    }

    .q-card,
    .qz-card,
    .cp-form-card,
    .hist-table-card,
    .ts-card {
        box-shadow: none !important;
    }
}


/* ── Backdrop & box ──────────────────────────── */
.cam-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 60, 0.72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}

.cam-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.cam-box {
    position: relative;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(10, 15, 60, 0.45);
    transform: translateY(18px) scale(0.97);
    transition: transform .22s;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.cam-backdrop.open .cam-box {
    transform: none;
}

/* ── Close button (floating, outside printable) ── */
.cam-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: rgba(255, 255, 255, 0.85);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.cam-close-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* ── Printable area ──────────────────────────── */
#cam-printable {
    background: #1a237e;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Shared table reset ──────────────────────── */
.cam-tbl {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* ── Header ──────────────────────────────────── */
.cam-header-tbl {
    background: #1a237e;
}

.cam-header-left-td {
    padding: 18px 0 16px 22px;
    vertical-align: middle;
}

.cam-header-right-td {
    padding: 18px 22px 16px 10px;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
}

.cam-icon-td {
    vertical-align: middle;
    padding-right: 14px;
}

.cam-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cam-title-td {
    vertical-align: middle;
}

.cam-title {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
}

.cam-subtitle {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.cam-date-pill {
    display: inline-block;
    background: #FFD54F;
    color: #1a237e;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ── Accent line ─────────────────────────────── */
.cam-accent-line {
    height: 3px;
    background: linear-gradient(90deg, #FFD54F, #FFA000);
    flex-shrink: 0;
    line-height: 0;
    font-size: 0;
}

/* ── Sub label ───────────────────────────────── */
.cam-sub-label {
    background: #f5f6ff;
    padding: 8px 22px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #9fa8da;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ── Q&A Body ────────────────────────────────── */
.cam-body {
    background: #fff;
    padding: 6px 22px 4px;
    overflow-y: auto;
    flex: 1;
    min-height: 80px;
}

/* Q&A items */
.ca-qa-item {
    padding: 12px 0;
    border-bottom: 1px solid #e8eaf6;
    display: block;
}

.ca-qa-item:last-child {
    border-bottom: none;
}

.ca-qa-q {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #212121;
    font-weight: 600;
    margin-bottom: 7px;
    line-height: 1.5;
    display: block;
}

.ca-qa-q strong {
    color: #1a237e;
    margin-right: 3px;
    font-weight: 700;
}

.ca-qa-ans {
    display: table;
    width: 100%;
}

.ca-qa-ans-badge {
    display: table-cell;
    width: 1%;
    vertical-align: top;
    background: #2e7d32;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    white-space: nowrap;
    padding-right: 12px;
}

.ca-qa-ans-text {
    display: table-cell;
    vertical-align: top;
    padding-left: 8px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #1565c0;
    font-weight: 600;
    line-height: 1.5;
}

/* ── Brand footer ────────────────────────────── */
.cam-brand-tbl {
    background: #0d1757;
}

.cam-brand-url-td {
    padding: 11px 22px;
    vertical-align: middle;
}

.cam-brand-name-td {
    padding: 11px 22px;
    vertical-align: middle;
    text-align: right;
}

.cam-brand-url {
    font-family: Arial, sans-serif;
    color: #FFD54F;
    font-size: 11px;
    font-weight: 600;
}

.cam-brand-name {
    font-family: Arial, sans-serif;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* ── Action bar (below printable) ───────────── */
.cam-actions {
    background: #fff;
    padding: 12px 22px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e8eaf6;
    flex-shrink: 0;
}

.cam-btn-close {
    background: #f5f6ff;
    color: #1a237e;
    border: 1px solid #c5cae9;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.cam-btn-close:hover {
    background: #e8eaf6;
}

.cam-btn-download {
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .15s;
}

.cam-btn-download:hover {
    background: #283593;
}

.cam-btn-download:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Skeletons ───────────────────────────────── */
.ca-skeleton {
    height: 40px;
    background: #e8eaf6;
    border-radius: 6px;
    margin: 10px 0;
    animation: ca-pulse 1.4s ease-in-out infinite;
}

@keyframes ca-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

/* ── Empty state ─────────────────────────────── */
.ca-empty {
    text-align: center;
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #64748b;
}

.ca-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ── Prevent body scroll when modal open ─────── */
.ca-modal-open {
    overflow: hidden;
}


/* ── Toast Notifications ─────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    animation: toastIn .3s ease forwards;
}

.toast-msg.success {
    background: #fff;
    border-left: 4px solid #22C55E;
    color: #166534;
}

.toast-msg.error {
    background: #fff;
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.toast-msg.info {
    background: #fff;
    border-left: 4px solid #1E3A6E;
    color: #3730A3;
}

.toast-msg.warning {
    background: #fff;
    border-left: 4px solid #2E5B9A;
    color: #2E5B9A;
}

.toast-msg i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-msg .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: .5;
    font-size: 16px;
    padding: 0 4px;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 576px) {
    #toast-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .toast-msg {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #1E3A6E;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #2E5B9A;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
}


/* ============================================================
   RESPONSIVE FIXES & 4K OPTIMIZATIONS
   ============================================================ */

/* ── Container Max Width on 2K / 4K Screens ────────────────── */
@media (min-width: 1920px) {

    .container,
    .container-xxl {
        max-width: 1440px !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Prevent any potential horizontal body overflows ───────── */
html,
body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

/* ── Scale Typography and Margins Fluidly ──────────────────── */
@media (max-width: 375px) {

    /* Fluid typography for small mobile */
    .hero-content h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    .section-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .nav-logo-name {
        font-size: 13px !important;
    }

    .nav-logo-tagline {
        font-size: 9px !important;
    }
}

/* ── Mobile Hamburger Spacing & Scaling (320px–360px) ─────── */
@media (max-width: 360px) {
    .navbar-inner {
        padding: 0 8px;
        gap: 6px;
    }

    .nav-logo {
        gap: 6px;
    }

    .nav-logo-mark {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .nav-mobile-toggle {
        width: 34px;
        height: 34px;
    }
}

/* ── Header Topbar layout wrap (400px–575px) ───────────────── */
@media (max-width: 575px) {
    .header-topbar {
        display: none !important;
        /* Keep clean layout on smaller screens */
    }

    .nav-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-actions>* {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* ── Navbar Action items alignment and size transitions (768px-991px) ── */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ── Button wrapping & sizing in Hero ──────────────────────── */
@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 8px;
    }

    .hero-btns a,
    .hero-btns button {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
}

/* ── Categories Grid wrapping & alignment ──────────────────── */
@media (max-width: 359px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

/* ── Contact Info Cards ────────────────────────────────────── */
@media (max-width: 479px) {
    .cp-info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ── Form Inputs on Mobile ─────────────────────────────────── */
@media (max-width: 575px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Enforce 16px on mobile viewports to prevent iOS browser zoom */
    }

    .cp-form-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .ts-row-2 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* ── Tables & Leaderboard Responsiveness ───────────────────── */
.lb-table-scroll,
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .lb-table {
        min-width: 300px !important;
    }

    .lb-player-name {
        max-width: 80px !important;
    }
}

/* ── Quiz Attempt, Questions, and Cards Spacings ──────────── */
@media (max-width: 575px) {

    .q-card,
    .qz-card,
    .cp-form-card,
    .ts-card,
    .breakdown-card,
    .quiz-header,
    .quiz-progress-card,
    .q-nav-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }

    .q-dots {
        gap: 6px !important;
    }

    .q-dot {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }
}

/* ── Quiz Result Performance Grid ─────────────────────────── */
@media (max-width: 575px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .score-hero {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 16px !important;
    }

    .score-info {
        width: 100%;
    }
}

/* ── Footer Link Alignment & Wrapping ─────────────────────── */
@media (max-width: 767px) {
    .footer-top-grid [class*="col-"] {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-gallery {
        justify-content: center;
        max-width: 240px;
        margin: 0 auto;
    }
}


/* ============================================================
   NEW ABOUT PAGE & HEADER REDESIGN STYLES
   ============================================================ */

/* ── Brand Color & Gradient Utilities ──────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1E3A6E 0%, #7c3aed 100%);
}

.bg-primary-soft {
    background: rgba(79, 70, 229, 0.08) !important;
}

.bg-success-soft {
    background: rgba(16, 185, 129, 0.08) !important;
}

.text-primary-light {
    color: #a5b4fc !important;
}

/* ── Interactive & Hover Enhancements ──────────────────────── */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hover-lift:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1) !important;
}

/* ── Custom Cards and Icons for EdTech Redesign ────────────── */
.card-mission-vision {
    background: #fff;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.25s ease;
}

.card-mission-vision:hover {
    border-color: #c7d2fe !important;
}

.icon-box-round {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box-small {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.social-icon-btn:hover {
    background: #1E3A6E;
    color: #fff !important;
}

/* ── Hero Custom Glow for About Page ────────────────────────── */
.ab-hero-new {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
}

.ab-hero-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* ── Timeline Section ────────────────────────────────────────── */
.timeline-wrap {
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

.timeline-item {
    align-items: center;
}

.timeline-badge {
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-badge {
    transform: scale(1.2);
    background: #7c3aed !important;
}

@media (max-width: 767px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        gap: 16px !important;
    }

    .timeline-content {
        width: calc(100% - 40px) !important;
    }

    .timeline-badge {
        left: 20px !important;
        transform: translate(-50%, 0) !important;
        margin-top: 16px !important;
    }

    .w-50 {
        display: none !important;
    }
}

/* ── Premium Sticky Header Styling ───────────────────────────── */
.main-navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

/* Navbar active underlines and hover styles */
.nav-link-item {
    position: relative;
    color: #475569 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #1E3A6E;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link-item:hover {
    color: #1E3A6E !important;
    background: rgba(79, 70, 229, 0.04) !important;
}

.nav-link-item:hover::after {
    transform: scaleX(1);
}

.nav-link-item.active {
    color: #1E3A6E !important;
    background: rgba(79, 70, 229, 0.08) !important;
    font-weight: 600 !important;
}

.nav-link-item.active::after {
    transform: scaleX(1);
}

/* Dropdown slide-up animations */
.nav-dropdown.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Live Quiz Badge pulse */
.nav-live-badge {
    background: #fee2e2;
    color: #ef4444 !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-live-badge:hover {
    background: #fecaca;
    color: #dc2626 !important;
}

.nav-live-badge .fa-circle {
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Mobile dropdown layouts and overrides */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        border-top: 1px solid #e2e8f0;
        margin-top: 12px;
        padding-top: 12px;
    }

    .nav-links-list {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        gap: 4px !important;
        margin-bottom: 1rem !important;
    }

    .nav-link-item::after {
        display: none;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
        border-top: 1px solid #f1f5f9;
        padding-top: 1rem;
        gap: 12px !important;
    }

    .nav-lang-btn,
    .nav-profile-btn,
    .nav-login-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown.dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: #f8fafc;
        border-radius: 8px !important;
        margin-top: 4px !important;
    }
}

/* ============================================================
   AUTH, FAQ, AND LEGAL PAGES PREMIUM LAYOUTS
   ============================================================ */

/* ── Auth Centered Elements ────────────────────────────────── */
.auth-page {
    background: radial-gradient(circle at 10% 20%, rgba(30, 58, 110, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(79, 142, 247, 0.03) 0%, transparent 40%),
        #f8fafc !important;
}

.auth-split {
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(30, 58, 110, 0.05) !important;
    max-width: 1000px !important;
}

.auth-panel-left {
    background: linear-gradient(135deg, #1E3A6E 0%, #2E5B9A 60%, #4F8EF7 100%) !important;
    position: relative;
    overflow: hidden;
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: -50px;
    right: -50px;
}

.auth-steps li .step-num,
.reset-steps li .step-num {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}

.auth-input {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    height: 46px;
    padding: 0.375rem 1rem !important;
    transition: all 0.25s ease !important;
}

.auth-input:focus {
    border-color: #1E3A6E !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.1) !important;
    background: #fff !important;
}

.input-group.auth-pw-group {
    border-radius: 10px;
    overflow: hidden;
}

.input-group.auth-pw-group .auth-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group.auth-pw-group .pw-toggle {
    border: 1.5px solid #e2e8f0 !important;
    border-left: none !important;
    background: #f8fafc;
    color: #64748b;
    padding: 0 1rem;
    transition: all 0.2s ease;
}

.input-group.auth-pw-group .pw-toggle:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-auth-primary {
    background: #1E3A6E !important;
    border-color: #1E3A6E !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    height: 46px;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(30, 58, 110, 0.15) !important;
}

.btn-auth-primary:hover {
    background: #2E5B9A !important;
    border-color: #2E5B9A !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 58, 110, 0.25) !important;
}

.social-login-btn {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: #fff;
    color: #475569 !important;
    text-decoration: none !important;
    padding: 0 1.25rem !important;
    transition: all 0.2s ease !important;
}

.social-login-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Strength Meter */
.strength-track {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

/* OTP Code Rows */
.otp-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.otp-box {
    width: 48px;
    height: 52px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.otp-box:focus {
    background: #fff;
    border-color: #1E3A6E;
    box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.1);
    outline: none;
}

.otp-box.filled {
    border-color: #2E5B9A;
    background: #fff;
}

.otp-box.otp-error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* ── FAQ Redesign Overrides ────────────────────────────────── */
.faq-hero {
    background: linear-gradient(135deg, #1E3A6E 0%, #2E5B9A 100%);
    overflow: hidden;
}

.faq-hero-glow {
    position: absolute;
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 142, 247, 0.15) 0%, transparent 70%);
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.faq-search-wrap .form-control {
    height: 48px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(30, 58, 110, 0.15) !important;
}

.faq-search-wrap .form-control:focus {
    box-shadow: 0 8px 30px rgba(30, 58, 110, 0.25) !important;
}

/* ── Legal pages (Terms / Privacy) Redesign ────────────────── */
.terms-page,
.privacy-page {
    background: #f8fafc;
}

.terms-hero,
.privacy-hero {
    background: linear-gradient(135deg, #1E3A6E 0%, #2E5B9A 100%) !important;
    border-radius: 16px;
    color: #fff !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.terms-hero::before,
.privacy-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    top: -100px;
    right: -50px;
}

.terms-hero .hero-title,
.privacy-hero .hero-title {
    color: #fff !important;
    font-weight: 700;
}

.terms-hero .hero-sub,
.privacy-hero .hero-sub {
    color: rgba(255, 255, 255, 0.8) !important;
}

.terms-hero .hero-badge,
.privacy-hero .hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
}

.terms-layout,
.privacy-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {

    .terms-layout,
    .privacy-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.toc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 12px rgba(30, 58, 110, 0.02);
}

.toc-heading {
    font-weight: 700;
    color: #1E3A6E;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.toc-link:hover {
    background: #f1f5f9;
    color: #1E3A6E;
}

.toc-link.active {
    background: rgba(30, 58, 110, 0.06);
    color: #1E3A6E;
    font-weight: 600;
}

.toc-num {
    font-weight: 700;
    color: #4F8EF7;
}

.terms-sections,
.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-section,
.pp-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.terms-section:hover,
.pp-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(30, 58, 110, 0.04);
}

.ts-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    outline: none;
}

.ts-num {
    font-weight: 800;
    color: #4F8EF7;
    font-size: 15px;
}

.ts-title {
    font-weight: 700;
    color: #1E3A6E;
    font-size: 16px;
    flex-grow: 1;
}

.ts-chevron {
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.ts-header.active .ts-chevron {
    transform: rotate(180deg);
    color: #1E3A6E;
}

.ts-body {
    display: none;
    padding: 0 1.5rem 1.5rem 3.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

.ts-body.show {
    display: block;
}

.pp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 13px;
}

.pp-table th,
.pp-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.pp-table th {
    background: #f8fafc;
    color: #1E3A6E;
    font-weight: 600;
}

.accept-bar {
    background: #1E3A6E;
    color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 58, 110, 0.15);
}

.accept-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.btn-accept,
.btn-acknowledge {
    background: #fff !important;
    color: #1E3A6E !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-accept:hover,
.btn-acknowledge:hover {
    background: #F8FAFC !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   TODAY'S CELEBRATION PREMIUM BLOCK
   ============================================================ */
.today-celebration-section {
    background-color: #F8FAFC !important;
}

.celebration-card {
    background: radial-gradient(circle at top right, rgba(79, 142, 247, 0.04) 0%, transparent 50%), #ffffff;
    border-radius: 24px !important;
    border: 1px solid rgba(30, 58, 110, 0.08) !important;
    box-shadow: 0 10px 40px rgba(30, 58, 110, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.celebration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px rgba(30, 58, 110, 0.06) !important;
}

.celebration-placeholder {
    min-height: 280px;
    border: 2px dashed rgba(30, 58, 110, 0.1);
    background: linear-gradient(135deg, rgba(30, 58, 110, 0.02) 0%, rgba(79, 142, 247, 0.02) 100%);
    transition: all 0.3s ease;
}

.celebration-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(30, 58, 110, 0.06);
}

/* ============================================================
   UNIFIED SEARCH BOX COMPONENT
   ============================================================ */
.search-card {
    max-width: 600px;
    width: 100%;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrap i.fa-search {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3, #94a3b8);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.search-control {
    width: 100%;
    height: 52px;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 50px;
    padding: 0 110px 0 48px;
    font-size: 0.95rem;
    color: var(--text-1, #0f172a);
    background: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 110, 0.04);
}

.search-control::placeholder {
    color: var(--text-3, #94a3b8);
    opacity: 0.8;
}

.search-control:focus {
    border-color: var(--brand, #1E3A6E);
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 58, 110, 0.15);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    padding: 0 22px;
    border-radius: 40px;
    background-color: var(--brand, #1E3A6E) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(30, 58, 110, 0.1);
    z-index: 3;
}

.search-btn:hover {
    background-color: var(--brand-medium, #2E5B9A) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 58, 110, 0.15);
}

.search-btn:active {
    transform: translateY(0);
}

@media (max-width: 575px) {
    .search-control {
        height: 48px;
        font-size: 0.9rem;
        padding-right: 95px;
        padding-left: 42px;
    }

    .search-input-wrap i.fa-search {
        left: 16px;
        font-size: 13px;
    }

    .search-btn {
        height: 36px;
        padding: 0 16px;
        font-size: 0.85rem;
        right: 6px;
    }
}

/* ============================================================
   MOBILE OFFCANVAS OVERRIDES & COMPATIBILITY
   ============================================================ */
.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    transition: transform 0.3s ease-in-out;
}
.offcanvas.showing,
.offcanvas.show:not(.hiding) {
    transform: none;
}
.offcanvas.showing,
.offcanvas.hiding,
.offcanvas.show {
    visibility: visible;
}
.offcanvas-start {
    top: 0;
    left: 0;
    width: 290px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateX(-100%);
}
.offcanvas-end {
    top: 0;
    right: 0;
    width: 290px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
}
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    transition: opacity 0.15s linear;
}
.offcanvas-backdrop.fade {
    opacity: 0;
}
.offcanvas-backdrop.show {
    opacity: 0.5;
}
.offcanvas-header .btn-close {
    background-size: 0.8rem;
    padding: 0.5rem;
}
.offcanvas-body .nav-link {
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    color: #475569;
}
.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    background: #F8FAFC;
    color: #1E3A6E !important;
}
.offcanvas-body .accordion-button::after {
    background-size: 0.8rem;
    width: 0.8rem;
    height: 0.8rem;
}
.offcanvas-body .accordion-button:not(.collapsed) {
    color: #1E3A6E !important;
}
.offcanvas-body .accordion-body {
    padding-left: 1rem;
}

/* ============================================================
   EXAM WORKSPACE RESPONSIVENESS OVERRIDES
   ============================================================ */
@media (max-width: 767px) {
    .exam-wrapper header.navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .exam-wrapper main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ============================================================
   BILINGUAL QUESTION RENDERER STYLING
   ============================================================ */
.bilingual-container {
    display: inline;
}
.bilingual-en {
    color: #212529;
    font-weight: 500;
}
.bilingual-hi {
    color: #596168;
    margin-left: 0.25rem;
    font-weight: 400;
}

