/* -- Self-hosted Prospec Outline display font ------------------------------ */
@font-face {
    font-family: "Prospec";
    src: url("/fonts/ProspecOutline.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

.hero-slot {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.2;
    height: 1.2em;
}

.hero-slot-strip {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.hero-slot-strip.smooth {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slot-word {
    flex-shrink: 0;
    color: var(--brand-orange, #fa6915);
    line-height: 1.2;
    height: 1.2em;
}

/* -- Self-hosted Inter variable font --------------------------------------- */
@font-face {
    font-family: "Inter";
    src: url("/fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: block;
}

/* -- Brand Colors ----------------------------------------------------------- */
:root {
    --brand-green: #afeb2b;
    --brand-green-hover: #9bd326;
    --brand-orange: #fa6915;
    --brand-orange-hover: #e55a00;
    --brand-blue: #00D4FF;
    --brand-blue-hover: #00b8e0;
}

/* -- Override Bootstrap buttons --------------------------------------------- */
.btn-primary {
    background-color: #afeb2b !important;
    border-color: #8bc220 !important;
    color: #000000 !important; /* Optional: ensure readable text */
    border-radius: 6px;
}
.btn-primary:hover {
    background-color: #9bd326 !important;
    border-color: #008800 !important;
    color: #000000 !important;
    text-decoration: underline !important;
}

.btn-outline-dark:hover {
    text-decoration: underline !important;
}

.btn-dark:hover {
    text-decoration: none !important;
}

.btn-dark:hover .btn-label {
    text-decoration: underline !important;
}

.btn-label {
    margin-left: 0.25rem;
}

.btn-outline-brand {
    background-color: transparent !important;
    border: 1.5px solid #afeb2b !important;
    color: #afeb2b !important;
    border-radius: 6px;
}
.btn-outline-brand:hover {
    background-color: rgba(175, 235, 43, 0.12) !important;
    border-color: #afeb2b !important;
    color: #afeb2b !important;
    text-decoration: underline !important;
}

.btn-outline-brand-orange {
    background-color: transparent !important;
    border: 1.5px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
    border-radius: 6px;
}
.btn-outline-brand-orange:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.7) !important;
    color: #fff !important;
    text-decoration: underline !important;
}

.btn-outline-secondary:hover {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
    color: #fff !important;
    text-decoration: underline !important;
}

.btn-secondary {
    background-color: #fa6915 !important;
    border-color: #fa6915 !important;
    color: #fff !important; /* Optional: ensure readable text */
    border-radius: 6px;
}

.btn-secondary:hover {
    background-color: darkorange !important;
    border-color: #000000 !important;
    color: #fff !important;
    text-decoration: underline !important;
}

.btn-outline-primary {
    color: #000000 !important;
    border-color: #000000 !important;
}

.btn-outline-primary:hover {
    background-color: #ddd !important; /* Light gray */
    border-color: #000000 !important;
    color: #000000 !important;
    text-decoration: underline !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
    background-color: transparent !important;
    border-color: #fa6915 !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(250, 105, 21, 0.25) !important;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: #000000 !important;
    border-color: #000000 !important;
    opacity: 0.5 !important;
}

/* Override Bootstrap success button background color */
.btn-success {
    background-color: #fa6915 !important;
    border-color: #fa6915 !important;
    color: white !important; /* Optional: ensure readable text */
    border-radius: 6px;
}

/* Use Google Font Inter */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.table,
.section-header,
.item-tile,
.quiz-option,
.score-bar-container,
.score-bar,
.navbar-brand,
.nav-link {
    font-family: "Inter", Arial, Helvetica, sans-serif !important;
}

/* Match text style with Podia */
.navbar a {
    font-size: 1.3rem;
    font-weight: 400 !important;
    line-height: 1.65;
    color: black !important;
    text-decoration: none !important;
}

.navbar .dropdown-menu {
    z-index: 9999;
}

.navbar a.nav-link:hover,
.navbar .dropdown-item:hover {
    color: #fa6915 !important;
    text-decoration: underline !important;
}

.navbar .dropdown-item:active {
    color: #ffffff !important;
    background-color: #fa6915 !important;
}

.navbar-brand img {
    height: 52px;
}

/* Search Result Item Styling */
.search-result-item {
    text-decoration: none !important;
}

.search-result-item .badge {
    text-decoration: none !important;
}

.search-result-item h6 {
    color: #212529; /* Dark text by default */
    text-decoration: none !important;
    padding-bottom: 2px; /* Prevent text-truncate from clipping underline in Firefox */
}

.search-result-item .text-truncate {
    padding-bottom: 2px;
}

.search-result-item:hover,
.search-result-item:hover h6,
.search-result-item:hover .text-truncate {
    color: #fa6915 !important; /* Orange on hover */
    text-decoration: underline !important;
    text-underline-offset: 2px;
}


.search-result-item:hover h6 span.text-muted {
    text-decoration: none !important;
    color: #6c757d !important;
    display: inline-block;
}

/* Branded link */
.branded-link {
    color: #fa6915 !important; /* Orange */
    text-decoration: none !important;
}

.branded-link:hover {
    color: #fa6915 !important; /* Orange on hover */
    text-decoration: underline !important;
}

/* Blog sidebar links - orange underline on hover */
.blog-sidebar a:hover {
    color: #fa6915 !important;
    text-decoration: underline !important;
}

/* Blog post list titles - orange underline on hover */
.blog-post-link:hover {
    color: #fa6915 !important;
    text-decoration: underline !important;
}

.module-title-link:hover {
    color: var(--brand-orange) !important;
    text-decoration: underline !important;
}

/* Breadcrumb link */
.breadcrumb-item a.breadcrumb-link,
.breadcrumb-item a.breadcrumb-link:link,
.breadcrumb-item a.breadcrumb-link:visited,
a.breadcrumb-link,
a.breadcrumb-link:link,
a.breadcrumb-link:visited {
    --bs-link-color: #000;
    --bs-link-color-rgb: 0, 0, 0;
    color: #000 !important;
    text-decoration: none !important;
}

.breadcrumb-item a.breadcrumb-link:hover,
a.breadcrumb-link:hover {
    --bs-link-color: #fa6915;
    --bs-link-color-rgb: 250, 105, 21;
    color: #fa6915 !important;
    text-decoration: underline !important;
}

/* Brand Hover Cards (Topics, Tech, Datasets) */
.hover-brand-card {
    border: 1px solid #ced4da !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hover-brand-card:hover {
    border-color: #999 !important;
}

.hover-brand-card:hover .card-title,
.hover-brand-card:hover .hover-title,
.hover-brand-card:hover .branded-link {
    color: #fa6915 !important;
    text-decoration: underline !important;
}

/* -- Certification card proficiency bar ------------------------------------- */

.cert-prep-logo {
    max-height: 80%;
    max-width: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cert-prep-cards .card-title {
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.cert-prep-cards a:hover .card-title {
    color: #fa6915 !important;
    text-decoration: underline;
}

.cert-status-card {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cert-status-card--passed {
    background: #1a1a1a;
}

.cert-status-card--planned {
    background: #1a1a1a;
}

.cert-status-card__body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
}

.cert-status-card__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.cert-status-card__text {
    font-size: 0.85rem;
    font-weight: 400;
}

.cert-status-card--passed .cert-status-card__icon,
.cert-status-card--passed .cert-status-card__text {
    color: #afeb2b;
}

.cert-status-card--planned .cert-status-card__icon,
.cert-status-card--planned .cert-status-card__text {
    color: #fff;
}

.cert-status-card__renewal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    color: #fff;
}

.cert-status-card--info {
    background: rgba(255, 255, 255, 0.08);
}

.cert-status-card--warn {
    background: rgba(255, 255, 255, 0.12);
}

.cert-status-card--urgent {
    background: #1a1a1a;
}

.cert-status-card--urgent .cert-status-card__renewal-text,
.cert-status-card--urgent .cert-status-card__renewal-icon {
    color: #ff8c42;
}

.cert-status-card__renewal-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cert-status-card__renewal-text {
    font-size: 0.8rem;
    font-weight: 400;
}

.cert-card-icon {
    width: 60px;
    height: auto;
}

.cert-card-badge {
    background-color: #000;
    color: #fff;
}

.cert-card-proficiency {
    padding: 0 1rem 0.5rem;
}

.cert-card-score {
    font-size: 0.85rem;
}

.cert-card-score--high {
    color: #afeb2b;
}

.cert-card-score--low {
    color: #fa6915;
}

.cert-card-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
}

.cert-card-bar--high {
    background: #afeb2b;
}

.cert-card-bar--low {
    background: #fa6915;
}

.cert-card-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 3px;
    background: #1a1a1a;
    border-top: 1px solid #000;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.cert-card-drawer-text {
    font-size: 0.85rem;
    font-weight: 400;
}

.cert-card-drawer--passed .cert-card-drawer-text,
.cert-card-drawer--passed .cert-card-drawer-icon {
    color: #afeb2b;
}

.cert-card-drawer--planned .cert-card-drawer-text,
.cert-card-drawer--planned .cert-card-drawer-icon {
    color: #fff;
}

.cert-card--passed {
    background: linear-gradient(135deg, #afeb2b 0%, #8bc220 100%);
}

.cert-hero-item {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cert-hero-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-hero-item:hover .cert-hero-code {
    color: #fa6915 !important;
    text-decoration: underline;
}

.scale-hover {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scale-hover:hover .scale-hover-title {
    color: #fa6915 !important;
    text-decoration: underline;
}

.scale-hover:hover .scale-hover-badge {
    background-color: #fa6915 !important;
}

.cert-hero-icon {
    transition: transform 0.15s ease;
}

.cert-hero-item:hover .cert-hero-icon {
    transform: scale(1.1);
}

.stats-bar-link:hover .stats-bar-label {
    color: #fa6915 !important;
    text-decoration: underline;
}

/* Certification card hover effect (no scale) */
.cert-card-hover {
    transition: border-color 0.15s ease;
}

.cert-card-hover:hover {
    border-color: #fa6915 !important;
}

.cert-card-hover:hover .cert-card-title {
    color: #fa6915 !important;
    text-decoration: underline;
}

.cert-card-hover:hover .cert-card-badge {
    background-color: #fa6915 !important;
}

/* Study Plan steps */
.study-plan-step {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.study-plan-step--accent {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f7e0 100%);
    border-color: #afeb2b;
}

.study-plan-step__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.study-plan-step__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #000;
    color: #afeb2b;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

.study-plan-step--accent .study-plan-step__badge {
    background: #afeb2b;
    color: #000;
}

.study-plan-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.15rem;
}

.study-plan-step__desc {
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .study-plan-step {
        padding: 1rem;
    }

    .study-plan-step__header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .study-plan-step__badge {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .study-plan-step__title {
        font-size: 1rem;
    }

    .study-plan-step__desc {
        font-size: 0.85rem;
    }

    .study-plan-step .cert-prep-cards .card-title {
        font-size: 0.8rem !important;
    }

    .study-plan-step .cert-prep-cards .ratio {
        max-height: 120px;
    }

    .study-plan-step .cert-prep-cards .ratio img {
        object-fit: cover;
    }

    .study-plan-step .cert-prep-cards .card-body {
        padding: 0.5rem !important;
    }
}

/* Layout helpers */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
}
.footer {
    margin-top: auto;
}

/* Markdown content styling */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #212529;
}
.markdown-content h1 {
    font-size: 1.75rem;
    font-weight: bold;
}
.markdown-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
}
.markdown-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
}
.markdown-content ul,
.markdown-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.markdown-content p {
    margin-bottom: 1rem;
}
.markdown-content img {
    border-radius: 0.375rem; /* Bootstrap's .rounded value */
    max-width: 100%;
    height: auto;
}

/* Blog post images - thin light gray border */
.markdown-content--blog img {
    border: 1px solid #dee2e6; /* Bootstrap's .border color */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Lab lesson image hover + lightbox */
.lab-content img,
.markdown-content img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lab-content img:hover,
.markdown-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
/* Disable zoom effect on plain content pages */
.markdown-content--static img {
    cursor: default;
    transition: none;
}
.markdown-content--static img:hover {
    transform: none;
    box-shadow: none;
}
.markdown-content table {
    font-size: 0.9rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    width: 100%;
}
.markdown-content table th:not(:last-child),
.markdown-content table td:not(:last-child) {
    width: 1%;
    white-space: nowrap;
}
.markdown-content table th:last-child,
.markdown-content table td:last-child {
    width: 100%;
}
.markdown-content table th,
.markdown-content table td {
    padding: 0.5rem 0.75rem;
}
.markdown-content table thead th {
    font-weight: 600;
}
.markdown-content a {
    color: #fa6915 !important; /* Orange */
    text-decoration: none !important;
}
.markdown-content a:hover {
    color: #fa6915 !important; /* Orange on hover */
    text-decoration: underline !important;
}
.markdown-content a.btn {
    color: inherit !important;
    text-decoration: none !important;
}
.markdown-content a.btn:hover {
    color: inherit !important;
    text-decoration: underline !important;
}

/* Custom utility classes */
.fs-xs {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.fs-xxs {
    font-size: 0.7rem;
}

.sticky-top-custom {
    top: 1rem;
    z-index: 1020;
}

.lesson-list-scroll {
    overflow: visible;
}

/* Narrower container for main layout */
.container-narrow {
    max-width: 960px;
}

/* Styles for the faq section */
.faq-section details {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
}
.faq-section summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: #212529;
    background-color: #fff;
    position: relative;
    list-style: none; /* Hide default marker */
    border-radius: 0.25rem;
}
/* Hide default marker for webkit */
.faq-section summary::-webkit-details-marker {
    display: none;
}
/* Custom chevron */
.faq-section summary::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid #212529;
    border-bottom: 2px solid #212529;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.faq-section details[open] summary::after {
    transform: rotate(-135deg);
}
.faq-section details[open] summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: #000;
    background-color: #e2fcc2; /* Light shade of #afeb2b */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.faq-section .faq-body {
    padding: 1rem 1.25rem;
}

/* Module/lesson navigation bar */
.module-nav {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #3d3d3d 100%) !important;
}

.module-nav-pct {
    color: #fa6915 !important;
    font-size: 0.7rem !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    align-self: flex-end !important;
}

.module-nav-pct-label {
    font-size: 0.7rem !important;
    align-self: flex-end !important;
}

.module-nav-track {
    height: 6px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.module-nav-track .progress-bar {
    background-color: #fa6915 !important;
}

.module-nav-btn {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.module-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

.module-nav-btn:disabled,
.module-nav-btn[disabled] {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Override Bootstrap focus ring on form inputs */
.form-control:focus {
    border-color: #fa6915 !important;
    box-shadow: 0 0 0 0.25rem rgba(250, 105, 21, 0.25) !important;
}

/* Override Bootstrap focus ring color globally */
:root {
    --bs-focus-ring-color: rgba(250, 105, 21, 0.25) !important;
    --bs-focus-ring-box-shadow: 0 0 0 0.25rem rgba(250, 105, 21, 0.25) !important;
}

/* Override Bootstrap blue focus ring on ALL focusable elements */
:focus-visible,
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn:focus,
[type="button"]:focus-visible,
[type="submit"]:focus-visible,
[type="reset"]:focus-visible,
.form-select:focus,
.form-check-input:focus,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.page-link:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(250, 105, 21, 0.25) !important;
}

/* -- Syntax highlighted code blocks (highlight.js) ----------------------- */
.markdown-content pre {
    position: relative;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.markdown-content pre:hover {
    transform: scale(1.02);
    border-color: rgba(250, 105, 21, 0.5);
}

@media (max-width: 991.98px) {
    .markdown-content pre {
        cursor: default;
    }
    .markdown-content pre:hover {
        transform: none;
        border-color: transparent;
    }
    .lab-content img,
    .markdown-content img {
        cursor: default;
    }
    .lab-content img:hover,
    .markdown-content img:hover {
        transform: none;
        box-shadow: none;
    }
}

.markdown-content pre code.hljs {
    display: block;
    padding: 1.25rem 1.5rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    border-radius: 0.5rem;
}

/* Inline code (not inside a pre) */
.markdown-content code:not(.hljs) {
    padding: 0.2em 0.4em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.875em;
    background-color: rgba(0, 0, 0, 0.07);
    border-radius: 0.25rem;
    color: #222;
}

/* -- AI prompt callout ---------------------------------------------------- */
.prompt-callout {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    background-color: rgba(250, 105, 21, 0.06);
    border-left: 3px solid rgba(250, 105, 21, 0.4);
    border-radius: 0.375rem;
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.prompt-callout-icon {
    color: #fa6915;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15em;
}

/* -- Student tip callout -------------------------------------------------- */
.tip-callout {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    background-color: rgba(25, 135, 84, 0.06);
    border-left: 3px solid rgba(25, 135, 84, 0.35);
    border-radius: 0.375rem;
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.tip-callout-icon {
    color: #198754;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15em;
}

/* -- Homework assignment callout ------------------------------------------ */
.homework-callout {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    background-color: rgba(0, 0, 0, 0.04);
    border-left: 3px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.homework-callout-icon {
    color: #444;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15em;
}

/* -- Copy buttons (code blocks + prompt callouts) ------------------------- */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    font-family: inherit;
    line-height: 1.4;
    color: #aaa;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
    z-index: 2;
}

.markdown-content pre:hover .copy-btn,
.prompt-callout:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Prompt callout copy button - dark text for light background */
.prompt-callout .copy-btn {
    color: #888;
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.2);
}

.prompt-callout .copy-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.35);
}

.copy-btn.copied {
    color: #4caf50 !important;
    border-color: rgba(76, 175, 80, 0.4) !important;
    opacity: 1 !important;
}

/* Copy button inside the code zoom modal header - always visible, not absolute */
#codeZoomCopyBtn {
    position: absolute;
    opacity: 1;
}


/* -- Blockquote inside markdown content ----------------------------------- */
.markdown-content blockquote {
    border-left: 4px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    color: #6c757d;
    font-size: 1rem;
}

.markdown-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Hide the real radio inputs; they only carry state */
.quiz-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Hide the submit-state checkbox */
.quiz-submitted-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Answer list container */
.quiz-answers-list {
    margin-bottom: 1.5rem;
}

/* Answer option row */
.quiz-option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    user-select: none;
}

.quiz-option-label:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

/* Underline on hover before submitting */
.quiz-container:not(:has(.quiz-submitted-toggle:checked)) .quiz-option-label:hover {
    text-decoration: underline;
}

/* Custom radio circle */
.quiz-radio-circle {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    position: relative;
}

.quiz-radio-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #000;
    transition: transform 0.15s ease;
}

