/* =========================================================
   QUIZ GURU
   PROFESSIONAL GLOBAL STYLES
========================================================= */

:root {
    --primary: #635bff;
    --primary-dark: #5148e5;
    --primary-light: #eeecff;

    --dark: #101828;
    --dark-2: #172033;
    --text: #344054;
    --muted: #667085;

    --white: #ffffff;
    --background: #f8f9fc;
    --border: #e7e9ef;

    --green: #12b76a;
    --blue: #2e90fa;
    --orange: #f79009;
    --red: #f04438;

    --shadow-sm: 0 4px 16px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 14px 40px rgba(16, 24, 40, 0.08);

    --radius: 18px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    height: 76px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(12px);
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #756cff,
            #5148e5
        );

    color: white;

    font-size: 22px;
    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(99, 91, 255, 0.25);
}

.brand-name {
    color: var(--dark);
    font-size: 23px;
    letter-spacing: -0.8px;
}

.brand-name span {
    color: var(--primary);
}


/* NAV */

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    position: relative;

    color: #667085;

    font-size: 14px;
    font-weight: 650;

    transition:
        color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -27px;

    height: 2px;

    background: var(--primary);
    border-radius: 10px;
}


/* HEADER BUTTON */

.header-button {
    padding: 11px 18px;

    background: var(--dark);
    color: white;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.header-button:hover {
    background: #273247;
    transform: translateY(-1px);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(99, 91, 255, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #101828 0%,
            #141d32 55%,
            #171c3e 100%
        );

    color: white;
}

.hero-background {
    position: absolute;

    width: 650px;
    height: 650px;

    right: -250px;
    top: -280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.17),
            transparent 68%
        );

    pointer-events: none;
}

.hero-layout {
    min-height: 590px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;

    padding-top: 75px;
    padding-bottom: 75px;
}


/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;

    color: #b9b5ff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.eyebrow span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #8179ff;

    box-shadow:
        0 0 0 5px rgba(129, 121, 255, 0.12);
}

.hero h1 {
    max-width: 650px;

    font-size:
        clamp(45px, 5vw, 67px);

    line-height: 1.02;

    letter-spacing: -3px;

    font-weight: 850;

    margin-bottom: 24px;
}

.hero h1 span {
    color: #8179ff;
}

.hero-description {
    max-width: 570px;

    color: #b7c0d1;

    font-size: 17px;

    line-height: 1.75;

    margin-bottom: 32px;
}


/* HERO BUTTONS */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 40px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.primary-button {
    background: white;
    color: var(--dark);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #f3f4f6;
}

.primary-button span {
    font-size: 19px;
}

.secondary-button {
    color: white;

    border: 1px solid rgba(255,255,255,0.16);

    background: rgba(255,255,255,0.05);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.25);
}


/* HERO STATS */

.hero-stats {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    font-size: 18px;
    color: white;
}

.hero-stat span {
    font-size: 11px;
    color: #8f9aad;
}

.stat-divider {
    width: 1px;
    height: 32px;

    background: rgba(255,255,255,0.13);
}


/* =========================================================
   HERO QUIZ PREVIEW
========================================================= */

.hero-preview {
    position: relative;

    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-glow {
    position: absolute;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.28),
            transparent 70%
        );

    filter: blur(5px);
}


/* PREVIEW CARD */

.preview-card {
    position: relative;
    z-index: 2;

    width: min(430px, 100%);

    padding: 27px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.06)
        );

    border: 1px solid rgba(255,255,255,0.13);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.3);

    backdrop-filter: blur(20px);
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 19px;
}

.preview-top div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-label {
    color: #a9a4ff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.preview-top strong {
    font-size: 14px;
}

.preview-number {
    color: #9aa4b7;
    font-size: 11px;
    font-weight: 700;
}


/* PROGRESS */

.preview-progress {
    height: 5px;

    margin-bottom: 27px;

    background: rgba(255,255,255,0.09);

    border-radius: 10px;

    overflow: hidden;
}

.preview-progress span {
    display: block;

    width: 42%;
    height: 100%;

    border-radius: inherit;

    background: #756cff;
}


/* QUESTION */

.preview-card h3 {
    font-size: 22px;
    line-height: 1.3;

    letter-spacing: -0.5px;

    margin-bottom: 22px;
}


/* ANSWERS */

.preview-answer {
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 12px;

    margin-bottom: 9px;

    border-radius: 11px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.055);

    color: #d2d8e3;

    font-size: 13px;
    font-weight: 650;
}

.preview-answer.selected {
    border-color: rgba(129,121,255,0.65);
    background: rgba(99,91,255,0.20);
}

.answer-letter {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255,255,255,0.08);

    color: #c9ced8;

    font-size: 11px;
    font-weight: 800;
}

.selected .answer-letter {
    background: #756cff;
    color: white;
}

.answer-check {
    margin-left: auto;

    color: #a9a4ff;

    font-size: 17px;
}


/* PREVIEW FOOTER */

.preview-footer {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 18px;

    color: #8e98aa;

    font-size: 10px;
}


/* SCORE BADGE */

