/* =========================================================
   MANATRICK FAMILY
   GLOBAL STYLESHEET
   File: assets/css/main.css
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */


:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --secondary: #4f46e5;
    --secondary-dark: #4338ca;

    --success: #16a34a;
    --success-light: #f0fdf4;

    --warning: #d97706;
    --warning-light: #fffbeb;

    --danger: #dc2626;
    --danger-light: #fef2f2;

    --info: #0891b2;
    --info-light: #ecfeff;

    --purple: #7c3aed;
    --purple-light: #f5f3ff;

    --dark: #0f172a;
    --dark-secondary: #1e293b;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --white: #ffffff;

    --background: #f8fafc;
    --surface: #ffffff;
    --surface-secondary: #f1f5f9;

    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    --shadow-xs:
        0 1px 2px rgba(15, 23, 42, 0.04);

    --shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.06);

    --shadow-md:
        0 8px 24px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 15px 40px rgba(15, 23, 42, 0.10);

    --shadow-xl:
        0 25px 60px rgba(15, 23, 42, 0.14);

    --transition: 0.2s ease;

    --header-height: 82px;

    --sidebar-width: 260px;

    --container-width: 1280px;
}


/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    margin: 0;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.no-scroll {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    display: inline-block;
    vertical-align: middle;
}

ul,
ol {
    list-style: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}


/* =========================================================
   3. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   4. SELECTION
   ========================================================= */

::selection {
    background: rgba(37, 99, 235, 0.18);
    color: var(--dark);
}


/* =========================================================
   5. FOCUS
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   6. CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container-width);

    margin: 0 auto;

    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   7. BUTTONS
   ========================================================= */

.btn,
.primary-button,
.secondary-button,
.light-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid transparent;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn {
    min-height: 42px;
    padding: 0 16px;

    border-radius: var(--radius-sm);

    font-size: 13px;
}

.btn svg,
.primary-button svg,
.secondary-button svg,
.light-button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.btn:hover,
.primary-button:hover,
.secondary-button:hover,
.light-button:hover {
    transform: translateY(-1px);
}

.btn:active,
.primary-button:active,
.secondary-button:active,
.light-button:active {
    transform: translateY(0);
}


/* Primary */

.btn-primary,
.primary-button {
    color: var(--white);
    background: var(--primary);

    box-shadow:
        0 5px 14px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.primary-button:hover {
    color: var(--white);
    background: var(--primary-dark);

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.25);
}


/* Secondary */

.btn-secondary {
    color: var(--white);
    background: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}


/* Success */

.btn-success {
    color: var(--white);
    background: var(--success);
}


/* Danger */

.btn-danger {
    color: var(--white);
    background: var(--danger);
}


/* Warning */

.btn-warning {
    color: var(--white);
    background: var(--warning);
}


/* Outline */

.btn-outline {
    color: var(--text-secondary);
    background: var(--white);
    border-color: var(--border);
}

.btn-outline:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}


/* Ghost */

.btn-ghost {
    color: var(--text-secondary);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--surface-secondary);
}


/* Small */

.btn-sm {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}


/* Large */

.btn-lg {
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
}


/* Full */

.btn-block {
    width: 100%;
}


/* =========================================================
   8. HERO BUTTONS
   ========================================================= */

.primary-button {
    min-height: 48px;

    padding:
        0 20px;

    border-radius: 10px;

    font-size: 14px;

    background: var(--primary);
    color: var(--white);
}

.primary-button.small {
    min-height: 38px;

    padding:
        0 15px;

    border-radius: 8px;

    font-size: 12px;
}

.secondary-button {
    min-height: 48px;

    padding:
        0 18px;

    border-radius: 10px;

    color: var(--text);
    background: var(--white);

    border-color: var(--border);

    font-size: 14px;
}

.secondary-button:hover {
    color: var(--primary);
    border-color: #bfdbfe;
    background: var(--primary-light);
}

.light-button {
    min-height: 46px;

    padding:
        0 20px;

    border-radius: 10px;

    color: var(--primary);
    background: var(--white);

    font-size: 13px;
}

.light-button:hover {
    color: var(--primary-dark);
    background: #f8fafc;
}


/* =========================================================
   9. FORM ELEMENTS
   ========================================================= */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 44px;

    padding:
        0 13px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-sm);

    background:
        var(--white);

    color:
        var(--text);

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control:hover {
    border-color: var(--border-dark);
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);
}

textarea.form-control {
    min-height: 110px;

    padding-top: 12px;
    padding-bottom: 12px;

    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-help {
    color: var(--text-muted);
    font-size: 11px;
}

.form-error {
    color: var(--danger);
    font-size: 11px;
}


/* =========================================================
   10. CARDS
   ========================================================= */

.card {
    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        18px 20px;

    border-bottom:
        1px solid var(--border);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding:
        15px 20px;

    border-top:
        1px solid var(--border);
}


/* =========================================================
   11. BADGES
   ========================================================= */

.badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 24px;

    padding:
        0 9px;

    border-radius:
        999px;

    font-size: 10px;
    font-weight: 700;
}

.badge-primary {
    color: #1d4ed8;
    background: #dbeafe;
}

.badge-success {
    color: #15803d;
    background: #dcfce7;
}

.badge-warning {
    color: #b45309;
    background: #fef3c7;
}

.badge-danger {
    color: #b91c1c;
    background: #fee2e2;
}

.badge-purple {
    color: #6d28d9;
    background: #ede9fe;
}

.badge-gray {
    color: #475569;
    background: #f1f5f9;
}


/* =========================================================
   12. ALERTS
   ========================================================= */

.alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding:
        13px 15px;

    border-radius:
        var(--radius-sm);

    font-size: 13px;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-info {
    color: #0e7490;
    background: var(--info-light);
    border: 1px solid #a5f3fc;
}

.alert-success {
    color: #15803d;
    background: var(--success-light);
    border: 1px solid #bbf7d0;
}

.alert-warning {
    color: #b45309;
    background: var(--warning-light);
    border: 1px solid #fde68a;
}

.alert-danger {
    color: #b91c1c;
    background: var(--danger-light);
    border: 1px solid #fecaca;
}


/* =========================================================
   13. HEADER
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    height: var(--header-height);

    display: flex;
    align-items: center;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}

.header-inner {
    width: 100%;
    max-width: var(--container-width);

    height: 100%;

    margin: 0 auto;

    padding:
        0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   14. BRAND
   ========================================================= */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    color: var(--text);

    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;

    border-radius: 50%;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.brand-text strong,
.brand-name {
    color: var(--text);

    font-size: 18px;
    font-weight: 800;
}

.brand-text span,
.brand-tagline {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   15. NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 3px;

    flex: 1;
}

.nav-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        0 13px;

    border-radius:
        10px;

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color var(--transition),
        background var(--transition);
}

.nav-link:hover {
    color: var(--primary);

    background:
        var(--primary-light);
}

.nav-link.active {
    color: var(--primary);

    background:
        var(--primary-light);
}

