@charset "UTF-8";

@font-face {
    font-display: swap;
    font-family: GoogleSans;
    src: local("GoogleSans Regular"), local("GoogleSans-Regular"),
        url(../Fonts/googleSans-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: GoogleSans;
    src: local("Google Sans Medium"), local("GoogleSans-Medium"),
        url(../Fonts/GoogleSans-Medium.woff2);
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: GoogleSans;
    src: local("GoogleSans Bold"), local("GoogleSans-Bold"),
        url(../Fonts/googleSans-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Gilroy;
    src: url(../Fonts/Gilroy-Medium.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Gilroy;
    src: url(../Fonts/Gilroy-Regular.ttf) format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Gilroy;
    src: url(../Fonts/Gilroy-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: Gilroy;
    src: url(../Fonts/Gilroy-Light.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --quiz-ink: #000e25;
    /* primary dark (brand, CTA, card footer) */
    --quiz-hero-bg: #0b2444;
    /* hero section background */
    --quiz-text: #333;
    /* card title text */
    --quiz-muted: #44474e;
    /* nav inactive */
    --quiz-hero-sub: #768cb1;
    /* hero subtitle */
    --quiz-hero-badge-text: #d5e3ff;
    --quiz-count: #ba1a1a;
    /* "X Quizzes" red */
    --quiz-border: #c4c6cf;
    --quiz-content-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Gilroy;
    color: var(--quiz-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.ads {
    width: 100%;
}

.breadcrumb {
    list-style-type: none;
    margin-top: 20px;
    display: flex;
}

.breadcrumb-item {
    display: inline-flex;
    font-family: GoogleSans;
    color: #aaa;
    font-size: 14px;
    line-height: 14px;
}

.breadcrumb-slash {
    margin: 0 0.4rem;
    font-size: 16px;
    line-height: 16px;
}

.breadcrumb-item a {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
    color: #aaa;
}

.breadcrumb-item a:hover {
    color: #236ef5;
    text-decoration: underline;
}

.breadcrumb-item:last-child a {
    color: #236ef5;
}

.header {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    background: #0b2444;
}

.header-container {
    height: 64px;
    display: flex;
    width: 1100px;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
}

.header-container a {
    height: 100%;
}

.header-logo {
    height: 40px;
    margin: 12px 0;
    flex-shrink: 0;
    fill: #fff;
}

.header-label {
    display: flex;
    height: 64px;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.header-label-menu {
    display: flex;
    padding: 12px 0 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 999px;

    position: relative;
    cursor: pointer;
}

.header-label-menu-text {
    color: #fff;
    font-family: Gilroy;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.header-label-menu-icon {
    width: 20px;
    height: 20px;
}

.header-label-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #0b2444;
    z-index: 1;
    border-radius: 8px;
    border: #666 1px solid;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-label-menu-dropdown ul {
    list-style: none;
}

.header-label-menu-dropdown a {
    display: block;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    font-family: Gilroy;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.header-label-menu-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-label-menu:hover .header-label-menu-dropdown {
    display: block;
}

.header-label-blog {
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 999px;
    color: #fff;
    font-family: Gilroy;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.header-label-mobile {
    display: none;
}

.header-label-mobile svg {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
    fill: white;
}

.footer {
    width: 100%;
    background: #0b2444;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-family: Gilroy;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    width: 1100px;
    border-top: rgba(255, 255, 255, 0.5) 1px solid;
    padding: 20px 0;
}

.footer-container {
    width: 1100px;
    display: flex;
    padding: 40px 0 20px 0;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
}

.footer-logo {
    height: 40px;
    flex-shrink: 0;
    fill: #fff;
    user-select: none;
}

.footer-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    user-select: none;
}

.footer-label a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-family: Gilroy;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
}

.footer-label a:hover {
    color: rgba(255, 255, 255);
}

.footer-link {
    color: #236ef5;
    text-decoration: underline;
}

.footer-link:hover {
    color: #317bff;
}

.navigation-menu {
    display: none;
}

.menu-overlay {
    display: none;
}

@media screen and (max-width: 1132px) {
    .header-container {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .footer-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .footer p {
        max-width: 80%;
        text-align: center;
    }

    .category-layout,
    .quiz-runner {
        box-sizing: border-box;
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media screen and (max-width: 800px) {
    .header-label-blog {
        display: none;
    }

    .footer-label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* Quiz card stays horizontal here but the main column is already
       single-width (<=1164px), so shrink the media and let the footer wrap
       to avoid the meta + Start Quiz button cramping. Stacking takes over
       at <=632px (see below). */
    .quiz-card__media {
        flex-basis: 220px;
    }

    .quiz-card__body {
        padding: 16px 20px;
    }

    .quiz-card__footer {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 620px) {
    .header-label-menu {
        padding-right: 0;
    }

    .header-label-menu-text {
        font-size: 14px;
        line-height: 14px;
    }

    .header-label-menu-dropdown a {
        font-size: 14px;
        line-height: 14px;
    }

    .header-label-blog {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .header-container {
        height: 48px;
    }

    .header-logo {
        height: 32px;
        margin: 8px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-label {
        display: none;
    }

    .header-label-mobile {
        display: block;
        margin-left: auto;
        margin-top: 5px;
        cursor: pointer;
    }

    .navigation-menu {
        display: block;
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        background-color: #fff;
        color: #333;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 16px 16px;
        z-index: 1002;
        visibility: hidden;
    }

    .navigation-menu.is-active {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.3s ease-in-out;
    }

    .navigation-menu ul {
        list-style: none;
        margin: 0;
    }

    .navigation-menu ul .first-title {
        font-weight: 700;
        font-size: 1.1em;
        margin: 30px 0 10px 0;
        padding: 0;
        color: #333;
    }

    .navigation-menu ul li {
        text-align: center;
        border-bottom: none;
        margin: 0 15px;
        font-family: Gilroy;
    }

    .navigation-menu ul li svg {
        width: 20px;
        height: 20px;
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .navigation-menu ul li a {
        display: block;
        color: #666;
        padding: 0 10px;
        padding: 6px 0;
        text-align: center;
        font-size: 1em;
        transition: background-color 0.2s ease;
    }

    .navigation-menu ul li a:hover,
    .navigation-menu ul li a:focus {
        background-color: #aaa;
        outline: none;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 48px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
    }

    .menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease-in-out;
    }
}

/* ==========================================================================
   Hero (banner slot)
   ========================================================================== */

.quiz-hero {
    background: var(--quiz-hero-bg);
    padding: 64px 90px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e8e8e8;
}

.quiz-hero__inner {
    width: 100%;
    max-width: var(--quiz-content-width);
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.quiz-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--quiz-hero-badge-text);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 16px;
    border-radius: 9999px;
}

.quiz-hero__badge-icon {
    width: 13px;
    height: 13px;
}

.quiz-hero__title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 43.2px;
    letter-spacing: -0.72px;
    color: #fff;
}

.quiz-hero__subtitle {
    margin: 0;
    max-width: 672px;
    font-size: 18px;
    line-height: 26px;
    color: var(--quiz-hero-sub);
}

/* ==========================================================================
   Main + category grid
   ========================================================================== */

.main-index {
    max-width: var(--quiz-content-width);
    margin: 0 auto;
    padding: 48px 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.category-card:hover {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.category-card__body {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--quiz-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.category-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.category-card__icon svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-card__icon--blue {
    background: #eff6ff;
}

.category-card__icon--orange {
    background: #fff7ed;
}

.category-card__icon--pink {
    background: #fdf2f8;
}

.category-card__icon--green {
    background: #f0fdf4;
}

.category-card__icon--red {
    background: #fef2f2;
}

.category-card__icon--yellow {
    background: #fefce8;
}

.category-card__icon--emerald {
    background: #ecfdf5;
}

.category-card__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
    line-height: 30.8px;
    color: var(--quiz-text);
    text-align: center;
}

.category-card__count {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
    color: var(--quiz-count);
}

.category-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--quiz-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
}

.category-card__cta:hover {
    background: #00164e;
    transition: background 0.3s ease;
}

.category-card__arrow {
    width: 9px;
    height: 9px;
}

/* ==========================================================================
   Category page — two-column layout (quiz list + categories sidebar)
   ========================================================================== */

.category-layout {
    max-width: var(--quiz-content-width);
    margin: 0 auto 48px auto;
    display: flex;
    align-items: flex-start;
    gap: 72px;
}

.category-main {
    flex: 0 0 728px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.category-main__header,
.detail-main__header {
    max-width: var(--quiz-content-width);
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.category-main__title {
    max-width: 728px;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.72px;
    color: var(--quiz-ink);
}

.category-main__header svg {
    width: 16px;
    height: 4px;
}

/* Quiz list / card (horizontal media card) */
.quiz-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
    position: relative;
}

.quiz-card:hover {
    box-shadow: 0 2px 16px 2px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.quiz-card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quiz-card__media {
    flex: 0 0 285px;
    display: block;
    overflow: hidden;
}

.quiz-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quiz-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px
}

.quiz-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    color: var(--quiz-ink);
}

.quiz-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.quiz-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-family: GoogleSans;
    color: #74777f;
}

.quiz-meta-item svg {
    width: 13px;
    height: 13px;
}

/* Larger meta variant (quiz detail page) */
.quiz-meta-item--lg {
    gap: 8px;
    color: var(--quiz-muted);
    line-height: 25.6px;
}

.quiz-meta-item--lg svg {
    width: 20px;
    height: 20px;
    transform: translateY(-2px);
}

/* Small meta variant (quiz runner stats row) */
.quiz-meta-item--sm {
    gap: 8px;
    color: var(--quiz-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 16.8px;
}

.quiz-meta-item--sm svg {
    width: 12px;
    height: 12px;
}

.quiz-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--quiz-hero-bg);
    color: #fff;
    font-size: 16px;
    font-family: GoogleSans;
    padding: 8px 24px;
    border-radius: 8px;
    white-space: nowrap;
}

.quiz-start-btn svg {
    width: 6px;
    height: 9px;
}

@keyframes quiz-start-btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 25px -3px rgba(0, 0, 0, 0.3), 0 8px 10px -4px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    }
}

/* Full-width hero CTA variant (quiz detail page) */
.quiz-start-btn--block {
    width: 100%;
    padding: 0;
    justify-content: center;
    gap: 16px;
    min-height: 80px;
    border-radius: 12px;
    font-size: 34px;
    font-weight: 600;
    line-height: 30.8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    animation: quiz-start-btn-pulse 2s infinite;
}

@keyframes quiz-start-btn-arrow-pulse {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}

.quiz-start-btn--block svg {
    width: 16px;
    height: 16px;
    animation: quiz-start-btn-arrow-pulse 2s infinite;
}

/* "NEXT" navigation variant (quiz runner) — text-only, taller, uppercase */
.quiz-start-btn--next {
    min-height: 80px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories sidebar (Public:categories) */
.category-aside {
    flex: 0 0 294px;
}

.category-aside__panel {
    background: #fff;
    border-radius: 12px;
}

.category-aside__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: var(--quiz-ink);
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 614px;
    overflow: auto;
}

.category-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    font-family: GoogleSans;
    color: var(--quiz-muted);
}

.category-nav__item:hover {
    color: var(--quiz-ink);
}

.category-nav__item--active {
    color: #00164e;
}

.category-nav__icon {
    width: 22px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    /* Black by default; --fill-0 drives each symbol's path color */
    --fill-0: #000e25;
}

/* On hover, fall back to each icon's own native (colored) fill */
.category-nav__item:hover .category-nav__icon {
    --fill-0: initial;
}

/* ==========================================================================
   Quiz detail / start page (reuses .category-layout + Public:categories)
   ========================================================================== */

.detail-main {
    width: 100%;
    flex: 0 0 728px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-main__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-title {
    max-width: 100%;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.72px;
    color: var(--quiz-ink);
}

.detail-hero {
    margin: 0;
    border: 1px solid rgba(196, 198, 207, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px 0 rgba(11, 36, 68, 0.05);
}

.detail-hero img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.detail-meta {
    display: flex;
    gap: 24px;
    align-items: center;
}

.detail-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-desc {
    margin: 0;
    font-family: GoogleSans;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--quiz-muted);
}

.detail-more {
    margin-top: 40px;
}

.detail-more__title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    line-height: 36.4px;
    color: var(--quiz-ink);
}

.detail-more__image {
    display: block;
    width: 100%;
    height: auto;
}

.coverlink {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.home-card-ls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.home-card-ls .home-card-item:nth-child(4) {
    display: none;
}

.home-card-ls.more-explore .home-card-item:nth-child(4) {
    display: flex;
}

.home-card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transform: translateZ(0);
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.home-card-pic {
    position: relative;
    height: 192px;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.public-piccon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    object-fit: cover;
    object-position: center;
    transition: all 0.25s ease;
}

.home-card-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-card-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-card-tl {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    height: 67.5px;
    color: var(--quiz-ink);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: GoogleSans;
    font-size: 14px;
    font-weight: 400;
    color: var(--quiz-muted);
}

.icon-clock {
    width: 12px;
    height: 12px;
    fill: var(--quiz-muted);
}

@media (hover: hover) {

    .home-card-item,
    .public-piccon {
        transition: all 0.3s ease;
    }

    .home-card-item:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        border-color: var(--quiz-border);
    }

    .home-card-item:hover .public-piccon {
        transform: scale(1.05);
        transition: all 0.25s ease;
    }

    .home-card-item:hover .home-card-tl {
        color: var(--quiz-hero-bg);
    }
}

/* ==========================================================================
   Quiz runner — active question page (single left-aligned column)
   ========================================================================== */

.quiz-runner {
    width: 100%;
    max-width: var(--quiz-content-width);
    margin: 0 auto 48px auto;
}

.quiz-runner__col {
    max-width: 728px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quiz-runner__head {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quiz-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.quiz-stats__score {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--quiz-muted);
}

.quiz-stats__score strong {
    color: var(--quiz-ink);
}

/* Progress bar */
.quiz-progress {
    height: 6px;
    width: 100%;
    background: #e6e8ea;
    border-radius: 9999px;
    overflow: hidden;
}

.quiz-progress__fill {
    display: block;
    height: 100%;
    background: var(--quiz-ink);
    border-radius: inherit;
    transition: width 0.3s ease;
}

/* Question card */
.quiz-question-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 0px 0;
}

.quiz-q-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.quiz-q-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--quiz-ink);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.quiz-q-title {
    margin: 0;
    padding-top: 2px;
    font-size: 22px;
    font-weight: 600;
    line-height: 30.8px;
    color: var(--quiz-ink);
}

.quiz-q-image {
    margin: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.quiz-q-image img {
    display: block;
    width: 100%;
    height: 289px;
    object-fit: cover;
}

.quiz-q-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 14, 37, 0.05);
}

/* Options */
.quiz-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--quiz-border);
    border-radius: 12px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.quiz-option__letter {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eceef0;
    color: var(--quiz-muted);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.quiz-option__text {
    font-size: 16px;
    color: var(--quiz-muted);
    line-height: 25.6px;
}

/* Placeholder mark is replaced by a ✅/❌ emoji once answered */
.quiz-option__mark {
    display: none;
}

/* Result icon shown after an option is chosen */
.quiz-option--correct::after,
.quiz-option--wrong::after {
    content: "";
    flex-shrink: 0;
    margin-left: auto;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.quiz-option--correct::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M9.44995 18.375L3.32495 12.25L4.97495 10.6L9.44995 15.1L19 5.54999L20.65 7.17499L9.44995 18.375Z' fill='%2316a34a'/%3e%3c/svg%3e");
}

.quiz-option--wrong::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M6.22502 19.35L4.65002 17.775L10.425 12L4.65002 6.25002L6.22502 4.65002L12 10.4L17.775 4.65002L19.35 6.25002L13.6 12L19.35 17.775L17.775 19.35L12 13.6L6.22502 19.35Z' fill='%23ff0202'/%3e%3c/svg%3e");
}

/* Lock options once answered */
.quiz-options.is-answered .quiz-option {
    cursor: default;
}

/* Correct answer state */
.quiz-option--correct {
    background: rgba(22, 163, 74, 0.15);
    border: 2px solid #16a34a;
    padding: 16px;
}

.quiz-option--correct .quiz-option__letter {
    background: #16a34a;
    color: #fff;
}

.quiz-option--correct .quiz-option__text {
    color: #191c1e;
    font-weight: 700;
}

/* Selected-wrong answer state */
.quiz-option--wrong {
    background: rgba(255, 61, 107, 0.2);
    border: 2px solid #ff0202;
    padding: 16px;
}

.quiz-option--wrong .quiz-option__letter {
    background: #ff0808;
    color: #fff;
}

.quiz-option--wrong .quiz-option__text {
    color: #191c1e;
    font-weight: 700;
}

/* Image options — 2×2 grid */
.quiz-options-gird {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quiz-options-gird>li {
    margin: 0;
}

.quiz-option-img {
    display: block;
    width: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 16px;
}

.quiz-option-img:hover {
    transform: scale(1.01);
}

.quiz-option-img img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 12px;
}

.quiz-option-img__letter {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.quiz-options-gird.is-answered .quiz-option-img {
    cursor: default;
}

.quiz-option-img.quiz-option--correct {
    outline: 3px solid #16a34a;
    outline-offset: -3px;
}

.quiz-option-img.quiz-option--wrong {
    outline: 3px solid #ff0202;
    outline-offset: -3px;
}

.quiz-option-img.quiz-option--correct::after,
.quiz-option-img.quiz-option--wrong::after {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
}

@media (max-width: 480px) {
    .quiz-options-gird {
        gap: 8px;
    }
}

/* Explanation box — hidden until an option is chosen */
.quiz-explanation {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #f2f4f6;
    border-radius: 12px;
    padding: 24px 24px 24px 28px;
}

.quiz-explanation__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-explanation__head svg {
    width: 15px;
    height: 20px;
}

.quiz-explanation__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--quiz-ink);
}

.quiz-explanation__body {
    margin: 0;
    font-size: 16px;
    font-family: GoogleSans;
    line-height: 24px;
    color: var(--quiz-muted);
}

/* Reveal explanation after the question is answered */
.quiz-question-card.is-answered .quiz-explanation {
    display: flex;
}

.quiz-runner__nav {
    display: flex;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1164px) {
    .quiz-hero {
        padding: 56px 32px;
    }

    .category-grid {
        gap: 20px;
    }

    .category-layout {
        flex-direction: column;
    }

    .category-main {
        width: 100%;
    }

    .category-aside {
        flex-basis: auto;
        width: 100%;
    }

    .category-main__title {
        font-size: 28px;
        line-height: 32px;
    }

    .category-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .category-main__header,
    .detail-main__header--start {
        padding: 0 32px;
    }
}

@media (max-width: 767px) {
    .home-card-ls {
        gap: 12px;
    }

    .home-card-ls .home-card-item:nth-child(4) {
        display: flex;
    }

    .home-card-pic {
        height: 128px;
    }

    .home-card-body {
        padding: 16px;
        gap: 8px;
    }

    .home-card-tl {
        font-size: 16px;
        line-height: 1.3;
    }

    .icon-clock {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 632px) {
    .nav {
        gap: 20px;
    }

    /* Hide breadcrumbs on mobile, matching service.css */
    .breadcrumb {
        display: none;
    }

    .category-main,
    .detail-main {
        gap: 20px;
    }

    .category-main__header,
    .detail-main__header {
        margin-bottom: 20px;
        gap: 30px;
    }

    .detail-body {
        gap: 20px;
    }

    .quiz-hero__title {
        font-size: 28px;
        line-height: 1.2;
    }

    .quiz-hero__subtitle {
        font-size: 16px;
        line-height: 26px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    /* Tighten quiz runner vertical rhythm on mobile */
    .quiz-runner__head,
    .quiz-runner__col,
    .quiz-question-card {
        gap: 20px;
    }

    /* Quiz card: stack media on top of body, full-width Start Quiz CTA */
    .quiz-card {
        height: auto;
        flex-direction: column;
    }

    .quiz-card__media {
        flex: 0 0 160px;
        width: 100%;
    }

    .quiz-card__body {
        padding: 16px 20px;
        gap: 10px;
    }

    .quiz-card__title {
        line-height: 26px;
    }

    .quiz-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .header-search {
        width: 100%;
        order: 3;
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .detail-title {
        font-size: 28px;
        line-height: 32px;
    }

    .quiz-stats {
        flex-wrap: wrap;
        gap: 12px 24px;
    }

    .quiz-stats__score {
        margin-left: 0;
    }

    .detail-title.only {
        font-size: 26px;
        line-height: 30px;
    }

    .quiz-q-title.only {
        font-size: 20px;
        line-height: 24px;
    }

    .quiz-option.only {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .quiz-hero {
        padding: 40px 16px;
    }

    .main-index {
        padding: 32px 16px;
    }

    .nav-item,
    .header-signin {
        font-size: 14px;
    }

    .category-layout {
        padding: 0 16px;
    }

    .category-main__header,
    .detail-main__header--start {
        padding: 0 16px;
    }

    .quiz-runner {
        padding: 0 16px 48px;
    }

    .quiz-q-image img {
        height: 200px;
    }

    .quiz-option-img img {
        height: 120px;
    }
}