.score-badge {
    position: absolute;

    right: -12px;
    bottom: 27px;

    z-index: 4;

    min-width: 125px;

    padding: 15px 17px;

    border-radius: 14px;

    background: #111a2b;

    border: 1px solid rgba(255,255,255,0.09);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.25);
}

.score-badge strong {
    display: block;

    color: white;

    font-size: 24px;
    line-height: 1.1;
}

.score-badge span {
    color: #929caf;

    font-size: 10px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 90px 0;
}

.quizzes-section {
    background: var(--background);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.section-kicker {
    display: block;

    color: var(--primary);

    font-size: 11px;
    font-weight: 850;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

.section-header h2 {
    color: var(--dark);

    font-size: 32px;
    line-height: 1.2;

    letter-spacing: -1.2px;

    margin-bottom: 7px;
}

.section-header p {
    color: var(--muted);
    font-size: 14px;
}

.view-link {
    color: var(--primary);

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;
}

.view-link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   QUIZ CARDS
========================================================= */

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.quiz-card {
    position: relative;

    padding: 25px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.quiz-card:hover {
    transform: translateY(-5px);

    border-color: #d9d6ff;

    box-shadow: var(--shadow-md);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 22px;
}

.quiz-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 22px;
    font-weight: 800;
}

.purple-icon {
    background: #eeecff;
    color: var(--primary);
}

.blue-icon {
    background: #e9f3ff;
    color: var(--blue);
}

.green-icon {
    background: #e7f8f0;
    color: var(--green);
}

.cyan-icon {
    background: #e5f8fb;
    color: #0891b2;
}

.orange-icon {
    background: #fff4e5;
    color: var(--orange);
}

.red-icon {
    background: #ffebe9;
    color: var(--red);
}


/* DIFFICULTY */

.difficulty {
    padding: 5px 9px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .8px;
}

.difficulty.easy {
    color: #087443;
    background: #e8f8f0;
}

.difficulty.medium {
    color: #b54708;
    background: #fff4e5;
}


/* CARD CONTENT */

.card-category {
    display: block;

    color: var(--primary);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.1px;

    margin-bottom: 7px;
}

.quiz-card h3 {
    color: var(--dark);

    font-size: 20px;
    line-height: 1.3;

    letter-spacing: -0.5px;

    margin-bottom: 9px;
}

.quiz-card > p {
    min-height: 48px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.65;
}


/* CARD META */

.card-meta {
    display: flex;
    justify-content: space-between;

    padding-top: 17px;
    margin-top: 19px;

    border-top: 1px solid #edf0f4;

    color: #8992a2;

    font-size: 11px;
}

.card-meta b {
    color: #475467;
}


/* CARD BUTTON */

.card-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 17px;

    padding: 12px 14px;

    border-radius: 10px;

    background: #f5f6f9;

    color: var(--dark);

    font-size: 12px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.card-button span {
    font-size: 17px;
}

.card-button:hover {
    background: var(--dark);
    color: white;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories-section {
    background: white;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.centered-header {
    justify-content: center;
    text-align: center;
}

.category-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.category-card {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 19px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: white;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    border-color: #d8d5ff;

    box-shadow: var(--shadow-sm);
}

.category-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 21px;
}

.category-card h3 {
    color: var(--dark);

    font-size: 14px;

    margin-bottom: 3px;
}

.category-card p {
    color: var(--muted);

    font-size: 11px;
    line-height: 1.4;
}

.category-arrow {
    color: #98a2b3;

    font-size: 19px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(3px);
}


/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    padding: 95px 0;

    background:
        linear-gradient(
            135deg,
            #f5f6fb,
            #ffffff
        );
}

.why-layout {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 90px;

    align-items: center;
}

.why-heading h2 {
    color: var(--dark);

    font-size: 36px;

    line-height: 1.2;

    letter-spacing: -1.3px;

    margin-bottom: 17px;
}

.why-heading > p {
    max-width: 460px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.75;
}

.feature-list {
    display: flex;
    flex-direction: column;
}

.feature-item {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 20px;

    padding: 24px 0;

    border-bottom: 1px solid var(--border);
}

.feature-item:first-child {
    padding-top: 0;
}

.feature-item:last-child {
    border-bottom: 0;
}

.feature-number {
    color: var(--primary);

    font-size: 12px;
    font-weight: 850;

    letter-spacing: 1px;
}

.feature-item h3 {
    color: var(--dark);

    font-size: 16px;

    margin-bottom: 5px;
}

.feature-item p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    padding: 80px 0;

    background: white;
}

.about-box {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

    padding: 50px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #1d2540
        );

    color: white;
}

.about-box h2 {
    max-width: 500px;

    font-size: 31px;

    line-height: 1.2;

    letter-spacing: -1px;
}

.about-box > p {
    color: #b9c1cf;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #0d1422;

    color: white;

    padding-top: 55px;
}

.footer-main {
    display: grid;

    grid-template-columns: 1.6fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 50px;
}