.nav-link svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   16. HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.icon-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--border);

    border-radius:
        9px;

    background:
        var(--white);

    color:
        var(--text);

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.icon-button:hover {
    color: var(--primary);

    border-color:
        #bfdbfe;

    background:
        var(--primary-light);
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.login-link {
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;

    text-decoration: underline;

    text-underline-offset: 3px;
}

.login-link:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    place-items: center;

    border:
        1px solid var(--border);

    border-radius:
        9px;

    background:
        var(--white);

    color:
        var(--text);
}


/* =========================================================
   17. HERO
   ========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    padding:
        72px 0 90px;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef4ff 50%,
            #f8fafc 100%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -200px;
    right: -120px;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, 0.06);

    pointer-events: none;
}

.hero-grid {
    width: min(
        calc(100% - 40px),
        1280px
    );

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.95fr);

    align-items: center;

    gap: 55px;
}

.hero-content {
    min-width: 0;

    position: relative;

    z-index: 2;
}


/* =========================================================
   18. HERO BADGE
   ========================================================= */

.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 12px;

    border:
        1px solid #dbeafe;

    border-radius:
        999px;

    color:
        var(--primary);

    background:
        rgba(255, 255, 255, 0.8);

    font-size: 11px;
    font-weight: 600;
}

.hero-badge svg {
    width: 15px;
    height: 15px;
}


/* =========================================================
   19. HERO HEADING
   ========================================================= */

.hero h1 {
    max-width: 780px;

    margin-top: 20px;

    color:
        var(--dark);

    font-size:
        clamp(48px, 5.2vw, 76px);

    font-weight:
        800;

    line-height:
        1.02;

    letter-spacing:
        -3px;
}

.hero h1 span {
    color:
        var(--primary);
}


/* =========================================================
   20. HERO DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 700px;

    margin-top: 26px;

    color:
        var(--text-secondary);

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   21. HERO ACTIONS
   ========================================================= */

.hero-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* =========================================================
   22. HERO TRUST
   ========================================================= */

.hero-trust {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 28px;
}

.trust-item {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        var(--text-secondary);

    font-size: 12px;

    font-weight: 500;
}

.trust-item svg {
    width: 17px;
    height: 17px;

    color:
        var(--primary);
}


/* =========================================================
   23. HERO PREVIEW
   ========================================================= */

.hero-preview {
    width: 100%;

    min-width: 0;

    position: relative;

    z-index: 1;
}

.preview-window {
    width: 100%;

    max-width: 600px;

    margin:
        0 auto;

    overflow: hidden;

    border:
        1px solid #dbe3ef;

    border-radius:
        18px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.12);

    transform:
        perspective(1200px)
        rotateY(-2deg);
}

.preview-header {
    height: 52px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        0 17px;

    color:
        var(--text-secondary);

    background:
        #f8fafc;

    border-bottom:
        1px solid var(--border);

    font-size: 11px;
    font-weight: 600;
}

.preview-dots {
    display: flex;

    gap: 5px;
}

.preview-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #cbd5e1;
}

.preview-header > span {
    flex: 1;

    text-align: center;
}

.preview-header svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   24. PREVIEW BODY
   ========================================================= */

.preview-body {
    padding: 22px;

    background:
        #ffffff;
}

.preview-welcome {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.preview-welcome small {
    display: block;

    color:
        var(--text-muted);

    font-size: 10px;
}

.preview-welcome h3 {
    margin-top: 3px;

    color:
        var(--dark);

    font-size: 19px;

    line-height: 1.2;
}

.preview-avatar {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   25. PREVIEW STATS
   ========================================================= */

.preview-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.preview-stat {
    padding:
        13px;

    border:
        1px solid var(--border);

    border-radius:
        12px;

    background:
        #ffffff;
}

.stat-icon {
    width: 30px;
    height: 30px;

    display: grid;

    place-items: center;

    margin-bottom: 9px;

    border-radius: 8px;
}

.stat-icon svg {
    width: 16px;
    height: 16px;
}

.stat-icon.blue {
    color: var(--primary);
    background: #eff6ff;
}

.stat-icon.green {
    color: var(--success);
    background: #f0fdf4;
}

.stat-icon.purple {
    color: var(--purple);
    background: #f5f3ff;
}

.preview-stat strong {
    display: block;

    color:
        var(--dark);

    font-size: 17px;
}

.preview-stat span {
    display: block;

    margin-top: 2px;

    color:
        var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   26. SECTION
   ========================================================= */

.section {
    padding:
        85px 0;
}

.section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 35px;
}

.section-label {
    display: inline-block;

    margin-bottom: 8px;

    color:
        var(--primary);

    font-size: 11px;

    font-weight: 700;

    text-transform:
        uppercase;

    letter-spacing:
        0.08em;
}

.section-label.light {
    color:
        #bfdbfe;
}

.section-title {
    color:
        var(--dark);

    font-size:
        clamp(28px, 4vw, 42px);

    line-height:
        1.15;

    letter-spacing:
        -1px;
}

.section-description {
    max-width: 650px;

    color:
        var(--text-secondary);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   27. GRIDS
   ========================================================= */

.grid-2 {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.grid-3 {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.grid-4 {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   28. FEATURE CARDS
   ========================================================= */

.feature-card {
    position: relative;

    padding:
        24px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--white);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.feature-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #bfdbfe;

    box-shadow:
        var(--shadow-md);
}

.feature-icon {
    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    margin-bottom: 17px;

    border-radius:
        12px;

    color:
        var(--primary);

    background:
        var(--primary-light);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    color:
        var(--dark);

    font-size: 17px;
}

.feature-card p {
    margin-top: 8px;

    color:
        var(--text-secondary);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   29. STATISTICS
   ========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}

.stat-card {
    padding:
        20px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background:
        var(--white);
}

.stat-card strong {
    display: block;

    color:
        var(--dark);

    font-size: 26px;

    line-height: 1.1;
}

.stat-card span {
    display: block;

    margin-top: 5px;

    color:
        var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   30. EXAM CARDS
   ========================================================= */

.exam-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}

.exam-card {
    position: relative;

    display: flex;

    flex-direction: column;

    gap: 7px;

    padding:
        20px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background:
        var(--white);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.exam-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #bfdbfe;

    box-shadow:
        var(--shadow-md);
}

.exam-card > svg:first-child {
    width: 22px;
    height: 22px;

    margin-bottom: 5px;

    color:
        var(--primary);
}

.exam-card strong {
    color:
        var(--dark);

    font-size: 15px;
}

.exam-card span {
    color:
        var(--text-muted);

    font-size: 11px;
}

.exam-arrow {
    position: absolute;

    top: 17px;
    right: 17px;

    width: 16px !important;
    height: 16px !important;

    color:
        var(--text-light) !important;
}


/* =========================================================
   31. CTA
   ========================================================= */

.cta-section {
    padding:
        70px 0;
}

.cta-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding:
        38px 42px;

    border-radius:
        20px;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb
        );

    color:
        var(--white);

    box-shadow:
        0 20px 45px rgba(37, 99, 235, 0.20);
}

.cta-box h2 {
    margin-top: 5px;

    font-size:
        clamp(25px, 3vw, 36px);

    line-height:
        1.15;
}

.cta-box p {
    margin-top: 8px;

    color:
        #dbeafe;

    font-size: 13px;
}


/* =========================================================
   32. FOOTER
   ========================================================= */

.site-footer {
    padding:
        55px 0 25px;

    background:
        #ffffff;

    border-top:
        1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        repeat(3, 1fr);

    gap: 35px;
}

.footer-brand .brand {
    margin-bottom: 15px;
}

.footer-brand p {
    max-width: 330px;

    color:
        var(--text-muted);

    font-size: 12px;

    line-height: 1.7;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.footer-column h4 {
    margin-bottom: 5px;

    color:
        var(--dark);

    font-size: 13px;
}

.footer-column a {
    width: fit-content;

    color:
        var(--text-muted);

    font-size: 12px;

    transition:
        color var(--transition);
}

.footer-column a:hover {
    color:
        var(--primary);
}

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 40px;

    padding-top: 20px;

    border-top:
        1px solid var(--border);

    color:
        var(--text-muted);

    font-size: 11px;
}

.footer-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #22c55e;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12);
}


/* =========================================================
   33. DASHBOARD LAYOUT
   ========================================================= */

.dashboard-layout {
    min-height: 100vh;

    display: flex;

    background:
        var(--background);
}

.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width:
        var(--sidebar-width);

    height: 100vh;

    z-index: 1100;

    overflow-y: auto;

    padding:
        20px 14px;

    background:
        var(--white);

    border-right:
        1px solid var(--border);

    transition:
        transform var(--transition);
}

.dashboard-main {
    width: 100%;

    min-width: 0;

    margin-left:
        var(--sidebar-width);
}

.dashboard-content {
    padding:
        25px;
}

.dashboard-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


/* =========================================================
   34. SIDEBAR
   ========================================================= */

.sidebar-brand {
    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        7px 10px 20px;

    margin-bottom:
        10px;

    border-bottom:
        1px solid var(--border);
}

.sidebar-brand img {
    width: 38px;
    height: 38px;

    border-radius: 50%;
}

.sidebar-nav {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.sidebar-link {
    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 42px;

    padding:
        0 12px;

    border-radius:
        9px;

    color:
        var(--text-secondary);

    font-size: 12px;

    font-weight: 600;
}

.sidebar-link svg {
    width: 17px;
    height: 17px;
}

.sidebar-link:hover {
    color:
        var(--primary);

    background:
        var(--primary-light);
}

.sidebar-link.active {
    color:
        var(--primary);

    background:
        var(--primary-light);
}


/* =========================================================
   35. DASHBOARD CARDS
   ========================================================= */

.dashboard-card {
    padding:
        20px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--white);

    box-shadow:
        var(--shadow-sm);
}

.dashboard-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}

