/*
Theme Name: Onlink Digital LMS Child
Theme URI: https://scopecove.com/
Description: Child theme for Onlink Digital LMS (EduBlink) - TCF Canada Platform
Author: ScopeCove
Author URI: https://scopecove.com/
Template: edublink
Version: 2.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edublink-child
*/

/* ==========================================================================
   TCF Dashboard Premium Design System
   "Refined Academic Premium" — 2026 Palette Update
   ========================================================================== */

/* -----------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens) — 2026 Warm Palette
   -------------------------------------------------------------------------- */
:root {
    /* ─── Base ─── */
    --tcf-bg: #F6F5F1;                    /* Warm limestone — NOT pure white */
    --tcf-surface: #FFFFFF;
    --tcf-text: #1C1917;                  /* Warm near-black */
    --tcf-text-muted: #78716C;            /* Stone grey */
    --tcf-border: rgba(28, 25, 23, 0.06);

    /* ─── Welcome Banner — TCF Canada Exam Brand Colors ─── */
    /* Logo palette: #5CE1E6 (cyan), #56A3D9 (sky), #1B5FC4 (royal), #0C2340 (navy), #E8292C (red) */
    --tcf-banner-from: #0C2340;           /* Dark navy from logo */
    --tcf-banner-mid: #143A6B;            /* Transitional blue */
    --tcf-banner-to: #1B5FC4;             /* Royal blue from logo */
    --tcf-banner-cyan: rgba(92, 225, 230, 0.15);  /* Cyan glow */
    --tcf-banner-red: rgba(232, 41, 44, 0.06);    /* Red hint */

    /* ─── CE Buttons — Rich Indigo (consistent for ALL CE buttons) ─── */
    --tcf-ce-from: #4338CA;
    --tcf-ce-to: #5B52E0;
    --tcf-ce-glow: rgba(67, 56, 202, 0.25);

    /* ─── CO Buttons — Deep Teal (consistent for ALL CO buttons) ─── */
    --tcf-co-from: #0F766E;
    --tcf-co-to: #14B8A6;
    --tcf-co-glow: rgba(15, 118, 110, 0.25);

    /* ─── Pack Gratuit CE — Muted Violet ─── */
    --tcf-free-ce-from: #6D28D9;
    --tcf-free-ce-to: #8B5CF6;
    --tcf-free-ce-glow: rgba(109, 40, 217, 0.2);

    /* ─── Pack Gratuit CO — Warm Rose ─── */
    --tcf-free-co-from: #BE123C;
    --tcf-free-co-to: #E11D48;
    --tcf-free-co-glow: rgba(190, 18, 60, 0.2);

    /* ─── Sujets Expression — Slate Blue ─── */
    --tcf-sujets-from: #475569;
    --tcf-sujets-to: #64748B;
    --tcf-sujets-glow: rgba(71, 85, 105, 0.2);

    /* ─── Corrections Expression Orale — Warm Amber ─── */
    --tcf-expr-oral-from: #D97706;
    --tcf-expr-oral-to: #F59E0B;
    --tcf-expr-oral-glow: rgba(217, 119, 6, 0.2);

    /* ─── Corrections Expression Écrite — Deep Cyan ─── */
    --tcf-expr-ecrit-from: #0E7490;
    --tcf-expr-ecrit-to: #06B6D4;
    --tcf-expr-ecrit-glow: rgba(14, 116, 144, 0.2);

    /* ─── Shadows (warmer, layered) ─── */
    --tcf-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(28, 25, 23, 0.06);
    --tcf-shadow-md: 0 2px 4px rgba(28, 25, 23, 0.04), 0 4px 12px rgba(28, 25, 23, 0.08);
    --tcf-shadow-lg: 0 4px 6px rgba(28, 25, 23, 0.04), 0 10px 30px rgba(28, 25, 23, 0.1);

    /* Transitions */
    --tcf-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------------------------------
   Page Background — Warm Limestone with Subtle Noise
   -------------------------------------------------------------------------- */
.tcf-dashboard-page {
    background-color: var(--tcf-bg);
    position: relative;
}

/* Subtle noise texture overlay */
.tcf-dashboard-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.tcf-dashboard-page .edublink-page-title-area {
    display: none;
}

/* -----------------------------------------------------------------------------
   Dashboard Container
   -------------------------------------------------------------------------- */
.tcf-dash {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* -----------------------------------------------------------------------------
   Welcome Banner — TCF Canada Exam Brand Colors
   -------------------------------------------------------------------------- */
.tcf-banner {
    position: relative;
    background: linear-gradient(135deg, var(--tcf-banner-from) 0%, var(--tcf-banner-mid) 40%, var(--tcf-banner-to) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 16px;
    overflow: hidden;
}

/* Cyan orb glow — top-right (logo cyan #5CE1E6) */
.tcf-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 85% 25%, rgba(92, 225, 230, 0.15) 0%, rgba(92, 225, 230, 0.05) 30%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Red hint orb — bottom-left (maple leaf #E8292C) */
.tcf-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 90%, rgba(232, 41, 44, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient orb — cyan tinted */
.tcf-banner__orb {
    position: absolute;
    top: -60%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(92, 225, 230, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

.tcf-banner__content {
    position: relative;
    z-index: 1;
}

.tcf-banner__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.tcf-banner__quote {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px;
}

.tcf-banner__meta {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 28px;
}

/* Navigation buttons - glass effect with cyan tint */
.tcf-banner__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tcf-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: rgba(92, 225, 230, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(92, 225, 230, 0.2);
    border-radius: 30px;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s var(--tcf-ease);
}

.tcf-nav-btn:hover {
    background: rgba(92, 225, 230, 0.2);
    border-color: rgba(92, 225, 230, 0.35);
    transform: scale(1.03);
    color: #FFFFFF;
    text-decoration: none;
}

.tcf-nav-btn--active {
    background: rgba(92, 225, 230, 0.18);
    border-color: rgba(92, 225, 230, 0.4);
}

/* -----------------------------------------------------------------------------
   Attention Notice — Warmer Tones
   -------------------------------------------------------------------------- */
.tcf-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FEF7ED;
    border-left: 4px solid #F59E0B;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.tcf-notice__icon {
    font-size: 22px;
    color: #D97706;
    flex-shrink: 0;
}

.tcf-notice__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #78350F;
    margin: 0;
    line-height: 1.5;
}

.tcf-notice__text strong {
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Section Cards — Clean White with Warm Border
   -------------------------------------------------------------------------- */
.tcf-card {
    background: var(--tcf-surface);
    border-radius: 20px;
    border: 1px solid var(--tcf-border);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--tcf-shadow-sm);
    transition: box-shadow 0.2s var(--tcf-ease);
}

.tcf-card:hover {
    box-shadow: var(--tcf-shadow-md);
}

/* Section header with decorative lines — thinner, warmer */
.tcf-card__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.tcf-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--tcf-text);
    letter-spacing: -0.02em;
    margin: 0;
    white-space: nowrap;
}

.tcf-card__header::before,
.tcf-card__header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.08), transparent);
}