.footer-brand p {
    color: #8994a7;

    font-size: 12px;

    margin-top: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-column h4 {
    color: white;

    font-size: 12px;

    margin-bottom: 5px;
}

.footer-column a {
    color: #8994a7;

    font-size: 12px;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    min-height: 65px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid rgba(255,255,255,0.08);

    color: #697386;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .main-nav {
        gap: 20px;
    }

    .header-button {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 35px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-preview {
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .quiz-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-box {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


@media (max-width: 650px) {

    .site-header {
        height: 65px;
    }

    .brand-mark {
        width: 37px;
        height: 37px;

        font-size: 19px;
    }

    .brand-name {
        font-size: 20px;
    }

    .main-nav {
        gap: 13px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .main-nav a:nth-child(3) {
        display: none;
    }

    .main-nav a.active::after {
        bottom: -22px;
    }

    .hero-layout {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        width: 100%;

        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-stats {
        gap: 12px;
    }

    .preview-card {
        padding: 21px;
    }

    .score-badge {
        right: -4px;
    }

    .section {
        padding: 65px 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .quiz-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        grid-template-columns: auto 1fr auto;
    }

    .why-heading h2 {
        font-size: 30px;
    }

    .about-box {
        padding: 30px;
    }

    .about-box h2 {
        font-size: 27px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 18px 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 6px;
    }
}


@media (max-width: 420px) {

    .main-nav a:nth-child(4) {
        display: none;
    }

    .hero h1 {
        font-size: 38px;
    }

    .preview-card h3 {
        font-size: 19px;
    }

    .hero-stats {
        gap: 9px;
    }

    .hero-stat strong {
        font-size: 16px;
    }
}/* =========================================================
   QUIZ GURU
   PROFESSIONAL GLOBAL STYLES
========================================================= */

:root {
    --primary: #635bff;
    --primary-dark: #5148e5;
    --primary-light: #eeecff;

    --dark: #101828;
    --dark-2: #172033;
    --text: #344054;
    --muted: #667085;

    --white: #ffffff;
    --background: #f8f9fc;
    --border: #e7e9ef;

    --green: #12b76a;
    --blue: #2e90fa;
    --orange: #f79009;
    --red: #f04438;

    --shadow-sm: 0 4px 16px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 14px 40px rgba(16, 24, 40, 0.08);

    --radius: 18px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    height: 76px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(12px);
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #756cff,
            #5148e5
        );

    color: white;

    font-size: 22px;
    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(99, 91, 255, 0.25);
}

.brand-name {
    color: var(--dark);
    font-size: 23px;
    letter-spacing: -0.8px;
}

.brand-name span {
    color: var(--primary);
}


/* NAV */

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    position: relative;

    color: #667085;

    font-size: 14px;
    font-weight: 650;

    transition:
        color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -27px;

    height: 2px;

    background: var(--primary);
    border-radius: 10px;
}


/* HEADER BUTTON */

.header-button {
    padding: 11px 18px;

    background: var(--dark);
    color: white;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.header-button:hover {
    background: #273247;
    transform: translateY(-1px);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(99, 91, 255, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #101828 0%,
            #141d32 55%,
            #171c3e 100%
        );

    color: white;
}

.hero-background {
    position: absolute;

    width: 650px;
    height: 650px;

    right: -250px;
    top: -280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.17),
            transparent 68%
        );

    pointer-events: none;
}

.hero-layout {
    min-height: 590px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;

    padding-top: 75px;
    padding-bottom: 75px;
}


/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;

    color: #b9b5ff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.eyebrow span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #8179ff;

    box-shadow:
        0 0 0 5px rgba(129, 121, 255, 0.12);
}

.hero h1 {
    max-width: 650px;

    font-size:
        clamp(45px, 5vw, 67px);

    line-height: 1.02;

    letter-spacing: -3px;

    font-weight: 850;

    margin-bottom: 24px;
}

.hero h1 span {
    color: #8179ff;
}

.hero-description {
    max-width: 570px;

    color: #b7c0d1;

    font-size: 17px;

    line-height: 1.75;

    margin-bottom: 32px;
}


/* HERO BUTTONS */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 40px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 11px;

    font-size: 14px;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.primary-button {
    background: white;
    color: var(--dark);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #f3f4f6;
}

.primary-button span {
    font-size: 19px;
}

.secondary-button {
    color: white;

    border: 1px solid rgba(255,255,255,0.16);

    background: rgba(255,255,255,0.05);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.25);
}


/* HERO STATS */

.hero-stats {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    font-size: 18px;
    color: white;
}

.hero-stat span {
    font-size: 11px;
    color: #8f9aad;
}

.stat-divider {
    width: 1px;
    height: 32px;

    background: rgba(255,255,255,0.13);
}


/* =========================================================
   HERO QUIZ PREVIEW
========================================================= */

.hero-preview {
    position: relative;

    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-glow {
    position: absolute;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.28),
            transparent 70%
        );

    filter: blur(5px);
}


/* PREVIEW CARD */

.preview-card {
    position: relative;
    z-index: 2;

    width: min(430px, 100%);

    padding: 27px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.06)
        );

    border: 1px solid rgba(255,255,255,0.13);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.3);

    backdrop-filter: blur(20px);
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 19px;
}

.preview-top div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-label {
    color: #a9a4ff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.preview-top strong {
    font-size: 14px;
}

.preview-number {
    color: #9aa4b7;
    font-size: 11px;
    font-weight: 700;
}


/* PROGRESS */

