

    /* IMPORTS & ROOT VARIABLES */
    @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@500;700;600&display=swap');

    :root {
        --primary-blue: #0078D7;
        --primary-blue-dark: #005A9C;
        --light-blue-bg: #f0f7ff;
        --dark-text: #2c3e50;
        --body-text: #555;
        --border-color: #dee2e6;
        --white: #ffffff;
        --light-gray: #f8f9fa;
        --success-green: #28a745;
        --info-blue: #17a2b8;
        --quiz-border-radius: 12px;
        --quiz-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        --quiz-border: 1px solid #e0e6ed;
        --quiz-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Quiz progress grid */
    #visualProgressGrid {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .progress-dot {
        width: 30px;
        height: 30px;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        color: #999;
        font-weight: 600;
    }

    .progress-dot.is-active {
        border: 2px solid var(--primary-blue);
        color: var(--primary-blue);
    }

    .progress-dot.is-correct {
        background: #2ecc71;
        border-color: #2ecc71;
        color: #ffffff;
    }

    .progress-dot.is-wrong {
        background: #e74c3c;
        border-color: #e74c3c;
        color: #ffffff;
    }

    .progress-dot.is-flagged {
        position: relative;
        border-color: #ff9800;
    }

    .progress-dot.is-flagged::after {
        content: "";
        position: absolute;
        top: 2px;
        right: 2px;
        width: 6px;
        height: 6px;
        background-color: #ff9800;
        border-radius: 50%;
    }

    .grid-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        color: #666;
        font-weight: 600;
    }

    .grid-page-btn {
        border: 1px solid #e0e0e0;
        background: #ffffff;
        padding: 4px 10px;
        border-radius: 6px;
        cursor: pointer;
    }

    .grid-page-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideUpCentered {
        0% { 
            opacity: 0; 
            transform: translateX(-50%) translateY(20px); 
        }
        100% { 
            opacity: 1; 
            transform: translateX(-50%) translateY(0); 
        }
    }

    @keyframes popIn {
        0% { transform: scale(0.9); opacity: 0; }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); opacity: 1; }
    }

    /* GLOBAL STYLES */
    html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: var(--white);
        font-family: 'Open Sans', sans-serif;
        color: var(--body-text);
        line-height: 1.6;
    }

    /* GLOBAL HEADING STYLES */
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        color: var(--dark-text);
        margin-top: 1.5em;
        margin-bottom: 0.75em;
        line-height: 1.25;
    }

    h1.page-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
        color: var(--primary-blue-dark);
        text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    h2 {
        font-size: 2rem;
        color: var(--dark-text);
        border-bottom: none;
        padding-left: 15px;
        border-left: 5px solid var(--primary-blue);
        margin-top: 50px;
        margin-bottom: 25px;
        padding-bottom: 0;
    }

    h3 {
        font-size: 1.5rem;
        color: var(--primary-blue);
        font-weight: 600;
        margin-top: 30px;
    }

    h4 { font-size: 1.25rem; color: var(--primary-blue-dark); }
    h5 { font-size: 1.1rem; font-weight: 600; }
    h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; color: #777; }

    .h1-section-title {
        font-family: 'Poppins', sans-serif;
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-blue);
        text-align: left;
        margin-top: 40px;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--border-color);
        position: relative;
    }
    .h1-section-title::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100px;
        height: 2px;
        background: var(--primary-blue);
    }

    /* CONTENT LISTS (Modern & Slick) */
    .site-main ul, .site-main ol {
        margin-bottom: 25px;
        padding-left: 10px;
    }

    .site-main ul {
        list-style: none;
    }

    .site-main ul li {
        position: relative;
        padding-left: 30px;
        margin-bottom: 12px;
        color: var(--body-text);
    }

    .site-main ul li::before {
        content: "\2022"; /* Bullet */
        color: var(--primary-blue);
        font-weight: bold;
        font-size: 1.5em;
        position: absolute;
        left: 5px;
        top: -5px;
    }

    .site-main ol {
        counter-reset: item;
        list-style: none;
    }

    .site-main ol li {
        position: relative;
        padding-left: 40px;
        margin-bottom: 15px;
        color: var(--body-text);
    }

    .site-main ol li::before {
        content: counter(item);
        counter-increment: item;
        position: absolute;
        left: 0;
        top: 2px;
        background: var(--primary-blue);
        color: #fff;
        font-size: 0.75em;
        font-weight: 700;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,120,215,0.3);
    }

    p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    /* NAVBAR */
    .navbar {
        width: 100%;
        padding: 10px 20px;
        background-color: var(--white);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        position: relative;
        z-index: 950;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .logo img {
        max-height: 60px;
        display: block;
    }

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-menu-toggle {
        display: none;
        font-size: 28px;
        background: none;
        border: none;
        color: var(--primary-blue);
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        z-index: 1001;
    }

    .menu {
        list-style: none;
        display: flex;
        gap: 12px;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .menu-item {
        background-color: transparent;
        color: var(--primary-blue);
        border: 2px solid var(--primary-blue);
        border-radius: 50px;
        padding: 8px 25px;
        font-size: clamp(14px, 2.5vw, 16px);
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
        cursor: pointer;
        text-align: center;
        position: relative;
        transition: all 0.3s ease-in-out;
        user-select: none;
    }
    .menu-item .mobile-arrow {
        display: none;
        font-size: 0.8em;
        margin-left: 8px;
    }

    .menu-item:hover {
        background-color: var(--primary-blue);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 120, 215, 0.25);
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        background-color: var(--white, #ffffff);
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        margin-top: 10px;
        z-index: 1000;
        animation: slideUpCentered 0.3s ease-out forwards; 
        border: 1px solid var(--border-color, #e0e0e0);
        list-style: none;
    }

    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;  
        left: 0;
        right: 0;
        height: 10px; 
        background-color: transparent; 
    }

    @media (min-width: 769px) {
        .menu-item:hover > .dropdown-menu {
            display: block;
        }
        .submenu-wrapper:hover .submenu {
            display: block;
        }
    }

    .dropdown-menu li a {
        display: block;
        padding: 12px 25px;
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--dark-text, #333);
        text-decoration: none;
        transition: all 0.2s ease-out;
        white-space: nowrap;
        border-radius: 0;
    }

    .dropdown-menu li a:hover {
        background-color: var(--light-blue-bg, #f0f7ff);
        color: var(--primary-blue, #0078d7);
    }

    /* MODERN TAB STYLES */
    .tabs-container {
        width: 100%;
        max-width: 1800px;
        margin: 40px auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .tabs-header {
        display: flex;
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .tab-button {
        font-family: 'Poppins', sans-serif;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--body-text);
        padding: 15px 25px;
        cursor: pointer;
        border: none;
        background-color: transparent;
        border-bottom: 3px solid transparent;
        transition: color 0.3s ease, border-color 0.3s ease;
        margin-bottom: -2px;
    }

    .tab-button:hover {
        color: var(--primary-blue);
    }

    .tab-button.active {
        color: var(--primary-blue);
        border-bottom-color: var(--primary-blue);
    }

    .tab-content {
        display: none;
        border-radius: 5px;
        width: 100%;
    }

    .tab-content.active {
        display: block;
    }

    .submenu-wrapper {
        position: relative;
    }

    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        border-radius: 8px;
        z-index: 10;
        min-width: 220px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-color);
        padding: 10px;
    }

    .submenu-item {
        display: block;
        padding: 10px 15px;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        border-radius: 5px;
        color: var(--dark-text);
        font-size: 1rem;
        font-family: 'Open Sans', sans-serif;
    }

    .submenu-item:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue-dark);
    }

    /* -- Modern Styled Table -- */
    .styled-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 35px 0;
        font-family: 'Open Sans', sans-serif;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        overflow: hidden;
        text-align: left;
        border: 1px solid var(--border-color);
        background: #fff;
    }

    .styled-table th h6, 
    .styled-table td p {
        margin: 0;
    }

    .styled-table th {
        background-color: var(--light-blue-bg);
        padding: 18px 25px;
        font-family: 'Poppins', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-blue-dark);
        border-bottom: 2px solid var(--primary-blue);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
    }

    .styled-table th[colspan] {
        text-align: center;
    }

    .styled-table td {
        padding: 16px 25px;
        color: var(--body-text);
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }

    .styled-table tbody tr:nth-of-type(odd) {
        background-color: #ffffff;
    }
    
    .styled-table tbody tr:nth-of-type(even) {
        background-color: #fcfcfc;
    }

    .styled-table tbody tr:last-of-type td {
        border-bottom: none;
    }

    .styled-table tbody tr:hover td {
        background-color: #f0f7ff;
        color: var(--dark-text);
    }
    /* PAGE CONTENT COMPONENTS */
    .clinical-relevance {
        background-color: var(--light-blue-bg);
        border-left: 5px solid var(--info-blue);
        border-radius: 8px;
        padding: 20px 25px;
        margin: 25px 0;
    }

    .clinical-relevance h3 {
        color: var(--primary-blue-dark);
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.5rem;
    }

    .clinical-relevance h3::before {
        content: "ℹ️";
        font-size: 1.5rem;
    }

    .clinical-relevance p {
        color: var(--dark-text);
        margin-bottom: 0;
    }

    /*Timeline*/
    .timeline {
        position: relative;
        padding: 20px 0;
        margin-left: 30px;
    }

    .timeline::before {
        content: "";
        position: absolute;
        left: 11px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: var(--border-color);
    }

    .timeline-item {
        position: relative;
        margin-bottom: 30px;
        padding-left: 40px;
    }

    .timeline-icon {
        position: absolute;
        left: 0;
        top: 0;
        background-color: var(--primary-blue);
        color: var(--white);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
    }

    .timeline-content {
        margin-left: 0;
    }

    .timeline-content h3 { 
        margin: 0 0 5px;
        font-size: 1.2rem; 
        color: var(--dark-text); 
        border-bottom: none;
    }

    .timeline-content p {
        margin: 5px 0 0;
        font-size: 1rem;
    }

    /* Grouped Mnemonic Viewer */
    .mnemonic-viewer {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 15px;
    }

    .mnemonic-group {
        margin-bottom: 3rem;
    }

    .mnemonic-group-title {
        display: flex;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--border-color);
    }
    .mnemonic-group-title::before,
    .mnemonic-group-title::after {
        content: '';
        flex: 1;
        border-bottom: 2px solid var(--border-color);
    }
    .mnemonic-group-title:not(:empty)::before {
        margin-right: 1em;
    }
    .mnemonic-group-title:not(:empty)::after {
        margin-left: 1em;
    }

    .mnemonic-group-title span {
        font-family: 'Poppins', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-blue-dark);
        background-color: var(--light-blue-bg);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    .mnemonic-list {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }

    .mnemonic-row {
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--white);
        transition: background-color 0.2s ease;
    }
    .mnemonic-row:last-child {
        border-bottom: none;
    }
    .mnemonic-row:hover {
        background-color: var(--light-blue-bg);
    }

    .mnemonic-letter {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        flex-shrink: 0;
        width: 45px;
        background-color: var(--primary-blue);
        color: var(--white);
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .mnemonic-content {
        padding: 6px 15px;
        flex-grow: 1;
    }
    .mnemonic-content h3 {
        margin: 0 0 3px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-blue);
        line-height: 1.3;
    }
    .mnemonic-content p {
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.4;
        color: var(--body-text);
    }
    .image-box {
        background-color: var(--light-gray);
        border: 1px solid var(--border-color);
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        max-width: 600px; 
        margin: 25px auto; 
        text-align: center;
        overflow: hidden;
    }

    .image-box img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .image-box img:hover {
        opacity: 0.8;
    }

    .image-box h4 {
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: var(--dark-text);
        margin: 0 0 5px;
    }

    .image-box p {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.95rem;
        color: var(--body-text);
        line-height: 1.6;
        margin: 0;
    }

    .image-comparison-container {
        display: flex;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        margin-bottom: 25px;
    }

    .image-comparison {
        flex: 1 1 300px;
        max-width: 450px;
        display: flex;
        flex-direction: column;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .image-comparison:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 120, 215, 0.1);
    }

    .image-comparison .image-box {
        width: 100%;
        aspect-ratio: 16 / 10;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }

    .image-comparison .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 0;
    }

    .comparison-content {
        padding: 20px;
        flex-grow: 1;
    }

    .comparison-content h4 {
        margin-top: 0;
        color: var(--primary-blue-dark);
    }

    .comparison-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .comparison-content p:last-child {
        margin-bottom: 0;
    }
    .comparison-table {
        width: 100%;
        border-collapse: collapse;
        flex-grow: 1;
    }

    .comparison-table th,
    .comparison-table td {
        border: 1px solid #e0e0e0;
        padding: 10px;
        text-align: left;
        vertical-align: middle;
    }

    .comparison-table th {
        background-color: #f7f7f7;
        font-weight: bold;
        text-align: center;
    }

    .comparison-table thead th:first-child {
        font-size: 1.2em;
        background-color: #e9e9e9;
    }

    .comparison-table td strong {
        font-weight: 600;
    }

    .comparison-table td[rowspan] {
        vertical-align: middle;
        text-align: center;
    }

    .comparison-content {
        flex-grow: 1;
    }
    .multiphoto {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin: 25px 0;
    }

    .multiphoto-item {
        max-width: 200px;
        text-align: center;
    }

    .multiphoto-item img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .multiphoto-item img:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .multiphoto-item p {
        margin-top: 10px;
        color: var(--body-text);
        font-size: 0.9rem;
    }

    .spotlight-overlay {
        display: none;
        position: fixed;
        z-index: 1000;
        padding-top: 60px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.9);
    }

    .spotlight-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 800px;
        animation-name: zoom;
        animation-duration: 0.6s;
    }

    .spotlight-close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
    }

    .spotlight-close:hover,
    .spotlight-close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

    /* RESPONSIVE STYLES */
    @media (max-width: 768px) {
        h1.page-title { font-size: 2.5rem; }
        h2 { font-size: 1.8rem; }
        h3 { font-size: 1.5rem; }
        p { font-size: 1rem; }

        .h1-section-title {
            font-size: 2.25rem;
            margin-bottom: 20px;
        }

        .mobile-menu-toggle {
            display: block;
        }

        .menu {
            display: none;
            flex-direction: column;
            width: 100%;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--white);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            z-index: 1000;
            padding: 0;
            margin:0;
        }

        .menu.menu-active {
            display: flex;
        }

        .menu .menu-item {
            width: 100%;
            text-align: left;
            border-radius: 0;
            border: none;
            border-bottom: 1px solid var(--border-color);
            padding: 15px 20px;
            box-sizing: border-box;
        }
        .menu .menu-item:last-child {
            border-bottom: none;
        }

        .menu .menu-item:hover {
            background-color: var(--light-blue-bg);
            color: var(--primary-blue);
            transform: none;
            box-shadow: none;
        }

        .menu-item .mobile-arrow {
            display: inline-block;
            float: right;
            transition: transform 0.3s ease;
        }
        .menu-item.submenu-open .mobile-arrow {
            transform: rotate(180deg);
        }

        .menu-item .dropdown-menu {
            position: static;
            display: none;
            width: 100%;
            box-shadow: none;
            border: none;
            border-top: 1px solid var(--light-blue-bg);
            padding: 0;
            padding-left: 15px;
            min-width: auto;
            transform: none;
            background-color: var(--light-gray);
        }

        .menu-item.submenu-open .dropdown-menu {
            display: block;
        }

        .dropdown-menu li a {
            padding: 12px 20px;
            font-size: 0.95rem;
        }

        .tabs-header {
            flex-direction: column;
            align-items: stretch;
            border-bottom: none;
        }
        .tab-button {
            text-align: left;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 5px;
            border-radius: 0;
            padding: 12px 15px;
        }
        .tab-button.active {
            border-bottom-color: var(--primary-blue);
            border-bottom-width: 2px;
        }

        .submenu-wrapper .submenu {
            position: static;
            box-shadow: none;
            border: none;
            border-top: 1px dashed var(--light-blue-bg);
            padding-left: 20px;
            width: 100%;
            min-width: auto;
            display: none;
        }
        .submenu-wrapper.active .submenu {
            display: block;
        }

        .styled-table thead {
            display: none;
        }
        .styled-table,
        .styled-table tbody,
        .styled-table tr,
        .styled-table td {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }
        .styled-table tr {
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        .styled-table td {
            text-align: left;
            padding-left: 50%;
            position: relative;
            border-bottom: 1px solid var(--light-gray);
            padding-top: 10px;
            padding-bottom: 10px;
        }
        .styled-table tr td:last-child {
            border-bottom: none;
        }
        .styled-table td::before {
            content: attr(data-label);
            position: absolute;
            left: 15px;
            width: calc(50% - 30px);
            padding-right: 10px;
            font-weight: bold;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--dark-text);
        }

        .image-comparison {
            max-width: 100%;
        }

        .spotlight-content {
            width: 95%;
        }
    }

    /* FINAL TOGGLEABLE SIDEBAR FEATURE */
    .toc-open-btn {
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 999;
        background-color: var(--primary-blue);
        color: var(--white);
        border: none;
        border-radius: 10px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        padding: 0;
        gap: 0;
    }

    .toc-open-btn:hover {
        background-color: var(--primary-blue-dark);
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

    .toc-open-btn-icon {
        font-size: 1.4rem;
        line-height: 1;
    }

    .toc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 90vw;
        max-width: 320px;
        height: 100%;
        background-color: var(--white);
        z-index: 1100;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .toc-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .toc-sidebar.is-visible {
        transform: translateX(0);
    }

    .toc-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .toc-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .toc-sidebar-header h4 {
        margin: 0;
        font-family: 'Poppins', sans-serif;
        color: var(--primary-blue-dark);
    }

    .toc-close-btn {
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--dark-text);
        padding: 0 10px;
        line-height: 1;
    }

    #toc-list {
        list-style: none;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        flex-grow: 1;
    }

    #toc-list li a {
        display: block;
        text-decoration: none;
        padding: 8px 20px;
        transition: background-color 0.2s ease;
    }

    #toc-list li:not(:first-child) a.level-h2 {
        border-top: 1px solid #dde4eb;
    }

    #toc-list li a.level-h2 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--primary-blue-dark);
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #toc-list li a.level-h3 {
        padding-left: 35px;
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--body-text);
    }

    #toc-list li a:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue-dark);
    }

    /* SCROLL TO TOP BUTTON */
    #scrollToTopBtn {
        position: fixed;
        bottom: 80px;
        right: 20px;
        z-index: 999;
        background-color: var(--primary-blue);
        color: var(--white);
        border: none;
        border-radius: 10px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        line-height: 1;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    }

    #scrollToTopBtn.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #scrollToTopBtn:hover {
        background-color: var(--primary-blue-dark);
        transform: scale(1.1);
    }

    /* =================================================================== */
    /* Homepage Specific Styles
    /* =================================================================== */

    #homepage-hero {
        background: linear-gradient(135deg, #0078D7 0%, #005A9C 100%);
        padding: 6rem 20px 8rem 20px;
        position: relative;
        overflow: hidden;
        text-align: left;
    }

    /* Background decoration */
    #homepage-hero::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -20%;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .hero-flex-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-left {
        flex: 1;
        max-width: 800px;
        z-index: 2;
    }

    .hero-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 30; /* Increased to sit above overlapping feature cards */
        width: 100%;
        max-width: 1000px;
    }

    #homepage-hero h1 {
        color: var(--white);
        font-weight: 700;
        font-size: 3.5rem;
        margin-bottom: 1rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-bottom: none;
        line-height: 1.1;
        text-align: center;
    }

    #homepage-hero p {
        font-size: 1.25rem;
        max-width: 90%;
        margin: 0 0 30px 0;
        color: var(--white);
        opacity: 0.95;
    }

    #homepage-hero .hero-trial-text {
        font-size: 0.8rem;
        font-weight: 400;
        margin-top: 10px;
        margin-bottom: 0;
        opacity: 0.8;
        text-align: center;
        color: var(--white);
    }

    .hero-logo-c {
        height: 1em;
        width: auto;
        vertical-align: -0.1em;
        display: inline-block;
    }

    .hero-lead {
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.95);
        max-width: 800px;
        margin: 0 auto 30px auto;
        line-height: 1.6;
        font-weight: 400;
        text-align: center;
    }

    .hero-stats-strip {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
        justify-content: center;
    }

    .stat-item {
        background: rgba(255,255,255,0.15);
        padding: 8px 16px;
        border-radius: 20px;
        color: white;
        font-size: 0.9rem;
        font-weight: 600;
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Hero Feature Cards (Overlap) */
    .hero-features-overlap {
        position: relative;
        margin-top: -80px;
        z-index: 20;
        padding: 0 20px;
        margin-bottom: 60px;
    }

    .hero-features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero-feature-card {
        background: var(--white);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 5px solid var(--primary-blue);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: left;
    }

    .hero-feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
        background: var(--light-blue-bg);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: var(--primary-blue);
        margin-bottom: 20px;
    }

    .hero-feature-card h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.3rem;
        color: var(--primary-blue-dark);
        margin-top: 0;
        margin-bottom: 15px;
    }

    .hero-feature-card p {
        font-size: 0.95rem;
        color: var(--body-text);
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .hero-feature-card ul {
        padding-left: 20px;
        margin: 0;
        color: var(--body-text);
        font-size: 0.9rem;
    }

    .hero-feature-card li {
        margin-bottom: 5px;
    }

    @media (max-width: 768px) {
        .hero-features-overlap {
            margin-top: 0;
            padding-top: 40px;
            background: #f8f9fa;
        }
        .hero-flex-layout { flex-direction: column; text-align: center; }
        .hero-left { margin-bottom: 40px; }
        .button-group { justify-content: center; }
        .hero-stats-strip { justify-content: center; }
        .glass-card-mockup { transform: none; width: 100%; max-width: 320px; }
        .glass-card-mockup:hover { transform: scale(1.02); }
    }

    .cta-button {
        display: inline-block;
        background-color: var(--white);
        color: var(--primary-blue-dark);
        padding: 0.8rem 2.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .cta-button.btn-primary {
        background: #ffffff;
        color: var(--primary-blue);
        border: 2px solid #ffffff;
    }
    .cta-button.btn-primary:hover {
        background: #f0f7ff;
        color: var(--primary-blue-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        text-decoration: none;
    }

    .cta-button.btn-secondary {
        background: transparent;
        color: #ffffff;
        border: 2px solid rgba(255,255,255,0.6);
    }
    .cta-button.btn-secondary:hover {
        background: rgba(255,255,255,0.1);
        border-color: #ffffff;
        color: #ffffff;
        text-decoration: none;
    }

    #surgical-topics {
        padding: 2rem 0 4rem 0;
        background: transparent;
        border-radius: 0;
    }
        
    #surgical-topics .section-header {
        margin-bottom: 3rem;
        text-align: center;
    }

    #surgical-topics h2 {
        text-align: center;
        border-bottom: 2px solid var(--primary-blue);
        display: inline-block;
        padding-bottom: 10px;
    }

    .topic-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
    }

    .topic-category-card {
        background-image: linear-gradient(145deg, var(--primary-blue), var(--primary-blue-dark));
        color: var(--white);
        padding: 2rem;
        border-radius: 0.8rem;
        box-shadow: 0 8px 15px rgba(0, 120, 215, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center; 
        transition: all 0.3s ease;
    }

    .topic-category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0, 90, 156, 0.3);
    }

    .card-image-icon {
        height: 60px;
        width: auto;
        margin-bottom: 1.5rem;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    }

    .topic-category-card h3 {
        color: var(--white);
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .topic-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        flex-grow: 1;
    }

    .topic-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--white);
        color: var(--primary-blue);
        padding: 0.8rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.3rem;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
        flex-grow: 1;
    }

    .topic-button:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue-dark);
        transform: translateY(-2px);
        text-decoration: none;
    }

    @media (max-width: 768px) {
        #homepage-hero h1 {
            font-size: 2.5rem;
        }
    }

    .effects-container {
        width: 100%;
        max-width: 1200px;
        margin: 40px auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .effects-container .section-title {
        text-align: center;
        margin-bottom: 2.5rem;
        font-size: 2.5rem;
    }

    .effects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .effect-card {
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.07);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .effect-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 120, 215, 0.15);
    }

    .effect-card-icon {
        font-size: 2.5rem;
        color: var(--primary-blue);
        margin-bottom: 1rem;
    }

    .effect-card-title {
        font-family: 'Poppins', sans-serif;
        font-size: 1.25rem;
        color: var(--primary-blue-dark);
        margin-bottom: 0.75rem;
    }

    .effect-card p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--body-text);
        margin: 0;
    }

    @media (min-width: 600px) {
        .effects-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 992px) {
        .effects-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .classification-viewer {
        background-color: var(--light-gray);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        margin: 40px auto;
        max-width: 900px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }

    .classification-title {
        text-align: center;
        border-bottom: none;
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 2rem;
    }

    .classification-subtitle {
        text-align: center;
        margin-top: 0;
        margin-bottom: 2rem;
        font-size: 1.1rem;
        color: var(--body-text);
    }

    .classifier-controls {
        display: flex;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        width: fit-content;
        margin: 0 auto 2rem auto;
        background-color: var(--white);
    }

    .classifier-btn {
        flex: 1;
        padding: 0.75rem 1.5rem;
        border: none;
        background-color: transparent;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        color: var(--dark-text);
        transition: all 0.2s ease-in-out;
        white-space: nowrap;
    }

    .classifier-btn:not(:last-child) {
        border-right: 1px solid var(--border-color);
    }

    .classifier-btn.active {
        background-color: var(--primary-blue);
        color: var(--white);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    }

    .classifier-btn:not(.active):hover {
        background-color: var(--light-blue-bg);
    }

    .classifier-content {
        position: relative;
    }

    .classifier-panel {
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .classifier-panel.active {
        display: grid;
    }

    .subtype-card {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1.5rem;
    }

    .subtype-title {
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.25rem;
        color: var(--primary-blue-dark);
    }

    .subtype-description {
        margin-bottom: 0;
        font-size: 1rem;
        line-height: 1.6;
    }

    @media (max-width: 768px) {
        .classifier-controls {
            width: 100%;
            flex-direction: column;
        }
        .classifier-btn:not(:last-child) {
            border-right: none;
            border-bottom: 1px solid var(--border-color);
        }
        .classifier-panel {
            grid-template-columns: 1fr;
        }
    }

    .classifier-panel:has(.subtype-card:only-child) {
    grid-template-columns: minmax(300px, 65%);
    justify-content: center;
    }


    /* =================================================================== */
    /* QUIZ STYLES 
    /* =================================================================== */

    .quiz-container,
    .progress-box {
        display: none;
    }

    .quiz-type-selection {
        display: block;
        max-width: 550px;
        margin: 40px auto;
    }

    .quiz-wrapper.quiz-is-active {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .quiz-wrapper.quiz-is-active .quiz-container,
    .quiz-wrapper.quiz-is-active .progress-box {
        display: block;
    }

    .quiz-wrapper.quiz-is-active .quiz-type-selection {
        display: none;
    }

    .quiz-wrapper {
        width: 100%;
        gap: 30px;
        max-width: 1000px;
        margin: 40px auto;
        animation: fadeIn 0.5s ease-out;
    }

    /* --- Shared Card Styling (Matches Login/Account Pages) --- */
    .quiz-type-selection,
    .quiz-container,
    .progress-box {
        font-family: 'Open Sans', sans-serif;
        background-color: var(--white);
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Matches login card shadow */
        position: relative;
        overflow: hidden;
    }

    /* --- The Blue Accent Bar (Matches Login/Account Pages) --- */
    .quiz-type-selection::before,
    .quiz-container::before,
    .progress-box::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background-color: var(--primary-blue, #0078d7);
    }

    /* --- Specific Container Layouts --- */

    .quiz-type-selection {
        padding: 35px 40px 40px 40px;
        text-align: center;
    }

    .quiz-type-selection h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        color: var(--dark-text);
        margin-bottom: 25px;
        margin-top: 10px; /* Added space for the blue bar */
        border-bottom: none; /* Removed line, relying on card style */
        font-weight: 600;
    }

    .quiz-type-options button {
        display: block;
        width: 100%;
        padding: 16px 20px;
        margin-bottom: 15px;
        background: linear-gradient(145deg, var(--primary-blue), var(--primary-blue-dark));
        color: var(--white);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-size: 1.1em;
        font-weight: 600;
        transition: var(--quiz-transition);
        box-shadow: 0 5px 15px rgba(0, 120, 215, 0.2);
    }

    .quiz-type-options button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 90, 156, 0.35);
    }

    .progress-box {
        width: 250px;
        flex-shrink: 0;
        padding: 25px;
        align-self: flex-start;
        position: sticky;
        top: 40px;
    }

    .progress-box h3 {
        font-family: 'Poppins', sans-serif;
        color: var(--primary-blue-dark);
        font-size: 1.4em;
        margin-bottom: 20px;
        margin-top: 10px;
        text-align: center;
        font-weight: 600;
    }

    .progress-info p {
        margin-bottom: 12px;
        font-family: 'Open Sans', sans-serif;
        font-size: 0.95rem;
        color: var(--body-text);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 8px;
    }
    .progress-info p:last-child {
        border-bottom: none;
    }

    .progress-info p strong {
        color: var(--dark-text);
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.1em;
    }

    .progress-bar-container {
        width: 100%;
        background-color: #f0f0f0;
        border-radius: 5px;
        height: 8px;
        margin-top: 15px;
        overflow: hidden;
    }

    .progress-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, var(--success-green), #45b649);
        border-radius: 5px;
        transition: width 0.5s ease-out;
    }

    .quiz-container {
        flex-grow: 1;
        max-width: 650px;
        padding: 30px 40px 40px;
    }

    .quiz-container h2 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        font-weight: 600;
        color: var(--dark-text);
        margin-top: 10px;
        margin-bottom: 30px;
        text-align: center;
        border-bottom: none;
    }

    .question-display {
        padding: 0;
        border: none;
        background-color: transparent;
        margin-bottom: 25px;
        box-shadow: none;
        animation: fadeIn 0.5s ease-out;
    }

    .question {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.25rem;
        color: var(--dark-text);
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .answers label {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        padding: 16px 20px;
        background-color: #f9f9f9; /* Slightly darker bg for contrast */
        border: 2px solid transparent; /* Prepare for hover border */
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--dark-text);
        font-weight: 500;
        font-size: 1.05rem;
    }

    .answers label:hover {
        border-color: var(--primary-blue);
        background-color: var(--light-blue-bg);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 120, 215, 0.08);
    }

    .answers input[type="radio"] {
        margin-right: 15px;
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #ccc;
        border-radius: 50%;
        outline: none;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .answers input[type="radio"]:checked {
        border-color: var(--primary-blue);
        background-color: var(--white);
    }

    .answers input[type="radio"]:checked::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        background: var(--primary-blue);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: popIn 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .answers input[type="radio"]:checked + label {
        border-color: var(--primary-blue);
        background-color: var(--light-blue-bg);
        box-shadow: 0 2px 8px rgba(0, 120, 215, 0.1);
        color: var(--primary-blue-dark);
        font-weight: 600;
    }

    /* Control Buttons */
    .controls {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .control-btn {
        padding: 12px 28px;
        background-color: var(--primary-blue);
        color: var(--white);
        border: 2px solid var(--primary-blue);
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-size: 1em;
        font-weight: 600;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 120, 215, 0.2);
    }

    .control-btn:hover {
        background-color: var(--primary-blue-dark);
        border-color: var(--primary-blue-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 90, 156, 0.3);
    }

    .control-btn#prev {
        background-color: transparent;
        color: var(--body-text);
        border: 2px solid #ccc;
        box-shadow: none;
    }

    .control-btn#prev:hover {
        border-color: var(--dark-text);
        color: var(--dark-text);
        transform: translateY(-2px);
    }

    /* Feedback Box Styles */
    .question-feedback-box {
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 20px 25px;
        border-radius: 8px;
        border: 1px solid transparent;
        animation: slideUp 0.4s ease-out;
    }

    .question-feedback-box.correct {
        background-color: #f6ffed;
        border-color: #b7eb8f;
    }

    .question-feedback-box.incorrect {
        background-color: #fff1f0;
        border-color: #ffa39e;
    }

    .question-feedback-box h4 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 1.2rem;
        font-family: 'Poppins', sans-serif;
        display: flex;
        align-items: center;
    }

    .question-feedback-box.correct h4 { color: #389e0d; }
    .question-feedback-box.correct h4::before { content: '✓'; margin-right: 10px; font-weight: bold; }

    .question-feedback-box.incorrect h4 { color: #cf1322; }
    .question-feedback-box.incorrect h4::before { content: '✕'; margin-right: 10px; font-weight: bold; }

    .question-feedback-toggle {
        margin-top: 18px;
    }

    .feedback-toggle-btn {
        background: #f7f8fb;
        border: 1px dashed #bfc7d1;
        color: #2c3e50;
        padding: 10px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .feedback-toggle-btn:hover {
        background: #eef2f7;
    }

    .feedback-form {
        margin-top: 12px;
        padding: 16px;
        border-radius: 10px;
        background: #f9fbff;
        border: 1px solid #e1e7f0;
    }

    .feedback-form label {
        display: block;
        margin: 12px 0 6px;
        font-weight: 600;
        color: var(--dark-text);
    }

    .feedback-form textarea,
    .feedback-form input[type="email"] {
        width: 100%;
        border: 1px solid #cfd8e3;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 0.95rem;
        font-family: 'Open Sans', sans-serif;
    }

    .feedback-form textarea {
        resize: vertical;
        min-height: 110px;
    }

    .feedback-submit-btn {
        margin-top: 12px;
        background: var(--primary-blue);
        color: var(--white);
        border: none;
        padding: 10px 18px;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
    }

    .feedback-submit-btn:disabled {
        opacity: 0.6;
        cursor: default;
    }

    .feedback-status {
        margin-top: 8px;
        font-size: 0.9rem;
    }

    .feedback-status.is-error {
        color: #c0392b;
    }

    .feedback-status.is-success {
        color: #2e7d32;
    }

    .toggle-explanation {
        background: none;
        border: none;
        color: var(--primary-blue);
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        padding: 0;
        margin-top: 10px;
        text-decoration: underline;
    }
    .toggle-explanation:hover {
        color: var(--primary-blue-dark);
    }

    /* Answer State Styling */
    .answers.is-disabled label { cursor: default; pointer-events: none; }
    .answers label.is-revealed { opacity: 0.7; }
    .answers label.is-correct { 
        border-color: #b7eb8f; background-color: #f6ffed; color: #389e0d; opacity: 1; 
    }
    .answers label.is-incorrect { 
        border-color: #ffa39e; background-color: #fff1f0; color: #cf1322; opacity: 1; 
    }

    /* Responsive */
    @media (max-width: 850px) {
        .quiz-wrapper {
            flex-direction: column;
            align-items: center;
        }
        .quiz-container {
            max-width: 100%;
        }
        .progress-box {
            width: 100%;
            max-width: 100%;
            position: static;
            margin-bottom: 20px;
        }
    }




    /* --- GLASGOW-BLATCHFORD SCORE STYLES --- */
    #gbs-calculator-container {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        line-height: 1.6;
        color: #333;
        max-width: 700px;
        margin: 40px auto;
        padding: 25px;
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    #gbs-calculator-container .gbs-header {
        font-size: 24px;
        color: #2c3e50;
        text-align: center;
        margin-top: 0;
        margin-bottom: 20px;
    }

    #gbs-calculator-container .gbs-fieldset {
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 15px;
        margin-bottom: 20px;
    }

    #gbs-calculator-container .gbs-legend {
        font-weight: bold;
        color: #34495e;
        padding: 0 10px;
    }

    #gbs-calculator-container .gbs-form-group {
        margin-bottom: 15px;
    }

    #gbs-calculator-container .gbs-label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
    }

    #gbs-calculator-container .gbs-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        padding-right: 40px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #fff;
        font-size: 16px;
        color: #333;
        cursor: pointer;
        transition: border-color 0.2s, box-shadow 0.2s;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 1em;
    }

    #gbs-calculator-container .gbs-select:hover {
        border-color: #aed6f1;
    }

    #gbs-calculator-container .gbs-select:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
    }

    #gbs-calculator-container .gbs-radio-group {
        padding: 5px 0;
    }
    #gbs-calculator-container .gbs-radio-label {
        display: inline-block;
        margin-right: 20px;
        font-weight: normal;
    }

    #gbs-calculator-container .gbs-checkbox-group .gbs-form-group {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    #gbs-calculator-container .gbs-checkbox-group input[type="checkbox"] {
        margin-right: 10px;
        width: 1.3em;
        height: 1.3em;
    }
    #gbs-calculator-container .gbs-checkbox-group label {
        margin-bottom: 0;
        font-weight: normal;
    }

    #gbs-calculator-container .gbs-button {
        display: block;
        width: 100%;
        padding: 12px;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    #gbs-calculator-container .gbs-button:hover {
        background-color: #2980b9;
    }

    #gbs-calculator-container .gbs-result-container {
        margin-top: 25px;
        padding: 20px;
        background-color: #eaf2f8;
        border: 1px solid #aed6f1;
        border-radius: 5px;
        text-align: center;
    }

    #gbs-calculator-container .gbs-result-header {
        margin-top: 0;
        color: #2980b9;
        font-size: 18px;
    }

    #gbs-calculator-container .gbs-score-display {
        font-size: 2.2em;
        font-weight: bold;
        color: #2c3e50;
        margin: 10px 0;
    }

    #gbs-calculator-container .gbs-interpretation-text {
        margin-top: 10px;
        font-style: italic;
        color: #555;
    }

    #gbs-calculator-container .gbs-hidden {
        display: none;
    }

    .progress-info .score-correct {
    color: var(--success-green);
    font-weight: 600;
    }

    .progress-info .score-wrong {
    color: #dc3545;
    font-weight: 600;
    }

    .progress-info .score-correct strong,
    .progress-info .score-wrong strong {
    font-size: 1.3em !important;
    color: var(--dark-text);
    }

    /* =================================================================== */
    /* STYLING FOR ALL USER PAGES (v9 - FINAL UNIFIED)
    /* This styles Login, Sign Up, AND the "My Profile" page.
    /* =================================================================== */

    .login-card-wrapper {
        font-family: 'Open Sans', sans-serif;
        max-width: 500px;
        margin: 60px auto;
        padding: 35px 40px 40px 40px;
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 12px;
        background-color: var(--white, #ffffff);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .login-card-wrapper::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background-color: var(--primary-blue, #0078d7);
    }

    .login-card-logo {
        margin-bottom: 20px;
        padding-top: 10px;
    }
    .login-card-logo img {
        max-width: 180px;
        height: auto;
    }

    .login-card-header h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        font-weight: 600;
        color: var(--dark-text, #333);
        margin-bottom: 10px;
    }
    .login-card-header p {
        font-size: 1.1rem;
        color: var(--body-text, #555);
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .login-card-form .swpm-login-widget-form,
    .login-card-form .swpm-registration-form,
    .login-card-form .swpm_profile_form, 
    .login-card-form .swpm-profile-page-form {
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
        background: none;
        text-align: left;
    }

    .login-card-form label,
    .login-card-form .swpm-form-row label,
    .login-card-form .swpm_profile_form label {
        display: block;
        text-align: left;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--dark-text, #333);
        margin-bottom: 8px;
    }

    .login-card-form input[type="text"],
    .login-card-form input[type="email"],
    .login-card-form input[type="password"] {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 1rem !important;
        font-family: 'Open Sans', sans-serif !important;
        border: 2px solid var(--border-color, #ccc) !important;
        border-radius: 8px !important;
        box-sizing: border-box !important; 
        margin-bottom: 20px !important;
        transition: all 0.3s ease !important;
        background: #fff !important; 
        box-shadow: none !important; 
    }

    .login-card-form input[type="text"]:focus,
    .login-card-form input[type="email"]:focus,
    .login-card-form input[type="password"]:focus {
        border-color: var(--primary-blue, #0078d7) !important;
        box-shadow: 0 0 8px rgba(0, 120, 215, 0.2) !important;
        outline: none !important;
    }

    .login-card-form .swpm-login-submit input[type="submit"],
    .login-card-form .swpm-registration-submit-btn,
    .login-card-form .swpm-profile-submit-btn {
        display: block !important;
        width: 100% !important;
        padding: 16px 20px !important;
        background: linear-gradient(145deg, var(--primary-blue, #0078d7), var(--primary-blue-dark, #005a9e)) !important;
        color: var(--white, #ffffff) !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 1.1em !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 5px 15px rgba(0, 120, 215, 0.2) !important;
        margin-top: 10px !important;
    }

    .login-card-form .swpm-login-submit input[type="submit"]:hover,
    .login-card-form .swpm-registration-submit-btn:hover,
    .login-card-form .swpm-profile-submit-btn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 20px rgba(0, 90, 156, 0.35) !important;
    }

    .login-card-form #swpm-login-form .swpm-login-action-links {
        margin-top: 30px !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 15px !important;
    }
    .login-card-form #swpm-login-form .swpm-login-action-links > * {
        flex: 1 !important; 
        margin: 0 !important;
        padding: 0 !important;
    }
    .login-card-form #swpm-login-form .swpm-login-action-links a,
    .login-card-form #swpm-login-form .swpm-login-action-links a:link,
    .login-card-form #swpm-login-form .swpm-login-action-links a:visited {
        display: block !important;
        padding: 12px 10px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-align: center !important;
        border: 2px solid var(--border-color, #e0e0e0) !important;
        border-radius: 8px !important;
        color: var(--primary-blue, #0078d7) !important;
        transition: all 0.3s ease !important;
        background: none !important;
        line-height: 1.5 !important;
    }
    .login-card-form #swpm-login-form .swpm-login-action-links a:hover {
        background-color: var(--light-blue-bg, #f0f7ff) !important;
        border-color: var(--primary-blue, #0078d7) !important;
        color: var(--primary-blue-dark, #005a9e) !important;
        text-decoration: none !important;
    }

    .login-card-form .swpm-registration-form-row {
        margin-bottom: 20px !important;
    }
    .login-card-form .swpm-form-field .swpm-show-pass-cb-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        text-align: left;
        font-weight: 500;
    }
    .login-card-form .swpm-form-field .swpm-show-pass-cb {
        width: 16px;
        height: 16px;
        accent-color: var(--primary-blue, #0078d7);
    }

    .login-card-form .swpm_profile_form .swpm-form-row {
        margin-bottom: 20px !important;
    }
    .login-card-form .swpm_profile_form .swpm-show-pass-cb-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        text-align: left;
        font-weight: 500;
    }
    .login-card-form .swpm_profile_form .swpm-show-pass-cb {
        width: 16px;
        height: 16px;
        accent-color: var(--primary-blue, #0078d7);
    }

    /* "My Account" Page & Progress Table Styles */
    .page-template-template-my-progress {
        max-width: 900px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .swpm-profile-page-form {
        text-align: left;
        font-size: 1.1rem;
        line-height: 1.8;
        padding: 30px 35px;
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 12px;
        background-color: var(--white, #ffffff);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
    .swpm-profile-page-form p {
        margin-bottom: 10px;
    }
    .swpm-profile-page-form a {
        color: var(--primary-blue, #0078d7);
        font-weight: 600;
        text-decoration: none;
    }
    .swpm-profile-page-form a:hover {
        text-decoration: underline;
    }

    .progress-table-wrapper {
        max-width: 900px;
        margin: 40px auto;
        font-family: 'Open Sans', sans-serif;
    }
    .progress-table-wrapper h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        color: var(--dark-text, #333);
        margin-bottom: 20px;
    }
    .progress-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border-radius: 8px;
        overflow: hidden;
    }
    .progress-table thead tr {
        background-color: var(--primary-blue, #0078d7);
        color: var(--white, #ffffff);
        text-align: left;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
    }
    .progress-table th,
    .progress-table td {
        padding: 12px 18px;
    }
    .progress-table tbody tr {
        border-bottom: 1px solid var(--border-color, #e0e0e0);
        background-color: var(--white, #ffffff);
    }
    .progress-table tbody tr:nth-of-type(even) {
        background-color: var(--light-gray, #f9f9f9);
    }
    .progress-table tbody tr:last-of-type {
        border-bottom: 2px solid var(--primary-blue, #0078d7);
    }
    .progress-table .score-percentage {
        font-weight: 700;
        font-size: 1.1em;
        color: var(--dark-text, #333);
    }
    @media (max-width: 768px) {
        .progress-table thead { display: none; }
        .progress-table tr { 
            display: block; 
            margin-bottom: 15px; 
            border: 1px solid var(--border-color, #e0e0e0);
            border-radius: 8px;
        }
        .progress-table td { 
            display: block; 
            text-align: right; 
            padding: 10px 15px; 
            border-bottom: 1px dotted #ccc; 
        }
        .progress-table td::before { 
            content: attr(data-label); 
            float: left; 
            font-weight: 600; 
            font-family: 'Poppins', sans-serif;
            color: var(--dark-text, #333);
        }
        .progress-table td:last-child { border-bottom: 0; }
    }


    /* =================================================================== */
    /* STYLING FOR NAV BAR ACTIONS & LOGIN POPUP
    /* =================================================================== */

    .nav-user-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: 20px;
    }

    .nav-signup-btn {
        padding: 8px 16px !important;
        background: linear-gradient(145deg, var(--primary-blue, #0078d7), var(--primary-blue-dark, #005a9e)) !important;
        color: var(--white, #ffffff) !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 0.9em !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 10px rgba(0, 120, 215, 0.2) !important;
    }
    .nav-signup-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(0, 90, 156, 0.3) !important;
    }

    .nav-login-trigger {
        background: none !important;
        border: 2px solid var(--primary-blue, #0078d7) !important;
        color: var(--primary-blue, #0078d7) !important;
        padding: 6px 16px !important;
        border-radius: 50px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 600 !important;
        font-size: 0.9em !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    .nav-login-trigger:hover {
        background-color: var(--light-blue-bg, #f0f7ff) !important;
        border-color: var(--primary-blue, #0078d7) !important;
    }

    .nav-user-welcome {
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        color: var(--dark-text, #333);
        font-size: 0.9em;
    }
    .nav-logout-link {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.9em;
        color: var(--primary-blue, #0078d7);
        text-decoration: none;
        font-weight: 600;
    }
    .nav-logout-link:hover {
        text-decoration: underline;
    }

    .login-popup-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.6);
        animation: fadeIn 0.3s ease;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1001;
    }

    .login-popup-modal .login-card-wrapper {
        position: relative;
        z-index: 1002;
        margin: 10% auto;
        animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 25px;
        color: #aaa;
        font-size: 30px;
        font-weight: bold;
        z-index: 1003;
        cursor: pointer;
        transition: color 0.2s ease;
    }
    .modal-close:hover {
        color: #333;
    }

    /* =================================================================== */
    /* --- POPUP STYLES (v3.2 - HYPER-SPECIFIC FIX) --- */
    /* This block targets the popup modal specifically to fix your requests */
    /* =================================================================== */

    /* 1. Make the logo bigger IN THE POPUP */
    .login-popup-modal .login-card-logo img {
        max-width: 180px !important;
        height: auto !important;
    }

    /* 2. Style the "Remember Me" checkbox to look modern */
    .login-popup-modal .login-card-form #swpm-login-form .swpm-remember-me {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 25px !important;
        font-size: 0.95rem !important;
        text-align: left !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-remember-me label {
        margin-bottom: 0 !important;
        font-family: 'Open Sans', sans-serif !important;
        font-weight: 500 !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-remember-me input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        accent-color: var(--primary-blue, #0078d7) !important;
    }

    /* 3. Make the "Forgot Password" and "Join Us" links into buttons */
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links {
        margin-top: 30px !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 15px !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links > * {
        flex: 1 !important; 
        margin: 0 !important;
        padding: 0 !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a,
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a:link,
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a:visited {
        display: block !important;
        padding: 12px 10px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-align: center !important;
        border: 2px solid var(--border-color, #e0e0e0) !important;
        border-radius: 8px !important;
        color: var(--primary-blue, #0078d7) !important;
        transition: all 0.3s ease !important;
        background: none !important;
        line-height: 1.5 !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a:hover {
        background-color: var(--light-blue-bg, #f0f7ff) !important;
        border-color: var(--primary-blue, #0078d7) !important;
        color: var(--primary-blue-dark, #005a9e) !important;
        text-decoration: none !important;
    }



    /* Aligns the buttons side-by-side */
    .button-group {
    display: flex;
    gap: 15px; /* Space between the buttons */
    justify-content: center;
    flex-wrap: wrap; /* Allows stacking on very small mobile screens */
    margin-top: 20px;
    }

    /* Optional: Makes the new button look slightly different (Inverted colors?) */
    /* You can remove this block if you want them to look exactly the same */
    .cta-secondary {
    background-color: transparent;
    border: 2px solid #ffffff; /* Assuming white text/border */
    color: #ffffff;
    }

    .cta-secondary:hover {
    background-color: #ffffff;
    color: #000000; /* Dark color on hover */
    }

    /* Glass Mockup */
    .glass-card-mockup {
        width: 320px;
        height: 220px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
        transition: transform 0.5s ease;
        padding: 20px;
        position: relative;
    }

    .glass-card-mockup:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    }

    .glass-header {
        display: flex;
        gap: 8px;
        margin-bottom: 20px;
    }
    .g-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); }

    .glass-body {
        display: flex;
        gap: 20px;
        align-items: flex-end;
        height: 120px;
    }

    .g-chart {
        flex: 1;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        height: 100%;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(255,255,255,0.2);
    }

    .g-bar {
        width: 15px;
        background: rgba(255,255,255,0.3);
        border-radius: 4px 4px 0 0;
    }
    .g-bar.active { background: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

    .g-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .g-row {
        background: rgba(255,255,255,0.1);
        padding: 10px;
        border-radius: 8px;
    }
    .g-lbl { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.7); text-transform: uppercase; }
    .g-val { display: block; font-size: 1.2rem; font-weight: 800; color: white; }

    .floating-rank-badge {
        position: absolute;
        top: -20px;
        right: -20px;
        width: 60px;
        height: 60px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: #ffd700;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        animation: floatBadge 3s ease-in-out infinite;
    }

    @keyframes floatBadge {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    /* =========================================
    NEW REGISTRATION PAGE LAYOUT (V2)
    ========================================= */
    .ce-register-layout-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .ce-register-top-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
        align-items: stretch;
    }

    .ce-features-card {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ce-trial-info-card {
        background: linear-gradient(to right, #ffffff, #f0f7ff);
        border: 1px solid #cce5ff;
        border-left: 5px solid var(--primary-blue);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 25px;
        box-shadow: 0 8px 20px rgba(0, 120, 215, 0.06);
    }

    .ce-trial-icon {
        width: 60px;
        height: 60px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        color: var(--primary-blue);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        flex-shrink: 0;
    }

    .ce-trial-content h3 { margin: 0 0 8px 0; color: var(--primary-blue-dark); font-size: 1.3rem; }
    .ce-trial-content p { margin: 0; color: var(--body-text); font-size: 1rem; line-height: 1.5; }

    .ce-register-bottom-section {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .ce-register-bottom-section h2 {
        text-align: center;
        margin-bottom: 40px;
        color: var(--dark-text);
    }

    .ce-subscribe-now {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }

    .ce-subscribe-now .cta-button {
        padding: 14px 28px;
        border-radius: 999px;
        font-weight: 700;
        letter-spacing: 0.3px;
        box-shadow: 0 10px 20px rgba(0, 120, 215, 0.2);
    }

    /* Override subscription grid for full width */
    .ce-register-bottom-section .ce-subscription-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }

    @media (max-width: 900px) {
        .ce-register-top-section {
            grid-template-columns: 1fr;
        }
        .ce-trial-info-card {
            flex-direction: column;
            text-align: center;
        }
    }

    /* --- 1. Quiz  page --- */

    /* --- 1. Global Settings --- */
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

    .full-page-blue {
    background-color: #ffffff !important; /* Clean White Page */
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    display: block;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    }

    .container {
    width: 100%;
    padding: 0;
    margin: 0;
    }

    /* --- 2. Hero Section (Solid Flat Blue) --- */
    .hero-text {
    /* CHANGED: Solid Flat Blue (No Gradient) */
    background-color: #0077cc; 
    
    /* Full Width Logic */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    text-align: center;
    padding: 80px 20px; 
    margin-bottom: 50px; /* Space between header and cards */
    
    /* Optional: Removed shadow for a truly flat look, or keep a small one */
    box-shadow: none; 
    }

    .hero-logo { display: none; }

    .hero-text h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    }

    .hero-text p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    }

    /* --- 3. The Grid --- */
    .mode-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px; 
    padding: 0 20px 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    }

    /* --- 4. The Cards (Solid Flat Blue) --- */
    .mode-card {
    /* CHANGED: Solid Flat Blue (Matches Header) */
    background-color: #0077cc;
    
    border-radius: 16px;
    padding: 40px 35px;
    
    /* Flex column for button alignment */
    display: flex;
    flex-direction: column;
    
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    
    text-decoration: none;
    text-align: center;
    position: relative;
    
    /* Subtle shadow to separate it from the white page */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* --- Card Content --- */
    .icon-circle {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    }

    .mode-card h2 {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    }

    .mode-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    }

    /* --- 5. The Button (Solid White Block) --- */
    .start-button {
    margin-top: auto;
    display: block;
    
    background-color: #ffffff;
    color: #0077cc; /* Matches the flat blue background */
    
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 0;
    border-radius: 8px;
    
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* --- 6. Hover Effects (Pop Up) --- */

    .mode-card:hover {
    transform: translateY(-10px); /* The Pop Up */
    /* Shadow gets slightly deeper on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .mode-card:hover .start-button {
    /* Button scales slightly on hover */
    transform: scale(1.02);
    }

    /* --- Mobile --- */
    @media (max-width: 768px) {
    .mode-grid { flex-direction: column; align-items: center; }
    .mode-card { width: 100%; }
    .hero-text h1 { font-size: 2.5rem; }
    }


    /* =================================================================== */
    /* STYLING FOR QUIZ RESULTS & DETAILED FEEDBACK
    /* =================================================================== */

    /* Summary Section */
    .results-summary {
        text-align: center;
        padding: 20px 0;
    }

    .score-circle {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: var(--light-blue-bg);
        border: 4px solid var(--primary-blue);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 20px auto;
        color: var(--primary-blue-dark);
    }

    .score-circle span {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
    }

    .score-circle small {
        font-size: 1rem;
        color: var(--body-text);
        margin-top: 5px;
    }

    .results-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    /* Detailed Feedback Items */
    .result-item {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        border-left: 5px solid #ccc; /* Default border */
        text-align: left;
    }

    .result-item.res-correct {
        border-left-color: var(--success-green);
        background-color: #f9fff9;
    }

    .result-item.res-incorrect {
        border-left-color: #dc3545; /* Red */
        background-color: #fff5f5;
    }

    .res-q-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: var(--dark-text);
    }

    .res-ans-row {
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .res-label {
        font-weight: 600;
        color: var(--body-text);
        margin-right: 10px;
    }

    .text-success { color: var(--success-green); font-weight: 600; }
    .text-danger { color: #dc3545; font-weight: 600; }

    /* Explanation Box inside Result */
    .res-explanation {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #ddd;
        font-size: 0.95rem;
        color: var(--body-text);
        line-height: 1.6;
    }
    .res-explanation strong {
        color: var(--primary-blue-dark);
        display: block;
        margin-bottom: 5px;
    }

    /* --- NEW MULTI-LEVEL MENU STYLES --- */

    /* 1. Desktop "Flyout" Logic */
    @media (min-width: 769px) {
        /* Ensure the parent dropdown items are relative so children position correctly */
        .dropdown-menu .nested-dropdown-parent {
            position: relative;
        }

        /* Style for the "Level 2" Submenu (The Flyout) */
        .submenu-level-2 {
            display: none;
            position: absolute;
            top: 0;
            left: 100%; /* Pushes it to the right of the parent */
            min-width: 200px;
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
            border: 1px solid var(--border-color);
            list-style: none;
            margin-left: 10px; /* Small gap */
        }

        /* Visual connector for the gap */
        .submenu-level-2::before {
            content: '';
            position: absolute;
            top: 0;
            left: -15px;
            height: 100%;
            width: 15px;
            background: transparent;
        }

        /* Show Level 2 when hovering over the Parent LI */
        .nested-dropdown-parent:hover > .submenu-level-2 {
            display: block;
            animation: fadeIn 0.2s ease-out;
        }

        /* Arrow styling */
        .desktop-arrow {
            float: right;
            font-size: 0.8em;
            margin-left: 10px;
            color: var(--primary-blue);
        }
        
        .arrow-down {
            font-size: 0.7em;
            margin-left: 5px;
        }

        /* Highlight the parent item when its child is open */
        .nested-dropdown-parent:hover > a {
            background-color: var(--light-blue-bg);
            color: var(--primary-blue);
        }
    }

    /* 2. Mobile Logic (Stacking) */
    @media (max-width: 768px) {
        .arrow-down, .desktop-arrow {
            display: none;
        }

        /* Reset positioning for mobile */
        .submenu-level-2 {
            position: static;
            display: block; /* Always show children on mobile if parent is open, or use JS to toggle */
            box-shadow: none;
            border: none;
            padding: 0;
            margin: 0;
            background-color: #f4f6f8; /* Slightly darker to differentiate depth */
        }

        /* Indent Level 2 items */
        .submenu-level-2 li a {
            padding-left: 40px !important; /* Deep indentation */
            font-size: 0.9rem;
            color: var(--body-text);
        }
        
        /* Style the Category headers on mobile */
        .nested-dropdown-parent > a {
            font-weight: 700 !important;
            color: var(--primary-blue-dark) !important;
            background-color: var(--light-gray);
        }
    }

    /* =================================================================== */
    /* REGISTRATION PAGE STYLES
    /* =================================================================== */

    .ce-register-hero {
        background-color: var(--light-blue-bg);
        padding: 60px 20px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ce-register-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        align-items: center;
    }

    .ce-register-left {
        padding-right: 20px;
    }

    .ce-register-badge {
        display: inline-block;
        background-color: #e3f2fd;
        color: var(--primary-blue);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 6px 12px;
        border-radius: 50px;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ce-register-title {
        font-family: 'Poppins', sans-serif;
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 15px;
        color: var(--dark-text);
        font-weight: 700;
    }

    .ce-register-subtitle {
        font-size: 1.2rem;
        color: var(--body-text);
        margin-bottom: 10px;
        max-width: 500px;
        line-height: 1.6;
    }

    .ce-cred-line {
        font-weight: 700;
        color: var(--primary-blue-dark);
        margin-bottom: 40px;
        font-size: 1.1rem;
        font-family: 'Poppins', sans-serif;
    }

    .ce-feature-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .ce-feature-card {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .ce-feature-ico {
        font-size: 1.5rem;
        background: #fff;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        flex-shrink: 0;
        color: var(--primary-blue);
    }

    .ce-feature-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        color: var(--dark-text);
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .ce-feature-text {
        font-size: 0.9rem;
        color: var(--body-text);
        line-height: 1.4;
    }

    .ce-register-steps {
        margin: 10px 0 30px;
    }

    .ce-register-steps-title {
        font-family: 'Poppins', sans-serif;
        font-size: 1.4rem;
        margin: 0 0 10px 0;
        color: var(--dark-text);
    }

    .ce-register-steps-text {
        font-size: 1rem;
        color: var(--body-text);
        line-height: 1.6;
        max-width: 520px;
    }

    .ce-subscription-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .ce-subscription-card {
        background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
        border: 1px solid #d7e6f6;
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 12px 26px rgba(0,0,0,0.08);
        text-align: left;
        position: relative;
        overflow: hidden;
    }

    .ce-subscription-card-featured {
        border-color: var(--primary-blue);
        box-shadow: 0 20px 36px rgba(0,120,215,0.2);
        transform: translateY(-6px);
    }

    .ce-subscription-headline {
        font-family: 'Poppins', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--primary-blue-dark);
        margin: 4px 0 10px;
    }

    .ce-subscription-tag {
        position: absolute;
        top: 14px;
        right: 14px;
        background: var(--primary-blue);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 999px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
    }

    .ce-subscription-term {
        font-family: 'Poppins', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--dark-text);
        margin-bottom: 6px;
    }

    .ce-subscription-price {
        font-family: 'Poppins', sans-serif;
        font-size: 2rem;
        color: var(--primary-blue-dark);
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .ce-subscription-currency {
        font-size: 1.1rem;
        vertical-align: super;
        margin-right: 4px;
    }

    .ce-subscription-note {
        font-size: 0.9rem;
        color: var(--body-text);
    }

    .ce-subscription-meta {
        margin-top: 6px;
        font-size: 0.85rem;
        color: #6b7a8a;
    }

    .ce-subscription-best {
        margin-top: 12px;
        font-size: 0.9rem;
        color: var(--dark-text);
        font-weight: 600;
    }

    .ce-subscription-desc {
        margin-top: 10px;
        font-size: 0.92rem;
        color: var(--body-text);
        line-height: 1.6;
    }

    .ce-subscription-cta {
        margin-top: 14px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-blue);
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .ce-access-card {
        grid-column: 1 / -1;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 18px;
        padding: 26px 28px;
        box-shadow: 0 12px 26px rgba(0,0,0,0.08);
        text-align: left;
    }

    .ce-access-title {
        font-family: 'Poppins', sans-serif;
        font-size: 1.35rem;
        margin: 0 0 10px;
        color: var(--dark-text);
        border-bottom: none;
        padding-bottom: 0;
    }

    .ce-access-text {
        margin: 0;
        font-size: 1rem;
        color: var(--body-text);
        line-height: 1.6;
    }

    .ce-register-trust {
        display: flex;
        gap: 20px;
        font-size: 0.9rem;
        color: #888;
        font-weight: 500;
    }

    .ce-trust-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ce-trust-dot {
        width: 6px;
        height: 6px;
        background-color: var(--success-green);
        border-radius: 50%;
    }

    .ce-register-right {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border: 1px solid var(--border-color);
    }

    /* Responsive Registration */
    @media (max-width: 900px) {
        .ce-register-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }
        .ce-register-left {
            padding-right: 0;
            text-align: center;
        }
        .ce-register-badge {
            margin-left: auto;
            margin-right: auto;
        }
        .ce-register-subtitle {
            margin-left: auto;
            margin-right: auto;
        }
        .ce-feature-cards {
            text-align: left;
            grid-template-columns: 1fr;
        }
        .ce-register-trust {
            justify-content: center;
        }
        .ce-subscription-cards {
            grid-template-columns: 1fr;
        }
        .ce-subscription-card-featured {
            transform: none;
        }
        .ce-access-card {
            grid-column: auto;
        }
    }

    @media (max-width: 600px) {
        .ce-register-hero {
            padding: 40px 16px;
            min-height: auto;
        }
        .ce-register-grid {
            gap: 28px;
        }
        .ce-register-title {
            font-size: 2.2rem;
        }
        .ce-register-subtitle {
            font-size: 1rem;
        }
        .ce-cred-line {
            font-size: 1rem;
            margin-bottom: 28px;
        }
        .ce-feature-cards {
            gap: 18px;
        }
        .ce-register-steps-title {
            font-size: 1.2rem;
        }
        .ce-register-steps-text {
            font-size: 0.95rem;
        }
        .ce-feature-ico {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        .ce-register-trust {
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        .ce-register-right {
            padding: 24px;
        }
        .ce-register-right input,
        .ce-register-right select,
        .ce-register-right textarea,
        .ce-register-right button,
        .ce-register-right .um-button,
        .ce-register-right .swpm-submit {
            width: 100%;
            box-sizing: border-box;
        }
    }

    /* =================================================================== */
    /* LOCKED REGISTRATION OVERLAY (LOGGED IN STATE)
    /* =================================================================== */

    .ce-register-right.ce-locked-mode {
        position: relative;
        overflow: hidden; /* Ensure overlay respects border radius */
    }

    .ce-locked-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.65); /* Light hazy overlay */
        backdrop-filter: blur(6px); /* Blur effect */
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: inherit;
        animation: fadeIn 0.5s ease-out;
    }

    .ce-locked-message {
        text-align: center;
        color: var(--dark-text);
        background: #ffffff;
        padding: 40px;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
        max-width: 400px;
        width: 90%;
    }

    .ce-locked-message i {
        font-size: 3rem;
        margin-bottom: 20px;
        color: var(--success-green);
    }

    .ce-locked-message h2 {
        color: var(--dark-text);
        font-size: 2rem;
        margin-bottom: 10px;
        border-bottom: none;
        margin-top: 0;
    }

    .ce-locked-message p {
        color: var(--body-text);
        margin-bottom: 30px;
        font-size: 1.1rem;
    }

    .ce-locked-message .cta-button {
        background-color: var(--primary-blue);
        color: #fff;
        border: none;
    }

    /* =================================================================== */
    /* QUIZ APP SPECIFIC STYLES (From Branch Trial)
    /* =================================================================== */

    #mrcs_qbank_app {
        max-width: 1600px;
        margin: 40px auto;
        font-family: 'Open Sans', sans-serif;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .quiz-header-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 30px;
        position: relative;
    }

    .nav-arrow {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        color: #555;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .nav-arrow i { pointer-events: none; }

    .nav-arrow:hover {
        background: var(--primary-blue);
        color: #ffffff;
        border-color: var(--primary-blue);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,120,215,0.25);
    }

    .nav-arrow:disabled {
        opacity: 0.3;
        cursor: default;
        transform: none;
        box-shadow: none;
    }

    .quiz-header-nav h2 {
        margin: 0;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 1.6rem;
        color: var(--dark-text);
        text-align: center;
    }

    .back-btn-modern {
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        color: #666;
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .back-btn-modern:hover {
        background: #eef2f6;
        color: var(--primary-blue);
        border-color: #d0e3fc;
    }

    /* Compact Menu Grid for Mobile/Tablet */
    .secondary-menu-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 10px;
    }

    .menu-card-btn.compact {
        min-height: auto !important;
        padding: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .menu-card-btn.compact span { font-size: 1.5rem !important; }
    .menu-card-btn.compact h3 { font-size: 0.95rem !important; margin-bottom: 0 !important; }
    .menu-card-btn.compact p { 
        display: block !important; font-size: 0.75rem !important; color: #777; margin-top: 4px !important; line-height: 1.3; opacity: 0.8;
    }

    @media (max-width: 768px) {
        .secondary-menu-grid { grid-template-columns: 1fr; }
        .menu-card-btn.compact { flex-direction: row !important; text-align: left !important; justify-content: flex-start !important; }
        .menu-card-btn.compact p { font-size: 0.8rem !important; }
    }

    /* =================================================================== */
    /* TRIAL MODE STYLES
    /* =================================================================== */

    .trial-cta-overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 50;
        display: flex; justify-content: center; align-items: center;
        pointer-events: none; /* Allow clicks to pass through empty areas if needed, but box catches them */
    }

    .trial-cta-box {
        background: white;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        text-align: center;
        pointer-events: auto;
        border: 1px solid var(--primary-blue);
        max-width: 400px;
        width: 90%;
    }

    .trial-cta-box h3 { color: var(--primary-blue); margin-top: 0; font-family: 'Poppins', sans-serif; }
    .trial-cta-box p { color: var(--body-text); margin-bottom: 25px; }
    .trial-cta-box .cta-button { display: block; width: 100%; margin-bottom: 10px; text-align: center; box-sizing: border-box; cursor: pointer; }
    .trial-cta-box .cta-button.secondary { background: var(--success-green); color: white; border: none; }

    .quiz-register-btn {
        background: var(--success-green);
        color: white;
        padding: 8px 20px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9rem;
        box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
        transition: transform 0.2s;
        display: inline-block;
        margin: 0 10px;
    }
    .quiz-register-btn:hover { transform: translateY(-2px); color: white; box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4); }

    @media (max-width: 600px) {
        .quiz-header-nav { flex-wrap: wrap; gap: 10px; justify-content: center; }
        .quiz-register-btn { order: 3; width: 100%; text-align: center; margin: 5px 0; }
    }

    /* =========================================
    NEW REGISTRATION PAGE LAYOUT (V2)
    ========================================= */
    .ce-register-hero {
        background-color: var(--light-blue-bg);
        padding: 60px 20px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ce-register-layout-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .ce-register-top-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
        align-items: stretch;
    }

    .ce-features-card {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ce-register-badge {
        display: inline-block;
        background-color: #e3f2fd;
        color: var(--primary-blue);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 6px 12px;
        border-radius: 50px;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ce-register-title {
        font-family: 'Poppins', sans-serif;
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 15px;
        color: var(--dark-text);
        font-weight: 700;
    }

    .ce-register-subtitle {
        font-size: 1.2rem;
        color: var(--body-text);
        margin-bottom: 10px;
        max-width: 500px;
        line-height: 1.6;
    }

    .ce-feature-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .ce-feature-card {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .ce-feature-ico {
        font-size: 1.5rem;
        background: #fff;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        flex-shrink: 0;
        color: var(--primary-blue);
    }

    .ce-feature-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        color: var(--dark-text);
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .ce-feature-text {
        font-size: 0.9rem;
        color: var(--body-text);
        line-height: 1.4;
    }

    .ce-register-right {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border: 1px solid var(--border-color);
        /* Center content for payment forms/buttons */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .ce-register-bottom-section {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .ce-register-bottom-section h2 {
        text-align: center;
        margin-bottom: 40px;
        color: var(--dark-text);
    }

    .ce-subscription-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }

    .ce-subscription-card {
        background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
        border: 1px solid #d7e6f6;
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 12px 26px rgba(0,0,0,0.08);
        text-align: left;
        position: relative;
        overflow: hidden;
    }

    .ce-subscription-card-featured {
        border-color: var(--primary-blue);
        box-shadow: 0 20px 36px rgba(0,120,215,0.2);
        transform: translateY(-6px);
    }

    .ce-subscription-headline {
        font-family: 'Poppins', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--primary-blue-dark);
        margin: 4px 0 10px;
    }

    .ce-subscription-tag {
        position: absolute;
        top: 14px;
        right: 14px;
        background: var(--primary-blue);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 999px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
    }

    .ce-subscription-term {
        font-family: 'Poppins', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--dark-text);
        margin-bottom: 6px;
    }

    .ce-subscription-price {
        font-family: 'Poppins', sans-serif;
        font-size: 2rem;
        color: var(--primary-blue-dark);
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .ce-subscription-currency {
        font-size: 1.1rem;
        vertical-align: super;
        margin-right: 4px;
    }

    .ce-subscription-desc {
        margin-top: 10px;
        font-size: 0.92rem;
        color: var(--body-text);
        line-height: 1.6;
    }

    .ce-subscription-cta {
        margin-top: 14px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-blue);
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    @media (max-width: 900px) {
        .ce-register-top-section {
            grid-template-columns: 1fr;
        }
        .ce-subscription-cards {
            grid-template-columns: 1fr;
        }
        .ce-subscription-card-featured {
            transform: none;
        }
    }

    /* Clean wrapper for embedded quiz to avoid double-card effect */
    .ce-trial-section-clean {
        width: 100%;
        margin-top: 40px;
        text-align: center;
    }

    .ce-trial-section-clean h2 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* Adjust quiz app margins when embedded */
    .ce-trial-section-clean #mrcs_qbank_app {
        margin-top: 20px;
        padding: 0;
    }

    /* Full Width Features Card on Subscription Page */
    .ce-full-width-features {
        text-align: center;
        align-items: center;
    }

    .ce-full-width-features .ce-feature-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        width: 100%;
        text-align: left;
    }

    /* =========================================
    NEW REGISTRATION PAGE LAYOUT (V2)
    ========================================= */
    .ce-register-layout-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .ce-register-top-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
        align-items: stretch;
    }

    .ce-features-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ce-trial-info-card {
        background: linear-gradient(to right, #ffffff, #f0f7ff);
        border: 1px solid #cce5ff;
        border-left: 5px solid var(--primary-blue);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 25px;
        box-shadow: 0 8px 20px rgba(0, 120, 215, 0.06);
    }

    .ce-trial-icon {
        width: 60px;
        height: 60px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        color: var(--primary-blue);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        flex-shrink: 0;
    }

    .ce-trial-content h3 { margin: 0 0 8px 0; color: var(--primary-blue-dark); font-size: 1.3rem; }
    .ce-trial-content p { margin: 0; color: var(--body-text); font-size: 1rem; line-height: 1.5; }

    .ce-register-bottom-section {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .ce-register-bottom-section h2 {
        text-align: center;
        margin-bottom: 10px;
        color: var(--dark-text);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ce-pricing-subtitle {
        text-align: center;
        color: var(--body-text);
        margin-bottom: 40px;
        font-size: 1.1rem;
    }

    .ce-highlight-badge {
        background: #e3f2fd;
        color: var(--primary-blue);
        font-size: 0.5em;
        vertical-align: middle;
        padding: 6px 12px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        border: 1px solid rgba(0, 120, 215, 0.2);
    }

    .ce-subscribe-now {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

    .pulse-btn {
        animation: pulse-glow 2s infinite;
        font-size: 1.2rem;
        padding: 15px 50px;
        border-radius: 50px;
    }

    @keyframes pulse-glow {
        0% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.4); }
        70% { box-shadow: 0 0 0 12px rgba(0, 120, 215, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0); }
    }

    /* Override subscription grid for full width */
    .ce-register-bottom-section .ce-subscription-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }

    .ce-subscription-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .ce-subscription-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,120,215,0.15);
        border-color: var(--primary-blue);
    }

    @media (max-width: 900px) {
        .ce-register-top-section {
            grid-template-columns: 1fr;
        }
        .ce-trial-info-card {
            flex-direction: column;
            text-align: center;
        }
    }

    /* =========================================
    1. HERO LAYOUT & TYPOGRAPHY
    ========================================= */
    #homepage-hero {
    padding: 60px 20px;
    /* Removed background color here so your blue site background shows through */
    }

    .hero-flex-layout {
    display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
        text-align: center;
    }

    /* Left Column */
    .hero-left {
    flex: 1;
        max-width: 900px;
        width: 100%;
    color: #fff; /* Assumes blue background based on screenshot */
    }

    .hero-left h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    }

    .hero-logo-c {
    height: 0.9em;
    vertical-align: middle;
    margin-bottom: 0.2em;
    }

    .hero-lead {
    font-size: 1.125rem;
    color: rgba(255,255,255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    }

    /* Stats Strip */
    .hero-stats-strip {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #fff;
        justify-content: center;
    }

    .stat-item i { margin-right: 8px; }

    /* Buttons */
    .button-group { display: flex; gap: 15px; justify-content: center; }

    .hero-demo-title {
        color: #fff;
        text-align: center;
        border-bottom: none;
        margin-top: 0;
    }

    .hero-divider {
        border: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.5);
        margin: 40px auto;
        width: 100%;
        max-width: 800px;
    }

    .cta-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .cta-button:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 25px rgba(0,0,0,0.3); }

    .btn-primary { background: #fff; color: #0078D7; }
    .btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }


    /* =========================================
    2. THE INTERACTIVE SWITCHER (LOGIC FIXED)
    ========================================= */
    .hero-right {
    flex: 1;
    position: relative;
    max-width: 900px; 
    width: 100%;
    }

    .feature-switcher {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: visible;
    display: flex;
    flex-direction: column;
    }

    /* 1. HIDE the radio buttons, but keep them in DOM */
    .switcher-logic {
    display: none !important;
    }

    /* 2. Style the Buttons */
    .switcher-controls {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
    }

    .switch-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    }

    .switch-btn:hover { background: #e2e8f0; color: #334155; }

    .switcher-controls label:first-child { border-top-left-radius: 16px; }
    .switcher-controls label:last-child { border-top-right-radius: 16px; }

    /* 3. Button Active States */
    /* If #ft-dash is checked, make the dash label blue */
    #ft-dash:checked ~ .switcher-controls label[for="ft-dash"] {
    background: #fff;
    color: #0078D7;
    border-bottom-color: #0078D7;
    }

    /* If #ft-quiz is checked, make the quiz label blue */
    #ft-quiz:checked ~ .switcher-controls label[for="ft-quiz"] {
    background: #fff;
    color: #0078D7;
    border-bottom-color: #0078D7;
    }

    /* 4. THE VIEWPORT & SWITCHING LOGIC */
    .switcher-viewport {
    position: relative;
    height: auto;
    background: #fff;
    overflow: visible; /* Allow content to not be clipped */
    border-radius: 0 0 16px 16px;
    }

    /* DEFAULT: All slides are hidden */
    .f-slide {
    display: none !important; /* Force hide */
    width: 100%;
    animation: fadeScale 0.4s ease-out;
    }

    /* ACTIVE: Show specific slide based on Checked Radio */
    #ft-dash:checked ~ .switcher-viewport .slide-dashboard {
    display: block !important; /* Force show */
    }

    #ft-quiz:checked ~ .switcher-viewport .slide-quiz {
    display: block !important; /* Force show */
    }

    @keyframes fadeScale {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
    }


    /* =========================================
    3. DASHBOARD DIAGRAM STYLES
    ========================================= */
    .dashmock {
    width: 100%;
    padding: 20px;
    background: #cfe0f1; 
    font-family: 'Open Sans', sans-serif;
    color: #0f1b2d;
    box-sizing: border-box;
    position: relative;
    }

    .dashmock__top {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 15px;
    align-items: start;
    }

    .dashmock__kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(15,27,45,.5);
    }

    .dashmock__rankline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    }

    .dashmock__rankbadge {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
    font-size: 16px;
    }

    .dashmock__ranktitle {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: #0078D7;
    }

    .dashmock__subline {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(15,27,45,.7);
    }

    .dashmock__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
    }

    .dashmock__chip {
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(15,27,45,.1);
    font-weight: 700;
    font-size: 10px;
    }

    .dashmock__chip--good { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
    .dashmock__chip--bad { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

    /* Donut */
    .dashmock__accuracy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    }

    .dashmock__donut {
    --size: 80px;
    --ring: 10px;
    --p: 90;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: conic-gradient(#22c55e calc(var(--p)*1%), #ef4444 0);
    position: relative;
    }

    .dashmock__donut::after {
    content: "";
    position: absolute;
    inset: var(--ring);
    border-radius: 50%;
    background: #cfe0f1;
    }

    .dashmock__acc-under {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    }

    .dashmock__acc-val { font-size: 20px; font-weight: 800; line-height: 1; }
    .dashmock__acc-lbl { font-size: 8px; font-weight: 700; text-transform: uppercase; opacity: 0.6; }

    .dashmock__minirow { font-size: 10px; margin-top: 5px; font-weight: 700; }
    .dashmock__minichip { padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.5); margin: 0 2px; }
    .dashmock__minichip--good { color: #15803d; background: #dcfce7; }
    .dashmock__minichip--bad { color: #b91c1c; background: #fee2e2; }

    /* Timeline */
    .dashmock__timeline {
    margin-top: 15px;
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.5);
    }

    .dashmock__nextpill {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 9px;
    font-weight: 700;
    color: #0078D7;
    background: rgba(0, 120, 215, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    }

    .dashmock__track {
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 30px 0 10px;
    position: relative;
    }
    .dashmock__track::after {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 40%;
    background: #0078D7;
    border-radius: 10px;
    }

    .dashmock__bubble {
    position: absolute;
    top: -32px; left: 40%;
    transform: translateX(-50%);
    background: #0078D7;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    }
    .dashmock__bubble::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #0078D7;
    }

    .dashmock__steps { display: flex; justify-content: space-between; }
    .dashmock__step { text-align: center; opacity: 0.5; transform: scale(0.9); }
    .dashmock__step--active { opacity: 1; transform: scale(1); }
    .dashmock__node { font-size: 14px; margin-bottom: 2px; }
    .dashmock__steptitle { font-size: 8px; font-weight: 700; }

    /* Stats Row */
    .dashmock__stats {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    }

    .dashmock__stat {
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    }

    .dashmock__sticon { font-size: 18px; }
    .dashmock__stlabel { font-size: 8px; font-weight: 700; opacity: 0.6; }
    .dashmock__stvalue { font-size: 14px; font-weight: 800; }

    .dashmock__actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    }
    .dashmock__btn {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    color: #0078D7;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    }
    .dashmock__btn:hover { background: rgba(255,255,255,0.9); }
    .dashmock__btn--smart {
    background: #0078D7;
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    }
    .dashmock__btn--smart:hover { background: #0062b0; }
    .dashmock__btn--smart span {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.9;
    }

    /* =========================================
    4. QUIZ DIAGRAM STYLES
    ========================================= */
    .quizmock {
    width: 100%;
    height: 100%;
    display: flex;
    background: #f8f9fa;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: #333;
  position: relative;
    }

    .quizmock__wrap {
    display: flex;
    width: 100%;
    height: 100%;
    }

    .quizmock__main {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    }

    .quizmock__topbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    }

    .quizmock__ghostbtn, .quizmock__navbtn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    color: #555;
    }

    .quizmock__nav { display: flex; gap: 5px; }

    .quizmock__title {
    font-size: 15px;
    font-weight: 700;
    color: #0078D7;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin: 0 0 10px 0;
    }

    .quizmock__titleSub { font-size: 12px; font-weight: 400; color: #666; }

    .quizmock__question p {
    font-size: 11px !important;
    line-height: 1.5;
    margin: 0 0 12px 0;
    font-weight: 400;
    color: #2c3e50 !important;
    }

    .quizmock__options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    }

    .quizmock__option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    }
    .quizmock__option--correct {
    background: #dcfce7;
    border-color: #15803d;
    color: #14532d;
    }

    .quizmock__optKey { font-weight: 700; color: #0078D7; }

    .quizmock__cta {
    margin-top: 15px;
    background: #0078D7;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 12px;
    }

    .quizmock__explanation {
    margin-top: 15px;
    padding: 12px;
    background: #fff;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    }
    .quizmock__explanation strong { color: #15803d; display: block; margin-bottom: 8px; flex-shrink: 0; }

    .quizmock__explanation-scroll {
    max-height: 100px;
    overflow-y: scroll;
    padding-right: 8px; /* Space for scrollbar */
    text-align: left;
    }

    /* Custom Scrollbar for Explanation Box */
    .quizmock__explanation-scroll::-webkit-scrollbar {
    width: 5px;
    }
    .quizmock__explanation-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 3px;
    }
    .quizmock__explanation-scroll::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 3px;
    }

    .quizmock__explanation-scroll ul {
    list-style-position: outside;
    padding-left: 15px;
    margin: 0;
    font-size: 11px;
    color: #333;
    }

    .quizmock__explanation-scroll li {
    margin-bottom: 8px;
    padding-left: 4px;
    }

    /* Sidebar */
    .quizmock__side {
    width: 160px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    }

    .quizmock__sideTitle {
    font-size: 12px;
    color: #0078D7;
    margin: 0 0 10px 0;
    font-weight: 700;
    }

    .quizmock__stats { margin-bottom: 15px; font-size: 10px; }
    .quizmock__statRow { display: flex; justify-content: space-between; margin-bottom: 4px; }
    .quizmock__mapTitle { font-size: 10px; font-weight: 700; margin-bottom: 5px; }

    .quizmock__map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
    }

    .quizmock__qbtn {
    width: 100%;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #586069;
    cursor: pointer;
    transition: all 0.2s ease;
    }

    .quizmock__qbtn:hover {
    border-color: #0078D7;
    color: #0078D7;
    background-color: #f0f7ff;
    }

    .quizmock__qbtn.is-active {
    background: #0078D7;
    color: white;
    border-color: #0078D7;
    box-shadow: 0 2px 5px rgba(0, 120, 215, 0.25);
    }

    .quizmock__mappaginator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    }

    .quizmock__mappagenav {
    background: #fff;
    border: 1px solid #e1e4e8;
    width: 24px; height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    color: #586069;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    padding: 0;
    }

    .quizmock__mappagenav:hover {
    border-color: #0078D7;
    color: #0078D7;
    background-color: #f0f7ff;
    }


    /* =========================================
    5. RESPONSIVE (Mobile)
    ========================================= */
    @media (max-width: 900px) {
    .hero-flex-layout { gap: 40px; }
    .hero-left { max-width: 100%; }
    .hero-right { max-width: 100%; }
    }

    @media (max-width: 500px) {
    .hero-left h1 { font-size: 2.2rem; }
    .quizmock__side { display: none; }
    .switcher-viewport { height: 550px; } /* Taller on mobile for stacking */
    .feature-spotlight { display: none; } /* Hide annotations on very small screens */
    }

    /* Desktop / wide screens: place hero columns side-by-side */
    @media (min-width: 900px) {
    .hero-flex-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    .hero-left {
        flex: 0 0 42%;
        max-width: 48%;
        margin: 0;
        padding-right: 20px;
        text-align: left;
    }

    .hero-right {
        flex: 0 0 56%;
        max-width: 56%;
        padding-left: 20px;
        display: block; /* allow contained absolute elements to position relative to this container */
    }

    .hero-demo-title { text-align: center; margin-top: 0  ; font-size: 1.6rem; }

    /* Ensure the demo panel sits above left text and annotations don't get hidden */
    .hero-right { position: relative; z-index: 30; }
    .feature-spotlight { pointer-events: auto; }
    }

    /* =========================================
    6. FEATURE SPOTLIGHTS (Annotations)
    ========================================= */
    .feature-spotlight {
        position: absolute;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
        display: flex;
        align-items: center;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
        width: 300px;
        transition: transform 0.3s ease;
        animation: spotFloat 3s ease-in-out infinite;
    }

    @keyframes spotFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }

    .feature-spotlight.is-open {
        animation: none;
    z-index: 1010;
    }

    .spotlight-card {
        background: var(--white);
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid var(--primary-blue);
        width: 100%;
    }

    .spotlight-header {
        padding: 8px 12px;
        background: var(--primary-blue);
        color: var(--white);
        font-size: 0.8rem;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        font-family: 'Poppins', sans-serif;
    }

    .spotlight-toggle-icon {
        font-size: 1rem;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .feature-spotlight.is-open .spotlight-toggle-icon {
        transform: rotate(45deg);
    }

    .spotlight-body {
        max-height: 0;
        overflow: hidden;
        padding: 0 12px;
        font-size: 0.75rem;
        color: var(--body-text);
        background: var(--white);
        transition: all 0.3s ease;
        line-height: 1.4;
        opacity: 0;
    }

    .feature-spotlight.is-open .spotlight-body {
        padding: 10px 12px;
        max-height: 150px;
        opacity: 1;
    }

    .spotlight-arrow { width: 0; height: 0; border-style: solid; flex-shrink: 0; }

    /* Left Arrow (Spotlight is on the right of target) */
    .feature-spotlight.arrow-left { flex-direction: row; }
    .feature-spotlight.arrow-left .spotlight-arrow {
    border-width: 8px 18px 8px 0;
        border-color: transparent var(--primary-blue) transparent transparent;
        margin-right: -1px;
    }

    /* Right Arrow (Spotlight is on the left of target) */
    .feature-spotlight.arrow-right { flex-direction: row-reverse; }
    .feature-spotlight.arrow-right .spotlight-arrow {
    border-width: 8px 0 8px 18px;
        border-color: transparent transparent transparent var(--primary-blue);
        margin-left: -1px;
    }

    /* Positions */
/* Dashboard - Left Side */
.spot-rank-xp { top: 70px; right: 100%; margin-right: 20px; }
.spot-streak { top: 300px; right: 100%; margin-right: 20px; }
.spot-topic { bottom: 85px; right: 100%; margin-right: 20px; }

/* Dashboard - Right Side */
.spot-accuracy { top: 20px; left: 100%; margin-left: 20px; }
.spot-smart { bottom: 20px; left: 100%; margin-left: 20px; }
.spot-qbank { top: 300px; left: 100%; margin-left: 20px; }

/* Quiz - Right Side */

@media (max-width: 1024px) {
    .feature-spotlight { display: none; }
}

/* Small circular feature buttons (desktop) and description box */
@media (min-width: 900px) {
    /* Ensure spotlights are visible on desktop ranges even if global rules hide them at smaller widths */
    .feature-spotlight { display: block !important; }

    .feature-spotlight .spotlight-card,
    .feature-spotlight .spotlight-arrow {
        display: none; /* hide large side cards on wide screens */
    }

    .feature-spotlight .spot-btn {
        appearance: none;
        -webkit-appearance: none;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #0078D7, #005a9c);
        box-shadow: 0 6px 18px rgba(0,120,215,0.24), 0 2px 6px rgba(0,0,0,0.15);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        position: relative; /* sits inside the absolutely positioned container */
        z-index: 1020;
    }

    .feature-spotlight .spot-btn:active { transform: scale(0.98); }

    /* Pulsing ring */
    .feature-spotlight .spot-btn::after {
        content: '';
        position: absolute;
        width: 100%; height: 100%;
        border-radius: 50%;
        left: 0; top: 0;
        box-shadow: 0 0 0 0 rgba(0,120,215,0.35);
        animation: pulseRing 1.8s infinite ease-out;
        z-index: 1015;
    }

    @keyframes pulseRing {
        0% { box-shadow: 0 0 0 0 rgba(0,120,215,0.35); }
        70% { box-shadow: 0 0 0 16px rgba(0,120,215,0); }
        100% { box-shadow: 0 0 0 20px rgba(0,120,215,0); }
    }

    .feature-desc {
        margin-top: 18px;
        background: #ffffff;
        border-radius: 10px;
        padding: 14px 16px;
        box-shadow: 0 10px 30px rgba(7, 22, 35, 0.12);
        display: none;
        max-width: 100%;
    }

    .feature-desc.is-visible { display: block; }

    .feature-desc__inner { display:flex; gap:12px; align-items:flex-start; }
    .feature-desc__title { margin:0; font-size:1rem; color:#073763; font-weight:700; }
    .feature-desc__body { color:#334155; font-size:0.95rem; line-height:1.45; }
    .feature-desc__close { margin-left:auto; background:none; border:none; font-size:1.3rem; cursor:pointer; color:#7b8794; }
}

/* Reposition feature buttons to sit over the demo panel (desktop) */
@media (min-width: 900px) {
    /* Left-side annotations: place roughly over left area of demo */
    .spot-rank-xp { top: 72px !important; left: 28% !important; right: auto !important; margin: 0 !important; }
    .spot-streak { top: 300px !important; left: 28% !important; right: auto !important; margin: 0 !important; }
    .spot-topic { bottom: 85px !important; left: 28% !important; right: auto !important; margin: 0 !important; }

    /* Right-side annotations: place roughly over right area of demo */
    .spot-accuracy { top: 20px !important; left: 72% !important; right: auto !important; margin: 0 !important; }
    .spot-smart { bottom: 20px !important; left: 72% !important; right: auto !important; margin: 0 !important; }
    .spot-qbank { top: 300px !important; left: 72% !important; right: auto !important; margin: 0 !important; }

    /* Ensure the container doesn't overflow and buttons are visible */
    .hero-right { overflow: visible; }
}

/* =========================================
Homepage "What Is MRCSBank?" Story Cards
========================================= */
#what-is .what-is-story {
    display: grid;
    gap: 16px;
}

#what-is .story-card {
    background: linear-gradient(145deg, #ffffff 0%, #f6fbff 100%);
    border: 1px solid #d9e8f7;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 26px rgba(0, 90, 156, 0.08);
}

#what-is .story-card p {
    margin: 0;
    color: #234;
}

#what-is .story-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 120, 215, 0.12);
    color: var(--primary-blue-dark);
    border: 1px solid rgba(0, 120, 215, 0.2);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
}

#what-is .story-chip i {
    color: var(--primary-blue);
}

@media (min-width: 900px) {
    #what-is .what-is-story {
        grid-template-columns: 1fr;
    }
}

/* Homepage full-page blue backdrop (fixes white edge on bottom/overscroll) */
body:has(#homepage-hero) {
    background: linear-gradient(135deg, #0078D7 0%, #005A9C 100%) !important;
}

body:has(#homepage-hero) #homepage-hero,
body:has(#homepage-hero) #homepage-hero + main {
    background: transparent !important;
}

body:has(#homepage-hero) main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* PDF-inspired MRCS band */
#pdf-inspired-band {
    padding: 30px 0 10px;
}

.pdf-band__inner {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
    box-shadow: 0 16px 32px rgba(10, 30, 60, 0.08);
}

.pdf-band__content {
    padding: 48px;
}

.pdf-band__kicker {
    margin: 0 0 12px;
    color: #4f46e5;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.pdf-band__content h2 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    line-height: 1.18;
    border: 0;
    padding: 0;
    color: #0f172a;
}

.pdf-band__lead {
    margin: 0;
    font-size: 1.2rem;
    color: #4b5563;
    max-width: 60ch;
}

.pdf-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pdf-band__media {
    margin: 0;
    min-height: 320px;
    background: #cdd9ea;
}

.pdf-band__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
    filter: sat

    /* IMPORTS & ROOT VARIABLES */
    @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@500;700;600&display=swap');

    :root {
        --primary-blue: #0078D7;
        --primary-blue-dark: #005A9C;
        --light-blue-bg: #f0f7ff;
        --dark-text: #2c3e50;
        --body-text: #555;
        --border-color: #dee2e6;
        --white: #ffffff;
        --light-gray: #f8f9fa;
        --success-green: #28a745;
        --info-blue: #17a2b8;
        --quiz-border-radius: 12px;
        --quiz-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        --quiz-border: 1px solid #e0e6ed;
        --quiz-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Quiz progress grid */
    #visualProgressGrid {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .progress-dot {
        width: 30px;
        height: 30px;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        color: #999;
        font-weight: 600;
    }

    .progress-dot.is-active {
        border: 2px solid var(--primary-blue);
        color: var(--primary-blue);
    }

    .progress-dot.is-correct {
        background: #2ecc71;
        border-color: #2ecc71;
        color: #ffffff;
    }

    .progress-dot.is-wrong {
        background: #e74c3c;
        border-color: #e74c3c;
        color: #ffffff;
    }

    .progress-dot.is-flagged {
        position: relative;
        border-color: #ff9800;
    }

    .progress-dot.is-flagged::after {
        content: "";
        position: absolute;
        top: 2px;
        right: 2px;
        width: 6px;
        height: 6px;
        background-color: #ff9800;
        border-radius: 50%;
    }

    .grid-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        color: #666;
        font-weight: 600;
    }

    .grid-page-btn {
        border: 1px solid #e0e0e0;
        background: #ffffff;
        padding: 4px 10px;
        border-radius: 6px;
        cursor: pointer;
    }

    .grid-page-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideUpCentered {
        0% { 
            opacity: 0; 
            transform: translateX(-50%) translateY(20px); 
        }
        100% { 
            opacity: 1; 
            transform: translateX(-50%) translateY(0); 
        }
    }

    @keyframes popIn {
        0% { transform: scale(0.9); opacity: 0; }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); opacity: 1; }
    }

    /* GLOBAL STYLES */
    html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: var(--white);
        font-family: 'Open Sans', sans-serif;
        color: var(--body-text);
        line-height: 1.6;
    }

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        color: var(--dark-text);
        margin-bottom: 15px;
        line-height: 1.3;
    }

    h1.page-title {
        font-size: 5rem;
        text-align: center;
        margin-top: 30px;
        margin-bottom: 30px;
        color: var(--primary-blue-dark);
    }
    h2 {
        font-size: 2.25rem;
        border-bottom: 2px solid var(--primary-blue);
        padding-bottom: 10px;
        margin-top: 40px;
    }
    h3 {
        font-size: 1.75rem;
        color: var(--primary-blue);
    }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }

    .h1-section-title {
        font-family: 'Poppins', sans-serif;
        font-size: 2.75rem;
        font-weight: 700;
        color: var(--primary-blue);
        text-align: left;
        margin-top: 40px;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--primary-blue-dark);
        line-height: 1.3;
    }

    p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    /* NAVBAR */
    .navbar {
        width: 100%;
        padding: 10px 20px;
        background-color: var(--white);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        position: relative;
        z-index: 950;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .logo img {
        max-height: 60px;
        display: block;
    }

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-menu-toggle {
        display: none;
        font-size: 28px;
        background: none;
        border: none;
        color: var(--primary-blue);
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        z-index: 1001;
    }

    .menu {
        list-style: none;
        display: flex;
        gap: 12px;
        margin: 0 auto;
        padding: 0;
        align-items: center;
    }

    .menu-item {
        background-color: transparent;
        color: var(--primary-blue);
        border: 2px solid var(--primary-blue);
        border-radius: 50px;
        padding: 8px 25px;
        font-size: clamp(14px, 2.5vw, 16px);
        font-weight: 600;
        font-family: 'Poppins', sans-serif;
        cursor: pointer;
        text-align: center;
        position: relative;
        transition: all 0.3s ease-in-out;
        user-select: none;
    }
    .menu-item .mobile-arrow {
        display: none;
        font-size: 0.8em;
        margin-left: 8px;
    }

    .menu-item:hover {
        background-color: var(--primary-blue);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 120, 215, 0.25);
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        background-color: var(--white, #ffffff);
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        margin-top: 10px;
        z-index: 1000;
        animation: slideUpCentered 0.3s ease-out forwards; 
        border: 1px solid var(--border-color, #e0e0e0);
        list-style: none;
    }

    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;  
        left: 0;
        right: 0;
        height: 10px; 
        background-color: transparent; 
    }

    @media (min-width: 769px) {
        .menu-item:hover > .dropdown-menu {
            display: block;
        }
        .submenu-wrapper:hover .submenu {
            display: block;
        }
    }

    .dropdown-menu li a {
        display: block;
        padding: 12px 25px;
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--dark-text, #333);
        text-decoration: none;
        transition: all 0.2s ease-out;
        white-space: nowrap;
        border-radius: 0;
    }

    .dropdown-menu li a:hover {
        background-color: var(--light-blue-bg, #f0f7ff);
        color: var(--primary-blue, #0078d7);
    }

    /* MODERN TAB STYLES */
    .tabs-container {
        width: 100%;
        max-width: 1800px;
        margin: 40px auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .tabs-header {
        display: flex;
        border-bottom: 2px solid var(--border-color);
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .tab-button {
        font-family: 'Poppins', sans-serif;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--body-text);
        padding: 15px 25px;
        cursor: pointer;
        border: none;
        background-color: transparent;
        border-bottom: 3px solid transparent;
        transition: color 0.3s ease, border-color 0.3s ease;
        margin-bottom: -2px;
    }

    .tab-button:hover {
        color: var(--primary-blue);
    }

    .tab-button.active {
        color: var(--primary-blue);
        border-bottom-color: var(--primary-blue);
    }

    .tab-content {
        display: none;
        border-radius: 5px;
        width: 100%;
    }

    .tab-content.active {
        display: block;
    }

    .submenu-wrapper {
        position: relative;
    }

    .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        border-radius: 8px;
        z-index: 10;
        min-width: 220px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-color);
        padding: 10px;
    }

    .submenu-item {
        display: block;
        padding: 10px 15px;
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        border-radius: 5px;
        color: var(--dark-text);
        font-size: 1rem;
        font-family: 'Open Sans', sans-serif;
    }

    .submenu-item:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue-dark);
    }

    /* -- Modern Styled Table -- */
    .styled-table {
        width: 100%;
        border-collapse: collapse;
        margin: 25px 0;
        font-family: 'Open Sans', sans-serif;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        overflow: hidden;
        text-align: left;
    }

    .styled-table th h6, 
    .styled-table td p {
        margin: 0;
    }

    .styled-table th {
        background-color: #ffffff;
        padding: 20px;
        font-family: 'Poppins', sans-serif;
        font-size: 2.25rem;
        color: var(--dark-text);
        border-bottom: 2px solid var(--primary-blue); 
    }

    .styled-table th[colspan] {
        text-align: center;
    }

    .styled-table td {
        padding: 16px 20px;
        color: var(--body-text);
        border-bottom: 1px solid var(--border-color);
    }

    .styled-table tbody tr:nth-of-type(odd) {
        background-color: var(--light-gray-bg);
    }

    .styled-table tbody tr:last-of-type td {
        border-bottom: none;
    }

    .styled-table tbody tr:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue-dark);
    }
    /* PAGE CONTENT COMPONENTS */
    .clinical-relevance {
        background-color: var(--light-blue-bg);
        border-left: 5px solid var(--info-blue);
        border-radius: 8px;
        padding: 20px 25px;
        margin: 25px 0;
    }

    .clinical-relevance h3 {
        color: var(--primary-blue-dark);
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.5rem;
    }

    .clinical-relevance h3::before {
        content: "ℹ️";
        font-size: 1.5rem;
    }

    .clinical-relevance p {
        color: var(--dark-text);
        margin-bottom: 0;
    }

    /*Timeline*/
    .timeline {
        position: relative;
        padding: 20px 0;
        margin-left: 30px;
    }

    .timeline::before {
        content: "";
        position: absolute;
        left: 11px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: var(--border-color);
    }

    .timeline-item {
        position: relative;
        margin-bottom: 30px;
        padding-left: 40px;
    }

    .timeline-icon {
        position: absolute;
        left: 0;
        top: 0;
        background-color: var(--primary-blue);
        color: var(--white);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 14px;
    }

    .timeline-content {
        margin-left: 0;
    }

    .timeline-content h3 { 
        margin: 0 0 5px;
        font-size: 1.2rem; 
        color: var(--dark-text); 
        border-bottom: none;
    }

    .timeline-content p {
        margin: 5px 0 0;
        font-size: 1rem;
    }

    /* Grouped Mnemonic Viewer */
    .mnemonic-viewer {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 15px;
    }

    .mnemonic-group {
        margin-bottom: 3rem;
    }

    .mnemonic-group-title {
        display: flex;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--border-color);
    }
    .mnemonic-group-title::before,
    .mnemonic-group-title::after {
        content: '';
        flex: 1;
        border-bottom: 2px solid var(--border-color);
    }
    .mnemonic-group-title:not(:empty)::before {
        margin-right: 1em;
    }
    .mnemonic-group-title:not(:empty)::after {
        margin-left: 1em;
    }

    .mnemonic-group-title span {
        font-family: 'Poppins', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-blue-dark);
        background-color: var(--light-blue-bg);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    .mnemonic-list {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }

    .mnemonic-row {
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--white);
        transition: background-color 0.2s ease;
    }
    .mnemonic-row:last-child {
        border-bottom: none;
    }
    .mnemonic-row:hover {
        background-color: var(--light-blue-bg);
    }

    .mnemonic-letter {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        flex-shrink: 0;
        width: 45px;
        background-color: var(--primary-blue);
        color: var(--white);
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .mnemonic-content {
        padding: 6px 15px;
        flex-grow: 1;
    }
    .mnemonic-content h3 {
        margin: 0 0 3px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-blue);
        line-height: 1.3;
    }
    .mnemonic-content p {
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.4;
        color: var(--body-text);
    }
    .image-box {
        background-color: var(--light-gray);
        border: 1px solid var(--border-color);
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        max-width: 600px; 
        margin: 25px auto; 
        text-align: center;
        overflow: hidden;
    }

    .image-box img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 15px;
        border-radius: 5px;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .image-box img:hover {
        opacity: 0.8;
    }

    .image-box h4 {
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: var(--dark-text);
        margin: 0 0 5px;
    }

    .image-box p {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.95rem;
        color: var(--body-text);
        line-height: 1.6;
        margin: 0;
    }

    .image-comparison-container {
        display: flex;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        margin-bottom: 25px;
    }

    .image-comparison {
        flex: 1 1 300px;
        max-width: 450px;
        display: flex;
        flex-direction: column;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .image-comparison:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 120, 215, 0.1);
    }

    .image-comparison .image-box {
        width: 100%;
        aspect-ratio: 16 / 10;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
    }

    .image-comparison .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 0;
    }

    .comparison-content {
        padding: 20px;
        flex-grow: 1;
    }

    .comparison-content h4 {
        margin-top: 0;
        color: var(--primary-blue-dark);
    }

    .comparison-content p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .comparison-content p:last-child {
        margin-bottom: 0;
    }
    .comparison-table {
        width: 100%;
        border-collapse: collapse;
        flex-grow: 1;
    }

    .comparison-table th,
    .comparison-table td {
        border: 1px solid #e0e0e0;
        padding: 10px;
        text-align: left;
        vertical-align: middle;
    }

    .comparison-table th {
        background-color: #f7f7f7;
        font-weight: bold;
        text-align: center;
    }

    .comparison-table thead th:first-child {
        font-size: 1.2em;
        background-color: #e9e9e9;
    }

    .comparison-table td strong {
        font-weight: 600;
    }

    .comparison-table td[rowspan] {
        vertical-align: middle;
        text-align: center;
    }

    .comparison-content {
        flex-grow: 1;
    }
    .multiphoto {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin: 25px 0;
    }

    .multiphoto-item {
        max-width: 200px;
        text-align: center;
    }

    .multiphoto-item img {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .multiphoto-item img:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .multiphoto-item p {
        margin-top: 10px;
        color: var(--body-text);
        font-size: 0.9rem;
    }

    .spotlight-overlay {
        display: none;
        position: fixed;
        z-index: 1000;
        padding-top: 60px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.9);
    }

    .spotlight-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 800px;
        animation-name: zoom;
        animation-duration: 0.6s;
    }

    .spotlight-close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
    }

    .spotlight-close:hover,
    .spotlight-close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

    /* RESPONSIVE STYLES */
    @media (max-width: 768px) {
        h1.page-title { font-size: 2.5rem; }
        h2 { font-size: 1.8rem; }
        h3 { font-size: 1.5rem; }
        p { font-size: 1rem; }

        .h1-section-title {
            font-size: 2.25rem;
            margin-bottom: 20px;
        }

        .mobile-menu-toggle {
            display: block;
        }

        .menu {
            display: none;
            flex-direction: column;
            width: 100%;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--white);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            z-index: 1000;
            padding: 0;
            margin:0;
        }

        .menu.menu-active {
            display: flex;
        }

        .menu .menu-item {
            width: 100%;
            text-align: left;
            border-radius: 0;
            border: none;
            border-bottom: 1px solid var(--border-color);
            padding: 15px 20px;
            box-sizing: border-box;
        }
        .menu .menu-item:last-child {
            border-bottom: none;
        }

        .menu .menu-item:hover {
            background-color: var(--light-blue-bg);
            color: var(--primary-blue);
            transform: none;
            box-shadow: none;
        }

        .menu-item .mobile-arrow {
            display: inline-block;
            float: right;
            transition: transform 0.3s ease;
        }
        .menu-item.submenu-open .mobile-arrow {
            transform: rotate(180deg);
        }

        .menu-item .dropdown-menu {
            position: static;
            display: none;
            width: 100%;
            box-shadow: none;
            border: none;
            border-top: 1px solid var(--light-blue-bg);
            padding: 0;
            padding-left: 15px;
            min-width: auto;
            transform: none;
            background-color: var(--light-gray);
        }

        .menu-item.submenu-open .dropdown-menu {
            display: block;
        }

        .dropdown-menu li a {
            padding: 12px 20px;
            font-size: 0.95rem;
        }

        .tabs-header {
            flex-direction: column;
            align-items: stretch;
            border-bottom: none;
        }
        .tab-button {
            text-align: left;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 5px;
            border-radius: 0;
            padding: 12px 15px;
        }
        .tab-button.active {
            border-bottom-color: var(--primary-blue);
            border-bottom-width: 2px;
        }

        .submenu-wrapper .submenu {
            position: static;
            box-shadow: none;
            border: none;
            border-top: 1px dashed var(--light-blue-bg);
            padding-left: 20px;
            width: 100%;
            min-width: auto;
            display: none;
        }
        .submenu-wrapper.active .submenu {
            display: block;
        }

        .styled-table thead {
            display: none;
        }
        .styled-table,
        .styled-table tbody,
        .styled-table tr,
        .styled-table td {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }
        .styled-table tr {
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        .styled-table td {
            text-align: left;
            padding-left: 50%;
            position: relative;
            border-bottom: 1px solid var(--light-gray);
            padding-top: 10px;
            padding-bottom: 10px;
        }
        .styled-table tr td:last-child {
            border-bottom: none;
        }
        .styled-table td::before {
            content: attr(data-label);
            position: absolute;
            left: 15px;
            width: calc(50% - 30px);
            padding-right: 10px;
            font-weight: bold;
            text-align: left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: var(--dark-text);
        }

        .image-comparison {
            max-width: 100%;
        }

        .spotlight-content {
            width: 95%;
        }
    }

    /* FINAL TOGGLEABLE SIDEBAR FEATURE */
    .toc-open-btn {
        position: fixed;
        right: 20px;
        bottom: 20px;
        z-index: 999;
        background-color: var(--primary-blue);
        color: var(--white);
        border: none;
        border-radius: 10px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        padding: 0;
        gap: 0;
    }

    .toc-open-btn:hover {
        background-color: var(--primary-blue-dark);
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

    .toc-open-btn-icon {
        font-size: 1.4rem;
        line-height: 1;
    }

    .toc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 90vw;
        max-width: 320px;
        height: 100%;
        background-color: var(--white);
        z-index: 1100;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .toc-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .toc-sidebar.is-visible {
        transform: translateX(0);
    }

    .toc-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .toc-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .toc-sidebar-header h4 {
        margin: 0;
        font-family: 'Poppins', sans-serif;
        color: var(--primary-blue-dark);
    }

    .toc-close-btn {
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--dark-text);
        padding: 0 10px;
        line-height: 1;
    }

    #toc-list {
        list-style: none;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        flex-grow: 1;
    }

    #toc-list li a {
        display: block;
        text-decoration: none;
        padding: 8px 20px;
        transition: background-color 0.2s ease;
    }

    #toc-list li:not(:first-child) a.level-h2 {
        border-top: 1px solid #dde4eb;
    }

    #toc-list li a.level-h2 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--primary-blue-dark);
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #toc-list li a.level-h3 {
        padding-left: 35px;
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--body-text);
    }

    #toc-list li a:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue-dark);
    }

    /* SCROLL TO TOP BUTTON */
    #scrollToTopBtn {
        position: fixed;
        bottom: 80px;
        right: 20px;
        z-index: 999;
        background-color: var(--primary-blue);
        color: var(--white);
        border: none;
        border-radius: 10px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        line-height: 1;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    }

    #scrollToTopBtn.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #scrollToTopBtn:hover {
        background-color: var(--primary-blue-dark);
        transform: scale(1.1);
    }

    /* =================================================================== */
    /* Homepage Specific Styles
    /* =================================================================== */

    #homepage-hero {
        background: linear-gradient(135deg, #0078D7 0%, #005A9C 100%);
        padding: 6rem 20px 8rem 20px;
        position: relative;
        overflow: hidden;
        text-align: left;
    }

    /* Background decoration */
    #homepage-hero::before {
        content: "";
        position: absolute;
        top: -50%;
        right: -20%;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .hero-flex-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-left {
        flex: 1;
        max-width: 800px;
        z-index: 2;
    }

    .hero-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 30; /* Increased to sit above overlapping feature cards */
        width: 100%;
        max-width: 1000px;
    }

    #homepage-hero h1 {
        color: var(--white);
        font-weight: 700;
        font-size: 3.5rem;
        margin-bottom: 1rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-bottom: none;
        line-height: 1.1;
        text-align: center;
    }

    #homepage-hero p {
        font-size: 1.25rem;
        max-width: 90%;
        margin: 0 0 30px 0;
        color: var(--white);
        opacity: 0.95;
    }

    #homepage-hero .hero-trial-text {
        font-size: 0.8rem;
        font-weight: 400;
        margin-top: 10px;
        margin-bottom: 0;
        opacity: 0.8;
        text-align: center;
        color: var(--white);
    }

    .hero-logo-c {
        height: 1em;
        width: auto;
        vertical-align: -0.1em;
        display: inline-block;
    }

    .hero-lead {
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.95);
        max-width: 800px;
        margin: 0 auto 30px auto;
        line-height: 1.6;
        font-weight: 400;
        text-align: center;
    }

    .hero-stats-strip {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
        justify-content: center;
    }

    .stat-item {
        background: rgba(255,255,255,0.15);
        padding: 8px 16px;
        border-radius: 20px;
        color: white;
        font-size: 0.9rem;
        font-weight: 600;
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Hero Feature Cards (Overlap) */
    .hero-features-overlap {
        position: relative;
        margin-top: -80px;
        z-index: 20;
        padding: 0 20px;
        margin-bottom: 60px;
    }

    .hero-features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .hero-feature-card {
        background: var(--white);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 5px solid var(--primary-blue);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-align: left;
    }

    .hero-feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
        background: var(--light-blue-bg);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: var(--primary-blue);
        margin-bottom: 20px;
    }

    .hero-feature-card h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.3rem;
        color: var(--primary-blue-dark);
        margin-top: 0;
        margin-bottom: 15px;
    }

    .hero-feature-card p {
        font-size: 0.95rem;
        color: var(--body-text);
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .hero-feature-card ul {
        padding-left: 20px;
        margin: 0;
        color: var(--body-text);
        font-size: 0.9rem;
    }

    .hero-feature-card li {
        margin-bottom: 5px;
    }

    @media (max-width: 768px) {
        .hero-features-overlap {
            margin-top: 0;
            padding-top: 40px;
            background: #f8f9fa;
        }
        .hero-flex-layout { flex-direction: column; text-align: center; }
        .hero-left { margin-bottom: 40px; }
        .button-group { justify-content: center; }
        .hero-stats-strip { justify-content: center; }
        .glass-card-mockup { transform: none; width: 100%; max-width: 320px; }
        .glass-card-mockup:hover { transform: scale(1.02); }
    }

    .cta-button {
        display: inline-block;
        background-color: var(--white);
        color: var(--primary-blue-dark);
        padding: 0.8rem 2.5rem;
        border-radius: 50px;
        text-decoration: none;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .cta-button.btn-primary {
        background: #ffffff;
        color: var(--primary-blue);
        border: 2px solid #ffffff;
    }
    .cta-button.btn-primary:hover {
        background: #f0f7ff;
        color: var(--primary-blue-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        text-decoration: none;
    }

    .cta-button.btn-secondary {
        background: transparent;
        color: #ffffff;
        border: 2px solid rgba(255,255,255,0.6);
    }
    .cta-button.btn-secondary:hover {
        background: rgba(255,255,255,0.1);
        border-color: #ffffff;
        color: #ffffff;
        text-decoration: none;
    }

    #surgical-topics {
        padding: 2rem 0 4rem 0;
        background: transparent;
        border-radius: 0;
    }
        
    #surgical-topics .section-header {
        margin-bottom: 3rem;
        text-align: center;
    }

    #surgical-topics h2 {
        text-align: center;
        border-bottom: 2px solid var(--primary-blue);
        display: inline-block;
        padding-bottom: 10px;
    }

    .topic-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
    }

    .topic-category-card {
        background-image: linear-gradient(145deg, var(--primary-blue), var(--primary-blue-dark));
        color: var(--white);
        padding: 2rem;
        border-radius: 0.8rem;
        box-shadow: 0 8px 15px rgba(0, 120, 215, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center; 
        transition: all 0.3s ease;
    }

    .topic-category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0, 90, 156, 0.3);
    }

    .card-image-icon {
        height: 60px;
        width: auto;
        margin-bottom: 1.5rem;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    }

    .topic-category-card h3 {
        color: var(--white);
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .topic-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        flex-grow: 1;
    }

    .topic-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--white);
        color: var(--primary-blue);
        padding: 0.8rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.3rem;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
        flex-grow: 1;
    }

    .topic-button:hover {
        background-color: var(--light-blue-bg);
        color: var(--primary-blue-dark);
        transform: translateY(-2px);
        text-decoration: none;
    }

    @media (max-width: 768px) {
        #homepage-hero h1 {
            font-size: 2.5rem;
        }
    }

    .effects-container {
        width: 100%;
        max-width: 1200px;
        margin: 40px auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .effects-container .section-title {
        text-align: center;
        margin-bottom: 2.5rem;
        font-size: 2.5rem;
    }

    .effects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .effect-card {
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.07);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .effect-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 120, 215, 0.15);
    }

    .effect-card-icon {
        font-size: 2.5rem;
        color: var(--primary-blue);
        margin-bottom: 1rem;
    }

    .effect-card-title {
        font-family: 'Poppins', sans-serif;
        font-size: 1.25rem;
        color: var(--primary-blue-dark);
        margin-bottom: 0.75rem;
    }

    .effect-card p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--body-text);
        margin: 0;
    }

    @media (min-width: 600px) {
        .effects-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 992px) {
        .effects-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .classification-viewer {
        background-color: var(--light-gray);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        margin: 40px auto;
        max-width: 900px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }

    .classification-title {
        text-align: center;
        border-bottom: none;
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 2rem;
    }

    .classification-subtitle {
        text-align: center;
        margin-top: 0;
        margin-bottom: 2rem;
        font-size: 1.1rem;
        color: var(--body-text);
    }

    .classifier-controls {
        display: flex;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        width: fit-content;
        margin: 0 auto 2rem auto;
        background-color: var(--white);
    }

    .classifier-btn {
        flex: 1;
        padding: 0.75rem 1.5rem;
        border: none;
        background-color: transparent;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        color: var(--dark-text);
        transition: all 0.2s ease-in-out;
        white-space: nowrap;
    }

    .classifier-btn:not(:last-child) {
        border-right: 1px solid var(--border-color);
    }

    .classifier-btn.active {
        background-color: var(--primary-blue);
        color: var(--white);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    }

    .classifier-btn:not(.active):hover {
        background-color: var(--light-blue-bg);
    }

    .classifier-content {
        position: relative;
    }

    .classifier-panel {
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .classifier-panel.active {
        display: grid;
    }

    .subtype-card {
        background-color: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1.5rem;
    }

    .subtype-title {
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 1.25rem;
        color: var(--primary-blue-dark);
    }

    .subtype-description {
        margin-bottom: 0;
        font-size: 1rem;
        line-height: 1.6;
    }

    @media (max-width: 768px) {
        .classifier-controls {
            width: 100%;
            flex-direction: column;
        }
        .classifier-btn:not(:last-child) {
            border-right: none;
            border-bottom: 1px solid var(--border-color);
        }
        .classifier-panel {
            grid-template-columns: 1fr;
        }
    }

    .classifier-panel:has(.subtype-card:only-child) {
    grid-template-columns: minmax(300px, 65%);
    justify-content: center;
    }


    /* =================================================================== */
    /* QUIZ STYLES 
    /* =================================================================== */

    .quiz-container,
    .progress-box {
        display: none;
    }

    .quiz-type-selection {
        display: block;
        max-width: 550px;
        margin: 40px auto;
    }

    .quiz-wrapper.quiz-is-active {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .quiz-wrapper.quiz-is-active .quiz-container,
    .quiz-wrapper.quiz-is-active .progress-box {
        display: block;
    }

    .quiz-wrapper.quiz-is-active .quiz-type-selection {
        display: none;
    }

    .quiz-wrapper {
        width: 100%;
        gap: 30px;
        max-width: 1000px;
        margin: 40px auto;
        animation: fadeIn 0.5s ease-out;
    }

    /* --- Shared Card Styling (Matches Login/Account Pages) --- */
    .quiz-type-selection,
    .quiz-container,
    .progress-box {
        font-family: 'Open Sans', sans-serif;
        background-color: var(--white);
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Matches login card shadow */
        position: relative;
        overflow: hidden;
    }

    /* --- The Blue Accent Bar (Matches Login/Account Pages) --- */
    .quiz-type-selection::before,
    .quiz-container::before,
    .progress-box::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background-color: var(--primary-blue, #0078d7);
    }

    /* --- Specific Container Layouts --- */

    .quiz-type-selection {
        padding: 35px 40px 40px 40px;
        text-align: center;
    }

    .quiz-type-selection h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        color: var(--dark-text);
        margin-bottom: 25px;
        margin-top: 10px; /* Added space for the blue bar */
        border-bottom: none; /* Removed line, relying on card style */
        font-weight: 600;
    }

    .quiz-type-options button {
        display: block;
        width: 100%;
        padding: 16px 20px;
        margin-bottom: 15px;
        background: linear-gradient(145deg, var(--primary-blue), var(--primary-blue-dark));
        color: var(--white);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-size: 1.1em;
        font-weight: 600;
        transition: var(--quiz-transition);
        box-shadow: 0 5px 15px rgba(0, 120, 215, 0.2);
    }

    .quiz-type-options button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 90, 156, 0.35);
    }

    .progress-box {
        width: 250px;
        flex-shrink: 0;
        padding: 25px;
        align-self: flex-start;
        position: sticky;
        top: 40px;
    }

    .progress-box h3 {
        font-family: 'Poppins', sans-serif;
        color: var(--primary-blue-dark);
        font-size: 1.4em;
        margin-bottom: 20px;
        margin-top: 10px;
        text-align: center;
        font-weight: 600;
    }

    .progress-info p {
        margin-bottom: 12px;
        font-family: 'Open Sans', sans-serif;
        font-size: 0.95rem;
        color: var(--body-text);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 8px;
    }
    .progress-info p:last-child {
        border-bottom: none;
    }

    .progress-info p strong {
        color: var(--dark-text);
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.1em;
    }

    .progress-bar-container {
        width: 100%;
        background-color: #f0f0f0;
        border-radius: 5px;
        height: 8px;
        margin-top: 15px;
        overflow: hidden;
    }

    .progress-bar {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, var(--success-green), #45b649);
        border-radius: 5px;
        transition: width 0.5s ease-out;
    }

    .quiz-container {
        flex-grow: 1;
        max-width: 650px;
        padding: 30px 40px 40px;
    }

    .quiz-container h2 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        font-weight: 600;
        color: var(--dark-text);
        margin-top: 10px;
        margin-bottom: 30px;
        text-align: center;
        border-bottom: none;
    }

    .question-display {
        padding: 0;
        border: none;
        background-color: transparent;
        margin-bottom: 25px;
        box-shadow: none;
        animation: fadeIn 0.5s ease-out;
    }

    .question {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.25rem;
        color: var(--dark-text);
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .answers label {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        padding: 16px 20px;
        background-color: #f9f9f9; /* Slightly darker bg for contrast */
        border: 2px solid transparent; /* Prepare for hover border */
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--dark-text);
        font-weight: 500;
        font-size: 1.05rem;
    }

    .answers label:hover {
        border-color: var(--primary-blue);
        background-color: var(--light-blue-bg);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 120, 215, 0.08);
    }

    .answers input[type="radio"] {
        margin-right: 15px;
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #ccc;
        border-radius: 50%;
        outline: none;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .answers input[type="radio"]:checked {
        border-color: var(--primary-blue);
        background-color: var(--white);
    }

    .answers input[type="radio"]:checked::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        background: var(--primary-blue);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: popIn 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .answers input[type="radio"]:checked + label {
        border-color: var(--primary-blue);
        background-color: var(--light-blue-bg);
        box-shadow: 0 2px 8px rgba(0, 120, 215, 0.1);
        color: var(--primary-blue-dark);
        font-weight: 600;
    }

    /* Control Buttons */
    .controls {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .control-btn {
        padding: 12px 28px;
        background-color: var(--primary-blue);
        color: var(--white);
        border: 2px solid var(--primary-blue);
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-size: 1em;
        font-weight: 600;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 120, 215, 0.2);
    }

    .control-btn:hover {
        background-color: var(--primary-blue-dark);
        border-color: var(--primary-blue-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 90, 156, 0.3);
    }

    .control-btn#prev {
        background-color: transparent;
        color: var(--body-text);
        border: 2px solid #ccc;
        box-shadow: none;
    }

    .control-btn#prev:hover {
        border-color: var(--dark-text);
        color: var(--dark-text);
        transform: translateY(-2px);
    }

    /* Feedback Box Styles */
    .question-feedback-box {
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 20px 25px;
        border-radius: 8px;
        border: 1px solid transparent;
        animation: slideUp 0.4s ease-out;
    }

    .question-feedback-box.correct {
        background-color: #f6ffed;
        border-color: #b7eb8f;
    }

    .question-feedback-box.incorrect {
        background-color: #fff1f0;
        border-color: #ffa39e;
    }

    .question-feedback-box h4 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 1.2rem;
        font-family: 'Poppins', sans-serif;
        display: flex;
        align-items: center;
    }

    .question-feedback-box.correct h4 { color: #389e0d; }
    .question-feedback-box.correct h4::before { content: '✓'; margin-right: 10px; font-weight: bold; }

    .question-feedback-box.incorrect h4 { color: #cf1322; }
    .question-feedback-box.incorrect h4::before { content: '✕'; margin-right: 10px; font-weight: bold; }

    .question-feedback-toggle {
        margin-top: 18px;
    }

    .feedback-toggle-btn {
        background: #f7f8fb;
        border: 1px dashed #bfc7d1;
        color: #2c3e50;
        padding: 10px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .feedback-toggle-btn:hover {
        background: #eef2f7;
    }

    .feedback-form {
        margin-top: 12px;
        padding: 16px;
        border-radius: 10px;
        background: #f9fbff;
        border: 1px solid #e1e7f0;
    }

    .feedback-form label {
        display: block;
        margin: 12px 0 6px;
        font-weight: 600;
        color: var(--dark-text);
    }

    .feedback-form textarea,
    .feedback-form input[type="email"] {
        width: 100%;
        border: 1px solid #cfd8e3;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 0.95rem;
        font-family: 'Open Sans', sans-serif;
    }

    .feedback-form textarea {
        resize: vertical;
        min-height: 110px;
    }

    .feedback-submit-btn {
        margin-top: 12px;
        background: var(--primary-blue);
        color: var(--white);
        border: none;
        padding: 10px 18px;
        border-radius: 8px;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
    }

    .feedback-submit-btn:disabled {
        opacity: 0.6;
        cursor: default;
    }

    .feedback-status {
        margin-top: 8px;
        font-size: 0.9rem;
    }

    .feedback-status.is-error {
        color: #c0392b;
    }

    .feedback-status.is-success {
        color: #2e7d32;
    }

    .toggle-explanation {
        background: none;
        border: none;
        color: var(--primary-blue);
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        padding: 0;
        margin-top: 10px;
        text-decoration: underline;
    }
    .toggle-explanation:hover {
        color: var(--primary-blue-dark);
    }

    /* Answer State Styling */
    .answers.is-disabled label { cursor: default; pointer-events: none; }
    .answers label.is-revealed { opacity: 0.7; }
    .answers label.is-correct { 
        border-color: #b7eb8f; background-color: #f6ffed; color: #389e0d; opacity: 1; 
    }
    .answers label.is-incorrect { 
        border-color: #ffa39e; background-color: #fff1f0; color: #cf1322; opacity: 1; 
    }

    /* Responsive */
    @media (max-width: 850px) {
        .quiz-wrapper {
            flex-direction: column;
            align-items: center;
        }
        .quiz-container {
            max-width: 100%;
        }
        .progress-box {
            width: 100%;
            max-width: 100%;
            position: static;
            margin-bottom: 20px;
        }
    }




    /* --- GLASGOW-BLATCHFORD SCORE STYLES --- */
    #gbs-calculator-container {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        line-height: 1.6;
        color: #333;
        max-width: 700px;
        margin: 40px auto;
        padding: 25px;
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    #gbs-calculator-container .gbs-header {
        font-size: 24px;
        color: #2c3e50;
        text-align: center;
        margin-top: 0;
        margin-bottom: 20px;
    }

    #gbs-calculator-container .gbs-fieldset {
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 15px;
        margin-bottom: 20px;
    }

    #gbs-calculator-container .gbs-legend {
        font-weight: bold;
        color: #34495e;
        padding: 0 10px;
    }

    #gbs-calculator-container .gbs-form-group {
        margin-bottom: 15px;
    }

    #gbs-calculator-container .gbs-label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
    }

    #gbs-calculator-container .gbs-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        padding-right: 40px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #fff;
        font-size: 16px;
        color: #333;
        cursor: pointer;
        transition: border-color 0.2s, box-shadow 0.2s;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 1em;
    }

    #gbs-calculator-container .gbs-select:hover {
        border-color: #aed6f1;
    }

    #gbs-calculator-container .gbs-select:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
    }

    #gbs-calculator-container .gbs-radio-group {
        padding: 5px 0;
    }
    #gbs-calculator-container .gbs-radio-label {
        display: inline-block;
        margin-right: 20px;
        font-weight: normal;
    }

    #gbs-calculator-container .gbs-checkbox-group .gbs-form-group {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    #gbs-calculator-container .gbs-checkbox-group input[type="checkbox"] {
        margin-right: 10px;
        width: 1.3em;
        height: 1.3em;
    }
    #gbs-calculator-container .gbs-checkbox-group label {
        margin-bottom: 0;
        font-weight: normal;
    }

    #gbs-calculator-container .gbs-button {
        display: block;
        width: 100%;
        padding: 12px;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    #gbs-calculator-container .gbs-button:hover {
        background-color: #2980b9;
    }

    #gbs-calculator-container .gbs-result-container {
        margin-top: 25px;
        padding: 20px;
        background-color: #eaf2f8;
        border: 1px solid #aed6f1;
        border-radius: 5px;
        text-align: center;
    }

    #gbs-calculator-container .gbs-result-header {
        margin-top: 0;
        color: #2980b9;
        font-size: 18px;
    }

    #gbs-calculator-container .gbs-score-display {
        font-size: 2.2em;
        font-weight: bold;
        color: #2c3e50;
        margin: 10px 0;
    }

    #gbs-calculator-container .gbs-interpretation-text {
        margin-top: 10px;
        font-style: italic;
        color: #555;
    }

    #gbs-calculator-container .gbs-hidden {
        display: none;
    }

    .progress-info .score-correct {
    color: var(--success-green);
    font-weight: 600;
    }

    .progress-info .score-wrong {
    color: #dc3545;
    font-weight: 600;
    }

    .progress-info .score-correct strong,
    .progress-info .score-wrong strong {
    font-size: 1.3em !important;
    color: var(--dark-text);
    }

    /* =================================================================== */
    /* STYLING FOR ALL USER PAGES (v9 - FINAL UNIFIED)
    /* This styles Login, Sign Up, AND the "My Profile" page.
    /* =================================================================== */

    .login-card-wrapper {
        font-family: 'Open Sans', sans-serif;
        max-width: 500px;
        margin: 60px auto;
        padding: 35px 40px 40px 40px;
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 12px;
        background-color: var(--white, #ffffff);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .login-card-wrapper::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background-color: var(--primary-blue, #0078d7);
    }

    .login-card-logo {
        margin-bottom: 20px;
        padding-top: 10px;
    }
    .login-card-logo img {
        max-width: 180px;
        height: auto;
    }

    .login-card-header h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        font-weight: 600;
        color: var(--dark-text, #333);
        margin-bottom: 10px;
    }
    .login-card-header p {
        font-size: 1.1rem;
        color: var(--body-text, #555);
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .login-card-form .swpm-login-widget-form,
    .login-card-form .swpm-registration-form,
    .login-card-form .swpm_profile_form, 
    .login-card-form .swpm-profile-page-form {
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
        background: none;
        text-align: left;
    }

    .login-card-form label,
    .login-card-form .swpm-form-row label,
    .login-card-form .swpm_profile_form label {
        display: block;
        text-align: left;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        color: var(--dark-text, #333);
        margin-bottom: 8px;
    }

    .login-card-form input[type="text"],
    .login-card-form input[type="email"],
    .login-card-form input[type="password"] {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 1rem !important;
        font-family: 'Open Sans', sans-serif !important;
        border: 2px solid var(--border-color, #ccc) !important;
        border-radius: 8px !important;
        box-sizing: border-box !important; 
        margin-bottom: 20px !important;
        transition: all 0.3s ease !important;
        background: #fff !important; 
        box-shadow: none !important; 
    }

    .login-card-form input[type="text"]:focus,
    .login-card-form input[type="email"]:focus,
    .login-card-form input[type="password"]:focus {
        border-color: var(--primary-blue, #0078d7) !important;
        box-shadow: 0 0 8px rgba(0, 120, 215, 0.2) !important;
        outline: none !important;
    }

    .login-card-form .swpm-login-submit input[type="submit"],
    .login-card-form .swpm-registration-submit-btn,
    .login-card-form .swpm-profile-submit-btn {
        display: block !important;
        width: 100% !important;
        padding: 16px 20px !important;
        background: linear-gradient(145deg, var(--primary-blue, #0078d7), var(--primary-blue-dark, #005a9e)) !important;
        color: var(--white, #ffffff) !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 1.1em !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 5px 15px rgba(0, 120, 215, 0.2) !important;
        margin-top: 10px !important;
    }

    .login-card-form .swpm-login-submit input[type="submit"]:hover,
    .login-card-form .swpm-registration-submit-btn:hover,
    .login-card-form .swpm-profile-submit-btn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 20px rgba(0, 90, 156, 0.35) !important;
    }

    .login-card-form #swpm-login-form .swpm-login-action-links {
        margin-top: 30px !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 15px !important;
    }
    .login-card-form #swpm-login-form .swpm-login-action-links > * {
        flex: 1 !important; 
        margin: 0 !important;
        padding: 0 !important;
    }
    .login-card-form #swpm-login-form .swpm-login-action-links a,
    .login-card-form #swpm-login-form .swpm-login-action-links a:link,
    .login-card-form #swpm-login-form .swpm-login-action-links a:visited {
        display: block !important;
        padding: 12px 10px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-align: center !important;
        border: 2px solid var(--border-color, #e0e0e0) !important;
        border-radius: 8px !important;
        color: var(--primary-blue, #0078d7) !important;
        transition: all 0.3s ease !important;
        background: none !important;
        line-height: 1.5 !important;
    }
    .login-card-form #swpm-login-form .swpm-login-action-links a:hover {
        background-color: var(--light-blue-bg, #f0f7ff) !important;
        border-color: var(--primary-blue, #0078d7) !important;
        color: var(--primary-blue-dark, #005a9e) !important;
        text-decoration: none !important;
    }

    .login-card-form .swpm-registration-form-row {
        margin-bottom: 20px !important;
    }
    .login-card-form .swpm-form-field .swpm-show-pass-cb-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        text-align: left;
        font-weight: 500;
    }
    .login-card-form .swpm-form-field .swpm-show-pass-cb {
        width: 16px;
        height: 16px;
        accent-color: var(--primary-blue, #0078d7);
    }

    .login-card-form .swpm_profile_form .swpm-form-row {
        margin-bottom: 20px !important;
    }
    .login-card-form .swpm_profile_form .swpm-show-pass-cb-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        text-align: left;
        font-weight: 500;
    }
    .login-card-form .swpm_profile_form .swpm-show-pass-cb {
        width: 16px;
        height: 16px;
        accent-color: var(--primary-blue, #0078d7);
    }

    /* "My Account" Page & Progress Table Styles */
    .page-template-template-my-progress {
        max-width: 900px;
        margin: 40px auto;
        padding: 0 20px;
    }

    .swpm-profile-page-form {
        text-align: left;
        font-size: 1.1rem;
        line-height: 1.8;
        padding: 30px 35px;
        border: 1px solid var(--border-color, #e0e0e0);
        border-radius: 12px;
        background-color: var(--white, #ffffff);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
    .swpm-profile-page-form p {
        margin-bottom: 10px;
    }
    .swpm-profile-page-form a {
        color: var(--primary-blue, #0078d7);
        font-weight: 600;
        text-decoration: none;
    }
    .swpm-profile-page-form a:hover {
        text-decoration: underline;
    }

    .progress-table-wrapper {
        max-width: 900px;
        margin: 40px auto;
        font-family: 'Open Sans', sans-serif;
    }
    .progress-table-wrapper h3 {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8em;
        color: var(--dark-text, #333);
        margin-bottom: 20px;
    }
    .progress-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border-radius: 8px;
        overflow: hidden;
    }
    .progress-table thead tr {
        background-color: var(--primary-blue, #0078d7);
        color: var(--white, #ffffff);
        text-align: left;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
    }
    .progress-table th,
    .progress-table td {
        padding: 12px 18px;
    }
    .progress-table tbody tr {
        border-bottom: 1px solid var(--border-color, #e0e0e0);
        background-color: var(--white, #ffffff);
    }
    .progress-table tbody tr:nth-of-type(even) {
        background-color: var(--light-gray, #f9f9f9);
    }
    .progress-table tbody tr:last-of-type {
        border-bottom: 2px solid var(--primary-blue, #0078d7);
    }
    .progress-table .score-percentage {
        font-weight: 700;
        font-size: 1.1em;
        color: var(--dark-text, #333);
    }
    @media (max-width: 768px) {
        .progress-table thead { display: none; }
        .progress-table tr { 
            display: block; 
            margin-bottom: 15px; 
            border: 1px solid var(--border-color, #e0e0e0);
            border-radius: 8px;
        }
        .progress-table td { 
            display: block; 
            text-align: right; 
            padding: 10px 15px; 
            border-bottom: 1px dotted #ccc; 
        }
        .progress-table td::before { 
            content: attr(data-label); 
            float: left; 
            font-weight: 600; 
            font-family: 'Poppins', sans-serif;
            color: var(--dark-text, #333);
        }
        .progress-table td:last-child { border-bottom: 0; }
    }


    /* =================================================================== */
    /* STYLING FOR NAV BAR ACTIONS & LOGIN POPUP
    /* =================================================================== */

    .nav-user-actions {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-left: 20px;
    }

    .nav-signup-btn {
        padding: 8px 16px !important;
        background: linear-gradient(145deg, var(--primary-blue, #0078d7), var(--primary-blue-dark, #005a9e)) !important;
        color: var(--white, #ffffff) !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 0.9em !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 10px rgba(0, 120, 215, 0.2) !important;
    }
    .nav-signup-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(0, 90, 156, 0.3) !important;
    }

    .nav-login-trigger {
        background: none !important;
        border: 2px solid var(--primary-blue, #0078d7) !important;
        color: var(--primary-blue, #0078d7) !important;
        padding: 6px 16px !important;
        border-radius: 50px !important;
        font-family: 'Poppins', sans-serif !important;
        font-weight: 600 !important;
        font-size: 0.9em !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    .nav-login-trigger:hover {
        background-color: var(--light-blue-bg, #f0f7ff) !important;
        border-color: var(--primary-blue, #0078d7) !important;
    }

    .nav-user-welcome {
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        color: var(--dark-text, #333);
        font-size: 0.9em;
    }
    .nav-logout-link {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.9em;
        color: var(--primary-blue, #0078d7);
        text-decoration: none;
        font-weight: 600;
    }
    .nav-logout-link:hover {
        text-decoration: underline;
    }

    .login-popup-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.6);
        animation: fadeIn 0.3s ease;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1001;
    }

    .login-popup-modal .login-card-wrapper {
        position: relative;
        z-index: 1002;
        margin: 10% auto;
        animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .modal-close {
        position: absolute;
        top: 15px;
        right: 25px;
        color: #aaa;
        font-size: 30px;
        font-weight: bold;
        z-index: 1003;
        cursor: pointer;
        transition: color 0.2s ease;
    }
    .modal-close:hover {
        color: #333;
    }

    /* =================================================================== */
    /* --- POPUP STYLES (v3.2 - HYPER-SPECIFIC FIX) --- */
    /* This block targets the popup modal specifically to fix your requests */
    /* =================================================================== */

    /* 1. Make the logo bigger IN THE POPUP */
    .login-popup-modal .login-card-logo img {
        max-width: 180px !important;
        height: auto !important;
    }

    /* 2. Style the "Remember Me" checkbox to look modern */
    .login-popup-modal .login-card-form #swpm-login-form .swpm-remember-me {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 25px !important;
        font-size: 0.95rem !important;
        text-align: left !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-remember-me label {
        margin-bottom: 0 !important;
        font-family: 'Open Sans', sans-serif !important;
        font-weight: 500 !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-remember-me input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        accent-color: var(--primary-blue, #0078d7) !important;
    }

    /* 3. Make the "Forgot Password" and "Join Us" links into buttons */
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links {
        margin-top: 30px !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 15px !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links > * {
        flex: 1 !important; 
        margin: 0 !important;
        padding: 0 !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a,
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a:link,
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a:visited {
        display: block !important;
        padding: 12px 10px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-align: center !important;
        border: 2px solid var(--border-color, #e0e0e0) !important;
        border-radius: 8px !important;
        color: var(--primary-blue, #0078d7) !important;
        transition: all 0.3s ease !important;
        background: none !important;
        line-height: 1.5 !important;
    }
    .login-popup-modal .login-card-form #swpm-login-form .swpm-login-action-links a:hover {
        background-color: var(--light-blue-bg, #f0f7ff) !important;
        border-color: var(--primary-blue, #0078d7) !important;
        color: var(--primary-blue-dark, #005a9e) !important;
        text-decoration: none !important;
    }



    /* Aligns the buttons side-by-side */
    .button-group {
    display: flex;
    gap: 15px; /* Space between the buttons */
    justify-content: center;
    flex-wrap: wrap; /* Allows stacking on very small mobile screens */
    margin-top: 20px;
    }

    /* Optional: Makes the new button look slightly different (Inverted colors?) */
    /* You can remove this block if you want them to look exactly the same */
    .cta-secondary {
    background-color: transparent;
    border: 2px solid #ffffff; /* Assuming white text/border */
    color: #ffffff;
    }

    .cta-secondary:hover {
    background-color: #ffffff;
    color: #000000; /* Dark color on hover */
    }

    /* Glass Mockup */
    .glass-card-mockup {
        width: 320px;
        height: 220px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
        transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
        transition: transform 0.5s ease;
        padding: 20px;
        position: relative;
    }

    .glass-card-mockup:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    }

    .glass-header {
        display: flex;
        gap: 8px;
        margin-bottom: 20px;
    }
    .g-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); }

    .glass-body {
        display: flex;
        gap: 20px;
        align-items: flex-end;
        height: 120px;
    }

    .g-chart {
        flex: 1;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        height: 100%;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(255,255,255,0.2);
    }

    .g-bar {
        width: 15px;
        background: rgba(255,255,255,0.3);
        border-radius: 4px 4px 0 0;
    }
    .g-bar.active { background: #ffd700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

    .g-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .g-row {
        background: rgba(255,255,255,0.1);
        padding: 10px;
        border-radius: 8px;
    }
    .g-lbl { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.7); text-transform: uppercase; }
    .g-val { display: block; font-size: 1.2rem; font-weight: 800; color: white; }

    .floating-rank-badge {
        position: absolute;
        top: -20px;
        right: -20px;
        width: 60px;
        height: 60px;
        background: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: #ffd700;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        animation: floatBadge 3s ease-in-out infinite;
    }

    @keyframes floatBadge {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    /* =========================================
    NEW REGISTRATION PAGE LAYOUT (V2)
    ========================================= */
    .ce-register-layout-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .ce-register-top-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
        align-items: stretch;
    }

    .ce-features-card {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ce-trial-info-card {
        background: linear-gradient(to right, #ffffff, #f0f7ff);
        border: 1px solid #cce5ff;
        border-left: 5px solid var(--primary-blue);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 25px;
        box-shadow: 0 8px 20px rgba(0, 120, 215, 0.06);
    }

    .ce-trial-icon {
        width: 60px;
        height: 60px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        color: var(--primary-blue);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        flex-shrink: 0;
    }

    .ce-trial-content h3 { margin: 0 0 8px 0; color: var(--primary-blue-dark); font-size: 1.3rem; }
    .ce-trial-content p { margin: 0; color: var(--body-text); font-size: 1rem; line-height: 1.5; }

    .ce-register-bottom-section {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .ce-register-bottom-section h2 {
        text-align: center;
        margin-bottom: 40px;
        color: var(--dark-text);
    }

    .ce-subscribe-now {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }

    .ce-subscribe-now .cta-button {
        padding: 14px 28px;
        border-radius: 999px;
        font-weight: 700;
        letter-spacing: 0.3px;
        box-shadow: 0 10px 20px rgba(0, 120, 215, 0.2);
    }

    /* Override subscription grid for full width */
    .ce-register-bottom-section .ce-subscription-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }

    @media (max-width: 900px) {
        .ce-register-top-section {
            grid-template-columns: 1fr;
        }
        .ce-trial-info-card {
            flex-direction: column;
            text-align: center;
        }
    }

    /* --- 1. Quiz  page --- */

    /* --- 1. Global Settings --- */
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

    .full-page-blue {
    background-color: #ffffff !important; /* Clean White Page */
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    display: block;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    }

    .container {
    width: 100%;
    padding: 0;
    margin: 0;
    }

    /* --- 2. Hero Section (Solid Flat Blue) --- */
    .hero-text {
    /* CHANGED: Solid Flat Blue (No Gradient) */
    background-color: #0077cc; 
    
    /* Full Width Logic */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    text-align: center;
    padding: 80px 20px; 
    margin-bottom: 50px; /* Space between header and cards */
    
    /* Optional: Removed shadow for a truly flat look, or keep a small one */
    box-shadow: none; 
    }

    .hero-logo { display: none; }

    .hero-text h1 {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    }

    .hero-text p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    }

    /* --- 3. The Grid --- */
    .mode-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px; 
    padding: 0 20px 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    }

    /* --- 4. The Cards (Solid Flat Blue) --- */
    .mode-card {
    /* CHANGED: Solid Flat Blue (Matches Header) */
    background-color: #0077cc;
    
    border-radius: 16px;
    padding: 40px 35px;
    
    /* Flex column for button alignment */
    display: flex;
    flex-direction: column;
    
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    
    text-decoration: none;
    text-align: center;
    position: relative;
    
    /* Subtle shadow to separate it from the white page */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* --- Card Content --- */
    .icon-circle {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    }

    .mode-card h2 {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    }

    .mode-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    }

    /* --- 5. The Button (Solid White Block) --- */
    .start-button {
    margin-top: auto;
    display: block;
    
    background-color: #ffffff;
    color: #0077cc; /* Matches the flat blue background */
    
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 0;
    border-radius: 8px;
    
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* --- 6. Hover Effects (Pop Up) --- */

    .mode-card:hover {
    transform: translateY(-10px); /* The Pop Up */
    /* Shadow gets slightly deeper on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .mode-card:hover .start-button {
    /* Button scales slightly on hover */
    transform: scale(1.02);
    }

    /* --- Mobile --- */
    @media (max-width: 768px) {
    .mode-grid { flex-direction: column; align-items: center; }
    .mode-card { width: 100%; }
    .hero-text h1 { font-size: 2.5rem; }
    }


    /* =================================================================== */
    /* STYLING FOR QUIZ RESULTS & DETAILED FEEDBACK
    /* =================================================================== */

    /* Summary Section */
    .results-summary {
        text-align: center;
        padding: 20px 0;
    }

    .score-circle {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: var(--light-blue-bg);
        border: 4px solid var(--primary-blue);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 20px auto;
        color: var(--primary-blue-dark);
    }

    .score-circle span {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
    }

    .score-circle small {
        font-size: 1rem;
        color: var(--body-text);
        margin-top: 5px;
    }

    .results-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    /* Detailed Feedback Items */
    .result-item {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        border-left: 5px solid #ccc; /* Default border */
        text-align: left;
    }

    .result-item.res-correct {
        border-left-color: var(--success-green);
        background-color: #f9fff9;
    }

    .result-item.res-incorrect {
        border-left-color: #dc3545; /* Red */
        background-color: #fff5f5;
    }

    .res-q-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        color: var(--dark-text);
    }

    .res-ans-row {
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .res-label {
        font-weight: 600;
        color: var(--body-text);
        margin-right: 10px;
    }

    .text-success { color: var(--success-green); font-weight: 600; }
    .text-danger { color: #dc3545; font-weight: 600; }

    /* Explanation Box inside Result */
    .res-explanation {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #ddd;
        font-size: 0.95rem;
        color: var(--body-text);
        line-height: 1.6;
    }
    .res-explanation strong {
        color: var(--primary-blue-dark);
        display: block;
        margin-bottom: 5px;
    }

    /* --- NEW MULTI-LEVEL MENU STYLES --- */

    /* 1. Desktop "Flyout" Logic */
    @media (min-width: 769px) {
        /* Ensure the parent dropdown items are relative so children position correctly */
        .dropdown-menu .nested-dropdown-parent {
            position: relative;
        }

        /* Style for the "Level 2" Submenu (The Flyout) */
        .submenu-level-2 {
            display: none;
            position: absolute;
            top: 0;
            left: 100%; /* Pushes it to the right of the parent */
            min-width: 200px;
            background-color: var(--white);
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
            border: 1px solid var(--border-color);
            list-style: none;
            margin-left: 10px; /* Small gap */
        }

        /* Visual connector for the gap */
        .submenu-level-2::before {
            content: '';
            position: absolute;
            top: 0;
            left: -15px;
            height: 100%;
            width: 15px;
            background: transparent;
        }

        /* Show Level 2 when hovering over the Parent LI */
        .nested-dropdown-parent:hover > .submenu-level-2 {
            display: block;
            animation: fadeIn 0.2s ease-out;
        }

        /* Arrow styling */
        .desktop-arrow {
            float: right;
            font-size: 0.8em;
            margin-left: 10px;
            color: var(--primary-blue);
        }
        
        .arrow-down {
            font-size: 0.7em;
            margin-left: 5px;
        }

        /* Highlight the parent item when its child is open */
        .nested-dropdown-parent:hover > a {
            background-color: var(--light-blue-bg);
            color: var(--primary-blue);
        }
    }

    /* 2. Mobile Logic (Stacking) */
    @media (max-width: 768px) {
        .arrow-down, .desktop-arrow {
            display: none;
        }

        /* Reset positioning for mobile */
        .submenu-level-2 {
            position: static;
            display: block; /* Always show children on mobile if parent is open, or use JS to toggle */
            box-shadow: none;
            border: none;
            padding: 0;
            margin: 0;
            background-color: #f4f6f8; /* Slightly darker to differentiate depth */
        }

        /* Indent Level 2 items */
        .submenu-level-2 li a {
            padding-left: 40px !important; /* Deep indentation */
            font-size: 0.9rem;
            color: var(--body-text);
        }
        
        /* Style the Category headers on mobile */
        .nested-dropdown-parent > a {
            font-weight: 700 !important;
            color: var(--primary-blue-dark) !important;
            background-color: var(--light-gray);
        }
    }

    /* =================================================================== */
    /* REGISTRATION PAGE STYLES
    /* =================================================================== */

    .ce-register-hero {
        background-color: var(--light-blue-bg);
        padding: 60px 20px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ce-register-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        align-items: center;
    }

    .ce-register-left {
        padding-right: 20px;
    }

    .ce-register-badge {
        display: inline-block;
        background-color: #e3f2fd;
        color: var(--primary-blue);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 6px 12px;
        border-radius: 50px;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ce-register-title {
        font-family: 'Poppins', sans-serif;
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 15px;
        color: var(--dark-text);
        font-weight: 700;
    }

    .ce-register-subtitle {
        font-size: 1.2rem;
        color: var(--body-text);
        margin-bottom: 10px;
        max-width: 500px;
        line-height: 1.6;
    }

    .ce-cred-line {
        font-weight: 700;
        color: var(--primary-blue-dark);
        margin-bottom: 40px;
        font-size: 1.1rem;
        font-family: 'Poppins', sans-serif;
    }

    .ce-feature-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .ce-feature-card {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .ce-feature-ico {
        font-size: 1.5rem;
        background: #fff;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        flex-shrink: 0;
        color: var(--primary-blue);
    }

    .ce-feature-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        color: var(--dark-text);
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .ce-feature-text {
        font-size: 0.9rem;
        color: var(--body-text);
        line-height: 1.4;
    }

    .ce-register-steps {
        margin: 10px 0 30px;
    }

    .ce-register-steps-title {
        font-family: 'Poppins', sans-serif;
        font-size: 1.4rem;
        margin: 0 0 10px 0;
        color: var(--dark-text);
    }

    .ce-register-steps-text {
        font-size: 1rem;
        color: var(--body-text);
        line-height: 1.6;
        max-width: 520px;
    }

    .ce-subscription-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .ce-subscription-card {
        background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
        border: 1px solid #d7e6f6;
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 12px 26px rgba(0,0,0,0.08);
        text-align: left;
        position: relative;
        overflow: hidden;
    }

    .ce-subscription-card-featured {
        border-color: var(--primary-blue);
        box-shadow: 0 20px 36px rgba(0,120,215,0.2);
        transform: translateY(-6px);
    }

    .ce-subscription-headline {
        font-family: 'Poppins', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--primary-blue-dark);
        margin: 4px 0 10px;
    }

    .ce-subscription-tag {
        position: absolute;
        top: 14px;
        right: 14px;
        background: var(--primary-blue);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 999px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
    }

    .ce-subscription-term {
        font-family: 'Poppins', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--dark-text);
        margin-bottom: 6px;
    }

    .ce-subscription-price {
        font-family: 'Poppins', sans-serif;
        font-size: 2rem;
        color: var(--primary-blue-dark);
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .ce-subscription-currency {
        font-size: 1.1rem;
        vertical-align: super;
        margin-right: 4px;
    }

    .ce-subscription-note {
        font-size: 0.9rem;
        color: var(--body-text);
    }

    .ce-subscription-meta {
        margin-top: 6px;
        font-size: 0.85rem;
        color: #6b7a8a;
    }

    .ce-subscription-best {
        margin-top: 12px;
        font-size: 0.9rem;
        color: var(--dark-text);
        font-weight: 600;
    }

    .ce-subscription-desc {
        margin-top: 10px;
        font-size: 0.92rem;
        color: var(--body-text);
        line-height: 1.6;
    }

    .ce-subscription-cta {
        margin-top: 14px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-blue);
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .ce-access-card {
        grid-column: 1 / -1;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 18px;
        padding: 26px 28px;
        box-shadow: 0 12px 26px rgba(0,0,0,0.08);
        text-align: left;
    }

    .ce-access-title {
        font-family: 'Poppins', sans-serif;
        font-size: 1.35rem;
        margin: 0 0 10px;
        color: var(--dark-text);
        border-bottom: none;
        padding-bottom: 0;
    }

    .ce-access-text {
        margin: 0;
        font-size: 1rem;
        color: var(--body-text);
        line-height: 1.6;
    }

    .ce-register-trust {
        display: flex;
        gap: 20px;
        font-size: 0.9rem;
        color: #888;
        font-weight: 500;
    }

    .ce-trust-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ce-trust-dot {
        width: 6px;
        height: 6px;
        background-color: var(--success-green);
        border-radius: 50%;
    }

    .ce-register-right {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border: 1px solid var(--border-color);
    }

    /* Responsive Registration */
    @media (max-width: 900px) {
        .ce-register-grid {
            grid-template-columns: 1fr;
            gap: 40px;
        }
        .ce-register-left {
            padding-right: 0;
            text-align: center;
        }
        .ce-register-badge {
            margin-left: auto;
            margin-right: auto;
        }
        .ce-register-subtitle {
            margin-left: auto;
            margin-right: auto;
        }
        .ce-feature-cards {
            text-align: left;
            grid-template-columns: 1fr;
        }
        .ce-register-trust {
            justify-content: center;
        }
        .ce-subscription-cards {
            grid-template-columns: 1fr;
        }
        .ce-subscription-card-featured {
            transform: none;
        }
        .ce-access-card {
            grid-column: auto;
        }
    }

    @media (max-width: 600px) {
        .ce-register-hero {
            padding: 40px 16px;
            min-height: auto;
        }
        .ce-register-grid {
            gap: 28px;
        }
        .ce-register-title {
            font-size: 2.2rem;
        }
        .ce-register-subtitle {
            font-size: 1rem;
        }
        .ce-cred-line {
            font-size: 1rem;
            margin-bottom: 28px;
        }
        .ce-feature-cards {
            gap: 18px;
        }
        .ce-register-steps-title {
            font-size: 1.2rem;
        }
        .ce-register-steps-text {
            font-size: 0.95rem;
        }
        .ce-feature-ico {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        .ce-register-trust {
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        .ce-register-right {
            padding: 24px;
        }
        .ce-register-right input,
        .ce-register-right select,
        .ce-register-right textarea,
        .ce-register-right button,
        .ce-register-right .um-button,
        .ce-register-right .swpm-submit {
            width: 100%;
            box-sizing: border-box;
        }
    }

    /* =================================================================== */
    /* LOCKED REGISTRATION OVERLAY (LOGGED IN STATE)
    /* =================================================================== */

    .ce-register-right.ce-locked-mode {
        position: relative;
        overflow: hidden; /* Ensure overlay respects border radius */
    }

    .ce-locked-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.65); /* Light hazy overlay */
        backdrop-filter: blur(6px); /* Blur effect */
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: inherit;
        animation: fadeIn 0.5s ease-out;
    }

    .ce-locked-message {
        text-align: center;
        color: var(--dark-text);
        background: #ffffff;
        padding: 40px;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
        max-width: 400px;
        width: 90%;
    }

    .ce-locked-message i {
        font-size: 3rem;
        margin-bottom: 20px;
        color: var(--success-green);
    }

    .ce-locked-message h2 {
        color: var(--dark-text);
        font-size: 2rem;
        margin-bottom: 10px;
        border-bottom: none;
        margin-top: 0;
    }

    .ce-locked-message p {
        color: var(--body-text);
        margin-bottom: 30px;
        font-size: 1.1rem;
    }

    .ce-locked-message .cta-button {
        background-color: var(--primary-blue);
        color: #fff;
        border: none;
    }

    /* =================================================================== */
    /* QUIZ APP SPECIFIC STYLES (From Branch Trial)
    /* =================================================================== */

    #mrcs_qbank_app {
        max-width: 1600px;
        margin: 40px auto;
        font-family: 'Open Sans', sans-serif;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .quiz-header-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 30px;
        position: relative;
    }

    .nav-arrow {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        color: #555;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .nav-arrow i { pointer-events: none; }

    .nav-arrow:hover {
        background: var(--primary-blue);
        color: #ffffff;
        border-color: var(--primary-blue);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,120,215,0.25);
    }

    .nav-arrow:disabled {
        opacity: 0.3;
        cursor: default;
        transform: none;
        box-shadow: none;
    }

    .quiz-header-nav h2 {
        margin: 0;
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 1.6rem;
        color: var(--dark-text);
        text-align: center;
    }

    .back-btn-modern {
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        color: #666;
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .back-btn-modern:hover {
        background: #eef2f6;
        color: var(--primary-blue);
        border-color: #d0e3fc;
    }

    /* Compact Menu Grid for Mobile/Tablet */
    .secondary-menu-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 10px;
    }

    .menu-card-btn.compact {
        min-height: auto !important;
        padding: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .menu-card-btn.compact span { font-size: 1.5rem !important; }
    .menu-card-btn.compact h3 { font-size: 0.95rem !important; margin-bottom: 0 !important; }
    .menu-card-btn.compact p { 
        display: block !important; font-size: 0.75rem !important; color: #777; margin-top: 4px !important; line-height: 1.3; opacity: 0.8;
    }

    @media (max-width: 768px) {
        .secondary-menu-grid { grid-template-columns: 1fr; }
        .menu-card-btn.compact { flex-direction: row !important; text-align: left !important; justify-content: flex-start !important; }
        .menu-card-btn.compact p { font-size: 0.8rem !important; }
    }

    /* =================================================================== */
    /* TRIAL MODE STYLES
    /* =================================================================== */

    .trial-cta-overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 50;
        display: flex; justify-content: center; align-items: center;
        pointer-events: none; /* Allow clicks to pass through empty areas if needed, but box catches them */
    }

    .trial-cta-box {
        background: white;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        text-align: center;
        pointer-events: auto;
        border: 1px solid var(--primary-blue);
        max-width: 400px;
        width: 90%;
    }

    .trial-cta-box h3 { color: var(--primary-blue); margin-top: 0; font-family: 'Poppins', sans-serif; }
    .trial-cta-box p { color: var(--body-text); margin-bottom: 25px; }
    .trial-cta-box .cta-button { display: block; width: 100%; margin-bottom: 10px; text-align: center; box-sizing: border-box; cursor: pointer; }
    .trial-cta-box .cta-button.secondary { background: var(--success-green); color: white; border: none; }

    .quiz-register-btn {
        background: var(--success-green);
        color: white;
        padding: 8px 20px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9rem;
        box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
        transition: transform 0.2s;
        display: inline-block;
        margin: 0 10px;
    }
    .quiz-register-btn:hover { transform: translateY(-2px); color: white; box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4); }

    @media (max-width: 600px) {
        .quiz-header-nav { flex-wrap: wrap; gap: 10px; justify-content: center; }
        .quiz-register-btn { order: 3; width: 100%; text-align: center; margin: 5px 0; }
    }

    /* =========================================
    NEW REGISTRATION PAGE LAYOUT (V2)
    ========================================= */
    .ce-register-hero {
        background-color: var(--light-blue-bg);
        padding: 60px 20px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ce-register-layout-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .ce-register-top-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
        align-items: stretch;
    }

    .ce-features-card {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ce-register-badge {
        display: inline-block;
        background-color: #e3f2fd;
        color: var(--primary-blue);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 6px 12px;
        border-radius: 50px;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ce-register-title {
        font-family: 'Poppins', sans-serif;
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 15px;
        color: var(--dark-text);
        font-weight: 700;
    }

    .ce-register-subtitle {
        font-size: 1.2rem;
        color: var(--body-text);
        margin-bottom: 10px;
        max-width: 500px;
        line-height: 1.6;
    }

    .ce-feature-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .ce-feature-card {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .ce-feature-ico {
        font-size: 1.5rem;
        background: #fff;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        flex-shrink: 0;
        color: var(--primary-blue);
    }

    .ce-feature-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        color: var(--dark-text);
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .ce-feature-text {
        font-size: 0.9rem;
        color: var(--body-text);
        line-height: 1.4;
    }

    .ce-register-right {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border: 1px solid var(--border-color);
        /* Center content for payment forms/buttons */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .ce-register-bottom-section {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .ce-register-bottom-section h2 {
        text-align: center;
        margin-bottom: 40px;
        color: var(--dark-text);
    }

    .ce-subscription-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }

    .ce-subscription-card {
        background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
        border: 1px solid #d7e6f6;
        border-radius: 18px;
        padding: 22px;
        box-shadow: 0 12px 26px rgba(0,0,0,0.08);
        text-align: left;
        position: relative;
        overflow: hidden;
    }

    .ce-subscription-card-featured {
        border-color: var(--primary-blue);
        box-shadow: 0 20px 36px rgba(0,120,215,0.2);
        transform: translateY(-6px);
    }

    .ce-subscription-headline {
        font-family: 'Poppins', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--primary-blue-dark);
        margin: 4px 0 10px;
    }

    .ce-subscription-tag {
        position: absolute;
        top: 14px;
        right: 14px;
        background: var(--primary-blue);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 999px;
        letter-spacing: 0.3px;
        text-transform: uppercase;
    }

    .ce-subscription-term {
        font-family: 'Poppins', sans-serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--dark-text);
        margin-bottom: 6px;
    }

    .ce-subscription-price {
        font-family: 'Poppins', sans-serif;
        font-size: 2rem;
        color: var(--primary-blue-dark);
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .ce-subscription-currency {
        font-size: 1.1rem;
        vertical-align: super;
        margin-right: 4px;
    }

    .ce-subscription-desc {
        margin-top: 10px;
        font-size: 0.92rem;
        color: var(--body-text);
        line-height: 1.6;
    }

    .ce-subscription-cta {
        margin-top: 14px;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-blue);
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    @media (max-width: 900px) {
        .ce-register-top-section {
            grid-template-columns: 1fr;
        }
        .ce-subscription-cards {
            grid-template-columns: 1fr;
        }
        .ce-subscription-card-featured {
            transform: none;
        }
    }

    /* Clean wrapper for embedded quiz to avoid double-card effect */
    .ce-trial-section-clean {
        width: 100%;
        margin-top: 40px;
        text-align: center;
    }

    .ce-trial-section-clean h2 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* Adjust quiz app margins when embedded */
    .ce-trial-section-clean #mrcs_qbank_app {
        margin-top: 20px;
        padding: 0;
    }

    /* Full Width Features Card on Subscription Page */
    .ce-full-width-features {
        text-align: center;
        align-items: center;
    }

    .ce-full-width-features .ce-feature-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        width: 100%;
        text-align: left;
    }

    /* =========================================
    NEW REGISTRATION PAGE LAYOUT (V2)
    ========================================= */
    .ce-register-layout-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .ce-register-top-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 30px;
        align-items: stretch;
    }

    .ce-features-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ce-trial-info-card {
        background: linear-gradient(to right, #ffffff, #f0f7ff);
        border: 1px solid #cce5ff;
        border-left: 5px solid var(--primary-blue);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        gap: 25px;
        box-shadow: 0 8px 20px rgba(0, 120, 215, 0.06);
    }

    .ce-trial-icon {
        width: 60px;
        height: 60px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        color: var(--primary-blue);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        flex-shrink: 0;
    }

    .ce-trial-content h3 { margin: 0 0 8px 0; color: var(--primary-blue-dark); font-size: 1.3rem; }
    .ce-trial-content p { margin: 0; color: var(--body-text); font-size: 1rem; line-height: 1.5; }

    .ce-register-bottom-section {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }

    .ce-register-bottom-section h2 {
        text-align: center;
        margin-bottom: 10px;
        color: var(--dark-text);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ce-pricing-subtitle {
        text-align: center;
        color: var(--body-text);
        margin-bottom: 40px;
        font-size: 1.1rem;
    }

    .ce-highlight-badge {
        background: #e3f2fd;
        color: var(--primary-blue);
        font-size: 0.5em;
        vertical-align: middle;
        padding: 6px 12px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        border: 1px solid rgba(0, 120, 215, 0.2);
    }

    .ce-subscribe-now {
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

    .pulse-btn {
        animation: pulse-glow 2s infinite;
        font-size: 1.2rem;
        padding: 15px 50px;
        border-radius: 50px;
    }

    @keyframes pulse-glow {
        0% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0.4); }
        70% { box-shadow: 0 0 0 12px rgba(0, 120, 215, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 120, 215, 0); }
    }

    /* Override subscription grid for full width */
    .ce-register-bottom-section .ce-subscription-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .ce-subscription-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .ce-subscription-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,120,215,0.15);
        border-color: var(--primary-blue);
    }

    @media (max-width: 900px) {
        .ce-register-top-section {
            grid-template-columns: 1fr;
        }
        .ce-trial-info-card {
            flex-direction: column;
            text-align: center;
        }
    }

    /* =========================================
    1. HERO LAYOUT & TYPOGRAPHY
    ========================================= */
    #homepage-hero {
    padding: 60px 20px;
    /* Removed background color here so your blue site background shows through */
    }

    .hero-flex-layout {
    display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
        text-align: center;
    }

    /* Left Column */
    .hero-left {
    flex: 1;
        max-width: 900px;
        width: 100%;
    color: #fff; /* Assumes blue background based on screenshot */
    }

    .hero-left h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    }

    .hero-logo-c {
    height: 0.9em;
    vertical-align: middle;
    margin-bottom: 0.2em;
    }

    .hero-lead {
    font-size: 1.125rem;
    color: rgba(255,255,255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    }

    /* Stats Strip */
    .hero-stats-strip {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #fff;
        justify-content: center;
    }

    .stat-item i { margin-right: 8px; }

    /* Buttons */
    .button-group { display: flex; gap: 15px; justify-content: center; }

    .hero-demo-title {
        color: #fff;
        text-align: center;
        border-bottom: none;
        margin-top: 0;
    }

    .hero-divider {
        border: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.5);
        margin: 40px auto;
        width: 100%;
        max-width: 800px;
    }

    .cta-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .cta-button:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 25px rgba(0,0,0,0.3); }

    .btn-primary { background: #fff; color: #0078D7; }
    .btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }


    /* =========================================
    2. THE INTERACTIVE SWITCHER (LOGIC FIXED)
    ========================================= */
    .hero-right {
    flex: 1;
    position: relative;
    max-width: 900px; 
    width: 100%;
    }

    .feature-switcher {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: visible;
    display: flex;
    flex-direction: column;
    }

    /* 1. HIDE the radio buttons, but keep them in DOM */
    .switcher-logic {
    display: none !important;
    }

    /* 2. Style the Buttons */
    .switcher-controls {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
    }

    .switch-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    }

    .switch-btn:hover { background: #e2e8f0; color: #334155; }

    .switcher-controls label:first-child { border-top-left-radius: 16px; }
    .switcher-controls label:last-child { border-top-right-radius: 16px; }

    /* 3. Button Active States */
    /* If #ft-dash is checked, make the dash label blue */
    #ft-dash:checked ~ .switcher-controls label[for="ft-dash"] {
    background: #fff;
    color: #0078D7;
    border-bottom-color: #0078D7;
    }

    /* If #ft-quiz is checked, make the quiz label blue */
    #ft-quiz:checked ~ .switcher-controls label[for="ft-quiz"] {
    background: #fff;
    color: #0078D7;
    border-bottom-color: #0078D7;
    }

    /* 4. THE VIEWPORT & SWITCHING LOGIC */
    .switcher-viewport {
    position: relative;
    height: auto;
    background: #fff;
    overflow: visible; /* Allow content to not be clipped */
    border-radius: 0 0 16px 16px;
    }

    /* DEFAULT: All slides are hidden */
    .f-slide {
    display: none !important; /* Force hide */
    width: 100%;
    animation: fadeScale 0.4s ease-out;
    }

    /* ACTIVE: Show specific slide based on Checked Radio */
    #ft-dash:checked ~ .switcher-viewport .slide-dashboard {
    display: block !important; /* Force show */
    }

    #ft-quiz:checked ~ .switcher-viewport .slide-quiz {
    display: block !important; /* Force show */
    }

    @keyframes fadeScale {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
    }


    /* =========================================
    3. DASHBOARD DIAGRAM STYLES
    ========================================= */
    .dashmock {
    width: 100%;
    padding: 20px;
    background: #cfe0f1; 
    font-family: 'Open Sans', sans-serif;
    color: #0f1b2d;
    box-sizing: border-box;
    position: relative;
    }

    .dashmock__top {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 15px;
    align-items: start;
    }

    .dashmock__kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(15,27,45,.5);
    }

    .dashmock__rankline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    }

    .dashmock__rankbadge {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
    font-size: 16px;
    }

    .dashmock__ranktitle {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
    color: #0078D7;
    }

    .dashmock__subline {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(15,27,45,.7);
    }

    .dashmock__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
    }

    .dashmock__chip {
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(15,27,45,.1);
    font-weight: 700;
    font-size: 10px;
    }

    .dashmock__chip--good { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
    .dashmock__chip--bad { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

    /* Donut */
    .dashmock__accuracy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    }

    .dashmock__donut {
    --size: 80px;
    --ring: 10px;
    --p: 90;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: conic-gradient(#22c55e calc(var(--p)*1%), #ef4444 0);
    position: relative;
    }

    .dashmock__donut::after {
    content: "";
    position: absolute;
    inset: var(--ring);
    border-radius: 50%;
    background: #cfe0f1;
    }

    .dashmock__acc-under {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    }

    .dashmock__acc-val { font-size: 20px; font-weight: 800; line-height: 1; }
    .dashmock__acc-lbl { font-size: 8px; font-weight: 700; text-transform: uppercase; opacity: 0.6; }

    .dashmock__minirow { font-size: 10px; margin-top: 5px; font-weight: 700; }
    .dashmock__minichip { padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.5); margin: 0 2px; }
    .dashmock__minichip--good { color: #15803d; background: #dcfce7; }
    .dashmock__minichip--bad { color: #b91c1c; background: #fee2e2; }

    /* Timeline */
    .dashmock__timeline {
    margin-top: 15px;
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.5);
    }

    .dashmock__nextpill {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 9px;
    font-weight: 700;
    color: #0078D7;
    background: rgba(0, 120, 215, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    }

    .dashmock__track {
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 30px 0 10px;
    position: relative;
    }
    .dashmock__track::after {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 40%;
    background: #0078D7;
    border-radius: 10px;
    }

    .dashmock__bubble {
    position: absolute;
    top: -32px; left: 40%;
    transform: translateX(-50%);
    background: #0078D7;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    }
    .dashmock__bubble::after {
    content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #0078D7;
    }

    .dashmock__steps { display: flex; justify-content: space-between; }
    .dashmock__step { text-align: center; opacity: 0.5; transform: scale(0.9); }
    .dashmock__step--active { opacity: 1; transform: scale(1); }
    .dashmock__node { font-size: 14px; margin-bottom: 2px; }
    .dashmock__steptitle { font-size: 8px; font-weight: 700; }

    /* Stats Row */
    .dashmock__stats {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    }

    .dashmock__stat {
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    }

    .dashmock__sticon { font-size: 18px; }
    .dashmock__stlabel { font-size: 8px; font-weight: 700; opacity: 0.6; }
    .dashmock__stvalue { font-size: 14px; font-weight: 800; }

    .dashmock__actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    }
    .dashmock__btn {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    color: #0078D7;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    }
    .dashmock__btn:hover { background: rgba(255,255,255,0.9); }
    .dashmock__btn--smart {
    background: #0078D7;
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    }
    .dashmock__btn--smart:hover { background: #0062b0; }
    .dashmock__btn--smart span {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.9;
    }

    /* =========================================
    4. QUIZ DIAGRAM STYLES
    ========================================= */
    .quizmock {
    width: 100%;
    height: 100%;
    display: flex;
    background: #f8f9fa;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    color: #333;
  position: relative;
    }

    .quizmock__wrap {
    display: flex;
    width: 100%;
    height: 100%;
    }

    .quizmock__main {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    }

    .quizmock__topbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    }

    .quizmock__ghostbtn, .quizmock__navbtn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    color: #555;
    }

    .quizmock__nav { display: flex; gap: 5px; }

    .quizmock__title {
    font-size: 15px;
    font-weight: 700;
    color: #0078D7;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin: 0 0 10px 0;
    }

    .quizmock__titleSub { font-size: 12px; font-weight: 400; color: #666; }

    .quizmock__question p {
    font-size: 11px !important;
    line-height: 1.5;
    margin: 0 0 12px 0;
    font-weight: 400;
    color: #2c3e50 !important;
    }

    .quizmock__options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    }

    .quizmock__option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    }
    .quizmock__option--correct {
    background: #dcfce7;
    border-color: #15803d;
    color: #14532d;
    }

    .quizmock__optKey { font-weight: 700; color: #0078D7; }

    .quizmock__cta {
    margin-top: 15px;
    background: #0078D7;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 12px;
    }

    .quizmock__explanation {
    margin-top: 15px;
    padding: 12px;
    background: #fff;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    }
    .quizmock__explanation strong { color: #15803d; display: block; margin-bottom: 8px; flex-shrink: 0; }

    .quizmock__explanation-scroll {
    max-height: 100px;
    overflow-y: scroll;
    padding-right: 8px; /* Space for scrollbar */
    text-align: left;
    }

    /* Custom Scrollbar for Explanation Box */
    .quizmock__explanation-scroll::-webkit-scrollbar {
    width: 5px;
    }
    .quizmock__explanation-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 3px;
    }
    .quizmock__explanation-scroll::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 3px;
    }

    .quizmock__explanation-scroll ul {
    list-style-position: outside;
    padding-left: 15px;
    margin: 0;
    font-size: 11px;
    color: #333;
    }

    .quizmock__explanation-scroll li {
    margin-bottom: 8px;
    padding-left: 4px;
    }

    /* Sidebar */
    .quizmock__side {
    width: 160px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    }

    .quizmock__sideTitle {
    font-size: 12px;
    color: #0078D7;
    margin: 0 0 10px 0;
    font-weight: 700;
    }

    .quizmock__stats { margin-bottom: 15px; font-size: 10px; }
    .quizmock__statRow { display: flex; justify-content: space-between; margin-bottom: 4px; }
    .quizmock__mapTitle { font-size: 10px; font-weight: 700; margin-bottom: 5px; }

    .quizmock__map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
    }

    .quizmock__qbtn {
    width: 100%;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #586069;
    cursor: pointer;
    transition: all 0.2s ease;
    }

    .quizmock__qbtn:hover {
    border-color: #0078D7;
    color: #0078D7;
    background-color: #f0f7ff;
    }

    .quizmock__qbtn.is-active {
    background: #0078D7;
    color: white;
    border-color: #0078D7;
    box-shadow: 0 2px 5px rgba(0, 120, 215, 0.25);
    }

    .quizmock__mappaginator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    }

    .quizmock__mappagenav {
    background: #fff;
    border: 1px solid #e1e4e8;
    width: 24px; height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    color: #586069;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    padding: 0;
    }

    .quizmock__mappagenav:hover {
    border-color: #0078D7;
    color: #0078D7;
    background-color: #f0f7ff;
    }


    /* =========================================
    5. RESPONSIVE (Mobile)
    ========================================= */
    @media (max-width: 900px) {
    .hero-flex-layout { gap: 40px; }
    .hero-left { max-width: 100%; }
    .hero-right { max-width: 100%; }
    }

    @media (max-width: 500px) {
    .hero-left h1 { font-size: 2.2rem; }
    .quizmock__side { display: none; }
    .switcher-viewport { height: 550px; } /* Taller on mobile for stacking */
    .feature-spotlight { display: none; } /* Hide annotations on very small screens */
    }

    /* Desktop / wide screens: place hero columns side-by-side */
    @media (min-width: 900px) {
    .hero-flex-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    .hero-left {
        flex: 0 0 42%;
        max-width: 48%;
        margin: 0;
        padding-right: 20px;
        text-align: left;
    }

    .hero-right {
        flex: 0 0 56%;
        max-width: 56%;
        padding-left: 20px;
        display: block; /* allow contained absolute elements to position relative to this container */
    }

    .hero-demo-title { text-align: center; margin-top: 0  ; font-size: 1.6rem; }

    /* Ensure the demo panel sits above left text and annotations don't get hidden */
    .hero-right { position: relative; z-index: 30; }
    .feature-spotlight { pointer-events: auto; }
    }

    /* =========================================
    6. FEATURE SPOTLIGHTS (Annotations)
    ========================================= */
    .feature-spotlight {
        position: absolute;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
        display: flex;
        align-items: center;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
        width: 300px;
        transition: transform 0.3s ease;
        animation: spotFloat 3s ease-in-out infinite;
    }

    @keyframes spotFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }

    .feature-spotlight.is-open {
        animation: none;
    z-index: 1010;
    }

    .spotlight-card {
        background: var(--white);
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid var(--primary-blue);
        width: 100%;
    }

    .spotlight-header {
        padding: 8px 12px;
        background: var(--primary-blue);
        color: var(--white);
        font-size: 0.8rem;
        font-weight: 700;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        font-family: 'Poppins', sans-serif;
    }

    .spotlight-toggle-icon {
        font-size: 1rem;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    .feature-spotlight.is-open .spotlight-toggle-icon {
        transform: rotate(45deg);
    }

    .spotlight-body {
        max-height: 0;
        overflow: hidden;
        padding: 0 12px;
        font-size: 0.75rem;
        color: var(--body-text);
        background: var(--white);
        transition: all 0.3s ease;
        line-height: 1.4;
        opacity: 0;
    }

    .feature-spotlight.is-open .spotlight-body {
        padding: 10px 12px;
        max-height: 150px;
        opacity: 1;
    }

    .spotlight-arrow { width: 0; height: 0; border-style: solid; flex-shrink: 0; }

    /* Left Arrow (Spotlight is on the right of target) */
    .feature-spotlight.arrow-left { flex-direction: row; }
    .feature-spotlight.arrow-left .spotlight-arrow {
    border-width: 8px 18px 8px 0;
        border-color: transparent var(--primary-blue) transparent transparent;
        margin-right: -1px;
    }

    /* Right Arrow (Spotlight is on the left of target) */
    .feature-spotlight.arrow-right { flex-direction: row-reverse; }
    .feature-spotlight.arrow-right .spotlight-arrow {
    border-width: 8px 0 8px 18px;
        border-color: transparent transparent transparent var(--primary-blue);
        margin-left: -1px;
    }

    /* Positions */
/* Dashboard - Left Side */
.spot-rank-xp { top: 70px; right: 100%; margin-right: 20px; }
.spot-streak { top: 300px; right: 100%; margin-right: 20px; }
.spot-topic { bottom: 85px; right: 100%; margin-right: 20px; }

/* Dashboard - Right Side */
.spot-accuracy { top: 20px; left: 100%; margin-left: 20px; }
.spot-smart { bottom: 20px; left: 100%; margin-left: 20px; }
.spot-qbank { top: 300px; left: 100%; margin-left: 20px; }

/* Quiz - Right Side */

@media (max-width: 1024px) {
    .feature-spotlight { display: none; }
}

/* Small circular feature buttons (desktop) and description box */
@media (min-width: 900px) {
    /* Ensure spotlights are visible on desktop ranges even if global rules hide them at smaller widths */
    .feature-spotlight { display: block !important; }

    .feature-spotlight .spotlight-card,
    .feature-spotlight .spotlight-arrow {
        display: none; /* hide large side cards on wide screens */
    }

    .feature-spotlight .spot-btn {
        appearance: none;
        -webkit-appearance: none;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #0078D7, #005a9c);
        box-shadow: 0 6px 18px rgba(0,120,215,0.24), 0 2px 6px rgba(0,0,0,0.15);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        position: relative; /* sits inside the absolutely positioned container */
        z-index: 1020;
    }

    .feature-spotlight .spot-btn:active { transform: scale(0.98); }

    /* Pulsing ring */
    .feature-spotlight .spot-btn::after {
        content: '';
        position: absolute;
        width: 100%; height: 100%;
        border-radius: 50%;
        left: 0; top: 0;
        box-shadow: 0 0 0 0 rgba(0,120,215,0.35);
        animation: pulseRing 1.8s infinite ease-out;
        z-index: 1015;
    }

    @keyframes pulseRing {
        0% { box-shadow: 0 0 0 0 rgba(0,120,215,0.35); }
        70% { box-shadow: 0 0 0 16px rgba(0,120,215,0); }
        100% { box-shadow: 0 0 0 20px rgba(0,120,215,0); }
    }

    .feature-desc {
        margin-top: 18px;
        background: #ffffff;
        border-radius: 10px;
        padding: 14px 16px;
        box-shadow: 0 10px 30px rgba(7, 22, 35, 0.12);
        display: none;
        max-width: 100%;
    }

    .feature-desc.is-visible { display: block; }

    .feature-desc__inner { display:flex; gap:12px; align-items:flex-start; }
    .feature-desc__title { margin:0; font-size:1rem; color:#073763; font-weight:700; }
    .feature-desc__body { color:#334155; font-size:0.95rem; line-height:1.45; }
    .feature-desc__close { margin-left:auto; background:none; border:none; font-size:1.3rem; cursor:pointer; color:#7b8794; }
}

/* Reposition feature buttons to sit over the demo panel (desktop) */
@media (min-width: 900px) {
    /* Left-side annotations: place roughly over left area of demo */
    .spot-rank-xp { top: 72px !important; left: 28% !important; right: auto !important; margin: 0 !important; }
    .spot-streak { top: 300px !important; left: 28% !important; right: auto !important; margin: 0 !important; }
    .spot-topic { bottom: 85px !important; left: 28% !important; right: auto !important; margin: 0 !important; }

    /* Right-side annotations: place roughly over right area of demo */
    .spot-accuracy { top: 20px !important; left: 72% !important; right: auto !important; margin: 0 !important; }
    .spot-smart { bottom: 20px !important; left: 72% !important; right: auto !important; margin: 0 !important; }
    .spot-qbank { top: 300px !important; left: 72% !important; right: auto !important; margin: 0 !important; }

    /* Ensure the container doesn't overflow and buttons are visible */
    .hero-right { overflow: visible; }
}

    .pdf-band__media img {
        filter: none;
    }
}

/* =================================================================== */
/* SIDEBAR LAYOUT (MRCS Ad Column)
/* =================================================================== */

.page-layout-wrapper {
    display: flex;
    width: 100%;
    max-width: 1800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 40px;
    position: relative;
    align-items: stretch;
}

.main-content-area {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Adjust existing elements when inside the wrapper */
.page-layout-wrapper .page-title {
    margin-top: 0;
}

.page-layout-wrapper .tabs-container {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.sidebar-ad-area {
    width: 320px;
    flex-shrink: 0;
    display: none; /* Hidden on mobile by default */
}

.sticky-ad-container {
    position: sticky;
    top: 120px; /* Adjust based on your header height */
    height: fit-content;
    z-index: 10;
}

.mrcs-ad-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 120, 215, 0.25);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.mrcs-ad-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.mrcs-ad-card h3 {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.mrcs-ad-card p {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.mrcs-ad-features {
    text-align: left;
    margin-bottom: 25px;
    padding-left: 0;
    list-style: none;
}

.mrcs-ad-card .mrcs-ad-features li {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mrcs-ad-card .mrcs-ad-features li::before {
    content: "✓";
    font-weight: 800;
    color: #fff;
    background: rgba(255,255,255,0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.mrcs-ad-btn {
    display: block;
    width: 100%;
    background: var(--white);
    color: var(--primary-blue);
    padding: 14px 20px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.mrcs-ad-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    color: var(--primary-blue-dark);
}

@media (min-width: 1100px) {
    .sidebar-ad-area {
        display: block;
    }
}

    
    
    