/* When a radio is checked - highlight circle */
.quiz-radio:checked + .quiz-option-label .quiz-radio-circle {
    border-color: #000;
}

.quiz-radio:checked + .quiz-option-label .quiz-radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

.quiz-radio:checked + .quiz-option-label {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Answer text + explanation area */
.quiz-answer-content {
    flex: 1;
    line-height: 1.5;
}

.quiz-answer-content .markdown-content p:last-child {
    margin-bottom: 0;
}

/* Explanation block - hidden by default */
.quiz-explanation {
    display: none;
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: #555;
}

.quiz-explanation .markdown-content p:last-child {
    margin-bottom: 0;
}

/* Result icon (check / cross) at the right of each label - hidden until submitted */
.quiz-result-icon {
    display: none;
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.15rem;
    align-self: flex-start;
}

/* Submit button label */
.quiz-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    font-weight: 400;
    border-radius: 6px;
    cursor: pointer;
    background-color: #afeb2b;
    border: 1.5px solid #8bc220;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.15s ease;
    user-select: none;
}

.quiz-submit-btn:hover {
    background-color: #9bd326;
}

.quiz-submit-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* -- After submission (.quiz-submitted-toggle is :checked) ----------------- */

/* Hide the submit button */
.quiz-submitted-toggle:checked ~ .quiz-submit-btn {
    display: none;
}

/* Lock all labels so nothing can be changed after submitting */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-option-label {
    pointer-events: none;
    cursor: default;
}

.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-option-label:hover {
    background-color: inherit;
    border-color: inherit;
}

/* Show result icon on the selected answer only */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-radio:checked + .quiz-option-label .quiz-result-icon {
    display: block;
}