.preview-progress {
    height: 5px;

    margin-bottom: 27px;

    background: rgba(255,255,255,0.09);

    border-radius: 10px;

    overflow: hidden;
}

.preview-progress span {
    display: block;

    width: 42%;
    height: 100%;

    border-radius: inherit;

    background: #756cff;
}


/* QUESTION */

.preview-card h3 {
    font-size: 22px;
    line-height: 1.3;

    letter-spacing: -0.5px;

    margin-bottom: 22px;
}


/* ANSWERS */

.preview-answer {
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 12px;

    margin-bottom: 9px;

    border-radius: 11px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.055);

    color: #d2d8e3;

    font-size: 13px;
    font-weight: 650;
}

.preview-answer.selected {
    border-color: rgba(129,121,255,0.65);
    background: rgba(99,91,255,0.20);
}

.answer-letter {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(255,255,255,0.08);

    color: #c9ced8;

    font-size: 11px;
    font-weight: 800;
}

.selected .answer-letter {
    background: #756cff;
    color: white;
}

.answer-check {
    margin-left: auto;

    color: #a9a4ff;

    font-size: 17px;
}


/* PREVIEW FOOTER */

.preview-footer {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 18px;

    color: #8e98aa;

    font-size: 10px;
}


/* SCORE BADGE */

.score-badge {
    position: absolute;

    right: -12px;
    bottom: 27px;

    z-index: 4;

    min-width: 125px;

    padding: 15px 17px;

    border-radius: 14px;

    background: #111a2b;

    border: 1px solid rgba(255,255,255,0.09);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.25);
}

.score-badge strong {
    display: block;

    color: white;

    font-size: 24px;
    line-height: 1.1;
}

.score-badge span {
    color: #929caf;

    font-size: 10px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 90px 0;
}

.quizzes-section {
    background: var(--background);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.section-kicker {
    display: block;

    color: var(--primary);

    font-size: 11px;
    font-weight: 850;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

.section-header h2 {
    color: var(--dark);

    font-size: 32px;
    line-height: 1.2;

    letter-spacing: -1.2px;

    margin-bottom: 7px;
}

.section-header p {
    color: var(--muted);
    font-size: 14px;
}

.view-link {
    color: var(--primary);

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;
}

.view-link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   QUIZ CARDS
========================================================= */

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.quiz-card {
    position: relative;

    padding: 25px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.quiz-card:hover {
    transform: translateY(-5px);

    border-color: #d9d6ff;

    box-shadow: var(--shadow-md);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 22px;
}

.quiz-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 22px;
    font-weight: 800;
}

.purple-icon {
    background: #eeecff;
    color: var(--primary);
}

.blue-icon {
    background: #e9f3ff;
    color: var(--blue);
}

.green-icon {
    background: #e7f8f0;
    color: var(--green);
}

.cyan-icon {
    background: #e5f8fb;
    color: #0891b2;
}

.orange-icon {
    background: #fff4e5;
    color: var(--orange);
}

.red-icon {
    background: #ffebe9;
    color: var(--red);
}


/* DIFFICULTY */

.difficulty {
    padding: 5px 9px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .8px;
}

.difficulty.easy {
    color: #087443;
    background: #e8f8f0;
}

.difficulty.medium {
    color: #b54708;
    background: #fff4e5;
}


/* CARD CONTENT */

.card-category {
    display: block;

    color: var(--primary);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 1.1px;

    margin-bottom: 7px;
}

.quiz-card h3 {
    color: var(--dark);

    font-size: 20px;
    line-height: 1.3;

    letter-spacing: -0.5px;

    margin-bottom: 9px;
}

.quiz-card > p {
    min-height: 48px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.65;
}


/* CARD META */

.card-meta {
    display: flex;
    justify-content: space-between;

    padding-top: 17px;
    margin-top: 19px;

    border-top: 1px solid #edf0f4;

    color: #8992a2;

    font-size: 11px;
}

.card-meta b {
    color: #475467;
}


/* CARD BUTTON */

.card-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 17px;

    padding: 12px 14px;

    border-radius: 10px;

    background: #f5f6f9;

    color: var(--dark);

    font-size: 12px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.card-button span {
    font-size: 17px;
}

.card-button:hover {
    background: var(--dark);
    color: white;
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories-section {
    background: white;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.centered-header {
    justify-content: center;
    text-align: center;
}

.category-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.category-card {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 19px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: white;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    border-color: #d8d5ff;

    box-shadow: var(--shadow-sm);
}

.category-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 21px;
}

.category-card h3 {
    color: var(--dark);

    font-size: 14px;

    margin-bottom: 3px;
}

.category-card p {
    color: var(--muted);

    font-size: 11px;
    line-height: 1.4;
}

.category-arrow {
    color: #98a2b3;

    font-size: 19px;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(3px);
}


/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    padding: 95px 0;

    background:
        linear-gradient(
            135deg,
            #f5f6fb,
            #ffffff
        );
}

.why-layout {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 90px;

    align-items: center;
}

.why-heading h2 {
    color: var(--dark);

    font-size: 36px;

    line-height: 1.2;

    letter-spacing: -1.3px;

    margin-bottom: 17px;
}

.why-heading > p {
    max-width: 460px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.75;
}

.feature-list {
    display: flex;
    flex-direction: column;
}

.feature-item {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 20px;

    padding: 24px 0;

    border-bottom: 1px solid var(--border);
}

.feature-item:first-child {
    padding-top: 0;
}

.feature-item:last-child {
    border-bottom: 0;
}

.feature-number {
    color: var(--primary);

    font-size: 12px;
    font-weight: 850;

    letter-spacing: 1px;
}

.feature-item h3 {
    color: var(--dark);

    font-size: 16px;

    margin-bottom: 5px;
}

.feature-item p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    padding: 80px 0;

    background: white;
}

.about-box {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

    padding: 50px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #1d2540
        );

    color: white;
}

