/* ============================================================
   QUIZZES MODULE — shared public styles
   Namespaced "qz-" throughout. Reuses the site's navy/teal/gold
   palette (see assets/css/style.css root variables) so the module
   feels native rather than bolted on.
   ============================================================ */

.qz-wrap { max-width: 980px; margin: 0 auto; padding: 44px 20px 64px; }
.qz-wrap.qz-narrow { max-width: 640px; }

.qz-head { text-align: center; margin-bottom: 30px; }
.qz-head .qz-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #eafaf6; color: var(--accent-dark, #149b80);
    font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.qz-head h1 { font-size: 28px; color: var(--navy, #2a3f54); margin: 0 0 8px; font-weight: 800; }
.qz-head p { color: #667; font-size: 14.5px; max-width: 520px; margin: 0 auto; }

/* ---- live search (quizzes.php) ---- */
.qz-search-wrap { max-width: 480px; margin: 0 auto 26px; }
.qz-search-box {
    position: relative; display: flex; align-items: center;
    background: #fff; border: 1.5px solid #e1e6ee; border-radius: 999px;
    padding: 4px 6px 4px 18px; box-shadow: 0 2px 10px rgba(42,63,84,.06);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.qz-search-box:focus-within {
    border-color: var(--accent, #1abb9c);
    box-shadow: 0 0 0 4px rgba(26,187,156,.14), 0 2px 10px rgba(42,63,84,.06);
}
.qz-search-icon { font-size: 15px; color: #9aa5b1; margin-right: 10px; flex-shrink: 0; }
.qz-search-box input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 14.5px; color: var(--navy, #2a3f54); padding: 10px 4px;
    min-width: 0;
}
.qz-search-box input::placeholder { color: #a9b2bf; }
.qz-search-clear {
    display: none; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
    background: #eef1f5; color: #6c7a8a; font-size: 12px; flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}
.qz-search-clear:hover { background: #e2e7ee; color: #2a3f54; }
.qz-search-clear.qz-search-clear-visible { display: flex; }
.qz-search-count { text-align: center; font-size: 12px; color: #8a94a3; margin-top: 8px; min-height: 16px; }

/* ---- category cards grid (quizzes.php) ---- */
.qz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.qz-card {
    position: relative; overflow: hidden;
    background: #fff; border-radius: 16px; padding: 26px 24px;
    box-shadow: 0 2px 14px rgba(42,63,84,.08);
    display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
    border-top: 4px solid var(--accent, #1abb9c);
}
.qz-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(42,63,84,.14); }
.qz-card .qz-icon { font-size: 34px; margin-bottom: 10px; }
.qz-card h3 { color: var(--navy, #2a3f54); font-size: 18px; margin: 0 0 8px; }
.qz-card p.qz-desc { color: #667; font-size: 13.5px; line-height: 1.55; flex: 1; margin: 0 0 16px; }
.qz-card .qz-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: #8a94a3; margin-bottom: 14px; gap: 8px; flex-wrap: wrap;
}
.qz-card .qz-meta .qz-free-pill {
    background: #f4f7fa; color: var(--accent-dark, #149b80); font-weight: 700;
    padding: 3px 10px; border-radius: 12px; font-size: 11px;
}
.qz-card .qz-meta .qz-price-pill {
    background: #fff8e6; color: #8a6d3b; font-weight: 700;
    padding: 3px 10px; border-radius: 12px; font-size: 11px;
}
.qz-card a.btn-primary { text-align: center; }
.qz-empty { text-align: center; color: #8a94a3; padding: 40px 0; grid-column: 1 / -1; }

/* ---- start form (quiz_start.php) ---- */
.qz-card-box {
    background: #fff; border-radius: 16px; padding: 28px 30px;
    box-shadow: 0 2px 14px rgba(42,63,84,.08); margin-bottom: 22px;
}
.qz-field { margin-bottom: 20px; }
.qz-field label { display: block; font-weight: 700; font-size: 13px; color: var(--navy, #2a3f54); margin-bottom: 8px; letter-spacing: .2px; }

/* Every text-ish input/select inside a .qz-field — including the phone
   number field's tel input + country-code select, which come from the
   shared includes/phone_field.php and set their own inline styles, hence
   the !important overrides (scoped to .qz-field so this never leaks out
   to phone_field.php's other callers elsewhere in the app). */
.qz-field input[type="text"],
.qz-field input[type="email"],
.qz-field input[type="tel"],
.qz-field select,
.qz-field textarea {
    width: 100%; box-sizing: border-box; font-family: inherit; color: #2c3e50;
    border: 1.5px solid #e0e6ef !important; border-radius: 10px !important;
    padding: 12px 14px !important; font-size: 14px !important;
    background: #fbfcfe !important;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.qz-field input[type="text"]::placeholder,
.qz-field input[type="email"]::placeholder,
.qz-field input[type="tel"]::placeholder { color: #a7b1bd; }

.qz-field input[type="text"]:hover,
.qz-field input[type="email"]:hover,
.qz-field input[type="tel"]:hover,
.qz-field select:hover { border-color: #c3cdda !important; }

.qz-field input:focus,
.qz-field select:focus,
.qz-field textarea:focus {
    outline: none; border-color: var(--accent, #1abb9c) !important; background: #fff !important;
    box-shadow: 0 0 0 3px rgba(26,187,156,.14);
}

/* Custom dropdown arrow for the country-code select — replaces the
   default OS-styled arrow so it matches the rest of the field styling. */
.qz-field select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23667'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 10px center !important;
    background-size: 14px !important; padding-right: 30px !important; cursor: pointer;
}

.qz-timer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.qz-timer-opt { position: relative; }
.qz-timer-opt input { position: absolute; opacity: 0; }
.qz-timer-opt label {
    display: block; text-align: center; padding: 12px 8px; border: 1.5px solid #e0e6ef;
    border-radius: 10px; font-weight: 700; color: #556; cursor: pointer; font-size: 13px;
    transition: all .12s ease; margin: 0;
}
.qz-timer-opt input:checked + label {
    border-color: var(--accent, #1abb9c); background: #eafaf6; color: var(--accent-dark, #149b80);
}
.qz-timer-opt label small { display: block; font-weight: 400; font-size: 10.5px; color: #8a94a3; margin-top: 2px; }
.qz-timer-opt input:checked + label small { color: var(--accent-dark, #149b80); }

.qz-submit {
    width: 100%; background: var(--accent, #1abb9c); color: #fff; border: none;
    padding: 14px; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .08s ease;
}
.qz-submit:hover { background: var(--accent-dark, #149b80); box-shadow: 0 4px 14px rgba(26,187,156,.28); }
.qz-submit:active { transform: translateY(1px); }

/* ---- "Recommend this Course" (quizzes.php cards) ---- */
.qz-recommend-row { display: flex; gap: 8px; margin-bottom: 10px; }
.qz-btn-recommend {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    flex: 1; box-sizing: border-box; background: #fff; color: #128C7E;
    border: 1.5px solid #25D366; padding: 10px 10px; border-radius: 9px;
    font-weight: 700; font-size: 13px; text-decoration: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    cursor: pointer; font-family: inherit;
}
.qz-btn-recommend:hover { background: #25D366; color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,.3); }
.qz-btn-recommend.qz-btn-recommend-copy { flex: 0 0 auto; color: #556; border-color: #cfd6e0; }
.qz-btn-recommend.qz-btn-recommend-copy:hover { background: #556; border-color: #556; color: #fff; box-shadow: 0 4px 12px rgba(85,102,102,.22); }

/* ---- "Recommend This Quiz" block on the quiz_play.php results screen ---- */
.qz-recommend-block {
    margin: 20px 0; padding: 16px 18px; border-radius: 12px;
    background: #F4F8FB; border: 1.5px solid #DCE6F0; text-align: left;
}
.qz-recommend-block .qz-recommend-row { margin-bottom: 0; }
@media (max-width: 480px) {
    .qz-recommend-block .qz-recommend-row { flex-direction: column; }
}

/* "Start Quiz" — restyled to match the outlined-pill look of Recommend
   above (was previously a solid .btn-primary block) so the actions on a
   quiz card read as one consistent button family instead of mixed
   languages. Full-width since each sits alone on its own row. Also reused
   (with the .qz-btn-info color modifier) for the "More Info" button. */
.qz-btn-start {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; box-sizing: border-box; background: #fff; color: var(--accent-dark, #149b80);
    border: 1.5px solid var(--accent, #1abb9c); padding: 11px 10px; border-radius: 9px;
    font-weight: 700; font-size: 14px; text-decoration: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    cursor: pointer; font-family: inherit;
}
.qz-btn-start:hover { background: var(--accent, #1abb9c); color: #fff; box-shadow: 0 4px 12px rgba(26,187,156,.3); }
.qz-btn-start.qz-btn-disabled { pointer-events: none; opacity: .6; border-color: #c3cdda; color: #8a94a3; background: #f7f8fa; }

/* "More Info" — same pill shape as Start Quiz, navy instead of teal so it
   reads as an informational action rather than the primary CTA. */
.qz-btn-start.qz-btn-info { color: #1E3A5F; border-color: #1E3A5F; font-size: 13px; padding: 10px; }
.qz-btn-start.qz-btn-info:hover { background: #1E3A5F; color: #fff; box-shadow: 0 4px 12px rgba(30,58,95,.25); }

/* ---- gameplay (quiz_play.php) ---- */
.qz-play-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.qz-progress-label { font-size: 13px; font-weight: 700; color: var(--navy, #2a3f54); }
.qz-score-pill { background: #f4f7fa; color: var(--navy, #2a3f54); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 14px; }

.qz-progress-bar { height: 8px; background: #eef1f6; border-radius: 5px; overflow: hidden; margin-bottom: 22px; }
.qz-progress-bar-fill { height: 100%; background: var(--accent, #1abb9c); transition: width .3s ease; }

.qz-timer-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qz-timer-bar { flex: 1; height: 14px; background: #eef1f6; border-radius: 8px; overflow: hidden; }
.qz-timer-bar-fill { height: 100%; background: var(--gold, #f4a623); transition: width 1s linear, background .3s ease; }
.qz-timer-num { font-weight: 800; font-size: 28px; color: var(--navy, #2a3f54); min-width: 60px; text-align: center; }
.qz-timer-wrap.qz-timer-danger .qz-timer-bar-fill { background: #c0392b; }
.qz-timer-wrap.qz-timer-danger .qz-timer-num { color: #c0392b; }

.qz-question-card {
    background: #fff; border-radius: 16px; padding: 30px 28px;
    box-shadow: 0 2px 14px rgba(42,63,84,.08); margin-bottom: 20px;
}
.qz-question-card h2 { font-size: 18px; color: var(--navy, #2a3f54); margin: 0 0 22px; line-height: 1.5; }

.qz-options { display: flex; flex-direction: column; gap: 12px; }
.qz-opt { position: relative; }
.qz-opt input { position: absolute; opacity: 0; }
.qz-opt label {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #e0e6ef;
    border-radius: 10px; cursor: pointer; font-size: 14.5px; color: #2c3e50; transition: all .12s ease; margin: 0;
}
.qz-opt label .qz-opt-letter {
    width: 28px; height: 28px; border-radius: 50%; background: #f4f7fa; color: var(--navy, #2a3f54);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px; flex-shrink: 0;
    transition: background .12s ease, color .12s ease;
}
/* Hovering over an answer choice (a "proposed solution" to the question) —
   a subtle color change, distinct from the stronger :checked state below. */
.qz-opt label:hover { border-color: var(--accent, #1abb9c); background: #f4fbf9; }
.qz-opt label:hover .qz-opt-letter { background: #d9f3ec; color: var(--accent-dark, #149b80); }
.qz-opt input:checked + label { border-color: var(--accent, #1abb9c); background: #eafaf6; }
.qz-opt input:checked + label .qz-opt-letter { background: var(--accent, #1abb9c); color: #fff; }

.qz-next-btn {
    width: 100%; margin-top: 22px; background: var(--accent, #1abb9c); color: #fff; border: none;
    padding: 14px; border-radius: 9px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.qz-next-btn:hover { background: var(--accent-dark, #149b80); }
.qz-next-btn:disabled { background: #b9c2cd; cursor: not-allowed; }

/* ---- advert interstitial ---- */
.qz-ad-card {
    background: linear-gradient(135deg, var(--navy, #2a3f54), #1e2f42); color: #fff;
    border-radius: 18px; padding: 40px 34px; text-align: center;
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.qz-ad-card .qz-ad-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffce54; margin-bottom: 14px; }
.qz-ad-card h2 { font-size: 22px; margin: 0 0 14px; color: #ffffff !important; text-shadow: 0 1px 3px rgba(0,0,0,.45); -webkit-text-fill-color: #ffffff; background: none; }
.qz-ad-card img { max-width: 100%; border-radius: 12px; margin-bottom: 18px; }
.qz-ad-card p { font-size: 14.5px; color: #cfd8e3; line-height: 1.6; max-width: 480px; margin: 0 auto 24px; }
.qz-ad-card .qz-ad-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.qz-ad-card a.qz-ad-cta {
    background: var(--gold, #f4a623); color: #2a1d00; font-weight: 700; padding: 12px 22px;
    border-radius: 9px; text-decoration: none; font-size: 14px;
}
.qz-ad-card a.qz-ad-continue {
    background: rgba(255,255,255,.12); color: #fff; font-weight: 700; padding: 12px 22px;
    border-radius: 9px; text-decoration: none; font-size: 14px; border: 1.5px solid rgba(255,255,255,.3);
}
.qz-ad-card a.qz-ad-continue:hover { background: rgba(255,255,255,.2); }

/* ---- paywall ---- */
.qz-pay-card {
    background: #fffaf0; border: 1.5px dashed #e3dcc9; border-radius: 14px;
    padding: 22px 24px; margin-bottom: 22px;
}
.qz-pay-card .qz-pay-price { font-size: 28px; font-weight: 800; color: var(--navy, #2a3f54); }
.qz-pay-card .qz-pay-price small { font-size: 12px; font-weight: 600; color: #8a94a3; display: block; margin-top: 2px; }
.qz-pay-row { font-size: 13.5px; color: #4a4536; margin-bottom: 6px; }
.qz-pay-row code { background: #fff; padding: 2px 7px; border-radius: 4px; font-size: 12px; }

.qz-waiting {
    background: #fff; border-radius: 16px; padding: 34px 28px; text-align: center;
    box-shadow: 0 2px 14px rgba(42,63,84,.08);
}
.qz-waiting .qz-waiting-icon { font-size: 40px; margin-bottom: 12px; }
.qz-waiting h2 { color: var(--navy, #2a3f54); margin: 0 0 10px; }
.qz-waiting p { color: #667; font-size: 14px; max-width: 440px; margin: 0 auto; }
.qz-waiting .qz-ref { display: inline-block; font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: 1.5px;
    background: #f4f7fa; padding: 8px 18px; border-radius: 8px; margin-top: 14px; color: var(--navy, #2a3f54); }

/* ---- results ---- */
.qz-result-card {
    background: #fff; border-radius: 18px; padding: 40px 30px; text-align: center;
    box-shadow: 0 10px 32px rgba(42,63,84,.14);
}
.qz-result-score { font-size: 46px; font-weight: 800; color: var(--accent, #1abb9c); margin: 6px 0; }
.qz-result-card h2 { color: var(--navy, #2a3f54); margin: 0 0 6px; }
.qz-result-card p { color: #667; font-size: 14px; }
.qz-result-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---- question navigation row (Previous / End Quiz) ---- */
.qz-nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.qz-btn-ghost {
    background: none; border: 1.5px solid #e0e6ef; color: #667; padding: 10px 18px;
    border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; display: inline-block;
}
.qz-btn-ghost:hover { border-color: #b9c2cd; color: #445; }
.qz-btn-end {
    background: none; border: 1.5px solid #f3c2bb; color: #c0392b; padding: 10px 18px;
    border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.qz-btn-end:hover { background: #fdecea; }
.qz-review-badge {
    display: inline-block; background: #fff8e6; color: #8a6d3b; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 12px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .4px;
}

/* ---- results: correct/wrong list ---- */
.qz-results-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.qz-result-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px;
    background: #f9fafb; font-size: 13.5px; color: #2c3e50;
}
.qz-result-item .qz-ri-icon { font-size: 16px; flex-shrink: 0; }
.qz-result-item.correct { background: #eafaf6; }
.qz-result-item.wrong { background: #fdecea; }
.qz-result-item .qz-ri-text { flex: 1; }
.qz-result-item .qz-ri-num { font-weight: 700; color: #8a94a3; min-width: 26px; }

/* ---- attempt history table on results (quiz_play.php) ---- */
.qz-attempt-history { margin: 20px 0 26px; }

/* ---- certificate banner on results ---- */
.qz-cert-banner {
    background: linear-gradient(135deg, #f4a623, #e8940f); color: #fff; border-radius: 14px;
    padding: 22px 24px; margin: 20px 0; text-align: center;
}
.qz-cert-banner h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.qz-cert-banner p { margin: 0 0 14px; font-size: 13.5px; color: #fff3dd; }
.qz-cert-banner a.btn-primary { background: #2a3f54; }

/* ---- paywall expiry notice ---- */
.qz-expired-note {
    background: #fdecea; color: #922b21; border: 1px solid #f3c2bb; padding: 14px 18px;
    border-radius: 10px; margin-bottom: 20px; font-size: 13.5px;
}

/* ---- question flag/report control ---- */
.qz-flag-row { text-align: center; margin-top: 14px; }
.qz-flag-btn { background: none; border: none; color: #a2acb8; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px; }
.qz-flag-btn:hover { color: #c0392b; }
.qz-flag-row-email { text-align: center; margin-top: 14px; font-size: 12px; color: #8a94a3; }
.qz-flag-row-email a { color: #556; font-weight: 600; }

/* ---- overall whole-quiz timer badge ---- */
.qz-overall-timer {
    display: inline-flex; align-items: center; gap: 9px;
    background: #eef4ff; color: #2a3f54; font-size: 18px; font-weight: 800;
    padding: 10px 20px; border-radius: 24px; margin-bottom: 14px;
}
.qz-overall-timer-icon { font-size: 19px; }
.qz-overall-timer.qz-timer-danger { background: #fdecea; color: #c0392b; }

/* ---- sponsorship ---- */
.qz-sponsor-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: #8a94a3; margin-top: 8px;
}
.qz-sponsor-badge img { height: 16px; width: auto; border-radius: 3px; }
.qz-sponsor-badge a { color: #556; font-weight: 600; text-decoration: none; }
.qz-sponsor-badge a:hover { text-decoration: underline; }
.qz-sponsor-banner {
    margin: -26px -24px 18px;
}
.qz-sponsor-banner-label {
    text-align: center; font-weight: 800; font-size: 13px; color: var(--navy, #2a3f54);
    padding: 12px 14px 8px; letter-spacing: .2px;
}
.qz-sponsor-banner-name {
    background: #3B6EC9; color: #fff;
    font-weight: 800; font-size: 17px; text-align: center;
    padding: 11px 16px; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qz-sponsor-banner-name a { color: #fff; text-decoration: none; }
.qz-sponsor-banner-name a:hover { text-decoration: underline; }
.qz-sponsor-badge-circle {
    display: flex; justify-content: center; margin: 14px 0 2px;
}
.qz-sponsor-badge-circle img {
    width: 84px; height: 84px; border-radius: 50%;
    object-fit: cover; background: #fff;
    border: 3px solid #fff; box-shadow: 0 2px 10px rgba(42,63,84,.18);
}
.qz-sponsor-strip {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #fffaf0, #fff4de);
    border: 2px solid var(--gold, #f4a623); border-radius: 12px;
    padding: 14px 18px; margin: 16px 0 22px;
}
.qz-sponsor-strip-logo {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(42,63,84,.15);
}
.qz-sponsor-strip-text { flex: 1; text-align: left; }
.qz-sponsor-strip-label {
    display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: #a3771a; margin-bottom: 2px;
}
.qz-sponsor-strip-name { font-size: 15.5px; color: #2a3f54; }
.qz-sponsor-strip-name a { color: #2a3f54; text-decoration: none; }
.qz-sponsor-strip-name a:hover { text-decoration: underline; }
.qz-sponsor-strip-tagline { display: block; font-size: 12.5px; color: #7a6a45; margin-top: 2px; }
.qz-access-note {
    background: #eafaf3; border: 1px solid #b7ecd4; color: #1a7a52;
    border-radius: 10px; padding: 10px 16px; margin: 14px 0 0;
    font-size: 12.5px; text-align: center; font-weight: 600;
}
.qz-cert-callout {
    background: #fff8e6; border: 1px solid #f4dfa8; color: #7a5c14;
    border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; font-size: 14px; text-align: center;
}
.qz-cert-callout strong { color: #5c4407; }

/* Slim teaser bar, shown right under the top callouts (well above the
   quiz grid) so the business-facing offers (sponsorship, corporate
   access) aren't buried at the very bottom of a long page of quiz
   cards. Each pill just jumps down to its full pitch further down the
   page via #sponsor-invite / #corp-invite — the grid of quizzes stays
   the visual priority, this is a signpost, not a competing hero. */
.qz-promo-teaser { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 30px; }
.qz-promo-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 30px; text-decoration: none;
    font-size: 13px; font-weight: 700; border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .15s ease;
}
.qz-promo-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.qz-promo-pill span { font-weight: 400; opacity: .85; }
.qz-promo-pill-corp { background: #eafaf6; color: #0d6b56; border-color: #9adfd1; }
.qz-promo-pill-sponsor { background: #fff8e6; color: #7a5c14; border-color: #f4dfa8; }

/* Offsets the sticky 58px header when jumping to an anchor via the
   teaser pills above. */
#sponsor-invite, #corp-invite { scroll-margin-top: 78px; }
/* "Want to Sponsor a Quiz?" — the site's own Certificate of Knowledge is
   the actual product, so the pitch borrows its visual language: a medal
   ribbon (this section's signature element) instead of a generic
   gradient-box-with-button ad. The seal deliberately echoes
   .qz-sponsor-badge-circle (the circular sponsor logo already shown on a
   sponsored quiz card) so a prospect immediately reads "that circle could
   be my logo." Benefits are the real, specific things the product does
   for a sponsor (banner, cert credit, report) — no invented stats. */
.qz-sponsor-invite {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-start; gap: 26px;
    background: linear-gradient(150deg, #1E3A5F 0%, #2a3f54 46%, #1c2e40 100%);
    color: #fff; border-radius: 18px; padding: 30px 32px; margin-top: 36px;
    text-align: left;
}
.qz-sponsor-invite::before {
    /* faint radial glow, top-right — quiet atmosphere, not a decoration
       that competes with the seal */
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244,166,35,.16), transparent 70%);
    pointer-events: none;
}
.qz-sponsor-invite-seal {
    flex-shrink: 0; position: relative; width: 78px; padding-top: 2px;
}
.qz-sponsor-invite-seal-ring {
    display: flex; align-items: center; justify-content: center;
    width: 78px; height: 78px; border-radius: 50%; font-size: 30px;
    background: linear-gradient(155deg, #f4a623, #d98c12);
    border: 3px dashed rgba(255,255,255,.55);
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    position: relative; z-index: 1;
}
/* the ribbon tails hanging beneath the medal */
.qz-sponsor-invite-seal::after {
    content: ''; position: absolute; top: 62px; left: 16px;
    width: 46px; height: 34px;
    background: #d98c12;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
    z-index: 0;
}
.qz-sponsor-invite-body { flex: 1; min-width: 0; }
.qz-sponsor-invite-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: #f4a623; margin-bottom: 8px;
}
.qz-sponsor-invite h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.25; color: #fff; }
.qz-sponsor-invite p { margin: 0 0 18px; color: #cbd8ea; font-size: 14px; line-height: 1.6; max-width: none; }
.qz-sponsor-invite-benefits { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; }
.qz-sponsor-invite-benefits li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; color: #e8eef7; line-height: 1.4;
}
.qz-sponsor-invite-benefits li span { flex-shrink: 0; font-size: 15px; }
.qz-sponsor-invite-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f4a623; color: #2a3f54; font-weight: 800; font-size: 14px;
    padding: 12px 22px; border-radius: 10px; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.qz-sponsor-invite-cta:hover { background: #ffb93d; box-shadow: 0 6px 20px rgba(0,0,0,.3); transform: translateY(-1px); }

@media (max-width: 560px) {
    .qz-sponsor-invite { flex-direction: column; align-items: center; text-align: center; padding: 28px 22px; }
    .qz-sponsor-invite-seal { margin: 0 auto; }
    .qz-sponsor-invite p { max-width: none; }
    .qz-sponsor-invite-benefits li { justify-content: center; }
}

/* "Running a Team? Send Them In Together" — the Corporate Quiz Access
   pitch. Deliberately mirrors .qz-sponsor-invite's shape (same dark
   panel, icon badge + heading + benefits + CTA) so the two read as a
   matched pair of "this is a business, not just a quiz" cards, but
   swaps the gold medal-ribbon for a teal key badge and drops the accent
   to --accent teal instead of gold, so the two panels stay visually
   distinct at a glance. */
.qz-corp-invite {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-start; gap: 26px;
    background: linear-gradient(150deg, #103b36 0%, #16504a 46%, #0d2e2a 100%);
    color: #fff; border-radius: 18px; padding: 30px 32px; margin-top: 22px;
    text-align: left;
}
.qz-corp-invite::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(26,187,156,.20), transparent 70%);
    pointer-events: none;
}
.qz-corp-invite-badge {
    flex-shrink: 0; width: 78px; height: 78px; border-radius: 20px; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(155deg, #1abb9c, #128f76);
    border: 3px solid rgba(255,255,255,.3);
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.qz-corp-invite-body { flex: 1; min-width: 0; }
.qz-corp-invite-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
    text-transform: uppercase; color: #4fd8bd; margin-bottom: 8px;
}
.qz-corp-invite h3 { margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.25; color: #fff; }
.qz-corp-invite p { margin: 0 0 18px; color: #cfe8e2; font-size: 14px; line-height: 1.6; max-width: none; }
.qz-corp-invite-benefits { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; }
.qz-corp-invite-benefits li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; color: #e8f7f2; line-height: 1.4;
}
.qz-corp-invite-benefits li span { flex-shrink: 0; font-size: 15px; }
.qz-corp-invite-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qz-corp-invite-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1abb9c; color: #0d2e2a; font-weight: 800; font-size: 14px;
    padding: 12px 22px; border-radius: 10px; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.qz-corp-invite-cta:hover { background: #22d6b2; box-shadow: 0 6px 20px rgba(0,0,0,.3); transform: translateY(-1px); }
.qz-corp-invite-link {
    color: #cfe8e2; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.qz-corp-invite-link:hover { color: #fff; }

@media (max-width: 560px) {
    .qz-corp-invite { flex-direction: column; align-items: center; text-align: center; padding: 28px 22px; }
    .qz-corp-invite-badge { margin: 0 auto; }
    .qz-corp-invite p { max-width: none; }
    .qz-corp-invite-benefits li { justify-content: center; }
    .qz-corp-invite-actions { justify-content: center; }
}

/* ---- leaderboard (quiz_leaderboard.php) ---- */
.qz-lb-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.qz-lb-pill { display: inline-block; background: #f4f6f8; color: #556; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 18px; text-decoration: none; }
.qz-lb-pill.active { background: var(--navy, #2a3f54); color: #fff; }
.qz-lb-pill:hover { background: #e3e8ee; }
.qz-lb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.qz-lb-table th { text-align: left; color: #8a94a3; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 2px solid #eef1f4; }
.qz-lb-table td { padding: 12px 10px; border-bottom: 1px solid #f2f4f7; color: #2c3e50; }
.qz-lb-table tr:last-child td { border-bottom: none; }
.qz-lb-rank { font-weight: 800; color: var(--navy, #2a3f54); width: 34px; }
.qz-lb-pct { background: #eafaf6; color: #149b80; font-weight: 700; padding: 3px 10px; border-radius: 12px; font-size: 12px; }

@media (max-width: 560px) {
    .qz-grid { grid-template-columns: 1fr; }
    .qz-card-box, .qz-question-card { padding: 22px 18px; }
    .qz-lb-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}