/* Always show correct answer with a thick dashed green border after submit (even if not selected) */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-option-label {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

/* Correct answer selected → solid brand green (overrides above) */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-radio:checked + .quiz-option-label {
    border-color: #afeb2b;
    border-style: solid;
    background-color: rgba(175, 235, 43, 0.12);
}

.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-radio:checked + .quiz-option-label .quiz-radio-circle {
    border-color: #8bc220;
    background-color: #afeb2b;
}

.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-radio:checked + .quiz-option-label .quiz-radio-circle::after {
    background: #000;
    transform: translate(-50%, -50%) scale(1);
}

/* Incorrect answer selected → brand orange */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-incorrect .quiz-radio:checked + .quiz-option-label {
    border-color: #fa6915;
    border-style: solid;
    background-color: rgba(250, 105, 21, 0.08);
}

.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-incorrect .quiz-radio:checked + .quiz-option-label .quiz-radio-circle {
    border-color: #fa6915;
    background-color: #fa6915;
}

.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-incorrect .quiz-radio:checked + .quiz-option-label .quiz-radio-circle::after {
    background: #fff;
    transform: translate(-50%, -50%) scale(1);
}

/* Brand colors for correct/incorrect icons and labels */
.quiz-answers-list .bi-check-circle-fill { color: #8bc220; }
.quiz-answers-list .bi-x-circle-fill { color: #fa6915; }
.quiz-answers-list strong.text-success { color: #8bc220 !important; }
.quiz-answers-list strong.text-danger { color: #fa6915 !important; }

/* Show explanations after submission */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-explanation {
    display: block;
}

/* -- Feedback panels (correct / incorrect) --------------------------------- */

.quiz-feedback-correct,
.quiz-feedback-incorrect {
    display: none;
    margin-bottom: 0.5rem;
    color: #000;
    align-items: center;
}

.quiz-feedback-correct .bi {
    color: #000;
}

.quiz-feedback-incorrect .bi {
    color: #000;
}

/* Show correct panel when submitted and a correct answer was selected */
.quiz-container:has(.quiz-submitted-toggle:checked):has(.is-correct .quiz-radio:checked) .quiz-feedback-correct {
    display: flex;
}

/* Show incorrect panel when submitted and an incorrect answer was selected */
.quiz-container:has(.quiz-submitted-toggle:checked):has(.is-incorrect .quiz-radio:checked) .quiz-feedback-incorrect {
    display: flex;
}

/* Show explanation button (correct answers only) */
.quiz-show-explanation-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-left: auto;
}

.quiz-show-explanation-btn:hover {
    background-color: #f8f9fa;
    text-decoration: underline;
}

.quiz-show-explanation-btn .bi {
    color: #000;
}

/* -- Explanations card (single-answer exam questions) ------------------------ */

.quiz-explanations-card {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

/* Show explanations card when submitted with incorrect answer */
.quiz-container:has(.quiz-submitted-toggle:checked):has(.is-incorrect .quiz-radio:checked) .quiz-explanations-card {
    display: block;
}

.quiz-explanation-item {
    margin-bottom: 0.75rem;
}

.quiz-explanation-item:last-child {
    margin-bottom: 0;
}

.quiz-explanation-item strong {
    color: #000;
}

/* Next question button (shown after submit) */
.quiz-next-btn {
    display: none;
}

.quiz-container:has(.quiz-submitted-toggle:checked) .quiz-next-btn {
    display: inline-flex;
}

/* -- Multiple-answer (checkbox) quiz widget -------------------------------- */

/* Hide the actual checkbox input */
.quiz-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom square indicator (mirrors .quiz-radio-circle but square) */
.quiz-checkbox-square {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    border: 2px solid #adb5bd;
    border-radius: 0.25rem;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    position: relative;
}

.quiz-checkbox-square::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.1rem;
    background: #000;
    transition: transform 0.15s ease;
}

/* When a checkbox is checked - black border and fill */
.quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square {
    border-color: #000;
    border-width: 2px;
}

.quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square::after {
    transform: translate(-50%, -50%) scale(1);
}

.quiz-checkbox:checked + .quiz-option-label {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.03);
}

/* -- After submission - multiple variant ----------------------------------- */

/* Lock all labels */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-checkbox:checked + .quiz-option-label {
    pointer-events: none;
    cursor: default;
}

/* Show result icon on all checked answers after submit */
.quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-checkbox:checked + .quiz-option-label .quiz-result-icon {
    display: block;
}

/* Always highlight correct answers with dashed green after submit */
.quiz-multiple-container .quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-option-label {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

/* Correct answer checked → solid green */
.quiz-multiple-container .quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-checkbox:checked + .quiz-option-label {
    border-color: #afeb2b;
    border-style: solid;
    background-color: rgba(175, 235, 43, 0.12);
}

.quiz-multiple-container .quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square {
    border-color: #8bc220;
    background-color: #afeb2b;
}

.quiz-multiple-container .quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-correct .quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square::after {
    background: #000;
    transform: translate(-50%, -50%) scale(1);
}

/* Incorrect answer checked → orange */
.quiz-multiple-container .quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-incorrect .quiz-checkbox:checked + .quiz-option-label {
    border-color: #fa6915;
    border-style: solid;
    background-color: rgba(250, 105, 21, 0.08);
}

.quiz-multiple-container .quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-incorrect .quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square {
    border-color: #fa6915;
    background-color: #fa6915;
}

.quiz-multiple-container .quiz-submitted-toggle:checked ~ .quiz-answers-list .quiz-answer-wrap.is-incorrect .quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square::after {
    background: #fff;
    transform: translate(-50%, -50%) scale(1);
}

/* Show feedback for multiple answers after submit */
.quiz-multiple-container.quiz-container:has(.quiz-submitted-toggle:checked) .quiz-feedback-correct,
.quiz-multiple-container.quiz-container:has(.quiz-submitted-toggle:checked) .quiz-feedback-incorrect {
    display: none;
}

/* Incorrect if any incorrect answer is checked */
.quiz-multiple-container.quiz-container:has(.quiz-submitted-toggle:checked):has(.is-incorrect .quiz-checkbox:checked) .quiz-feedback-incorrect {
    display: flex;
}

/* Correct if all correct are checked and no incorrect are checked */
.quiz-multiple-container.quiz-container:has(.quiz-submitted-toggle:checked):not(:has(.is-incorrect .quiz-checkbox:checked)):has(.is-correct .quiz-checkbox:checked) .quiz-feedback-correct {
    display: flex;
}

/* Show next button after submit */
.quiz-multiple-container.quiz-container:has(.quiz-submitted-toggle:checked) .quiz-next-btn {
    display: inline-flex;
}

/* Show explanations card when all correct, but only after clicking show explanation */
.quiz-multiple-container.quiz-container:has(.quiz-submitted-toggle:checked):has(.is-incorrect .quiz-checkbox:checked) .quiz-explanations-card {
    display: block;
}

/* -- Column (matching) quiz widget ---------------------------------------- */

.quiz-column-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-column-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
}

.quiz-column-left {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.quiz-column-letter {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1.5px solid #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.quiz-column-arrow {
    color: #adb5bd;
    font-size: 1.25rem;
}

.quiz-column-right {
    display: flex;
    align-items: center;
}

.quiz-column-option {
    flex: 1;
    margin-bottom: 0;
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-column-row {
    pointer-events: none;
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-answer-wrap.is-correct {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-answer-wrap.is-correct .quiz-checkbox:checked + .quiz-option-label {
    border-color: #afeb2b;
    border-style: solid;
    background-color: rgba(175, 235, 43, 0.12);
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-answer-wrap.is-correct .quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square {
    border-color: #8bc220;
    background-color: #afeb2b;
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-answer-wrap.is-incorrect .quiz-checkbox:checked + .quiz-option-label {
    border-color: #fa6915;
    border-style: solid;
    background-color: rgba(250, 105, 21, 0.08);
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-answer-wrap.is-incorrect .quiz-checkbox:checked + .quiz-option-label .quiz-checkbox-square {
    border-color: #fa6915;
    background-color: #fa6915;
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-checkbox:checked + .quiz-option-label .quiz-result-icon {
    display: block;
}

.quiz-column-container .quiz-submitted-toggle:checked ~ .quiz-column-list .quiz-explanation {
    display: block;
}

/* Feedback panels for column questions */
.quiz-column-container:has(.quiz-submitted-toggle:checked) .quiz-feedback-correct,
.quiz-column-container:has(.quiz-submitted-toggle:checked) .quiz-feedback-incorrect {
    display: none;
}

.quiz-column-container:has(.quiz-submitted-toggle:checked):has(.is-incorrect .quiz-checkbox:checked) .quiz-feedback-incorrect {
    display: block;
}

.quiz-column-container:not(:has(.is-incorrect .quiz-checkbox:checked)):has(.quiz-submitted-toggle:checked):has(.is-correct .quiz-checkbox:checked) .quiz-feedback-correct {
    display: block;
}

/* -- Dropdown quiz widget ------------------------------------------------- */

.quiz-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-dropdown-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
}

.quiz-dropdown-prompt {
    line-height: 1.5;
}

.quiz-dropdown-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-dropdown-select {
    max-width: 200px;
}

.quiz-dropdown-explanation {
    margin-top: 0.25rem;
}

.quiz-dropdown-container .quiz-submitted-toggle:checked ~ .quiz-dropdown-list .quiz-dropdown-select {
    pointer-events: none;
    opacity: 0.7;
}

.quiz-dropdown-container .quiz-submitted-toggle:checked ~ .quiz-dropdown-list .quiz-answer-wrap.is-correct {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.quiz-dropdown-container .quiz-submitted-toggle:checked ~ .quiz-dropdown-list .quiz-answer-wrap.is-incorrect {
    border-color: #fa6915;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(250, 105, 21, 0.08);
}

.quiz-dropdown-container .quiz-submitted-toggle:checked ~ .quiz-dropdown-list .quiz-result-icon {
    display: block;
}

.quiz-dropdown-container .quiz-submitted-toggle:checked ~ .quiz-dropdown-list .quiz-explanation {
    display: block;
}

/* -- Stack (ordering) quiz widget ----------------------------------------- */

.quiz-stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-stack-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quiz-stack-item:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.quiz-stack-rank {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #fa6915;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.quiz-stack-content {
    flex: 1;
    line-height: 1.5;
}

.quiz-stack-controls {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quiz-stack-btn {
    width: 1.75rem;
    height: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.quiz-stack-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.quiz-stack-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quiz-stack-item .quiz-result-icon {
    display: none;
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.quiz-stack-container .quiz-submitted-toggle:checked ~ .quiz-stack-list .quiz-stack-item {
    pointer-events: none;
}

.quiz-stack-container .quiz-submitted-toggle:checked ~ .quiz-stack-list .quiz-stack-item .quiz-stack-btn {
    pointer-events: none;
    opacity: 0.3;
}

.quiz-stack-container .quiz-submitted-toggle:checked ~ .quiz-stack-list .quiz-stack-item .quiz-result-icon {
    display: block;
}

.quiz-stack-container .quiz-submitted-toggle:checked ~ .quiz-stack-list .quiz-answer-wrap.is-correct {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.quiz-stack-container .quiz-submitted-toggle:checked ~ .quiz-stack-list .quiz-answer-wrap.is-incorrect {
    border-color: #fa6915;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(250, 105, 21, 0.08);
}

.quiz-stack-container .quiz-submitted-toggle:checked ~ .quiz-stack-list .quiz-explanation {
    display: block;
}

/* -----------------------------------------------------------------------------
   Exam Question Widgets (exam-* prefix)
   Mirrors quiz-* styles for use in exam player pages
   ----------------------------------------------------------------------------- */

.exam-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Light code theme for exam questions */
.exam-question-content .hljs,
.exam-container .hljs,
.exam-answers-list .hljs,
.exam-option-label .hljs {
    background: #e8eaed !important;
    color: #24292f !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.exam-question-content .hljs-keyword,
.exam-container .hljs-keyword,
.exam-option-label .hljs-keyword {
    color: #cf222e !important;
}

.exam-question-content .hljs-string,
.exam-container .hljs-string,
.exam-option-label .hljs-string {
    color: #0a3069 !important;
}

.exam-question-content .hljs-number,
.exam-container .hljs-number,
.exam-option-label .hljs-number {
    color: #0550ae !important;
}

.exam-question-content .hljs-comment,
.exam-container .hljs-comment,
.exam-option-label .hljs-comment {
    color: #6e7781 !important;
}

.exam-question-content .hljs-title,
.exam-container .hljs-title,
.exam-option-label .hljs-title {
    color: #8250df !important;
}

.exam-question-content .hljs-variable,
.exam-container .hljs-variable,
.exam-option-label .hljs-variable {
    color: #953800 !important;
}

.exam-question-content .hljs-built_in,
.exam-container .hljs-built_in,
.exam-option-label .hljs-built_in {
    color: #6639ba !important;
}

.exam-question-content .hljs-attr,
.exam-container .hljs-attr,
.exam-option-label .hljs-attr {
    color: #24292f !important;
}

.exam-question-content .hljs-attribute,
.exam-container .hljs-attribute,
.exam-option-label .hljs-attribute {
    color: #0550ae !important;
}

.exam-question-content .hljs-function,
.exam-container .hljs-function,
.exam-option-label .hljs-function {
    color: #8250df !important;
}

.exam-question-content pre,
.exam-container pre,
.exam-option-label pre {
    background: #e8eaed;
    border: 1px solid #d0d7de;
    border-radius: 0.375rem;
    margin: 0.5rem 0;
}

.exam-question-content pre code,
.exam-container pre code,
.exam-option-label pre code {
    background: transparent !important;
    padding: 0.75rem 1rem;
}

.exam-question-content code:not(.hljs),
.exam-option-label code:not(.hljs) {
    background: rgba(0, 0, 0, 0.08);
    color: #24292f;
}

.exam-submitted-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.exam-answers-list {
    margin-bottom: 1.5rem;
}

.exam-option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    user-select: none;
}

.exam-option-label:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.exam-container:not(:has(.exam-submitted-toggle:checked)) .exam-option-label:hover {
    text-decoration: underline;
}

.exam-radio-circle {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    border: 2px solid #adb5bd;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    position: relative;
}

.exam-radio-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #000;
    transition: transform 0.15s ease;
}

.exam-radio:checked + .exam-option-label .exam-radio-circle {
    border-color: #000;
}

.exam-radio:checked + .exam-option-label .exam-radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

.exam-radio:checked + .exam-option-label {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.03);
}

.exam-answer-content {
    flex: 1;
    line-height: 1.5;
}

.exam-answer-content .markdown-content p:last-child {
    margin-bottom: 0;
}

.exam-explanation {
    display: none;
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: #555;
}

.exam-explanation .markdown-content p:last-child {
    margin-bottom: 0;
}

.exam-result-icon {
    display: none;
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.15rem;
    align-self: flex-start;
}

.exam-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    font-weight: 400;
    border-radius: 6px;
    cursor: pointer;
    background-color: #afeb2b;
    border: 1.5px solid #8bc220;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.15s ease;
    user-select: none;
}

.exam-submit-btn:hover {
    background-color: #9bd326;
}

.exam-submit-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.exam-container:has(.exam-submitted-toggle:checked) .exam-submit-btn {
    display: none;
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-option-label {
    pointer-events: none;
    cursor: default;
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-option-label:hover {
    background-color: inherit;
    border-color: inherit;
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-radio:checked + .exam-option-label .exam-result-icon {
    display: block;
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-option-label {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-radio:checked + .exam-option-label {
    border-color: #afeb2b;
    border-style: solid;
    background-color: rgba(175, 235, 43, 0.12);
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-radio:checked + .exam-option-label .exam-radio-circle {
    border-color: #8bc220;
    background-color: #afeb2b;
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-radio:checked + .exam-option-label .exam-radio-circle::after {
    background: #000;
    transform: translate(-50%, -50%) scale(1);
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-incorrect .exam-radio:checked + .exam-option-label {
    border-color: #fa6915;
    border-style: solid;
    background-color: rgba(250, 105, 21, 0.08);
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-incorrect .exam-radio:checked + .exam-option-label .exam-radio-circle {
    border-color: #fa6915;
    background-color: #fa6915;
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-incorrect .exam-radio:checked + .exam-option-label .exam-radio-circle::after {
    background: #fff;
    transform: translate(-50%, -50%) scale(1);
}

.exam-answers-list .bi-check-circle-fill { color: #8bc220; }
.exam-answers-list .bi-x-circle-fill { color: #fa6915; }
.exam-answers-list strong.text-success { color: #8bc220 !important; }
.exam-answers-list strong.text-danger { color: #fa6915 !important; }

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-explanation {
    display: block;
}

.exam-feedback-correct,
.exam-feedback-incorrect {
    display: none;
    margin-bottom: 0.5rem;
    color: #000;
    align-items: center;
}

.exam-feedback-correct .bi { color: #000; }
.exam-feedback-incorrect .bi { color: #000; }

.exam-container:has(.exam-submitted-toggle:checked):has(.is-correct .exam-radio:checked) .exam-feedback-correct {
    display: flex;
}

.exam-container:has(.exam-submitted-toggle:checked):has(.is-incorrect .exam-radio:checked) .exam-feedback-incorrect {
    display: flex;
}

.exam-show-explanation-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-left: auto;
}

.exam-show-explanation-btn:hover {
    background-color: #f8f9fa;
    text-decoration: underline;
}

.exam-show-explanation-btn .bi { color: #000; }

.exam-explanations-card {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.exam-container:has(.exam-submitted-toggle:checked):has(.is-incorrect .exam-radio:checked) .exam-explanations-card {
    display: block;
}

.exam-explanation-item {
    margin-bottom: 0.75rem;
}

.exam-explanation-item:last-child { margin-bottom: 0; }
.exam-explanation-item strong { color: #000; }

.exam-validation-message {
    display: none;
    align-items: center;
    color: #fa6915;
    font-size: 0.9rem;
}

.exam-next-btn {
    display: none;
}

.exam-container:has(.exam-submitted-toggle:checked) .exam-next-btn {
    display: inline-flex;
}

.exam-container:has(.exam-submitted-toggle:checked) .exam-skip-btn {
    display: none;
}

.exam-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.exam-checkbox-square {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    border: 2px solid #adb5bd;
    border-radius: 0.25rem;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    position: relative;
}

.exam-checkbox-square::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.1rem;
    background: #000;
    transition: transform 0.15s ease;
}

.exam-checkbox:checked + .exam-option-label .exam-checkbox-square {
    border-color: #000;
    border-width: 2px;
}

.exam-checkbox:checked + .exam-option-label .exam-checkbox-square::after {
    transform: translate(-50%, -50%) scale(1);
}

.exam-checkbox:checked + .exam-option-label {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.03);
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-checkbox:checked + .exam-option-label {
    pointer-events: none;
    cursor: default;
}

.exam-submitted-toggle:checked ~ .exam-answers-list .exam-checkbox:checked + .exam-option-label .exam-result-icon {
    display: block;
}

.exam-multiple-container .exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-option-label {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.exam-multiple-container .exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-checkbox:checked + .exam-option-label {
    border-color: #afeb2b;
    border-style: solid;
    background-color: rgba(175, 235, 43, 0.12);
}

.exam-multiple-container .exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-checkbox:checked + .exam-option-label .exam-checkbox-square {
    border-color: #8bc220;
    background-color: #afeb2b;
}

.exam-multiple-container .exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-correct .exam-checkbox:checked + .exam-option-label .exam-checkbox-square::after {
    background: #000;
    transform: translate(-50%, -50%) scale(1);
}

.exam-multiple-container .exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-incorrect .exam-checkbox:checked + .exam-option-label {
    border-color: #fa6915;
    border-style: solid;
    background-color: rgba(250, 105, 21, 0.08);
}

.exam-multiple-container .exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-incorrect .exam-checkbox:checked + .exam-option-label .exam-checkbox-square {
    border-color: #fa6915;
    background-color: #fa6915;
}

.exam-multiple-container .exam-submitted-toggle:checked ~ .exam-answers-list .exam-answer-wrap.is-incorrect .exam-checkbox:checked + .exam-option-label .exam-checkbox-square::after {
    background: #fff;
    transform: translate(-50%, -50%) scale(1);
}

.exam-multiple-container.exam-container:has(.exam-submitted-toggle:checked) .exam-feedback-correct,
.exam-multiple-container.exam-container:has(.exam-submitted-toggle:checked) .exam-feedback-incorrect {
    display: none;
}

.exam-multiple-container.exam-container:has(.exam-submitted-toggle:checked):has(.is-incorrect .exam-checkbox:checked) .exam-feedback-incorrect {
    display: flex;
}

.exam-multiple-container.exam-container:has(.exam-submitted-toggle:checked):not(:has(.is-incorrect .exam-checkbox:checked)):has(.is-correct .exam-checkbox:checked) .exam-feedback-correct {
    display: flex;
}

.exam-multiple-container.exam-container:has(.exam-submitted-toggle:checked) .exam-next-btn {
    display: inline-flex;
}

.exam-multiple-container.exam-container:has(.exam-submitted-toggle:checked) .exam-skip-btn {
    display: none;
}

.exam-multiple-container.exam-container:has(.exam-submitted-toggle:checked):has(.is-incorrect .exam-checkbox:checked) .exam-explanations-card {
    display: block;
}

.exam-column-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exam-column-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
}

.exam-column-left {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.exam-column-letter {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1.5px solid #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.exam-column-arrow {
    color: #adb5bd;
    font-size: 1.25rem;
}

.exam-column-right {
    display: flex;
    align-items: center;
}

.exam-column-option {
    flex: 1;
    margin-bottom: 0;
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-column-row {
    pointer-events: none;
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-answer-wrap.is-correct {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-answer-wrap.is-correct .exam-checkbox:checked + .exam-option-label {
    border-color: #afeb2b;
    border-style: solid;
    background-color: rgba(175, 235, 43, 0.12);
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-answer-wrap.is-correct .exam-checkbox:checked + .exam-option-label .exam-checkbox-square {
    border-color: #8bc220;
    background-color: #afeb2b;
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-answer-wrap.is-incorrect .exam-checkbox:checked + .exam-option-label {
    border-color: #fa6915;
    border-style: solid;
    background-color: rgba(250, 105, 21, 0.08);
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-answer-wrap.is-incorrect .exam-checkbox:checked + .exam-option-label .exam-checkbox-square {
    border-color: #fa6915;
    background-color: #fa6915;
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-checkbox:checked + .exam-option-label .exam-result-icon {
    display: block;
}

.exam-column-container .exam-submitted-toggle:checked ~ .exam-column-list .exam-explanation {
    display: block;
}

.exam-column-container:has(.exam-submitted-toggle:checked) .exam-feedback-correct,
.exam-column-container:has(.exam-submitted-toggle:checked) .exam-feedback-incorrect {
    display: none;
}

.exam-column-container:has(.exam-submitted-toggle:checked):has(.is-incorrect .exam-checkbox:checked) .exam-feedback-incorrect {
    display: block;
}

.exam-column-container:not(:has(.is-incorrect .exam-checkbox:checked)):has(.exam-submitted-toggle:checked):has(.is-correct .exam-checkbox:checked) .exam-feedback-correct {
    display: block;
}

.exam-dropdown-list {
    margin-bottom: 1.5rem;
}

.exam-dropdown-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.exam-dropdown-row:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.exam-dropdown-label {
    flex: 1;
    line-height: 1.5;
}

.exam-dropdown-label .markdown-content p:last-child {
    margin-bottom: 0;
}

.exam-dropdown-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.exam-dropdown-select {
    min-width: 180px;
}

.exam-dropdown-result-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    width: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.exam-dropdown-result-icon .bi-check-circle-fill { color: #8bc220; }
.exam-dropdown-result-icon .bi-x-circle-fill { color: #fa6915; }

.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-dropdown-row {
    pointer-events: none;
}

.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-dropdown-row:hover {
    border-color: #dee2e6;
    background-color: #fff;
}

.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-dropdown-select {
    pointer-events: none;
    opacity: 0.7;
}

.exam-dropdown-container.exam-all-correct .exam-feedback-correct {
    display: flex;
}

.exam-dropdown-container.exam-some-incorrect .exam-feedback-incorrect {
    display: flex;
}

.exam-dropdown-container.exam-some-incorrect .exam-explanations-card {
    display: block;
}

.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-dropdown-result-icon {
    visibility: visible;
}

/* Correct selection */
.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-answer-wrap[data-correct="true"] .exam-dropdown-row {
    border-color: #afeb2b;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-answer-wrap[data-correct="true"] .exam-dropdown-result-icon .bi-x-circle-fill {
    display: none;
}

/* Incorrect selection */
.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-answer-wrap[data-correct="false"] .exam-dropdown-row {
    border-color: #fa6915;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(250, 105, 21, 0.08);
}

.exam-dropdown-container .exam-submitted-toggle:checked ~ .exam-dropdown-list .exam-answer-wrap[data-correct="false"] .exam-dropdown-result-icon .bi-check-circle-fill {
    display: none;
}

.exam-dropdown-container.exam-some-incorrect .exam-explanations-card {
    display: block;
}

/* Dropdown explanation card styles */
.exam-dropdown-explanation-header {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: #e9ecef;
    color: #000;
    border-radius: 0.25rem;
}

.exam-dropdown-explanation-header:first-child {
    margin-top: 0;
}

.exam-dropdown-explanation-group {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

.exam-sequence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* -- Column pick exam widget -------------------------------------------- */

.exam-pick-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.exam-pick-column {
    display: flex;
    flex-direction: column;
}

.exam-pick-column-header {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
    background: #e9ecef;
    border-radius: 0.375rem 0.375rem 0 0;
    margin-bottom: 0;
}

.exam-pick-column-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1.5px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    min-height: 120px;
    background: #fff;
}

.exam-pick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    font-size: 0.9rem;
}

.exam-pick-item:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.08);
}

.exam-pick-item .markdown-content {
    flex: 1;
}

.exam-pick-item .markdown-content p:last-child {
    margin-bottom: 0;
}

.exam-pick-result-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    width: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    visibility: hidden;
}

.exam-pick-result-icon .bi-check-circle-fill { color: #8bc220; }
.exam-pick-result-icon .bi-x-circle-fill { color: #fa6915; }

.exam-pick-sequence {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-item {
    pointer-events: none;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-sequence {
    display: none;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-item:hover {
    border-color: #dee2e6;
    background-color: #fff;
    box-shadow: none;
}

/* Correct items in Answers column */
.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.is-correct {
    border-color: #afeb2b;
    border-width: 2px;
    background-color: rgba(175, 235, 43, 0.1);
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.is-correct .exam-pick-result-icon {
    visibility: visible;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.is-correct .exam-pick-result-icon .bi-x-circle-fill {
    display: none;
}

/* Correct items in Answers column with wrong sequence */
.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.exam-wrong-sequence {
    border-color: #fd7e14;
    border-width: 2px;
    border-style: dashed;
    background-color: rgba(253, 126, 20, 0.1);
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.exam-wrong-sequence .exam-pick-result-icon {
    visibility: visible;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.exam-wrong-sequence .exam-pick-result-icon .bi-check-circle-fill,
.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.exam-wrong-sequence .exam-pick-result-icon .bi-x-circle-fill {
    display: none;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.exam-wrong-sequence .exam-pick-result-icon .bi-arrows-vertical {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #fd7e14;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
}

.exam-pick-result-icon .bi-arrows-vertical {
    display: none;
}

/* Incorrect items in Answers column */
.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.is-incorrect {
    border-color: #fa6915;
    border-width: 2px;
    background-color: rgba(250, 105, 21, 0.1);
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.is-incorrect .exam-pick-result-icon {
    visibility: visible;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(2) .exam-pick-item.is-incorrect .exam-pick-result-icon .bi-check-circle-fill {
    display: none;
}

/* Correct items left in Options column (should have been moved to Answers) */
.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(1) .exam-pick-item.is-correct {
    border-color: #afeb2b;
    border-width: 2px;
    border-style: dashed;
    background-color: rgba(175, 235, 43, 0.08);
    opacity: 1;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(1) .exam-pick-item.is-correct .exam-pick-result-icon {
    visibility: visible;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(1) .exam-pick-item.is-correct .exam-pick-result-icon .bi-x-circle-fill {
    display: none;
}

/* Incorrect items left in Options column (correctly not selected) */
.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(1) .exam-pick-item.is-incorrect {
    border-color: #dee2e6;
    border-width: 1.5px;
    border-style: solid;
    background-color: #fff;
    opacity: 0.5;
}

.exam-pick-container .exam-submitted-toggle:checked ~ .exam-pick-columns .exam-pick-column:nth-child(1) .exam-pick-item.is-incorrect .exam-pick-result-icon {
    visibility: hidden;
}

.exam-pick-container.exam-all-correct .exam-feedback-correct {
    display: flex;
}

.exam-pick-container.exam-some-incorrect .exam-feedback-incorrect {
    display: flex;
}

.exam-pick-container.exam-some-incorrect .exam-explanations-card {
    display: block;
}

.exam-stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exam-stack-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.exam-stack-item:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.exam-stack-rank {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #fa6915;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.exam-stack-content {
    flex: 1;
    line-height: 1.5;
}

.exam-stack-controls {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.exam-stack-btn {
    width: 1.75rem;
    height: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.exam-stack-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.exam-stack-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.exam-stack-item .exam-result-icon {
    display: none;
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

.exam-stack-container .exam-submitted-toggle:checked ~ .exam-stack-list .exam-stack-item {
    pointer-events: none;
}

.exam-stack-container .exam-submitted-toggle:checked ~ .exam-stack-list .exam-stack-item .exam-stack-btn {
    pointer-events: none;
    opacity: 0.3;
}

.exam-stack-container .exam-submitted-toggle:checked ~ .exam-stack-list .exam-stack-item .exam-result-icon {
    display: block;
}

.exam-stack-container .exam-submitted-toggle:checked ~ .exam-stack-list .exam-answer-wrap.is-correct {
    border-color: #afeb2b;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.exam-stack-container .exam-submitted-toggle:checked ~ .exam-stack-list .exam-answer-wrap.is-incorrect {
    border-color: #fa6915;
    border-style: dashed;
    border-width: 3px;
    background-color: rgba(250, 105, 21, 0.08);
}

.exam-stack-container .exam-submitted-toggle:checked ~ .exam-stack-list .exam-explanation {
    display: block;
}

/* -- Statements (true/false) exam widget ------------------------------------ */

.exam-statement-list {
    margin-bottom: 1.5rem;
}

.exam-statement-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.exam-statement-row:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.exam-statement-text {
    flex: 1;
    display: flex;
    align-items: center;
    line-height: 1.5;
}
.exam-statement-text .markdown-content p {
    margin: 0;
}

.exam-statement-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.exam-statement-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.exam-statement-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.exam-statement-label {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.exam-statement-label:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
    text-decoration: underline;
}

.exam-statement-radio:checked + .exam-statement-label {
    border-color: #000;
    background: #000;
    color: #fff;
}

.exam-statement-result-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    width: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-statement-row {
    pointer-events: none;
}

.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-statement-row:hover {
    border-color: #dee2e6;
    background-color: #fff;
}

.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct .exam-statement-row {
    border-color: #afeb2b;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect .exam-statement-row {
    border-color: #fa6915;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(250, 105, 21, 0.08);
}

.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-statement-result-icon {
    visibility: visible;
}

/* Correct answer with Yes clicked = user got it right */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct .exam-statement-yes:checked ~ .exam-statement-result-icon {
    color: #8bc220;
}
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct .exam-statement-yes:checked ~ * .exam-statement-result-icon,
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct .exam-statement-yes:checked ~ .exam-statement-options .exam-statement-result-icon {
    color: #8bc220;
}

/* Correct answer with No clicked = user got it wrong */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct .exam-statement-no:checked ~ .exam-statement-result-icon,
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct .exam-statement-no:checked ~ * .exam-statement-result-icon {
    color: #fa6915;
}

/* Incorrect answer with Yes clicked = user got it wrong */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect .exam-statement-yes:checked ~ .exam-statement-result-icon,
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect .exam-statement-yes:checked ~ * .exam-statement-result-icon {
    color: #fa6915;
}

/* Incorrect answer with No clicked = user got it right */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect .exam-statement-no:checked ~ .exam-statement-result-icon,
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect .exam-statement-no:checked ~ * .exam-statement-result-icon {
    color: #8bc220;
}

.exam-statement-list .bi-check-circle-fill { color: #8bc220; }
.exam-statement-list .bi-x-circle-fill { color: #fa6915; }

/* Row border colors based on actual user answer correctness */

/* Correct answer with Yes clicked = correct (green) */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct:has(.exam-statement-yes:checked) .exam-statement-row {
    border-color: #afeb2b;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

/* Correct answer with No clicked = incorrect (orange) */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct:has(.exam-statement-no:checked) .exam-statement-row {
    border-color: #fa6915;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(250, 105, 21, 0.08);
}

/* Incorrect answer with Yes clicked = incorrect (orange) */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect:has(.exam-statement-yes:checked) .exam-statement-row {
    border-color: #fa6915;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(250, 105, 21, 0.08);
}

/* Incorrect answer with No clicked = correct (green) */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect:has(.exam-statement-no:checked) .exam-statement-row {
    border-color: #afeb2b;
    border-style: solid;
    border-width: 3px;
    background-color: rgba(175, 235, 43, 0.08);
}

/* Icon colors match the row */

/* Correct answer with Yes = green check */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct:has(.exam-statement-yes:checked) .exam-statement-result-icon .exam-icon-correct {
    display: inline;
    color: #8bc220;
}
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct:has(.exam-statement-yes:checked) .exam-statement-result-icon .exam-icon-incorrect {
    display: none;
}

/* Correct answer with No = orange X */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct:has(.exam-statement-no:checked) .exam-statement-result-icon .exam-icon-correct {
    display: none;
}
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-correct:has(.exam-statement-no:checked) .exam-statement-result-icon .exam-icon-incorrect {
    display: inline;
    color: #fa6915;
}

/* Incorrect answer with Yes = orange X */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect:has(.exam-statement-yes:checked) .exam-statement-result-icon .exam-icon-correct {
    display: none;
}
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect:has(.exam-statement-yes:checked) .exam-statement-result-icon .exam-icon-incorrect {
    display: inline;
    color: #fa6915;
}

/* Incorrect answer with No = green check */
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect:has(.exam-statement-no:checked) .exam-statement-result-icon .exam-icon-correct {
    display: inline;
    color: #8bc220;
}
.exam-statement-container .exam-submitted-toggle:checked ~ .exam-statement-list .exam-answer-wrap.is-incorrect:has(.exam-statement-no:checked) .exam-statement-result-icon .exam-icon-incorrect {
    display: none;
}

.exam-statement-result-icon .exam-icon-correct,
.exam-statement-result-icon .exam-icon-incorrect {
    display: none;
}

.exam-statement-container.exam-all-correct .exam-feedback-correct {
    display: flex;
}

.exam-statement-container.exam-some-incorrect .exam-feedback-incorrect {
    display: flex;
}

.exam-statement-container.exam-some-incorrect .exam-explanations-card {
    display: block;
}

/* -- "In This Course" stat cards ------------------------------------------- */

/* Brand-coloured border (orange) */
.border-brand {
    border-color: #fa6915 !important;
}

/* Brand-coloured text (orange) */
.text-brand {
    color: #fa6915 !important;
}

.dataset-card {
    border: 1px solid #dee2e6 !important;
}

/* -- "In This Course" stat cards ------------------------------------------- */
.stat-card {
    border: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.stat-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.stat-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.stat-card-count {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Green card */
.stat-card-green {
    background: linear-gradient(135deg, #afeb2b 0%, #8bc220 100%);
}
.stat-card-green .stat-card-icon {
    background: rgba(0, 0, 0, 0.12);
    color: #000;
}
.stat-card-green .stat-card-count { color: #000; }
.stat-card-green .stat-card-label  { color: rgba(0, 0, 0, 0.5); }

/* Black card */
.stat-card-black {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
}
.stat-card-black .stat-card-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.stat-card-black .stat-card-count { color: #fff; }
.stat-card-black .stat-card-label  { color: rgba(255, 255, 255, 0.5); }

/* Orange card */
.stat-card-orange {
    background: linear-gradient(135deg, #fa6915 0%, #f5933d 100%);
}
.stat-card-orange .stat-card-icon {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}
.stat-card-orange .stat-card-count { color: #000; }
.stat-card-orange .stat-card-label  { color: rgba(0, 0, 0, 0.65); }

/* White card */
.stat-card-white {
    background: #fff;
    border: 1.5px solid #000 !important;
}
.stat-card-white .stat-card-icon {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}
.stat-card-white .stat-card-count { color: #000; }
.stat-card-white .stat-card-label  { color: rgba(0, 0, 0, 0.5); }

/* Light card (white-to-grey gradient) */
.stat-card-light {
    background: linear-gradient(135deg, #ffffff 0%, #e9ecef 100%);
    border: 1px solid #dee2e6 !important;
}
.stat-card-light .stat-card-icon {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}
.stat-card-light .stat-card-count { color: #000; }
.stat-card-light .stat-card-label  { color: rgba(0, 0, 0, 0.5); }

/* -- Instructor / Artist page ---------------------------------------------- */

/* Full-bleed dark hero - Spotify-style */
.artist-hero {
    position: relative;
    background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 60%, #1a1a1a 100%);
    color: #fff;
    overflow: hidden;
    padding: 3.5rem 0 3.5rem;
    border-radius: 1rem;
}

/* Decorative glow behind the avatar */
.artist-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(250, 105, 21, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative glow on the right side */
.artist-hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(250, 105, 21, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Circular avatar */
.artist-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(250, 105, 21, 0.6);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(250, 105, 21, 0.1);
    flex-shrink: 0;
    margin-left: 1rem;
}

@media (max-width: 767.98px) {
    .artist-avatar {
        width: 110px;
        height: 110px;
    }
}

/* "Verified Instructor" pill */
.artist-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #afeb2b;
    margin-bottom: 0.6rem;
}

.artist-verified-dot {
    width: 18px;
    height: 18px;
    background: #afeb2b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.artist-verified-dot i {
    font-size: 0.6rem;
    color: #000;
}

/* Artist name */
.artist-name {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.0;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: "Inter", Arial, sans-serif !important;
    margin: 0;
}

/* Subtitle line */
.artist-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Stats strip - blended into the bottom of the hero */
.artist-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
}

.artist-hero-stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    text-align: center;
    position: relative;
}

.artist-hero-stat + .artist-hero-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.artist-hero-stat-count {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.artist-hero-stat-label {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.artist-hero-stat-label i {
    color: #fa6915;
    font-size: 0.75rem;
}

.artist-hero-stat-stars {
    color: #afeb2b;
    font-size: 2rem;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .artist-hero-stat {
        flex: 1 1 33%;
        padding: 0.75rem 0.5rem;
    }
    .artist-hero-stat:nth-child(1)::before,
    .artist-hero-stat:nth-child(4)::before { display: none; }
    .artist-hero-stat:nth-child(4),
    .artist-hero-stat:nth-child(5),
    .artist-hero-stat:nth-child(6) {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.artist-social-link {
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease, transform 0.1s ease;
    text-decoration: none;
}

.artist-social-link:hover {
    color: #fff !important;
    transform: scale(1.15);
    text-decoration: none;
}

/* Popular Tracks list */
.popular-tracks-list {
    display: flex;
    flex-direction: column;
}

.popular-track-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.popular-track-row:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.popular-track-row:hover .popular-track-num { opacity: 0; }
.popular-track-row:hover .popular-track-icon { opacity: 1; }

.popular-track-num {
    width: 1.75rem;
    text-align: center;
    font-size: 0.95rem;
    color: #adb5bd;
    font-weight: 500;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.popular-track-thumb {
    position: relative;
    width: 85px;
    flex-shrink: 0;
    border-radius: 0.375rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.popular-track-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-track-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.15s ease;
    color: #fff;
    font-size: 1.1rem;
}

.popular-track-row:hover .popular-track-play {
    opacity: 1;
}

.popular-track-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.popular-track-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-track-course {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-track-icon {
    font-size: 1.1rem;
    color: #fa6915;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

/* About section - avatar + bio */
.artist-about-avatar {
    position: relative;
    width: 220px;
}

.artist-about-avatar img {
    width: 220px;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    border: 2px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.artist-about-avatar-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.73rem;
    font-weight: 600;
    text-align: center;
    padding: 0.35rem 0.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    backdrop-filter: blur(3px);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.artist-about-avatar-badge i {
    color: #afeb2b;
    font-size: 0.7rem;
}

.artist-about-bio {
    font-size: 0.975rem;
    line-height: 1.8;
    color: #495057;
}

.artist-about-bio p:last-child { margin-bottom: 0; }

@media (max-width: 575.98px) {
    .artist-about-avatar {
        width: 100%;
    }
    .artist-about-avatar img {
        width: 100%;
        height: auto;
    }
}

/* Achievement badge */
.artist-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.artist-achievement:hover {
    border-color: #afeb2b;
    box-shadow: 0 2px 12px rgba(175, 235, 43, 0.15);
}

.artist-achievement-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #afeb2b 0%, #8bc220 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #000;
}

.artist-achievement-icon--orange {
    background: linear-gradient(135deg, #fa6915 0%, #f5933d 100%);
    color: #fff;
}

.artist-achievement-icon--dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
    color: #fff;
}

.artist-achievement-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    font-weight: 600;
    line-height: 1.2;
}

.artist-achievement-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

/* Course / album card in the discography section */
.artist-course-card {
    text-decoration: none;
    display: block;
}

.artist-course-card:hover .artist-course-title {
    color: #fa6915;
    text-decoration: underline;
}

.artist-course-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #212529;
    margin-top: 0.5rem;
    margin-bottom: 0;
    transition: color 0.15s ease;
}

/* -- Draft item indicator (admin-only) ------------------------------------- */

/* Ribbon: clips the card corner so the ribbon doesn't bleed outside */
.draft-ribbon-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    border-radius: 0.375rem 0 0 0; /* match card top-left corner */
}
.draft-ribbon-wrap--lg {
    width: 200px;
    height: 200px;
}
.draft-ribbon-wrap--sm {
    width: 60px;
    height: 60px;
}
.draft-ribbon-wrap--sm .draft-badge {
    top: 14px;
    left: -22px;
    width: 80px;
    font-size: 0.55rem;
    padding: 3px 0;
}
.draft-badge {
    position: absolute;
    top: 30px;
    left: -36px;
    width: 150px;
    background: #dc3545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.draft-ribbon-wrap--lg .draft-badge {
    top: 52px;
    left: -52px;
    width: 240px;
    font-size: 1rem;
    padding: 8px 0;
}
.draft-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: #fddad8;
    color: #000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.draft-inline {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
}

.preview-inline {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
}

/* -- Certification card thumbnail ------------------------------------------- */
.cert-card-thumb {
    height: 180px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cert-card-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* -- Pricing page check / cross icons ------------------------------------- */
.pricing-check,
.pricing-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.pricing-check {
    background-color: #afeb2b;
    color: #000;
}

.pricing-check--orange {
    background-color: #fa6915;
    color: #fff;
}

.pricing-cross {
    background-color: #dee2e6;
    color: #6c757d;
}

/* -- Module detail - lesson thumbnail ------------------------------------- */
.lesson-thumb {
    width: 40px;
    height: 27px;
    flex-shrink: 0;
}

/* -- Module detail - visited checkmark overlay ---------------------------- */
.visited-check {
    width: 1rem;
    height: 1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.visited-check .visited-check-circle {
    position: absolute;
    font-size: 1rem;
    color: #afeb2b;
}

.visited-check .visited-check-tick {
    position: absolute;
    font-size: 0.75rem;
    color: #000;
}

.quiz-incorrect-check {
    width: 1rem;
    height: 1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quiz-incorrect-check .quiz-incorrect-circle {
    position: absolute;
    font-size: 1rem;
    color: #fa6915;
}

.quiz-incorrect-check .quiz-incorrect-tick {
    position: absolute;
    font-size: 0.75rem;
    color: #fff;
}

.module-pending-icon {
    font-size: 1rem;
    color: #fa6915;
}

.module-pending-check {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    border-radius: 50%;
    background: linear-gradient(to right, #afeb2b 50%, #fff 50%);
    border: 1.5px solid #afeb2b;
}

/* -- Module detail - lesson progress section ------------------------------ */
.module-progress-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.module-progress-icon--complete {
    background: #afeb2b;
}

.module-progress-icon--progress {
    background: #f8f8f8;
    border: 2px solid #000;
}

.module-progress-icon i {
    color: #000;
}

.module-progress-bar-wrap {
    height: 10px;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
}

.module-progress-bar-fill {
    background-color: #afeb2b !important;
}

.module-progress-pct {
    color: #000;
    font-size: 1.1rem;
}

/* Chunked quiz progress bar */
.quiz-chunk-bar {
    display: flex;
    gap: 2px;
    height: 10px;
}

.quiz-chunk-bar__segment {
    flex-shrink: 0;
    height: 100%;
    border-radius: 3px;
    background-color: #dee2e6;
}

.quiz-chunk-bar__segment--correct {
    background-color: #afeb2b;
}

.quiz-chunk-bar__segment--incorrect {
    background-color: #fa6915;
}

.quiz-chunk-bar__segment--visited {
    background-color: #6c757d;
}


/* Truncated external URL link in hero cards */
.info-url-link {
    display: inline-block;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* Topic cards */
.topic-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: #f1f3f5;
}

.topic-card-icon--sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.topic-card-icon-size {
    font-size: 1.1rem;
}

.topic-card-title {
    font-size: 0.85rem;
    font-weight: 400;
}

.topic-card-title--sm {
    font-size: 0.75rem;
    font-weight: 400;
}

.topic-card-pill {
    background-color: #afeb2b;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.topic-card-chevron {
    font-size: 0.8rem;
    color: #adb5bd;
}

.topic-card-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: #afeb2b;
    flex-shrink: 0;
}

.topic-card-percentage-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    margin-top: 0.1rem;
    white-space: nowrap;
}

.topic-card-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background-color: #fa6915;
    margin-top: 0.23rem;
}

.topic-card-dot--green {
    background-color: #afeb2b;
}

.topic-card-cert-code {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.topic-card-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.topic-card-progress-full {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem 0.75rem 1rem;
}

.topic-card-progress-full--compact {
    padding: 0 0.5rem 0.5rem 0.5rem;
}

.topic-card-progress-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topic-card-progress-icon {
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
}

.topic-card-ring {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-card-ring-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.topic-card-ring-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.topic-card-exam-icon {
    font-size: 2.1rem;
    line-height: 1;
    margin-top: 0.05rem;
    margin-right: 0.4rem;
    color: #fff;
}

.topic-card-exam-percentage {
    font-size: inherit;
    font-weight: 600;
    color: #afeb2b;
}

.topic-card-score {
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
}

/* Topic card themes */
.topic-card {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    position: relative;
}

.topic-card:hover {
}

/* Plain topic: dark-to-lighter gradient left→right with radial orange glow */
.topic-card--plain {
    background: linear-gradient(100deg, #1a1a1a 0%, #2e2e2e 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.topic-card--plain::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(250, 105, 21, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.topic-card--plain:hover {
    box-shadow: 0 6px 20px rgba(250, 105, 21, 0.2);
}

.topic-card--plain .topic-card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fa6915;
}

.topic-card--plain .topic-card-label {
    color: #fff;
}

.topic-card--plain .topic-card-chevron {
    color: rgba(255,255,255,0.3);
}

/* Certification topic: dark-to-lighter gradient left→right with radial green glow */
.topic-card--cert {
    background: linear-gradient(100deg, #1a1a1a 0%, #2e2e2e 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.topic-card--cert::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(175, 235, 43, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.topic-card--cert:hover {
    box-shadow: 0 6px 20px rgba(175, 235, 43, 0.2);
}

.topic-card--cert .topic-card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #afeb2b;
}

.topic-card--cert .topic-card-label {
    color: #fff;
}

.topic-card--cert .topic-card-pill {
    background-color: #afeb2b !important;
    color: #000 !important;
}

.topic-card--cert .topic-card-chevron {
    color: rgba(255,255,255,0.3);
}

.topic-card--plain:hover .topic-card-label {
    color: #fa6915;
    text-decoration: underline;
}

.topic-card--cert:hover .topic-card-label {
    color: #afeb2b;
    text-decoration: underline;
}

/* -- Signup / pricing page -------------------------------------------------- */

/* -- Course skills card (orange variant of cert-skills-card) ---------------- */

.course-skills-card {
    background: linear-gradient(100deg, #1a1a1a 0%, #2e2e2e 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-skills-card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(250, 105, 21, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.course-skills-card__body {
    padding: 1rem 1rem 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
}

.course-skills-card__title {
    color: #fff;
}

.course-skills-card__title-link {
    text-decoration: none;
}

.course-skills-card__title-link:hover .course-skills-card__title {
    color: #fa6915;
    text-decoration: underline;
}

.course-skills-card__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 0.9rem;
}

.course-skills-card__link:hover {
    color: #fa6915;
    text-decoration: underline;
}

.course-skills-card__chevron {
    color: rgba(255, 255, 255, 0.3);
}

.course-skills-card__link:hover .course-skills-card__chevron {
    color: #fa6915;
}

.course-skills-card__ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-skills-card__ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.course-skills-card__ring-value {
    font-size: 0.65rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.course-skills-card__ring-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.course-skills-card__mortarboard {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 2.1rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.course-skills-card__bar-wrap {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 0;
}

.course-skills-card__bar-fill {
    height: 100%;
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* -- Certification skills card ---------------------------------------------- */

.cert-skills-card {
    background: linear-gradient(100deg, #1a1a1a 0%, #2e2e2e 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cert-skills-card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(175, 235, 43, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cert-skills-card__body {
    padding: 1rem 1rem 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
}

.cert-skills-card__title {
    color: #fff;
}

.cert-skills-card__title-link {
    text-decoration: none;
}

.cert-skills-card__title-link:hover .cert-skills-card__title {
    color: #afeb2b;
    text-decoration: underline;
}

.cert-skills-card__code {
    font-size: 0.7rem;
    color: #afeb2b;
    margin-top: 0.15rem;
}

.cert-skills-card__link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
    font-size: 0.9rem;
}

.cert-skills-card__link:hover {
    color: #afeb2b;
    text-decoration: underline;
}

.cert-skills-card__chevron {
    color: rgba(255, 255, 255, 0.3);
}

.cert-skills-card__link:hover .cert-skills-card__chevron {
    color: #afeb2b;
}

.cert-skills-card__ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-skills-card__ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cert-skills-card__ring-value {
    font-size: 0.65rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.cert-skills-card__ring-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.cert-skills-card__mortarboard {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 2.1rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.cert-skills-card__bar-wrap {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 0;
}

.cert-skills-card__bar-fill {
    height: 100%;
    background: #afeb2b;
    border-radius: 1px;
    transition: width 0.3s ease;
}

.cert-skills-card__drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(175, 235, 43, 0.12);
    border-top: 1px solid rgba(175, 235, 43, 0.25);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s ease;
}

.cert-skills-card__drawer:hover {
    background: rgba(175, 235, 43, 0.2);
    text-decoration: underline;
}

.cert-skills-card__drawer,
.cert-skills-card__drawer:hover,
.cert-skills-card__drawer:hover * {
    color: #fff !important;
}

.cert-skills-card__drawer i {
    color: #fff;
}

.cert-skills-card__drawer-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-skills-card__status-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 3px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cert-skills-card__status-drawer--passed {
    background: rgba(175, 235, 43, 0.15);
    border-top: 1px solid rgba(175, 235, 43, 0.3);
}

.cert-skills-card__status-drawer--planned {
    background: rgba(250, 105, 21, 0.15);
    border-top: 1px solid rgba(250, 105, 21, 0.3);
}

.cert-skills-card__status-drawer--expiring {
    background: rgba(250, 105, 21, 0.15);
    border-top: 1px solid rgba(250, 105, 21, 0.3);
}

.cert-skills-card__status-drawer--studying {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-skills-card__status-drawer--passed .cert-skills-card__status-icon,
.cert-skills-card__status-drawer--passed .cert-skills-card__status-text {
    color: #afeb2b;
}

.cert-skills-card__status-drawer--planned .cert-skills-card__status-icon,
.cert-skills-card__status-drawer--planned .cert-skills-card__status-text {
    color: #fa6915;
}

.cert-skills-card__status-drawer--expiring .cert-skills-card__status-icon,
.cert-skills-card__status-drawer--expiring .cert-skills-card__status-text {
    color: #fa6915;
}

.cert-skills-card__status-drawer--studying .cert-skills-card__status-icon,
.cert-skills-card__status-drawer--studying .cert-skills-card__status-text {
    color: rgba(255, 255, 255, 0.85);
}

.cert-skills-card__status-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cert-skills-card__status-text {
    font-size: 0.8rem;
    font-weight: 400;
}

/* -- Signup / pricing page -------------------------------------------------- */

/* Billing toggle CSS - no JavaScript needed */
.pricing-card:has(.billing-toggle:checked) .billing-monthly { display: none !important; }
.pricing-card:has(.billing-toggle:checked) .billing-yearly { display: flex !important; }
.pricing-card:has(.billing-toggle:checked) .billing-label-monthly { color: #6c757d !important; }
.pricing-card:has(.billing-toggle:checked) .billing-label-yearly { color: #212529 !important; }

.pricing-card:not(:has(.billing-toggle:checked)) .billing-yearly { display: none !important; }
.pricing-card:not(:has(.billing-toggle:checked)) .billing-monthly { display: flex !important; }
.pricing-card:not(:has(.billing-toggle:checked)) .billing-label-monthly { color: #212529 !important; }
.pricing-card:not(:has(.billing-toggle:checked)) .billing-label-yearly { color: #6c757d !important; }

/* Plan badges */
.badge--starter {
    background-color: #6c757d;
    color: white;
    font-size: 0.75rem;
}

.badge--professional,
.badge--most-popular {
    background-color: #afeb2b;
    color: black;
    font-size: 0.75rem;
}

.badge--business {
    background-color: #fa6915;
    color: white;
    font-size: 0.75rem;
}

/* Save percentage badges */
.badge--save-green {
    background-color: #afeb2b;
    color: #000;
    font-size: 0.65rem;
}

.badge--save-orange {
    background-color: #fa6915;
    color: #fff;
    font-size: 0.65rem;
}

/* Billing toggle switch */
.billing-toggle {
    cursor: pointer;
}

.billing-toggle--disabled {
    opacity: 1;
    cursor: not-allowed;
}

/* Professional card highlight outline */
.pricing-card--highlight {
    outline: 3px solid #afeb2b;
}

/* ============================================================
   Proficiency card - skill detail page
   ============================================================ */

.proficiency-card {
    background: linear-gradient(120deg, #161616 0%, #242424 100%);
    border-radius: 0.375rem;
    box-shadow: 0 0 40px rgba(250, 105, 21, 0.18), 0 4px 24px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

/* Orange radial glow top-left */
.proficiency-card::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: none;
    pointer-events: none;
}

.proficiency-card__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.25rem;
    position: relative;
}

.proficiency-card__inner--top {
    align-items: flex-start;
}

/* ---- Score ring ---- */

.proficiency-card__score {
    flex-shrink: 0;
    position: relative;
    width: 88px;
    height: 88px;
}

.proficiency-card__ring {
    width: 88px;
    height: 88px;
    display: block;
}

.proficiency-card__ring circle:last-child {
    transition: stroke-dasharray 0.6s ease;
}

.proficiency-card__score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

.proficiency-card__icon-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #fff;
}

/* ---- Right body ---- */

.proficiency-card__body {
    flex: 1;
    min-width: 0;
}

.proficiency-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.2rem;
}

.proficiency-card__msg {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.proficiency-card__bar-wrap {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.proficiency-card__bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.proficiency-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.proficiency-card__stat {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.proficiency-card__stat .bi {
    font-size: 0.9rem;
    color: rgba(250, 105, 21, 0.8);
}

.proficiency-card__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.proficiency-card__btn {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
}

.proficiency-card__action .proficiency-card__btn {
    width: 100%;
}

.proficiency-card__btn.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .proficiency-card__inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .proficiency-card__stats {
        justify-content: center;
    }
}

/* ---- Proficiency card nudge (study prompt) ---- */

.proficiency-card__nudge-divider {
    margin: 0;
    border-color: rgba(255,255,255,0.1);
}

.proficiency-card__nudge-divider--strong {
    border-color: rgba(255,255,255,0.4);
    border-width: 1px;
}

.proficiency-card__nudge-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 2.25rem;
}

.proficiency-card__nudge-inner--with-icon {
    gap: 1rem;
}

.proficiency-card__nudge-inner .proficiency-card__btn {
    flex-shrink: 0;
}

.proficiency-card__nudge-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.proficiency-card__nudge-icon--success {
    color: #afeb2b;
}

.proficiency-card__nudge-icon--warning {
    color: #fa6915;
}

.proficiency-card__nudge-text {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
}

/* ---- Per-skill rows inside the certification proficiency card ---- */

.cert-proficiency-skills {
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin-top: 0.25rem;
}

.cert-proficiency-skills--with-threshold {
    position: relative;
    padding-bottom: 1.75rem;
}

.cert-proficiency-skills__disclaimer {
    position: absolute;
    top: -1.25rem;
    right: 0;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.cert-proficiency-shade {
    position: absolute;
    top: 0;
    bottom: 1.75rem;
    left: calc(28.6% + var(--threshold) * 0.714);
    right: 0;
    background: rgba(25, 80, 25, 0.4);
    border-radius: 0.25rem;
    z-index: 0;
}

.cert-proficiency-threshold {
    position: absolute;
    bottom: 0.5rem;
    left: calc(28.6% + var(--threshold) * 0.714 - 5px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #afeb2b;
    z-index: 2;
}

.cert-proficiency-threshold::after {
    content: '80%';
    position: absolute;
    top: -1px;
    left: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #afeb2b;
    white-space: nowrap;
    line-height: 1;
}

.cert-proficiency-skills--with-threshold .cert-proficiency-skill__bar {
    position: relative;
    z-index: 1;
}

.cert-proficiency-skill__name-wrap,
.cert-proficiency-skill__name {
    grid-column: 1;
}

.cert-proficiency-skill__bar {
    grid-column: 2;
    margin: 0;
}

.cert-proficiency-skill__score {
    grid-column: 3;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.cert-proficiency-skill__name-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.cert-proficiency-skill__name {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.cert-proficiency-skill__name:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---- Proficiency section headings ---- */

.proficiency-section-heading {
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.proficiency-section-heading--cert {
    color: #afeb2b;
    border-bottom: 1px solid rgba(175, 235, 43, 0.3);
}

.proficiency-section-heading--general {
    color: #fa6915;
    border-bottom: 1px solid rgba(250, 105, 21, 0.3);
}

.proficiency-section-heading--general.proficiency-section-heading--spaced {
    margin-top: 1.25rem;
}

/* ---- Certification skill name (white text) ---- */

.cert-proficiency-skill__name--cert {
    color: #fff;
}

.cert-proficiency-skill__code {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background-color: rgba(175, 235, 43, 0.2);
    color: #afeb2b;
    border-radius: 0.2rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================================
   Study Activity Heatmap - GitHub/Codeberg-style contribution graph
   ============================================================ */

.study-heatmap-card {
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.study-heatmap-card__header {
    padding: 1.25rem 1.5rem 0.75rem;
    position: relative;
}

.study-heatmap-card__header h3 {
    color: #212529;
}

.study-heatmap-card__body {
    padding: 1.25rem 1.5rem;
    position: relative;
}

.study-heatmap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.study-heatmap__months {
    display: flex;
    margin-left: 32px;
    font-size: 0.65rem;
    color: #6c757d;
    height: 1rem;
    position: relative;
}

.study-heatmap__month {
    position: absolute;
    white-space: nowrap;
}

.study-heatmap__grid {
    display: flex;
    gap: 4px;
    width: 100%;
}

.study-heatmap__weekdays {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.6rem;
    color: #6c757d;
    width: 28px;
}

.study-heatmap__weekdays span {
    aspect-ratio: 1;
    max-height: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.study-heatmap__weeks {
    display: flex;
    gap: 2px;
    flex-grow: 1;
    width: 100%;
}

.study-heatmap__week {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 0;
}

.study-heatmap__day {
    aspect-ratio: 1;
    width: 100%;
    max-width: 13px;
    border-radius: 2px;
    background-color: #ebedf0;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.study-heatmap__day:hover {
    transform: scale(1.3);
}

/* Activity levels using brand colors (orange gradient) */
.study-heatmap__day--level-0 {
    background-color: #ebedf0;
}

/* Weekend days (Saturday, Sunday) get slightly darker shading for level-0 */
.study-heatmap__day--level-0:nth-child(6),
.study-heatmap__day--level-0:nth-child(7) {
    background-color: #d8dbe0;
}

.study-heatmap__day--level-1 {
    background-color: rgba(250, 105, 21, 0.25);
}

.study-heatmap__day--level-2 {
    background-color: rgba(250, 105, 21, 0.5);
}

.study-heatmap__day--level-3 {
    background-color: rgba(250, 105, 21, 0.75);
}

.study-heatmap__day--level-4 {
    background-color: #fa6915;
}

.study-heatmap__legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 1rem;
    margin-left: 32px;
}

.study-heatmap__legend-items {
    display: flex;
    gap: 2px;
}

.study-heatmap__legend-items .study-heatmap__day {
    width: 10px;
    height: 10px;
    max-width: none;
}

.study-heatmap__nudge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.study-heatmap__nudge-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.study-heatmap__nudge .btn {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .study-heatmap__day {
        max-width: 10px;
    }

    .study-heatmap__months {
        margin-left: 28px;
    }

    .study-heatmap__weekdays span {
        max-height: 10px;
    }

    .study-heatmap__legend {
        margin-left: 28px;
    }
}

@media (max-width: 768px) {
    .study-heatmap-card__body {
        padding: 1rem;
    }

    .study-heatmap__months {
        display: none;
    }

    .study-heatmap__weekdays {
        font-size: 0.5rem;
        width: 20px;
    }

    .study-heatmap__weekdays span {
        max-height: 8px;
    }

    .study-heatmap__day {
        max-width: 8px;
    }

    .study-heatmap__week {
        gap: 1px;
    }

    .study-heatmap__weeks {
        gap: 1px;
    }

    .study-heatmap__legend {
        margin-left: 22px;
    }
}

@media (max-width: 576px) {
    .study-heatmap-card__body {
        padding: 0.75rem;
    }

    .study-heatmap__weekdays {
        font-size: 0.4rem;
        width: 16px;
    }

    .study-heatmap__weekdays span {
        max-height: 6px;
    }

    .study-heatmap__day {
        max-width: 6px;
    }

    .study-heatmap__week {
        gap: 1px;
    }

    .study-heatmap__weeks {
        gap: 1px;
    }

    .study-heatmap__legend {
        margin-left: 18px;
    }
}

/* ============================================================
   Profile Stats Panel - Dark panel with stat grid
   ============================================================ */

.profile-stats-panel {
    background: linear-gradient(120deg, #161616 0%, #242424 100%);
    border-radius: 0.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.profile-stat {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.profile-stat:nth-child(3n) {
    border-right: none;
}

.profile-stat:nth-child(n+4) {
    border-bottom: none;
}

.profile-stat::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 5rem;
    height: 5rem;
    background: radial-gradient(circle, rgba(250, 105, 21, 0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.profile-stat__icon {
    font-size: 1.5rem;
    color: rgba(250, 105, 21, 0.9);
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.profile-stat__body {
    flex: 1;
    min-width: 0;
}

.profile-stat__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-stat__diff {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    vertical-align: middle;
}

.profile-stat__diff.positive {
    background: rgba(175, 235, 43, 0.15);
    color: #afeb2b;
}

.profile-stat__diff.negative {
    background: rgba(250, 105, 21, 0.15);
    color: #fa6915;
}

.profile-stat__label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.35rem;
}

.profile-stats-empty {
    padding: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.profile-stats-empty .branded-link {
    color: #fa6915;
}

@media (max-width: 768px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stat:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .profile-stat:nth-child(2n) {
        border-right: none;
    }

    .profile-stat:nth-child(n+4) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .profile-stat:nth-child(n+5) {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

     .profile-stat:last-child {
         border-bottom: none;
     }
 }

/* ============================================================
   Recent Lessons List
   ============================================================ */

.list-group-item:hover .recent-lesson__title {
    text-decoration: underline;
    text-decoration-color: #fa6915;
    text-underline-offset: 2px;
}

.recent-lesson__module {
    font-style: italic;
}

.recent-lesson__icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

/* ---- Exam health bar (last 50 questions) ---- */

.cert-exam-proficiency-bar {
    position: relative;
    display: flex;
    gap: 2px;
    margin-top: 1rem;
}

.cert-exam-proficiency-bar__square {
    flex: 1 1 0;
    height: 8px;
    border-radius: 2px;
    min-width: 4px;
}

.cert-exam-proficiency-bar__square--correct {
    background-color: #afeb2b;
}

.cert-exam-proficiency-bar__square--incorrect {
    background-color: #fa6915;
}

.cert-exam-proficiency-bar__square--empty {
    background-color: rgba(255, 255, 255, 0.1);
}

.cert-exam-proficiency-bar__label {
    position: absolute;
    top: -16px;
    right: 0;
    font-size: 0.6rem;
    font-weight: 600;
    color: #afeb2b;
    white-space: nowrap;
    line-height: 1;
}

/* ---- Exam health card (compact variant) ---- */

.cert-exam-proficiency-card .proficiency-card__inner {
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
}

.cert-exam-proficiency-card .proficiency-card__score {
    width: 64px;
    height: 64px;
}

.cert-exam-proficiency-card .proficiency-card__ring {
    width: 64px;
    height: 64px;
}

.cert-exam-proficiency-card .proficiency-card__score-value {
    font-size: 1.1rem;
}

.cert-exam-proficiency-card .proficiency-card__icon-placeholder {
    font-size: 1.25rem;
}

.cert-exam-proficiency-card .proficiency-card__label {
    margin-bottom: 0.1rem;
    display: flex;
    align-items: flex-start;
    padding-right: 5.5rem;
}

.cert-exam-proficiency-card .proficiency-card__msg {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    padding-right: 6.5rem;
}

/* Glow for exam proficiency card */
.cert-exam-proficiency-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.cert-exam-proficiency-card::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(250, 105, 21, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

.cert-exam-proficiency-card--passed::before {
    background: radial-gradient(circle, rgba(175, 235, 43, 0.25) 0%, transparent 65%);
}

.cert-exam-proficiency-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.cert-exam-proficiency-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cert-exam-proficiency-skills {
    display: none;
    padding: 0 1.5rem 1.5rem;
}

.cert-exam-proficiency-card--expanded .cert-exam-proficiency-skills {
    display: block;
}

.cert-exam-proficiency-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0.75rem 0 1rem;
}

.cert-exam-proficiency-skills__grid {
    position: relative;
}

.cert-proficiency-threshold--700 {
    left: calc(28.6% + 70% * 0.714 - 5px);
}

.cert-proficiency-threshold--700::after {
    content: '700 points';
}

.cert-proficiency-threshold--700 {
    border-bottom-color: #afeb2b;
}

.cert-proficiency-threshold--700::after {
    color: #afeb2b;
}

/* ---- Certification study proficiency card ---- */

.cert-study-proficiency-card .proficiency-card__inner {
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
}

.cert-study-proficiency-card .proficiency-card__score {
    width: 64px;
    height: 64px;
}

.cert-study-proficiency-card .proficiency-card__ring {
    width: 64px;
    height: 64px;
}

.cert-study-proficiency-card .proficiency-card__score-value {
    font-size: 1.1rem;
}

.cert-study-proficiency-card .proficiency-card__label {
    margin-bottom: 0.1rem;
    display: flex;
    align-items: flex-start;
    padding-right: 5.5rem;
}

.cert-study-proficiency-card .proficiency-card__msg {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    padding-right: 6.5rem;
}

.cert-study-proficiency-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.cert-study-proficiency-card::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(250, 105, 21, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

.cert-study-proficiency-card--passed::before {
    background: radial-gradient(circle, rgba(175, 235, 43, 0.25) 0%, transparent 65%);
}

.proficiency-card__check-icon {
    font-size: 2rem;
    color: #afeb2b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.proficiency-card__study-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.cert-study-proficiency-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.cert-study-proficiency-actions .btn-outline-light {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.cert-study-proficiency-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.proficiency-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.45);
    color: #000;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.15rem 0.4rem;
    margin-right: 0.4rem;
    margin-top: 0.15rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .proficiency-step-badge {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .proficiency-card__inner {
        flex-direction: column;
        text-align: center;
    }

    .proficiency-card__body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .proficiency-card__label {
        padding-right: 0 !important;
        justify-content: center;
    }

    .proficiency-card__msg {
        padding-right: 0 !important;
    }

    .cert-study-proficiency-actions {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }
}

.cert-study-proficiency-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.cert-study-proficiency-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cert-study-proficiency-bar-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-study-proficiency-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.cert-study-proficiency-bar__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cert-study-proficiency-bar__score {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.proficiency-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proficiency-cards-stack .proficiency-card {
    margin-bottom: 0;
}

.cert-study-proficiency-lessons {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.cert-study-proficiency-lessons__square {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.cert-study-proficiency-lessons__square--watched {
    background-color: #afeb2b;
}

.cert-study-proficiency-lessons__square--unwatched {
    background-color: rgba(255, 255, 255, 0.1);
}

.cert-study-proficiency-lessons__label {
    position: absolute;
    top: -16px;
    right: 0;
    font-size: 0.6rem;
    font-weight: 600;
    color: #afeb2b;
    white-space: nowrap;
    line-height: 1;
}

.cert-study-proficiency-lessons__label {
    position: absolute;
    top: -16px;
    right: 0;
    font-size: 0.6rem;
    font-weight: 600;
    color: #afeb2b;
    white-space: nowrap;
    line-height: 1;
}

.cert-study-proficiency-skills {
    padding: 0 2.25rem 1.25rem;
}

.cert-study-proficiency-divider {
    margin: 0 0 1rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cert-study-proficiency-congrats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(175, 235, 43, 0.08);
    border-radius: 0 0 0.5rem 0.5rem;
    position: relative;
}

.cert-study-proficiency-congrats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(175, 235, 43, 0.25) 0%, transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

.cert-study-proficiency-congrats__icon {
    font-size: 1rem;
    color: #000;
    background: #afeb2b;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.cert-study-proficiency-congrats__msg {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.cert-study-proficiency-congrats__msg strong {
    color: #afeb2b;
    font-weight: 700;
}

.cert-exam-proficiency-congrats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(175, 235, 43, 0.08);
    border-radius: 0 0 0.5rem 0.5rem;
    position: relative;
}

.cert-exam-proficiency-congrats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(175, 235, 43, 0.25) 0%, transparent 60%);
    pointer-events: none;
    border-radius: inherit;
}

.cert-exam-proficiency-congrats__icon {
    font-size: 1rem;
    color: #000;
    background: #afeb2b;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.cert-exam-proficiency-congrats__msg {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.cert-exam-proficiency-congrats__msg strong {
    color: #afeb2b;
    font-weight: 700;
}