.tcf-card__header::before {
    flex: 0;
    width: 0;
}

.tcf-card__body {
    /* Container for grids */
}

/* -----------------------------------------------------------------------------
   Sub-section Labels
   -------------------------------------------------------------------------- */
.tcf-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tcf-text-muted);
    margin: 0 0 14px;
}

/* -----------------------------------------------------------------------------
   Button Grid
   -------------------------------------------------------------------------- */
.tcf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tcf-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

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

/* -----------------------------------------------------------------------------
   Premium Buttons — 2026 Refined Style
   -------------------------------------------------------------------------- */
.tcf-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    box-shadow: var(--tcf-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.2s var(--tcf-ease);
    /* Animation delay */
    opacity: 0;
    animation: fadeInUp 0.5s var(--tcf-ease) forwards;
    animation-delay: calc(var(--i, 0) * 0.025s);
}

.tcf-btn span {
    position: relative;
    z-index: 1;
}

/* Shine sweep effect */
.tcf-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
    transition: left 0.5s var(--tcf-ease);
    z-index: 0;
}

.tcf-btn:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
    text-decoration: none;
    filter: brightness(1.05);
}

.tcf-btn:hover::before {
    left: 100%;
}

.tcf-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------------------------------------------
   Button Color Variants — 2026 Cohesive Palette
   -------------------------------------------------------------------------- */