.dashboard-card-header h3 {
    color:
        var(--dark);

    font-size: 15px;
}

.dashboard-card-header span {
    color:
        var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   36. TABLES
   ========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background:
        var(--white);
}

.data-table {
    min-width: 650px;
}

.data-table th,
.data-table td {
    padding:
        13px 15px;

    text-align: left;

    border-bottom:
        1px solid var(--border);

    font-size: 12px;
}

.data-table th {
    color:
        var(--text-secondary);

    background:
        #f8fafc;

    font-size: 11px;

    font-weight: 700;
}

.data-table td {
    color:
        var(--text-secondary);
}

.data-table tbody tr:hover {
    background:
        #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   37. PAGINATION
   ========================================================= */

.pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 20px;
}

.pagination a,
.pagination button {
    min-width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    padding:
        0 9px;

    border:
        1px solid var(--border);

    border-radius:
        7px;

    color:
        var(--text-secondary);

    background:
        var(--white);

    font-size: 11px;
}

.pagination a:hover,
.pagination button:hover,
.pagination .active {
    color:
        var(--white);

    border-color:
        var(--primary);

    background:
        var(--primary);
}


/* =========================================================
   38. MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;
    justify-content: center;

    padding:
        20px;

    background:
        rgba(15, 23, 42, 0.55);

    backdrop-filter:
        blur(4px);
}

.modal-overlay.active,
.modal-overlay.show {
    display: flex;
}

.modal {
    width: 100%;

    max-width: 600px;

    max-height:
        calc(100vh - 40px);

    overflow-y: auto;

    border-radius:
        var(--radius-lg);

    background:
        var(--white);

    box-shadow:
        var(--shadow-xl);
}

.modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        18px 20px;

    border-bottom:
        1px solid var(--border);
}

.modal-header h3 {
    color:
        var(--dark);

    font-size: 16px;
}

.modal-body {
    padding:
        20px;
}

.modal-footer {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding:
        15px 20px;

    border-top:
        1px solid var(--border);
}


/* =========================================================
   39. TOAST
   ========================================================= */

.toast-container {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 3000;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.toast {
    min-width: 280px;

    padding:
        13px 16px;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    background:
        var(--white);

    color:
        var(--text-secondary);

    box-shadow:
        var(--shadow-lg);

    font-size: 12px;
}


/* =========================================================
   40. UTILITY CLASSES
   ========================================================= */

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex !important;
}

.flex-center {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;
}

.w-full {
    width: 100% !important;
}

.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 20px;
}

.mt-5 {
    margin-top: 30px;
}

.mb-1 {
    margin-bottom: 5px;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 30px;
}


/* =========================================================
   41. DARK MODE
   ========================================================= */

.dark-mode {
    --background: #020617;
    --surface: #0f172a;
    --surface-secondary: #1e293b;

    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border: #1e293b;
    --border-dark: #334155;

    --white: #0f172a;
}

.dark-mode body {
    background:
        #020617;

    color:
        #f8fafc;
}

.dark-mode .site-header {
    background:
        rgba(2, 6, 23, 0.94);

    border-color:
        #1e293b;
}

.dark-mode .brand-text strong,
.dark-mode .brand-name,
.dark-mode .hero h1,
.dark-mode .section-title,
.dark-mode .feature-card h3,
.dark-mode .preview-welcome h3,
.dark-mode .preview-stat strong,
.dark-mode .exam-card strong,
.dark-mode .dashboard-card-header h3,
.dark-mode .footer-column h4 {
    color:
        #f8fafc;
}

.dark-mode .hero {
    background:
        linear-gradient(
            135deg,
            #020617,
            #0f172a
        );
}

.dark-mode .preview-window,
.dark-mode .preview-body,
.dark-mode .preview-stat,
.dark-mode .feature-card,
.dark-mode .exam-card,
.dark-mode .dashboard-card,
.dark-mode .card,
.dark-mode .form-control,
.dark-mode .site-footer,
.dark-mode .sidebar {
    background:
        #0f172a;

    border-color:
        #1e293b;
}