.about-box h2 {
    max-width: 500px;

    font-size: 31px;

    line-height: 1.2;

    letter-spacing: -1px;
}

.about-box > p {
    color: #b9c1cf;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #0d1422;

    color: white;

    padding-top: 55px;
}

.footer-main {
    display: grid;

    grid-template-columns: 1.6fr 1fr 1fr;

    gap: 60px;

    padding-bottom: 50px;
}

.footer-brand p {
    color: #8994a7;

    font-size: 12px;

    margin-top: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-column h4 {
    color: white;

    font-size: 12px;

    margin-bottom: 5px;
}

.footer-column a {
    color: #8994a7;

    font-size: 12px;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    min-height: 65px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid rgba(255,255,255,0.08);

    color: #697386;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .main-nav {
        gap: 20px;
    }

    .header-button {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 35px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-preview {
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .quiz-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-box {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


@media (max-width: 650px) {

    .site-header {
        height: 65px;
    }

    .brand-mark {
        width: 37px;
        height: 37px;

        font-size: 19px;
    }

    .brand-name {
        font-size: 20px;
    }

    .main-nav {
        gap: 13px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .main-nav a:nth-child(3) {
        display: none;
    }

    .main-nav a.active::after {
        bottom: -22px;
    }

    .hero-layout {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        width: 100%;

        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-stats {
        gap: 12px;
    }

    .preview-card {
        padding: 21px;
    }

    .score-badge {
        right: -4px;
    }

    .section {
        padding: 65px 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .quiz-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        grid-template-columns: auto 1fr auto;
    }

    .why-heading h2 {
        font-size: 30px;
    }

    .about-box {
        padding: 30px;
    }

    .about-box h2 {
        font-size: 27px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 18px 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 6px;
    }
}


@media (max-width: 420px) {

    .main-nav a:nth-child(4) {
        display: none;
    }

    .hero h1 {
        font-size: 38px;
    }

    .preview-card h3 {
        font-size: 19px;
    }

    .hero-stats {
        gap: 9px;
    }

    .hero-stat strong {
        font-size: 16px;
    }
}

/* =========================================================
   QUIZ GURU — SEARCH + QUIZ BUTTON ENHANCEMENTS
   SAFE ADD-ON
   Does NOT replace existing styles
========================================================= */


/* =========================================================
   START QUIZ BUTTON
========================================================= */

/*
   Your category.js creates:

   <a class="start-btn">Start Quiz</a>

   The old CSS has .card-button, but not .start-btn.
   This makes the new button visually match the existing
   Quiz Guru design without touching old quiz cards.
*/

.start-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 17px;
    padding: 12px 14px;

    border-radius: 10px;

    background: var(--dark);
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    border: 1px solid var(--dark);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.start-btn::after {
    content: "→";

    font-size: 17px;
    line-height: 1;

    transition:
        transform 0.2s ease;
}

.start-btn:hover {
    background: var(--primary);
    border-color: var(--primary);

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(99, 91, 255, 0.20);
}

.start-btn:hover::after {
    transform: translateX(4px);
}

.start-btn:active {
    transform: translateY(0);
}


/* =========================================================
   SEARCH SECTION
========================================================= */

.search-section {
    padding: 35px 0 10px;

    background: var(--background);
}


/* SEARCH WRAPPER */

.quiz-search {
    position: relative;

    width: min(680px, 100%);

    margin: 0 auto;
}


/* SEARCH ICON */

.quiz-search-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    width: 19px;
    height: 19px;

    color: #98a2b3;

    pointer-events: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* SEARCH INPUT */

.quiz-search input {
    width: 100%;

    height: 56px;

    padding: 0 55px 0 50px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: #ffffff;

    color: var(--dark);

    font-size: 14px;
    font-weight: 550;

    outline: none;

    box-shadow:
        0 5px 18px rgba(16, 24, 40, 0.04);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.quiz-search input::placeholder {
    color: #98a2b3;
}

.quiz-search input:hover {
    border-color: #d0d5dd;
}

.quiz-search input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(99, 91, 255, 0.10),
        0 8px 25px rgba(16, 24, 40, 0.06);

    transform: translateY(-1px);
}

.quiz-search:focus-within .quiz-search-icon {
    color: var(--primary);

    transform:
        translateY(-50%)
        scale(1.08);
}


/* CLEAR BUTTON */

.quiz-search-clear {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: none;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f2f4f7;

    color: #667085;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.quiz-search-clear:hover {
    background: var(--primary-light);

    color: var(--primary);

    transform:
        translateY(-50%)
        rotate(90deg);
}


/* =========================================================
   SEARCH RESULTS INFO
========================================================= */

.search-results-info {
    width: min(1160px, 92%);

    margin: 15px auto 0;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}

.search-results-info strong {
    color: var(--dark);
}


/* =========================================================
   NO SEARCH RESULTS
========================================================= */

.search-empty {
    grid-column: 1 / -1;

    padding: 65px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    animation: searchEmptyIn 0.3s ease both;
}

.search-empty-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border-radius: 16px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 25px;
}

.search-empty h3 {
    color: var(--dark);

    font-size: 18px;

    margin-bottom: 7px;
}

.search-empty p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   SEARCH CARD ANIMATION
========================================================= */

.quiz-card.search-match {
    animation: searchCardIn 0.3s ease both;
}

@keyframes searchCardIn {

    from {
        opacity: 0;

        transform:
            translateY(8px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

@keyframes searchEmptyIn {

    from {
        opacity: 0;

        transform: translateY(8px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   SEARCH RESPONSIVE
========================================================= */

@media (max-width: 650px) {

    .search-section {
        padding: 25px 0 5px;
    }

    .quiz-search input {
        height: 52px;

        padding-left: 47px;

        font-size: 13px;
    }

    .quiz-search-icon {
        left: 16px;
    }

    .search-results-info {
        font-size: 11px;
    }

    .start-btn {
        padding: 13px 14px;
    }

}/* =========================================================
   QUIZ GURU — SEARCH + QUIZ BUTTON ENHANCEMENTS
   SAFE ADD-ON
   Does NOT replace existing styles
========================================================= */


/* =========================================================
   START QUIZ BUTTON
========================================================= */

/*
   Your category.js creates:

   <a class="start-btn">Start Quiz</a>

   The old CSS has .card-button, but not .start-btn.
   This makes the new button visually match the existing
   Quiz Guru design without touching old quiz cards.
*/

.start-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 17px;
    padding: 12px 14px;

    border-radius: 10px;

    background: var(--dark);
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    border: 1px solid var(--dark);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.start-btn::after {
    content: "→";

    font-size: 17px;
    line-height: 1;

    transition:
        transform 0.2s ease;
}

.start-btn:hover {
    background: var(--primary);
    border-color: var(--primary);

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(99, 91, 255, 0.20);
}

.start-btn:hover::after {
    transform: translateX(4px);
}

.start-btn:active {
    transform: translateY(0);
}


/* =========================================================
   SEARCH SECTION
========================================================= */

.search-section {
    padding: 35px 0 10px;

    background: var(--background);
}


/* SEARCH WRAPPER */

.quiz-search {
    position: relative;

    width: min(680px, 100%);

    margin: 0 auto;
}


/* SEARCH ICON */

.quiz-search-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    width: 19px;
    height: 19px;

    color: #98a2b3;

    pointer-events: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* SEARCH INPUT */

.quiz-search input {
    width: 100%;

    height: 56px;

    padding: 0 55px 0 50px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: #ffffff;

    color: var(--dark);

    font-size: 14px;
    font-weight: 550;

    outline: none;

    box-shadow:
        0 5px 18px rgba(16, 24, 40, 0.04);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.quiz-search input::placeholder {
    color: #98a2b3;
}

.quiz-search input:hover {
    border-color: #d0d5dd;
}

.quiz-search input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(99, 91, 255, 0.10),
        0 8px 25px rgba(16, 24, 40, 0.06);

    transform: translateY(-1px);
}

.quiz-search:focus-within .quiz-search-icon {
    color: var(--primary);

    transform:
        translateY(-50%)
        scale(1.08);
}


/* CLEAR BUTTON */

.quiz-search-clear {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: none;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #f2f4f7;

    color: #667085;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.quiz-search-clear:hover {
    background: var(--primary-light);

    color: var(--primary);

    transform:
        translateY(-50%)
        rotate(90deg);
}


/* =========================================================
   SEARCH RESULTS INFO
========================================================= */

.search-results-info {
    width: min(1160px, 92%);

    margin: 15px auto 0;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}

.search-results-info strong {
    color: var(--dark);
}


/* =========================================================
   NO SEARCH RESULTS
========================================================= */

.search-empty {
    grid-column: 1 / -1;

    padding: 65px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    animation: searchEmptyIn 0.3s ease both;
}

.search-empty-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border-radius: 16px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 25px;
}

.search-empty h3 {
    color: var(--dark);

    font-size: 18px;

    margin-bottom: 7px;
}

.search-empty p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   SEARCH CARD ANIMATION
========================================================= */

.quiz-card.search-match {
    animation: searchCardIn 0.3s ease both;
}

@keyframes searchCardIn {

    from {
        opacity: 0;

        transform:
            translateY(8px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

@keyframes searchEmptyIn {

    from {
        opacity: 0;

        transform: translateY(8px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   SEARCH RESPONSIVE
========================================================= */

@media (max-width: 650px) {

    .search-section {
        padding: 25px 0 5px;
    }

    .quiz-search input {
        height: 52px;

        padding-left: 47px;

        font-size: 13px;
    }

    .quiz-search-icon {
        left: 16px;
    }

    .search-results-info {
        font-size: 11px;
    }

    .start-btn {
        padding: 13px 14px;
    }

}
/* =========================================================
   TEST AVERAGE - FLOATING SEARCH AREA
========================================================= */

.quiz-search-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.quiz-search-row .quiz-search {
    flex: 0 0 450px;
    width: 450px;
    max-width: 450px;
    min-width: 0;
}

.test-average-float {
    flex: 0 0 auto;
    position: fixed;
    top: 110px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 175px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    animation: floatingAverage 3s ease-in-out infinite;
}
 @keyframes floatingAverage {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}
.test-average-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 17px;
}

.test-average-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.test-average-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.test-average-content strong {
    font-size: 20px;
    line-height: 1;
}

.test-average-count {
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.65;
}


/* =========================================================
   TEST AVERAGE - MOBILE
========================================================= */

@media (max-width: 700px) {

    .quiz-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .test-average-float {
        align-self: flex-end;
        min-width: 170px;
    }


/* =========================================================
   DARK MODE BUTTON
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.theme-toggle {
    width: 42px;
    height: 42px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d9dee8;
    border-radius: 12px;

    background: #ffffff;
    color: #344054;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.theme-toggle:hover {
    transform: translateY(-1px);

    border-color: #635bff;

    color: #635bff;

    box-shadow:
        0 6px 18px rgba(99, 91, 255, 0.15);
}


body.dark-mode .theme-toggle {
    background: #1e293b;

    color: #f8fafc;

    border-color: #334155;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.20);
}


body.dark-mode .theme-toggle:hover {
    color: #ffffff;

    border-color: #635bff;

    box-shadow:
        0 6px 18px rgba(99, 91, 255, 0.25);
}


/* =========================================================
   SEARCH AREA
========================================================= */

body.dark-mode .search-section {
    background: #0f172a !important;
}


body.dark-mode .quiz-search {
    background: #172033 !important;

    border-color: #334155 !important;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18);
}


body.dark-mode .quiz-search input {
    background: transparent !important;

    color: #f8fafc !important;
}


body.dark-mode .quiz-search input::placeholder {
    color: #7c8aa3 !important;
}


body.dark-mode .quiz-search-icon {
    color: #94a3b8;
}


body.dark-mode .quiz-search-clear {
    color: #cbd5e1;
}


/* =========================================================
   QUIZZES SECTION
========================================================= */

body.dark-mode .quizzes-section {
    background: #0f172a !important;
}


/* =========================================================
   GENERAL HEADINGS AND TEXT
========================================================= */

body.dark-mode .section-header h2,
body.dark-mode .quiz-card h3,
body.dark-mode .category-card h3,
body.dark-mode .why-heading h2,
body.dark-mode .feature-item h3 {
    color: #f8fafc !important;
}


body.dark-mode .section-header p,
body.dark-mode .quiz-card > p,
body.dark-mode .category-card p,
body.dark-mode .why-heading > p,
body.dark-mode .feature-item p {
    color: #94a3b8 !important;
}


/* =========================================================
   QUIZ CARDS
========================================================= */

body.dark-mode .quiz-card {
    background: #172033 !important;

    border-color: #2b3648 !important;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.20);
}


body.dark-mode .card-meta {
    border-top-color: #2b3648 !important;

    color: #94a3b8;
}


body.dark-mode .card-meta span {
    color: #94a3b8;
}


/* =========================================================
   CARD BUTTON
========================================================= */

body.dark-mode .card-button {
    background: #202b3d !important;

    color: #f8fafc !important;
}


body.dark-mode .card-button:hover {
    background: #635bff !important;

    color: #ffffff !important;
}


/* =========================================================
   CATEGORIES
========================================================= */

body.dark-mode .categories-section {
    background: #111827 !important;
}


body.dark-mode .category-card {
    background: #172033 !important;

    border-color: #2b3648 !important;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);
}


body.dark-mode .category-arrow {
    color: #94a3b8;
}


/* =========================================================
   WHY QUIZ GURU
========================================================= */

body.dark-mode .why-section {
    background: #0f172a !important;
}


body.dark-mode .feature-item {
    border-bottom-color: #2b3648 !important;
}


/* =========================================================
   ABOUT
========================================================= */

body.dark-mode .about-section {
    background: #111827 !important;
}


/* Keep the special dark About box unchanged */
body.dark-mode .about-box {
    background: #101828;
}


/* =========================================================
   SEARCH EMPTY MESSAGE
========================================================= */

body.dark-mode .search-empty {
    background: #172033 !important;

    border-color: #2b3648 !important;

    color: #cbd5e1;
}


body.dark-mode .search-empty h3 {
    color: #f8fafc !important;
}


/* =========================================================
   TEST AVERAGE FLOAT
========================================================= */

body.dark-mode .test-average-float {
    background: #172033 !important;

    border-color: #2b3648 !important;

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35);
}


body.dark-mode .test-average-label {
    color: #94a3b8;
}


body.dark-mode .test-average-count {
    color: #94a3b8;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .header-actions {
        gap: 8px;
    }


    .theme-toggle {
        width: 38px;
        height: 38px;

        border-radius: 10px;

        font-size: 18px;
    }

}
/* =========================================================
   PROFESSIONAL THEME TOGGLE
========================================================= */

.theme-toggle {
    width: 58px;
    height: 34px;

    padding: 0;
    margin: 0;

    border: 1px solid #d9dce5;
    border-radius: 999px;

    background: #f1f3f8;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    position: relative;

    box-shadow:
        0 2px 6px rgba(16, 24, 40, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);

    border-color: #c7c9d8;

    box-shadow:
        0 5px 14px rgba(16, 24, 40, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.theme-toggle:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(99, 91, 255, 0.18),
        0 5px 14px rgba(16, 24, 40, 0.12);
}

/* TRACK */

.theme-toggle-track {
    width: 100%;
    height: 100%;

    position: relative;

    display: block;
}

/* ICONS */

.theme-toggle-icon {
    position: absolute;

    top: 50%;

    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    font-size: 13px;
    line-height: 1;

    z-index: 1;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        color 0.25s ease;
}

.theme-toggle-moon {
    left: 7px;

    color: #667085;

    opacity: 1;
}

.theme-toggle-sun {
    right: 7px;

    color: #f79009;

    opacity: 0.45;
}

/* MOVING KNOB */

.theme-toggle-knob {
    position: absolute;

    top: 3px;
    left: 3px;

    width: 26px;
    height: 26px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 6px rgba(16, 24, 40, 0.18),
        0 1px 2px rgba(16, 24, 40, 0.08);

    z-index: 2;

    transition:
        left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s ease;
}

/* DARK MODE */

body.dark-mode .theme-toggle {
    background: #1e293b;

    border-color: #334155;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

body.dark-mode .theme-toggle:hover {
    border-color: #475569;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.32);
}

body.dark-mode .theme-toggle-moon {
    color: #a5b4fc;

    opacity: 0.45;
}

body.dark-mode .theme-toggle-sun {
    color: #fbbf24;

    opacity: 1;
}

body.dark-mode .theme-toggle-knob {
    left: 29px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35);
}
/* =========================================================
   SHORTER SEARCH BAR
========================================================= */

.quiz-search-row {
    justify-content: center;
}

.quiz-search-row .quiz-search {
    flex: 0 0 500px !important;
    width: 500px !important;
    max-width: 500px !important;
    margin: 0 !important;
}

@media (max-width: 700px) {
    .quiz-search-row .quiz-search {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* =========================================
   DARK MODE - GLOBAL PAGE COVERAGE
   ========================================= */

/* Main page backgrounds */
body.dark-mode {
    background: #0f172a;
    color: #e5e7eb;
}

/* Main content sections */
body.dark-mode .section {
    background: #0f172a;
}

body.dark-mode main {
    background: #0f172a;
}

/* Normal white cards */
body.dark-mode .quiz-card {
    background: #172033;
    border-color: #2b3648;
}

body.dark-mode .quiz-card h3 {
    color: #f3f4f6;
}

body.dark-mode .quiz-card p {
    color: #aeb8c8;
}

/* Normal headings and text */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f3f4f6;
}

body.dark-mode p {
    color: #c5ccd8;
}

/* Category cards */
body.dark-mode .category-card {
    background: #172033;
    border-color: #2b3648;
}

body.dark-mode .category-card h3 {
    color: #f3f4f6;
}

/* Search area */
body.dark-mode .quiz-search {
    background: #172033;
    border-color: #334155;
}

body.dark-mode .quiz-search input {
    background: #172033;
    color: #f3f4f6;
}

body.dark-mode .quiz-search input::placeholder {
    color: #8b96a8;
}

/* Empty search message */
body.dark-mode .search-empty {
    background: #172033;
    color: #c5ccd8;
    border-color: #2b3648;
}

/* Section headings */
body.dark-mode .section-header h1,
body.dark-mode .section-heading h1 {
    color: #f3f4f6;
}

/* Normal links */
body.dark-mode .view-link,
body.dark-mode .view-all {
    color: #cbd5e1;
}

/* Footer */
body.dark-mode .site-footer {
    background: #0b1120;
}

body.dark-mode .site-footer p {
    color: #94a3b8;
}

/* Test average */
body.dark-mode .test-average-float {
    background: #172033;
    border-color: #334155;
}

body.dark-mode .test-average-label {
    color: #94a3b8;
}

body.dark-mode .test-average-count {
    color: #94a3b8;
}

/* =========================================
   KEEP SPECIAL / BRAND COLORS UNCHANGED
   ========================================= */

/*
   Do NOT recolor:
   - purple elements
   - blue elements
   - orange elements
   - green elements
   - difficulty badges
   - category colors
   - quiz icons
   - hero sections
   - special banners
   - special buttons
*/
/* =========================================
   CATEGORY PAGE DARK MODE - FINAL OVERRIDE
   ========================================= */

body.dark-mode main .section {
    background: #111827 !important;
    color: #e5e7eb !important;
}

body.dark-mode main .section .container {
    background: transparent !important;
}

body.dark-mode main .section h1 {
    color: #f3f4f6 !important;
}

body.dark-mode main .section .section-kicker {
    color: #aeb8c8 !important;
}

body.dark-mode main .section .view-link {
    color: #cbd5e1 !important;
}
}