/* CE PRO — Rich Indigo (ALL 40 buttons same color) */
.tcf-btn--ce {
    background: linear-gradient(135deg, var(--tcf-ce-from), var(--tcf-ce-to));
}
.tcf-btn--ce:hover {
    box-shadow: 0 8px 24px var(--tcf-ce-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* CO PRO — Deep Teal (ALL 40 buttons same color) */
.tcf-btn--co {
    background: linear-gradient(135deg, var(--tcf-co-from), var(--tcf-co-to));
}
.tcf-btn--co:hover {
    box-shadow: 0 8px 24px var(--tcf-co-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Pack Gratuit CE — Muted Violet */
.tcf-btn--free-ce {
    background: linear-gradient(135deg, var(--tcf-free-ce-from), var(--tcf-free-ce-to));
}
.tcf-btn--free-ce:hover {
    box-shadow: 0 8px 24px var(--tcf-free-ce-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Pack Gratuit CO — Warm Rose */
.tcf-btn--free-co {
    background: linear-gradient(135deg, var(--tcf-free-co-from), var(--tcf-free-co-to));
}
.tcf-btn--free-co:hover {
    box-shadow: 0 8px 24px var(--tcf-free-co-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Sujets Expression — Slate Blue */
.tcf-btn--sujets {
    background: linear-gradient(135deg, var(--tcf-sujets-from), var(--tcf-sujets-to));
}
.tcf-btn--sujets:hover {
    box-shadow: 0 8px 24px var(--tcf-sujets-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Expression Orale — Warm Amber */
.tcf-btn--expr-oral {
    background: linear-gradient(135deg, var(--tcf-expr-oral-from), var(--tcf-expr-oral-to));
}
.tcf-btn--expr-oral:hover {
    box-shadow: 0 8px 24px var(--tcf-expr-oral-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Expression Écrite — Deep Cyan */
.tcf-btn--expr-ecrit {
    background: linear-gradient(135deg, var(--tcf-expr-ecrit-from), var(--tcf-expr-ecrit-to));
}
.tcf-btn--expr-ecrit:hover {
    box-shadow: 0 8px 24px var(--tcf-expr-ecrit-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* -----------------------------------------------------------------------------
   Login Card (for non-logged-in users)
   -------------------------------------------------------------------------- */
.tcf-login-card {
    max-width: 420px;
    margin: 60px auto;
    text-align: center;
    background: var(--tcf-surface);
    border-radius: 24px;
    border: 1px solid var(--tcf-border);
    padding: 48px 40px;
    box-shadow: var(--tcf-shadow-lg);
}

.tcf-login-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tcf-ce-from), var(--tcf-ce-to));
    border-radius: 20px;
    color: white;
}

.tcf-login-card__icon svg {
    width: 40px;
    height: 40px;
}

.tcf-login-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--tcf-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.tcf-login-card__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--tcf-text-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

.tcf-login-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--tcf-ce-from), var(--tcf-ce-to));
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s var(--tcf-ease);
    box-shadow: 0 4px 15px var(--tcf-ce-glow);
}

.tcf-login-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--tcf-ce-glow);
    color: #FFFFFF;
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 992px) {
    .tcf-dash {
        padding: 24px 20px 60px;
    }

    .tcf-banner {
        padding: 36px;
    }

    .tcf-banner__title {
        font-size: 26px;
    }

    .tcf-card {
        padding: 28px;
    }

    .tcf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .tcf-dash {
        padding: 16px 16px 48px;
    }

    .tcf-banner {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .tcf-banner__title {
        font-size: 22px;
    }

    .tcf-banner__quote {
        font-size: 14px;
    }

    .tcf-banner__nav {
        flex-direction: column;
        gap: 10px;
    }

    .tcf-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .tcf-notice {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px 16px;
    }

    .tcf-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .tcf-card__title {
        font-size: 18px;
    }

    .tcf-card__header {
        margin-bottom: 20px;
    }

    .tcf-grid,
    .tcf-grid--2 {
        grid-template-columns: 1fr;
    }

    .tcf-btn {
        min-height: 56px;
        padding: 16px 20px;
        font-size: 14px;
    }

    .tcf-login-card {
        margin: 40px 16px;
        padding: 36px 24px;
    }

    .tcf-login-card__title {
        font-size: 20px;
    }
}

/* Small mobile */
@media (max-width: 375px) {
    .tcf-banner__title {
        font-size: 20px;
    }

    .tcf-card__title {
        font-size: 16px;
    }
}

/* -----------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .tcf-banner__nav,
    .tcf-notice {
        display: none;
    }

    .tcf-btn {
        break-inside: avoid;
        background: #f0f0f0 !important;
        color: #000 !important;
        box-shadow: none !important;
    }
}

/* ============================================================
   TCF QUIZ PAGE — CLEAN EXAM INTERFACE
   Tested & confirmed working selectors — March 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ===== HIDE CLUTTER ===== */
.single-sfwd-quiz .edublink-page-title-area { display: none !important; }
.single-sfwd-quiz .post-main-title { display: none !important; }
.single-sfwd-quiz .blog-details-top { display: none !important; }
.single-sfwd-quiz .blog-meta { display: none !important; }
.single-sfwd-quiz .ld-breadcrumbs { display: none !important; }
.single-sfwd-quiz .wpProQuiz_content > h2 { display: none !important; }
.single-sfwd-quiz #secondary { display: none !important; }

/* ===== AUTO-START: Hide quiz intro screen ===== */
/* Hide intro text — quiz auto-starts via JS so users never see the button */
.single-sfwd-quiz .wpProQuiz_text { display: none !important; }

/* Hide the Start Quiz button area completely since JS auto-clicks it */
.single-sfwd-quiz .wpProQuiz_startOnly498,
.single-sfwd-quiz .wpProQuiz_quiz > div:has(input[name="startQuiz"]):not(:has(.wpProQuiz_listItem)) {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

/* ===== FULL-WIDTH LAYOUT ===== */
.single-sfwd-quiz #primary.edublink-col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.single-sfwd-quiz .edublink-row {
    justify-content: center !important;
}

/* ===== PAGE BACKGROUND ===== */
.single-sfwd-quiz {
    background: #F8F9FC !important;
}

/* ===== QUIZ CONTAINER ===== */
.single-sfwd-quiz .wpProQuiz_content {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 20px 40px !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ===== QUIZ TITLE ===== */
.single-sfwd-quiz .entry-title,
.single-sfwd-quiz h1.entry-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: #1C1917 !important;
    text-align: center !important;
    margin: 30px auto 24px !important;
    max-width: 900px !important;
    padding: 0 20px !important;
}

/* ══════════════════════════════════════════
   QUIZ LAYOUT — Spacing & Navigation Frame
   ══════════════════════════════════════════ */

/* Reduce gap between header and quiz content (was 115px, now ~50px) */
.single-sfwd-quiz .edublink-main-content-inner.edublink-row {
    padding-top: 50px !important;
}

/* Blue frame around the question navigation grid */
.single-sfwd-quiz .wpProQuiz_reviewQuestion.learndash-quiz-review {
    border: 3px solid #1B5FC4 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    background: #F7F9FC !important;
}

/* ══════════════════════════════════════════
   STICKY BOTTOM TIMER BAR
   ══════════════════════════════════════════ */

/* CRITICAL: Kill LearnDash ::before white bar overlay */
.single-sfwd-quiz .wpProQuiz_time_limit::before {
    display: none !important;
    content: none !important;
}

/* Timer container — fixed to bottom, light clean background */
.single-sfwd-quiz .wpProQuiz_time_limit {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #F0F3F6 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08) !important;
    border-top: 1px solid #E2E8F0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* Time text — dark navy on light background */
.single-sfwd-quiz .wpProQuiz_time_limit .time {
    text-align: center !important;
    padding: 12px 20px 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0C2340 !important;
    letter-spacing: 0.3px !important;
    background: transparent !important;
    margin: 0 !important;
    border: none !important;
}

/* Progress bar — visible gradient, no stripes */
.single-sfwd-quiz .wpProQuiz_time_limit .wpProQuiz_progress {
    height: 8px !important;
    background: linear-gradient(90deg, #1B5FC4, #5CE1E6) !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background-size: 100% 100% !important;
    -webkit-animation: none !important;
    animation: none !important;
}

/* Body padding so content isn't hidden behind fixed bar */
body.single-sfwd-quiz {
    padding-bottom: 65px !important;
}

/* Hide scroll-to-top button on quiz pages (overlaps timer) */
.single-sfwd-quiz .devsblink-progress-parent {
    display: none !important;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .single-sfwd-quiz .wpProQuiz_time_limit .time {
        font-size: 14px !important;
        padding: 10px 15px 7px !important;
    }

    .single-sfwd-quiz .wpProQuiz_time_limit .wpProQuiz_progress {
        height: 6px !important;
    }

    body.single-sfwd-quiz {
        padding-bottom: 55px !important;
    }
}

/* iPhone safe area (home indicator) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .single-sfwd-quiz .wpProQuiz_time_limit {
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

/* ===== QUESTION NAVIGATION ===== */
.wpProQuiz_reviewQuestion {
    background: #FFFFFF !important;
    border: 1px solid rgba(28, 25, 23, 0.06) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.wpProQuiz_reviewQuestion ol {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpProQuiz_reviewQuestion ol li {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    text-align: center !important;
    border-radius: 50% !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1.5px solid rgba(28, 25, 23, 0.1) !important;
    background: #FFFFFF !important;
    color: #1C1917 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.wpProQuiz_reviewQuestion ol li button {
    border-radius: 50% !important;
}

.wpProQuiz_reviewQuestion ol li:hover {
    border-color: #1B5FC4 !important;
    color: #1B5FC4 !important;
    background: rgba(27, 95, 196, 0.03) !important;
}

.wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionTarget {
    background: #1B5FC4 !important;
    color: #FFFFFF !important;
    border-color: #1B5FC4 !important;
    box-shadow: 0 2px 8px rgba(27, 95, 196, 0.3) !important;
    font-weight: 600 !important;
}

/* Answered questions — GREEN (correct class: wpProQuiz_reviewQuestionSolved) */
.single-sfwd-quiz .wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionSolved {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
}
.single-sfwd-quiz .wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionSolved button {
    color: #FFFFFF !important;
}

/* Legend color indicators — circles instead of squares */
.single-sfwd-quiz .wpProQuiz_reviewColor {
    border-radius: 50% !important;
    width: 14px !important;
    height: 14px !important;
}

/* Legend: "actuel" (current) — white circle with blue outline */
.single-sfwd-quiz .wpProQuiz_reviewQuestion_Target {
    background: #FFFFFF !important;
    border: 2px solid #1B5FC4 !important;
    border-radius: 50% !important;
    width: 14px !important;
    height: 14px !important;
    display: inline-block !important;
}

/* Legend: Répondu dot green */
.single-sfwd-quiz .wpProQuiz_reviewLegend .wpProQuiz_reviewColor_Answer {
    background: #10B981 !important;
    border-color: #10B981 !important;
    border-radius: 50% !important;
}

/* Révision (Review) — full orange circle, hide the small dot */
/* Hide LearnDash 4.x ::before pseudo-element (small dot above circle) */
.single-sfwd-quiz .wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionReview::before {
    display: none !important;
    content: none !important;
}
/* Fill entire circle orange */
.single-sfwd-quiz .wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionReview {
    background: #F59E0B !important;
    color: #FFFFFF !important;
    border-color: #F59E0B !important;
}
.single-sfwd-quiz .wpProQuiz_reviewQuestion ol li.wpProQuiz_reviewQuestionReview button {
    color: #FFFFFF !important;
}

/* ===== QUESTION CARD ===== */
.wpProQuiz_listItem {
    background: #FFFFFF !important;
    border: 1px solid rgba(28, 25, 23, 0.06) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-top: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.wpProQuiz_question_page {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #78716C !important;
    margin-bottom: 6px !important;
}

.wpProQuiz_question_text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15.5px !important;
    line-height: 1.7 !important;
    color: #1C1917 !important;
    margin-bottom: 24px !important;
}

/* ===== ANSWER OPTIONS ===== */
.wpProQuiz_questionListItem ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.wpProQuiz_questionListItem ul > li {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(28, 25, 23, 0.08) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.wpProQuiz_questionListItem ul > li:hover {
    border-color: #1B5FC4 !important;
    background: rgba(27, 95, 196, 0.02) !important;
    box-shadow: 0 2px 8px rgba(27, 95, 196, 0.06) !important;
}

.wpProQuiz_questionListItem ul > li:has(input:checked) {
    border-color: #1B5FC4 !important;
    background: rgba(27, 95, 196, 0.04) !important;
}

.wpProQuiz_questionListItem ul > li.wpProQuiz_answerCorrect {
    border-color: #059669 !important;
    background: rgba(5, 150, 105, 0.06) !important;
}

.wpProQuiz_questionListItem ul > li.wpProQuiz_answerIncorrect {
    border-color: #E8292C !important;
    background: rgba(232, 41, 44, 0.06) !important;
}

.wpProQuiz_questionListItem ul li label {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    color: #1C1917 !important;
    cursor: pointer !important;
    flex: 1 !important;
}

.wpProQuiz_questionListItem ul li input[type="radio"],
.wpProQuiz_questionListItem ul li input[type="checkbox"] {
    accent-color: #1B5FC4 !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

/* ===== NAVIGATION BUTTONS ===== */

/* Button container — Précédent left, Suivant/Terminer right */
.wpProQuiz_questionBottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 28px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(28, 25, 23, 0.06) !important;
    flex-wrap: wrap !important;
}

/* Base button styles */
.wpProQuiz_button,
.wpProQuiz_button2 {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    border: 2px solid #1B5FC4 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Back/Précédent button — blue filled */
input.wpProQuiz_button[name="back"] {
    background: #1B5FC4 !important;
    color: #FFFFFF !important;
    border: 2px solid #1B5FC4 !important;
    order: 1 !important;
}

input.wpProQuiz_button[name="back"]:hover {
    background: #0C2340 !important;
    border-color: #0C2340 !important;
}

/* Next/Suivant button — blue filled, pushed right */
input.wpProQuiz_button[name="next"] {
    background: #1B5FC4 !important;
    color: #FFFFFF !important;
    border: 2px solid #1B5FC4 !important;
    box-shadow: 0 2px 6px rgba(27, 95, 196, 0.2) !important;
    margin-left: auto !important;
    order: 2 !important;
}

input.wpProQuiz_button[name="next"]:hover {
    background: #0C2340 !important;
    border-color: #0C2340 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(27, 95, 196, 0.3) !important;
}

/* Hide check/verify button */
input.wpProQuiz_button[name="check"] {
    display: none !important;
}

input.wpProQuiz_button[name="startQuiz"] {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px 48px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0C2340, #1B5FC4) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(27, 95, 196, 0.3) !important;
}

input.wpProQuiz_button[name="startQuiz"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(27, 95, 196, 0.4) !important;
}

input.wpProQuiz_button[name="restartQuiz"] {
    background: linear-gradient(135deg, #0C2340, #1B5FC4) !important;
    color: #FFFFFF !important;
    padding: 14px 32px !important;
    box-shadow: 0 2px 8px rgba(27, 95, 196, 0.25) !important;
}

input.wpProQuiz_button[name="finish"] {
    background: linear-gradient(135deg, #0C2340, #1B5FC4) !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    padding: 14px 36px !important;
    box-shadow: 0 4px 14px rgba(27, 95, 196, 0.3) !important;
}

input.wpProQuiz_button[name="finish"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(27, 95, 196, 0.4) !important;
}

/* Hide "Résumé de Quiz" button — matches reference site */
.single-sfwd-quiz input[name="quizSummary"] {
    display: none !important;
}

/* ===== RESULTS PAGE ===== */
.wpProQuiz_results {
    font-family: 'DM Sans', sans-serif !important;
    padding: 24px !important;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    border: 1px solid rgba(28, 25, 23, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.wpProQuiz_results .wpProQuiz_points {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1B5FC4 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .single-sfwd-quiz .wpProQuiz_content {
        padding: 0 12px 30px !important;
    }

    .wpProQuiz_listItem {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }

    .wpProQuiz_reviewQuestion {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .wpProQuiz_reviewQuestion ol li {
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        font-size: 12px !important;
    }

    .wpProQuiz_questionListItem ul > li {
        padding: 12px 14px !important;
    }

    .single-sfwd-quiz h1.entry-title {
        font-size: 20px !important;
        margin: 20px auto 16px !important;
    }
}

@media (max-width: 480px) {
    .wpProQuiz_reviewQuestion ol li {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 11px !important;
    }

    .wpProQuiz_question_text {
        font-size: 14.5px !important;
    }

    .wpProQuiz_questionListItem ul > li label {
        font-size: 14px !important;
    }

    .wpProQuiz_listItem {
        padding: 16px 14px !important;
    }
}

/* TCF Quiz Answer Numbering - A B C D */
.wpProQuiz_questionList {
    counter-reset: answer-counter;
}
.wpProQuiz_questionList .wpProQuiz_questionListItem {
    counter-increment: answer-counter;
    position: relative;
    padding-left: 50px !important;
}
.wpProQuiz_questionList .wpProQuiz_questionListItem::before {
    content: counter(answer-counter, upper-alpha);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 16px;
}



/* Quiz question text - reduce size 30% on desktop */
@media (min-width: 768px) {
    .wpProQuiz_content .wpProQuiz_question_text h2 {
        font-size: 18px !important;
        margin: 0 0 8px !important;
    }
    .wpProQuiz_content .wpProQuiz_question_text p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    .wpProQuiz_content .wpProQuiz_question_text img {
        max-width: 70% !important;
        height: auto !important;
    }
    .wpProQuiz_content .wpProQuiz_questionList label {
        font-size: 14px !important;
    }
}