.dark-mode .preview-header {
    background:
        #020617;

    border-color:
        #1e293b;
}

.dark-mode .secondary-button,
.dark-mode .icon-button,
.dark-mode .mobile-menu-button,
.dark-mode .btn-outline {
    color:
        #cbd5e1;

    background:
        #0f172a;

    border-color:
        #334155;
}

.dark-mode .site-footer {
    background:
        #020617;
}


/* =========================================================
   42. RESPONSIVE - LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .hero {
        padding:
            85px 0 105px;
    }

    .hero-grid {
        gap:
            75px;
    }

    .hero h1 {
        font-size:
            78px;
    }
}


/* =========================================================
   43. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

    :root {
        --header-height: 74px;
    }

    .main-nav {
        gap: 0;
    }

    .nav-link {
        padding:
            0 9px;

        font-size: 12px;
    }

    .hero {
        padding:
            65px 0 80px;
    }

    .hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 0.9fr);

        gap:
            35px;
    }

    .hero h1 {
        font-size:
            clamp(44px, 5.4vw, 62px);

        letter-spacing:
            -2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .exam-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   44. RESPONSIVE - 900px
   ========================================================= */

@media (max-width: 900px) {

    .header-actions .login-link,
    .header-actions .primary-button {
        display: none;
    }

    .main-nav {
        position: fixed;

        top:
            var(--header-height);

        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding:
            12px;

        background:
            var(--white);

        border-bottom:
            1px solid var(--border);

        box-shadow:
            var(--shadow-md);
    }

    .main-nav.open,
    .main-nav.active {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;

        min-height: 44px;

        padding:
            0 13px;
    }

    .mobile-menu-button {
        display: grid;
    }

    .hero {
        padding:
            55px 0 70px;
    }

    .hero-grid {
        grid-template-columns:
            1fr;

        gap:
            45px;
    }

    .hero-content {
        text-align:
            center;
    }

    .hero-badge {
        margin:
            0 auto;
    }

    .hero h1 {
        margin-left:
            auto;

        margin-right:
            auto;

        font-size:
            clamp(44px, 8vw, 62px);
    }

    .hero-description {
        margin-left:
            auto;

        margin-right:
            auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content:
            center;
    }

    .hero-preview {
        max-width:
            650px;

        margin:
            0 auto;
    }

    .preview-window {
        transform:
            none;
    }

    .grid-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-main {
        margin-left:
            0;
    }

    .sidebar {
        transform:
            translateX(-100%);
    }

    .sidebar.open {
        transform:
            translateX(0);
    }
}


/* =========================================================
   45. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 650px) {

    :root {
        --header-height: 68px;
    }

    .container {
        padding-left:
            15px;

        padding-right:
            15px;
    }

    .header-inner {
        padding:
            0 15px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand-text strong,
    .brand-name {
        font-size:
            16px;
    }

    .brand-text span,
    .brand-tagline {
        font-size:
            10px;
    }

    .hero {
        padding:
            45px 0 60px;
    }

    .hero-grid {
        width:
            90%;

        gap:
            35px;
    }

    .hero h1 {
        font-size:
            clamp(38px, 11vw, 52px);

        letter-spacing:
            -1.8px;
    }

    .hero-description {
        font-size:
            13px;

        line-height:
            1.65;
    }

    .hero-actions {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .primary-button,
    .secondary-button {
        width:
            100%;
    }

    .hero-trust {
        display:
            grid;

        grid-template-columns:
            1fr;

        justify-items:
            center;

        gap:
            10px;
    }

    .preview-body {
        padding:
            15px;
    }

    .preview-stats {
        grid-template-columns:
            1fr;
    }

    .preview-stat {
        display:
            flex;

        align-items:
            center;

        gap:
            12px;
    }

    .stat-icon {
        margin:
            0;
    }

    .section {
        padding:
            55px 0;
    }

    .section-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns:
            1fr;
    }

    .stats-grid {
        grid-template-columns:
            1fr;
    }

    .exam-grid {
        grid-template-columns:
            1fr;
    }

    .cta-section {
        padding:
            50px 0;
    }

    .cta-box {
        align-items:
            flex-start;

        flex-direction:
            column;

        padding:
            28px;
    }

    .cta-box .light-button {
        width:
            100%;
    }

    .footer-grid {
        grid-template-columns:
            1fr;
    }

    .footer-bottom {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .dashboard-content {
        padding:
            15px;
    }

    .dashboard-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .toast-container {
        right:
            10px;

        bottom:
            10px;

        left:
            10px;
    }

    .toast {
        width:
            100%;

        min-width:
            0;
    }

    .modal-overlay {
        padding:
            10px;
    }

    .modal {
        max-height:
            calc(100vh - 20px);
    }
}


/* =========================================================
   46. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .hero h1 {
        font-size:
            36px;
    }

    .hero-badge {
        font-size:
            10px;
    }

    .hero-description {
        font-size:
            12px;
    }

    .preview-header {
        height:
            46px;

        padding:
            0 12px;
    }

    .preview-body {
        padding:
            12px;
    }

    .preview-welcome h3 {
        font-size:
            16px;
    }

    .section-title {
        font-size:
            27px;
    }

    .dashboard-content {
        padding:
            12px;
    }
}


/* =========================================================
   47. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}

/* =========================================================
   48. HOME PAGE - CONTINUE LEARNING
   ========================================================= */

.continue-learning,
.learning-section {
    width: 100%;
}

.continue-learning-header,
.learning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.continue-learning-header h2,
.learning-header h2 {
    color: var(--dark);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.2;
}

.view-all,
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--primary);
    font-size: 12px;
    font-weight: 700;

    transition:
        color var(--transition),
        transform var(--transition);
}

.view-all:hover,
.view-all-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

.view-all svg,
.view-all-link svg {
    width: 15px;
    height: 15px;
}


/* Learning Cards */

.learning-grid,
.continue-learning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.learning-card,
.progress-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.learning-card:hover,
.progress-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}

.learning-card-header,
.progress-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.learning-card-title,
.progress-card-title {
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
}

.learning-percentage,
.progress-percentage {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.learning-progress,
.progress-bar {
    width: 100%;
    height: 7px;

    margin-top: 14px;

    overflow: hidden;

    border-radius: 999px;

    background: #e2e8f0;
}

.learning-progress span,
.progress-bar span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: var(--primary);

    transition: width 0.4s ease;
}

.learning-card:nth-child(2) .learning-progress span,
.progress-card:nth-child(2) .progress-bar span {
    background: var(--success);
}

.learning-card:nth-child(3) .learning-progress span,
.progress-card:nth-child(3) .progress-bar span {
    background: var(--purple);
}


/* =========================================================
   49. TODAY'S GOAL
   ========================================================= */

.today-goal,
.daily-goal {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 20px;
    padding: 20px 22px;

    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #ffffff 100%
        );
}

.today-goal-content,
.daily-goal-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.today-goal-icon,
.daily-goal-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    color: var(--primary);
    background: #dbeafe;
}

.today-goal-icon svg,
.daily-goal-icon svg {
    width: 21px;
    height: 21px;
}

.today-goal-label,
.daily-goal-label {
    display: block;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.today-goal h3,
.daily-goal h3 {
    margin-top: 3px;

    color: var(--dark);

    font-size: 15px;
    font-weight: 700;
}

.today-goal-action,
.daily-goal-action {
    flex-shrink: 0;
}


/* =========================================================
   50. QUICK ACCESS / FEATURE LINKS
   ========================================================= */

.quick-access,
.quick-links {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;

    margin-top: 20px;
}

.quick-card,
.quick-link-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 13px;

    min-height: 82px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--white);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.quick-card:hover,
.quick-link-card:hover {
    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow-md);
}

.quick-card-icon,
.quick-link-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color: var(--primary);
    background: var(--primary-light);
}

.quick-card-icon svg,
.quick-link-icon svg {
    width: 20px;
    height: 20px;
}

.quick-card strong,
.quick-link-card strong {
    display: block;

    color: var(--dark);

    font-size: 13px;
    font-weight: 700;
}

.quick-card span,
.quick-link-card span {
    display: block;

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   51. EVERYTHING YOU NEED
   ========================================================= */

.everything-section,
.resources-section {
    position: relative;
}

.everything-section .section-header,
.resources-section .section-header {
    margin-bottom: 30px;
}

.everything-section .section-title,
.resources-section .section-title {
    max-width: 700px;
}

.resource-grid,
.everything-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* Resource Cards */

.resource-card,
.everything-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 245px;

    padding: 24px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.resource-card:hover,
.everything-card:hover {
    transform: translateY(-4px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow-lg);
}

.resource-card::after,
.everything-card::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: -45px;
    bottom: -45px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.05);

    pointer-events: none;
}

.resource-card .feature-icon,
.everything-card .feature-icon {
    margin-bottom: 18px;
}

.resource-card h3,
.everything-card h3 {
    color: var(--dark);

    font-size: 17px;
    font-weight: 750;
}

.resource-card p,
.everything-card p {
    margin-top: 8px;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.7;
}

.resource-card .primary-button,
.everything-card .primary-button,
.resource-card .secondary-button,
.everything-card .secondary-button {
    width: fit-content;

    min-height: 40px;

    margin-top: auto;
    padding: 0 14px;

    font-size: 12px;
}


/* =========================================================
   52. CURRENT AFFAIRS SECTION
   ========================================================= */

.current-affairs-section {
    background: #ffffff;
}

.current-affairs-header,
.affairs-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.current-affairs-title,
.affairs-title {
    color: var(--dark);

    font-size: 30px;
    font-weight: 800;

    line-height: 1.2;
}

.current-affairs-description,
.affairs-description {
    max-width: 650px;

    margin-top: 8px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;
}

.current-affairs-action {
    flex-shrink: 0;
}


/* Date / Update Header */

.updates-header,
.today-updates {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 18px;
}

.updates-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: var(--primary);
    background: var(--primary-light);
}

.updates-icon svg {
    width: 20px;
    height: 20px;
}

.updates-header strong,
.today-updates strong {
    display: block;

    color: var(--dark);

    font-size: 13px;
    font-weight: 750;
}

.updates-header span,
.today-updates span {
    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 11px;
}


/* Date Box */

.update-date,
.date-card {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 70px;
    min-height: 72px;

    padding: 8px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--white);
}

.update-date strong,
.date-card strong {
    color: var(--primary);

    font-size: 25px;
    font-weight: 800;

    line-height: 1;
}

.update-date span,
.date-card span {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 600;
}


/* Affairs Categories */

.affairs-grid,
.current-affairs-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.affairs-item,
.current-affair-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 55px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--text-secondary);

    background: var(--white);

    font-size: 12px;
    font-weight: 600;

    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.affairs-item:hover,
.current-affair-item:hover {
    color: var(--primary);

    border-color: #bfdbfe;

    background: var(--primary-light);

    transform: translateY(-1px);
}

.affairs-item svg,
.current-affair-item svg {
    width: 16px;
    height: 16px;

    color: var(--text-light);
}

.affairs-item:hover svg,
.current-affair-item:hover svg {
    color: var(--primary);
}


/* =========================================================
   53. CAREER OPPORTUNITIES
   ========================================================= */

.career-section,
.jobs-section {
    background: var(--background);
}

.career-header,
.jobs-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.career-header h2,
.jobs-header h2 {
    color: var(--dark);

    font-size: clamp(28px, 4vw, 40px);

    font-weight: 800;

    line-height: 1.15;
}

.career-header p,
.jobs-header p {
    margin-top: 8px;

    color: var(--text-secondary);

    font-size: 13px;
}


/* Job Cards */

.job-grid,
.career-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.job-card,
.career-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.job-card:hover,
.career-card:hover {
    transform: translateY(-3px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow-md);
}


/* Job Letter Icon */

.job-letter,
.job-logo-letter {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin-bottom: 15px;

    border-radius: 11px;

    color: var(--primary);

    background: var(--primary-light);

    font-size: 16px;
    font-weight: 800;
}

.job-card h3,
.career-card h3 {
    color: var(--dark);

    font-size: 16px;
    font-weight: 750;
}

.job-card p,
.career-card p {
    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 12px;

    line-height: 1.6;
}

.job-meta,
.career-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 15px;
}

.job-meta span,
.career-meta span {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--text-muted);

    font-size: 10px;
    font-weight: 600;
}

.job-meta svg,
.career-meta svg {
    width: 14px;
    height: 14px;
}

.job-card .btn,
.career-card .btn {
    width: fit-content;

    margin-top: 18px;

    min-height: 38px;

    font-size: 11px;
}


/* =========================================================
   54. PRACTICE EVERY DAY
   ========================================================= */

.practice-section {
    background: #ffffff;
}

.practice-header {
    max-width: 720px;

    margin-bottom: 30px;
}

.practice-header h2 {
    color: var(--dark);

    font-size: clamp(28px, 4vw, 40px);

    font-weight: 800;

    line-height: 1.15;
}

.practice-header p {
    margin-top: 10px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;
}


/* Practice Features */

.practice-features {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 25px;
}

.practice-feature {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 15px;

    border: 1px solid var(--border);

    border-radius: 11px;

    background: var(--white);
}

.practice-feature-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    color: var(--primary);
    background: var(--primary-light);
}

.practice-feature-icon svg {
    width: 17px;
    height: 17px;
}

.practice-feature span {
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 700;
}


/* Practice Action */

.practice-action {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    margin-top: 5px;
}


/* =========================================================
   55. DAILY QUIZ CARD
   ========================================================= */

.daily-quiz,
.quiz-card {
    position: relative;

    padding: 24px;

    margin-top: 30px;

    border: 1px solid #dbeafe;
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #ffffff
        );

    box-shadow: var(--shadow-sm);
}

.daily-quiz-header,
.quiz-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}

.daily-quiz-title,
.quiz-card-title {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--dark);

    font-size: 14px;
    font-weight: 750;
}

.daily-quiz-title svg,
.quiz-card-title svg {
    width: 19px;
    height: 19px;

    color: var(--primary);
}

.quiz-time {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 9px;

    border-radius: 999px;

    color: var(--text-secondary);

    background: #f1f5f9;

    font-size: 10px;
    font-weight: 700;
}

.quiz-time svg {
    width: 13px;
    height: 13px;
}

.quiz-question-count {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 600;
}

.daily-quiz h3,
.quiz-card h3 {
    max-width: 650px;

    margin-top: 8px;

    color: var(--dark);

    font-size: 18px;

    line-height: 1.45;
}


/* Quiz Options */

.quiz-options,
.question-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 18px;
}

.quiz-option,
.question-option {
    display: flex;

    align-items: center;

    min-height: 50px;

    padding: 0 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text-secondary);

    background: var(--white);

    font-size: 12px;
    font-weight: 600;

    transition:
        border-color var(--transition),
        background var(--transition),
        color var(--transition);
}

.quiz-option:hover,
.question-option:hover {
    color: var(--primary);

    border-color: #93c5fd;

    background: var(--primary-light);
}

.quiz-option.selected,
.question-option.selected {
    color: var(--primary);

    border-color: var(--primary);

    background: var(--primary-light);
}


/* =========================================================
   56. LEARN & GROW
   ========================================================= */

.learn-section,
.learn-grow-section {
    background: var(--background);
}

.learn-header,
.learn-grow-header {
    margin-bottom: 30px;
}

.learn-header h2,
.learn-grow-header h2 {
    color: var(--dark);

    font-size: clamp(28px, 4vw, 40px);

    font-weight: 800;

    line-height: 1.15;
}

.learn-header p,
.learn-grow-header p {
    max-width: 650px;

    margin-top: 9px;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.7;
}


/* Subjects */

.subject-grid,
.subjects-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}

.subject-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 155px;

    padding: 19px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.subject-card:hover {
    transform: translateY(-3px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow-md);
}

.subject-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    border-radius: 10px;

    color: var(--primary);

    background: var(--primary-light);
}

.subject-icon svg {
    width: 19px;
    height: 19px;
}

.subject-card h3 {
    color: var(--dark);

    font-size: 14px;
    font-weight: 750;
}

.subject-card p {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   57. LINK + ICON ALIGNMENT
   ========================================================= */

a svg,
button svg {
    flex-shrink: 0;
}

.link-with-icon {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}

.link-with-icon svg {
    width: 15px;
    height: 15px;

    transition:
        transform var(--transition);
}

.link-with-icon:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   58. SVG PLACEHOLDER HANDLING
   ========================================================= */

.feature-card > svg,
.resource-card > svg,
.everything-card > svg,
.job-card > svg,
.career-card > svg,
.subject-card > svg,
.quick-card > svg {
    width: 42px;
    height: 42px;

    margin-bottom: 15px;

    color: var(--primary);
}


/* =========================================================
   59. HOME PAGE SPACING
   ========================================================= */

.home-section {
    padding: 75px 0;
}

.home-section + .home-section {
    border-top: 1px solid rgba(226, 232, 240, 0.65);
}

.home-content {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin: 0 auto;
}


/* =========================================================
   60. HOME PAGE RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .learning-grid,
    .continue-learning-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .quick-access,
    .quick-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .resource-grid,
    .everything-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .job-grid,
    .career-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .affairs-grid,
    .current-affairs-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .practice-features {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .subject-grid,
    .subjects-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .learning-grid,
    .continue-learning-grid {
        grid-template-columns:
            1fr;
    }

    .learning-card,
    .progress-card {
        padding: 17px;
    }

    .today-goal,
    .daily-goal {
        align-items: flex-start;

        flex-direction: column;
    }

    .today-goal-action,
    .daily-goal-action {
        width: 100%;
    }

    .today-goal-action .btn,
    .daily-goal-action .btn {
        width: 100%;
    }

    .resource-grid,
    .everything-grid {
        grid-template-columns:
            1fr;
    }

    .job-grid,
    .career-grid {
        grid-template-columns:
            1fr;
    }

    .current-affairs-header,
    .affairs-header,
    .career-header,
    .jobs-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .current-affairs-action,
    .career-header .btn,
    .jobs-header .btn {
        width: 100%;
    }

    .current-affairs-action .btn {
        width: 100%;
    }

    .subject-grid,
    .subjects-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .continue-learning-header,
    .learning-header {
        align-items: center;
    }

    .continue-learning-header h2,
    .learning-header h2 {
        font-size: 18px;
    }

    .today-goal,
    .daily-goal {
        padding: 17px;
    }

    .today-goal-content,
    .daily-goal-content {
        align-items: flex-start;
    }

    .quick-access,
    .quick-links {
        grid-template-columns:
            1fr;
    }

    .affairs-grid,
    .current-affairs-grid {
        grid-template-columns:
            1fr;
    }

    .practice-features {
        grid-template-columns:
            1fr;
    }

    .quiz-options,
    .question-options {
        grid-template-columns:
            1fr;
    }

    .daily-quiz,
    .quiz-card {
        padding: 18px;
    }

    .daily-quiz-header,
    .quiz-card-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .subject-grid,
    .subjects-grid {
        grid-template-columns:
            1fr;
    }

    .subject-card {
        min-height: 130px;
    }

    .home-section {
        padding: 55px 0;
    }

    .home-content {
        width: calc(100% - 30px);
    }
}


/* =========================================================
   61. DARK MODE - HOME PAGE
   ========================================================= */

.dark-mode .continue-learning-header h2,
.dark-mode .learning-header h2,
.dark-mode .learning-card-title,
.dark-mode .progress-card-title,
.dark-mode .today-goal h3,
.dark-mode .daily-goal h3,
.dark-mode .resource-card h3,
.dark-mode .everything-card h3,
.dark-mode .current-affairs-title,
.dark-mode .affairs-title,
.dark-mode .career-header h2,
.dark-mode .jobs-header h2,
.dark-mode .job-card h3,
.dark-mode .career-card h3,
.dark-mode .practice-header h2,
.dark-mode .daily-quiz-title,
.dark-mode .quiz-card-title,
.dark-mode .daily-quiz h3,
.dark-mode .quiz-card h3,
.dark-mode .learn-header h2,
.dark-mode .learn-grow-header h2,
.dark-mode .subject-card h3,
.dark-mode .quick-card strong,
.dark-mode .quick-link-card strong {
    color: #f8fafc;
}

.dark-mode .learning-card,
.dark-mode .progress-card,
.dark-mode .today-goal,
.dark-mode .daily-goal,
.dark-mode .quick-card,
.dark-mode .quick-link-card,
.dark-mode .resource-card,
.dark-mode .everything-card,
.dark-mode .job-card,
.dark-mode .career-card,
.dark-mode .subject-card,
.dark-mode .daily-quiz,
.dark-mode .quiz-card,
.dark-mode .practice-feature,
.dark-mode .affairs-item,
.dark-mode .current-affair-item,
.dark-mode .update-date,
.dark-mode .date-card {
    background: #0f172a;

    border-color: #1e293b;
}

.dark-mode .today-goal,
.dark-mode .daily-goal,
.dark-mode .daily-quiz,
.dark-mode .quiz-card {
    background:
        linear-gradient(
            135deg,
            #0f172a,
            #111827
        );

    border-color: #1e3a8a;
}

.dark-mode .learning-progress,
.dark-mode .progress-bar {
    background: #334155;
}

.dark-mode .quiz-option,
.dark-mode .question-option {
    background: #0f172a;

    border-color: #334155;

    color: #cbd5e1;
}

.dark-mode .quiz-option:hover,
.dark-mode .question-option:hover {
    background: #172554;

    border-color: #3b82f6;

    color: #bfdbfe;
}


/* =========================================================
   END OF HOME PAGE ADDITIONAL STYLES
   ========================================================= */
/* =========================================================
   END OF MAIN.CSS
   ========================================================= */
/* =========================================================
   MANATRICK HOMEPAGE — LAYOUT REPAIR / PREMIUM OVERRIDES
   These rules fix the homepage layout collisions in the
   original stylesheet while keeping the existing design system.
   ========================================================= */

:root {
    --container-width: 1620px;
}

/* Page sections */
.section-light { background: #ffffff; }
.section-dark {
    background: linear-gradient(135deg, #0b1733 0%, #102b63 100%);
    color: #ffffff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    color: var(--dark);
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.section-heading p {
    max-width: 760px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.section-heading.row-heading {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.text-button svg,
.job-link svg {
    width: 17px;
    height: 17px;
    transition: transform var(--transition);
}

.text-button:hover svg,
.job-link:hover svg { transform: translateX(3px); }

/* Hero — wider desktop composition */
.hero-grid {
    width: min(calc(100% - 40px), var(--container-width));
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 55px;
}

.preview-window {
    max-width: 760px;
    border-radius: 22px;
}

.preview-body { padding: 26px; }

/* IMPORTANT: quick-access is a section, quick-grid is the grid. */
.quick-access {
    display: block;
    margin-top: 0;
    padding: 28px 0;
    background: #ffffff;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.quick-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
}

.quick-icon svg { width: 21px; height: 21px; }
.quick-icon.green { color: var(--success); background: var(--success-light); }
.quick-icon.purple { color: var(--purple); background: var(--purple-light); }
.quick-icon.orange { color: var(--warning); background: var(--warning-light); }

.quick-arrow {
    width: 20px !important;
    height: 20px !important;
    margin-left: auto;
    color: #94a3b8;
    transition: color var(--transition), transform var(--transition);
}

.quick-card:hover .quick-arrow { color: var(--primary); transform: translate(2px, -2px); }

/* Feature cards — fixes the full-width stacked cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card.large { grid-column: span 1; }

.feature-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 20px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.feature-card a svg { width: 16px; height: 16px; transition: transform var(--transition); }
.feature-card a:hover svg { transform: translateX(3px); }

.feature-icon.green { color: var(--success); background: var(--success-light); }
.feature-icon.purple { color: var(--purple); background: var(--purple-light); }
.feature-icon.orange { color: var(--warning); background: var(--warning-light); }
.feature-icon.red { color: var(--danger); background: var(--danger-light); }
.feature-icon.teal { color: var(--info); background: var(--info-light); }

/* Current affairs — fixes .date-card collision */
.content-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 70px;
}

.content-split > div:first-child h2 {
    color: var(--dark);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.8px;
}

.content-split > div:first-child p {
    max-width: 650px;
    margin: 14px 0 25px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.date-card {
    width: 100%;
    min-height: 0;
    padding: 26px;
    display: block;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.date-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.date-header svg { width: 20px; height: 20px; color: var(--primary); }

.date-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
}

.date-number {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    flex: 0 0 76px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 32px;
    font-weight: 800;
}

.date-content strong {
    display: block;
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
}

.date-content span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-list > div {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
}

.category-list span {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
}

.category-list strong {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 14px;
}

/* Jobs */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.job-card { min-height: 265px; }

.job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.company-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
}

.job-tag {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--surface-secondary);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
}

.job-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: auto;
    padding-top: 18px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

/* Quizzes */
.quiz-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 70px;
    padding: 20px 0;
}

.section-dark .quiz-content h2 {
    margin-top: 5px;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.section-dark .quiz-content p {
    max-width: 620px;
    margin: 14px 0 22px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.75;
}

.quiz-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin-bottom: 25px;
}

.quiz-points > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

.quiz-points svg { width: 19px; height: 19px; color: #60a5fa; }

.quiz-preview {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 25px 70px rgba(2, 6, 23, .28);
}

.quiz-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
}

.quiz-question { padding: 24px 0 10px; }
.quiz-question small { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.quiz-question h3 {
    max-width: 700px;
    margin-top: 7px;
    color: var(--dark);
    font-size: 22px;
    line-height: 1.35;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.quiz-options > div {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 0 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.quiz-options > div:hover {
    border-color: #93c5fd;
    background: var(--primary-light);
    color: var(--primary);
}

/* Study */
.study-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.study-card {
    min-height: 175px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.study-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}

.study-card > svg {
    width: 28px;
    height: 28px;
    margin-bottom: 22px;
    color: var(--primary);
}

.study-card h3 { color: var(--dark); font-size: 17px; font-weight: 800; }
.study-card span { display: block; margin-top: 6px; color: var(--text-muted); font-size: 12px; }

/* Exam cards — six items should form a clean responsive grid */
.exam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.exam-card { min-height: 145px; }

/* Footer / general polish */
.site-footer { margin-top: 0; }

/* Fix the JS class name used by index.html */
@media (max-width: 900px) {
    .main-nav.mobile-open { display: flex; }
    .quick-grid,
    .feature-grid,
    .jobs-grid,
    .study-grid,
    .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-split,
    .quiz-section { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 650px) {
    .hero-grid { width: calc(100% - 30px); }
    .quick-grid,
    .feature-grid,
    .jobs-grid,
    .study-grid,
    .exam-grid,
    .category-list,
    .quiz-options,
    .quiz-points { grid-template-columns: 1fr; }
    .section-heading.row-heading { align-items: flex-start; flex-direction: column; }
    .content-split > div:first-child h2,
    .section-dark .quiz-content h2 { font-size: 34px; }
    .date-card { padding: 20px; }
    .date-content strong { font-size: 19px; }
    .quiz-preview { padding: 20px; }
}

/* Hero dashboard preview details */
.preview-section { margin-top: 24px; }
.preview-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}
.preview-section-title strong { color: var(--dark); font-size: 14px; }
.preview-section-title a { color: var(--primary); font-size: 11px; font-weight: 700; }
.progress-item + .progress-item { margin-top: 13px; }
.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 11px;
}
.progress-info strong { color: var(--dark); font-size: 11px; }
.preview-body .progress-bar { margin-top: 0; height: 7px; }
.daily-task {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--background);
}
.daily-task-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
}
.daily-task-icon svg { width: 19px; height: 19px; }
.daily-task > div:nth-child(2) { flex: 1; min-width: 0; }
.daily-task strong { display: block; color: var(--dark); font-size: 12px; }
.daily-task span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.daily-task > svg { width: 17px; height: 17px; color: var(--text-muted); }

/* =========================================================
   GLOBAL RESPONSIVE LEFT & RIGHT PADDING
   ========================================================= */
.container {
    width: min(100% - 48px, 1400px);
    margin-inline: auto;
}

@media (max-width: 1200px) {
    .container { width: min(100% - 40px, 1120px); }
}

@media (max-width: 768px) {
    .container { width: min(100% - 32px, 680px); }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 24px); }
}

.section,
.hero,
.cta-section,
.site-footer { overflow-x: clip; }

.section > .container,
.hero > .container,
.cta-section > .container,
.site-footer > .container {
    padding-left: 0;
    padding-right: 0;
}

/* =========================================================
   FINAL DISPLAY-SIZE / DESKTOP ALIGNMENT FIX
   ========================================================= */

@media (min-width: 901px) {
    .container {
        width: min(100% - 64px, 1740px);
        max-width: 1740px;
        padding-left: 0;
        padding-right: 0;
        margin-inline: auto;
    }

    .hero {
        padding: 34px 0 78px;
    }

    .hero-grid {
        width: min(100% - 64px, 1740px);
        max-width: 1740px;
        margin-inline: auto;
        grid-template-columns: minmax(0, 800px) minmax(0, 1fr);
        gap: 85px;
        align-items: start;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero h1 {
        max-width: 760px;
        font-size: clamp(62px, 4.2vw, 78px);
        line-height: 1.03;
        letter-spacing: -3px;
    }

    .hero-description {
        max-width: 720px;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-preview {
        width: 100%;
        max-width: 760px;
        margin-top: 38px;
        justify-self: start;
    }

    .preview-window {
        width: 100%;
        max-width: 760px;
        margin: 0;
        transform: none;
        border-radius: 20px;
    }
}

/* 1200px–1400px: keep the hero balanced instead of oversized */
@media (min-width: 901px) and (max-width: 1400px) {
    .container,
    .hero-grid {
        width: calc(100% - 48px);
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(54px, 5vw, 70px);
    }

    .hero-preview,
    .preview-window {
        max-width: 650px;
    }
}

/* Tablet: use a clean stacked hero */
@media (max-width: 900px) {
    .container {
        width: calc(100% - 40px);
        max-width: 760px;
        padding-left: 0;
        padding-right: 0;
    }

    .hero {
        padding: 42px 0 64px;
    }

    .hero-grid {
        width: calc(100% - 40px);
        max-width: 760px;
        grid-template-columns: 1fr;
        gap: 34px;
        align-items: start;
    }

    .hero-preview {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .preview-window {
        max-width: 680px;
        margin-inline: auto;
        transform: none;
    }
}

/* Mobile: correct gutters and scale everything to the viewport */
@media (max-width: 650px) {
    .container,
    .hero-grid {
        width: calc(100% - 32px);
        max-width: none;
    }

    .hero {
        padding: 30px 0 50px;
    }

    .hero h1 {
        font-size: clamp(38px, 10.5vw, 52px);
        line-height: 1.04;
        letter-spacing: -1.8px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-preview,
    .preview-window {
        max-width: 100%;
    }

    .preview-body {
        padding: 18px;
    }
}

@media (max-width: 400px) {
    .container,
    .hero-grid {
        width: calc(100% - 24px);
    }

    .hero h1 {
        font-size: 37px;
        letter-spacing: -1.4px;
    }
}

/* =========================================================
   FINAL PAGE PROPORTION & CONTENT-SIZE FIX
   ========================================================= */

/* Keep the whole website visually centered on wide monitors. */
@media (min-width: 1401px) {
    .container {
        width: min(100% - 96px, 1680px);
        max-width: 1680px;
    }

    .hero {
        padding: 44px 0 74px;
    }

    .hero-grid {
        width: min(100% - 96px, 1680px);
        max-width: 1680px;
        grid-template-columns: minmax(0, 720px) minmax(0, 680px);
        justify-content: space-between;
        gap: 70px;
        align-items: center;
    }

    .hero-content {
        max-width: 720px;
    }

    .hero h1 {
        max-width: 720px;
        margin-top: 22px;
        font-size: 76px;
        line-height: 1.02;
        letter-spacing: -3.2px;
    }

    .hero-description {
        max-width: 700px;
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-preview {
        width: 680px;
        max-width: 680px;
        margin-top: 0;
        justify-self: end;
    }

    .preview-window {
        width: 680px;
        max-width: 680px;
        border-radius: 22px;
    }
}

/* 1200–1400px: preserve the two-column desktop composition. */
@media (min-width: 901px) and (max-width: 1400px) {
    .container {
        width: calc(100% - 64px);
        max-width: 1280px;
    }

    .hero {
        padding: 40px 0 68px;
    }

    .hero-grid {
        width: calc(100% - 64px);
        max-width: 1280px;
        grid-template-columns: minmax(0, 0.98fr) minmax(0, 0.92fr);
        gap: 48px;
        align-items: center;
    }

    .hero h1 {
        max-width: 650px;
        font-size: clamp(54px, 5.1vw, 68px);
        line-height: 1.03;
        letter-spacing: -2.6px;
    }

    .hero-description {
        max-width: 620px;
        font-size: 15px;
    }

    .hero-preview,
    .preview-window {
        width: 100%;
        max-width: 620px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .hero-grid {
        width: calc(100% - 40px);
        max-width: 760px;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        max-width: 700px;
    }

    .hero-preview,
    .preview-window {
        width: 100%;
        max-width: 700px;
        margin-inline: auto;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .container,
    .hero-grid {
        width: calc(100% - 32px);
        max-width: none;
    }

    .hero {
        padding: 30px 0 52px;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(38px, 10.5vw, 52px);
        line-height: 1.04;
        letter-spacing: -1.8px;
    }

    .hero-description {
        max-width: 100%;
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.65;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions > * {
        flex: 1 1 100%;
    }

    .hero-preview,
    .preview-window {
        width: 100%;
        max-width: 100%;
    }

    .preview-body {
        padding: 18px;
    }
}

@media (max-width: 400px) {
    .container,
    .hero-grid {
        width: calc(100% - 24px);
    }

    .hero h1 {
        font-size: 37px;
        letter-spacing: -1.4px;
    }
}