/* =============================================================
   Quant Guild — Learning Hub Brand System
   -------------------------------------------------------------
   Brings the Quant Courses / subscribe brand-panel design language
   (deep QG-blue gradient hero with grid texture, floating glass
   panels, gold accents) to the desktop Dashboard, History,
   Bookmarks, and Roadmap pages.

   Scoped under .learning-hub-page and targeted at the desktop
   .main-content so the bespoke mobile layouts are untouched. It
   deliberately restyles existing wrappers (.dashboard-header,
   .section-box, .stats-grid, tables) WITHOUT renaming the
   selectors/ids the page JS depends on.
   ============================================================= */

/* ------------------------------------------------------------
   1. Branded hero header (replaces the flat white header card)
   ------------------------------------------------------------ */
.learning-hub-page .main-content .dashboard-header {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.32);
    border-radius: 26px;
    padding: 2.4rem 2.4rem 2.2rem;
    margin-bottom: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(96, 165, 250, 0.30), transparent 30%),
        radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.34), transparent 34%),
        linear-gradient(135deg, #003f96 0%, #0068d8 55%, #00499f 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.learning-hub-page .main-content .dashboard-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.learning-hub-page .main-content .dashboard-header::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -170px;
    top: -220px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    pointer-events: none;
}

.learning-hub-page .main-content .dashboard-header .welcome-section,
.learning-hub-page .main-content .dashboard-header .welcome-header,
.learning-hub-page .main-content .dashboard-header .stats-section {
    position: relative;
    z-index: 1;
}

/* Kicker pill above the title */
.learning-hub-page .lh-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.learning-hub-page .lh-kicker i {
    font-size: 11px;
    color: #facc15;
}

/* Title — kill the blue gradient text-clip so it reads on the hero */
.learning-hub-page .main-content .dashboard-header .welcome-section h3 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    background: none;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.learning-hub-page .main-content .dashboard-header .subtitle {
    color: rgba(239, 246, 255, 0.92);
}

/* Hero nav segmented control — translucent glass on the hero */
.learning-hub-page .main-content .dashboard-header .hero-nav-icons {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.learning-hub-page .main-content .dashboard-header .hero-nav-icon {
    color: rgba(239, 246, 255, 0.92);
}

.learning-hub-page .main-content .dashboard-header .hero-nav-icon:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.learning-hub-page .main-content .dashboard-header .hero-nav-icon.active {
    background: #ffffff;
    color: #004aad;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.learning-hub-page .main-content .dashboard-header .hero-nav-icon.active:hover {
    background: #ffffff;
    color: #003a8c;
}

/* Admin button living in the header, if present */
.learning-hub-page .main-content .dashboard-header .admin-button {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Stats overview that lives INSIDE the hero (dashboard) */
.learning-hub-page .main-content .dashboard-header .stats-section {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.learning-hub-page .main-content .dashboard-header .section-header h2,
.learning-hub-page .main-content .dashboard-header .section-header h2 i,
.learning-hub-page .main-content .dashboard-header .section-subtitle {
    color: #ffffff;
}

.learning-hub-page .main-content .dashboard-header .section-subtitle {
    color: rgba(239, 246, 255, 0.82);
}

.learning-hub-page .main-content .dashboard-header #performance-toggle {
    color: #fff;
}

.learning-hub-page .main-content .dashboard-header #performance-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Stat cards on the hero become frosted glass */
.learning-hub-page .main-content .dashboard-header .stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.learning-hub-page .main-content .dashboard-header .stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.learning-hub-page .main-content .dashboard-header .stat-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #facc15;
}

.learning-hub-page .main-content .dashboard-header .stat-value {
    color: #ffffff;
}

.learning-hub-page .main-content .dashboard-header .stat-label {
    color: rgba(239, 246, 255, 0.85);
}

/* ------------------------------------------------------------
   3. Elevated content panels (everything else on the page)
   ------------------------------------------------------------ */
.learning-hub-page .main-content .section-box {
    border-radius: 22px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
}

.learning-hub-page .main-content .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.learning-hub-page .main-content .dashboard-grid .section-box {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 42%);
}

.learning-hub-page .main-content .section-header h2 i {
    color: #2563eb;
}

/* Section title accent underline (history, bookmarks, etc.) */
.learning-hub-page .main-content .section-box .section-header {
    padding-bottom: 0.85rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

/* Dashboard panels: blue top band overrides generic header */
.learning-hub-page .main-content .dashboard-grid .section-box .section-header {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 1.2rem 1.75rem 1.05rem;
    border-bottom: none;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(96, 165, 250, 0.32), transparent 38%),
        radial-gradient(circle at 92% 0%, rgba(59, 130, 246, 0.28), transparent 40%),
        linear-gradient(135deg, #003f96 0%, #0068d8 55%, #00499f 100%);
}

.learning-hub-page .main-content .dashboard-grid .section-box .section-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 95%);
    mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.learning-hub-page .main-content .dashboard-grid .section-box .section-header > * {
    position: relative;
    z-index: 1;
}

.learning-hub-page .main-content .dashboard-grid .section-box .section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.learning-hub-page .main-content .dashboard-grid .section-box .section-header h2 i {
    color: #facc15;
    font-size: 1.05rem;
}

.learning-hub-page .main-content .dashboard-grid .section-box .section-header .section-subtitle {
    margin: 0.35rem 0 0;
    color: rgba(226, 238, 255, 0.88);
}

.learning-hub-page .main-content .dashboard-grid .section-box > *:not(.section-header) {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.learning-hub-page .main-content .dashboard-grid .section-box > .section-header + * {
    padding-top: 1.5rem;
}

.learning-hub-page .main-content .dashboard-grid .section-box > *:not(.section-header):last-child {
    padding-bottom: 1.75rem;
}

.learning-hub-page .main-content .dashboard-grid .section-box .lh-courses-grid {
    margin-top: 0;
}

/* History & Bookmarks tables flush with panel header and side edges */
.learning-hub-page .main-content .dashboard-grid .section-box > .table-container {
    padding: 0;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: none;
}

.learning-hub-page .main-content .dashboard-grid .section-box > .section-header + .table-container {
    padding-top: 0;
}

.learning-hub-page .main-content .dashboard-grid .section-box > .table-container table {
    border-radius: 0;
}

.learning-hub-page .main-content .dashboard-grid .section-box > .table-container table th:first-child {
    border-radius: 0;
}

.learning-hub-page .main-content .dashboard-grid .section-box > .table-container table th:last-child {
    border-radius: 0;
}

/* Panel footer CTAs (View Full History / View All Bookmarks) */
.learning-hub-page .main-content .dashboard-grid .view-all-container {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.learning-hub-page .main-content .dashboard-grid .view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #004aad, #0068d8);
    border: none;
    box-shadow: 0 12px 28px rgba(0, 74, 173, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.learning-hub-page .main-content .dashboard-grid .view-all-button i:first-child {
    color: #facc15;
    font-size: 0.95rem;
}

.learning-hub-page .main-content .dashboard-grid .view-all-button i:last-child {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.learning-hub-page .main-content .dashboard-grid .view-all-button:hover {
    color: #fff;
    background: linear-gradient(135deg, #0056c8, #0077ee);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 74, 173, 0.38);
}

.learning-hub-page .main-content .dashboard-grid .view-all-button:hover i:last-child {
    transform: translateX(3px);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .view-all-button {
    background: linear-gradient(135deg, #004aad, #2563eb);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .view-all-button:hover {
    background: linear-gradient(135deg, #0056c8, #3b82f6);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35);
}

/* ---- History & Bookmarks panel stack (matches dashboard) ---- */
.learning-hub-page.history-page .main-content,
.learning-hub-page.bookmarks-page .main-content {
    background:
        radial-gradient(circle 520px at 4% 0%, rgba(0, 104, 216, 0.1), transparent 70%),
        radial-gradient(circle 480px at 96% 8%, rgba(124, 58, 237, 0.08), transparent 70%),
        linear-gradient(180deg, #eef3fc 0%, #f8faff 100%);
}

.learning-hub-page .main-content .dashboard-grid .stats-grid {
    margin: 0;
}

.learning-hub-page .main-content .dashboard-grid .stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 18px;
    padding: 1.35rem 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.learning-hub-page .main-content .dashboard-grid .stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.14);
}

.learning-hub-page .main-content .dashboard-grid .stat-icon {
    width: 46px;
    height: 46px;
    margin-top: 0;
    border-radius: 13px;
    font-size: 1.15rem;
    color: #facc15;
    background: linear-gradient(135deg, #004aad, #0068d8);
    box-shadow: 0 8px 18px rgba(0, 74, 173, 0.28);
}

.learning-hub-page .main-content .dashboard-grid .stat-label {
    color: #5b6b85;
    font-weight: 600;
}

.learning-hub-page .main-content .dashboard-grid .stat-value {
    color: #0f2f6b;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.learning-hub-page .main-content .dashboard-grid .filter-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    gap: 1.25rem;
}

.learning-hub-page .main-content .dashboard-grid .filter-container label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e3a5f;
}

.learning-hub-page .main-content .dashboard-grid .filter-container select,
.learning-hub-page .main-content .dashboard-grid .filter-container input {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 11px;
    font-size: 0.92rem;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.learning-hub-page .main-content .dashboard-grid .filter-container select:focus,
.learning-hub-page .main-content .dashboard-grid .filter-container input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.learning-hub-page .main-content .dashboard-grid .filter-actions {
    margin-top: 0.25rem;
    gap: 0.75rem;
}

.learning-hub-page .main-content .dashboard-grid #apply-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.45rem;
    border: none;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #004aad, #0068d8);
    box-shadow: 0 10px 24px rgba(0, 74, 173, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.learning-hub-page .main-content .dashboard-grid #apply-filters:hover {
    background: linear-gradient(135deg, #0056c8, #0077ee);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 74, 173, 0.36);
}

.learning-hub-page .main-content .dashboard-grid #reset-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.45rem;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.learning-hub-page .main-content .dashboard-grid #reset-filters:hover {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.learning-hub-page .main-content .dashboard-grid .section-header--split .section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.learning-hub-page .main-content .dashboard-grid .section-header--split .pagination {
    margin: 0;
    flex-shrink: 0;
}

.learning-hub-page .main-content .dashboard-grid .section-header--split .page-button {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
}

.learning-hub-page .main-content .dashboard-grid .section-header--split .page-button:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.42);
}

.learning-hub-page .main-content .dashboard-grid .section-header--split .page-info {
    color: rgba(226, 238, 255, 0.9);
    font-weight: 600;
}

/* Non-subscriber upgrade banner: flush with the panel's blue header, no rounded top */
.learning-hub-page .main-content .dashboard-grid .section-box > .premium-lesson-banner {
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

html[data-theme='dark'] .learning-hub-page.history-page .main-content,
html[data-theme='dark'] .learning-hub-page.bookmarks-page .main-content {
    background:
        radial-gradient(circle 520px at 4% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
        radial-gradient(circle 480px at 96% 8%, rgba(124, 58, 237, 0.1), transparent 70%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .stat-card {
    background: linear-gradient(180deg, #182236 0%, #131b2b 100%);
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .stat-label {
    color: #94a3b8;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .stat-value {
    color: #dbeafe;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .filter-container label {
    color: #bfdbfe;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .filter-container select,
html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .filter-container input {
    background: #131b2b;
    border-color: rgba(96, 165, 250, 0.24);
    color: #e2e8f0;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid #reset-filters {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.28);
}

@media (max-width: 900px) {
    .learning-hub-page .main-content .dashboard-grid .section-header--split .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .learning-hub-page .main-content .dashboard-grid .section-header--split .pagination {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ---- Rank & Ratings elite styling (dashboard) ---- */
.learning-hub-page .main-content .dashboard-grid .rank-bar {
    margin-top: 0;
    margin-bottom: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.learning-hub-page .main-content .dashboard-grid .rank-bar #rank {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f2f6b;
    letter-spacing: -0.01em;
}

.learning-hub-page .main-content .dashboard-grid .rank-bar .progress-bar {
    height: 14px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.06);
}

.learning-hub-page .main-content .dashboard-grid .rank-bar #rank-progress {
    border-radius: 999px;
    background: linear-gradient(90deg, #004aad 0%, #0068d8 55%, #38bdf8 100%);
    box-shadow: 0 0 14px rgba(0, 104, 216, 0.45);
}

.learning-hub-page .main-content .dashboard-grid .rank-bar #rank-progress.quant-v {
    background: linear-gradient(90deg, #facc15, #0068d8, #38bdf8, #facc15);
    background-size: 220% 100%;
    animation: lhRankBarShift 3.5s infinite linear;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.35), 0 0 14px rgba(0, 104, 216, 0.4);
}

@keyframes lhRankBarShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

.learning-hub-page .main-content .dashboard-grid .ratings {
    gap: 1.25rem;
    margin-top: 0;
    margin-bottom: 0;
}

.learning-hub-page .main-content .dashboard-grid .rating-box {
    position: relative;
    overflow: hidden;
    gap: 1.1rem;
    padding: 1.6rem 1.25rem 1.4rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.learning-hub-page .main-content .dashboard-grid .rating-box:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 20px 46px rgba(37, 99, 235, 0.16);
}

.learning-hub-page .main-content .dashboard-grid .progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.learning-hub-page .main-content .dashboard-grid .progress-container .progress-ring {
    width: 120px;
    height: 120px;
}

.learning-hub-page .main-content .dashboard-grid .progress-ring {
    filter: drop-shadow(0 6px 14px rgba(0, 74, 173, 0.22));
}

.learning-hub-page .main-content .dashboard-grid .progress-ring__background {
    stroke: rgba(37, 99, 235, 0.12);
    stroke-width: 9;
}

.learning-hub-page .main-content .dashboard-grid .progress-ring__circle {
    stroke-width: 9;
}

.learning-hub-page .main-content .dashboard-grid .rating-value {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    transform: none;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 2.15rem;
    font-weight: 800;
    color: #0f2f6b;
    background: none;
    -webkit-text-fill-color: #0f2f6b;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.learning-hub-page .main-content .dashboard-grid .rating-info {
    margin: 0.25rem 0 0;
    gap: 0.45rem;
}

.learning-hub-page .main-content .dashboard-grid .rating-change {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
}

.learning-hub-page .main-content .dashboard-grid .rating-change.positive {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.learning-hub-page .main-content .dashboard-grid .rating-change.negative {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.learning-hub-page .main-content .dashboard-grid .rating-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
}

.learning-hub-page .main-content .dashboard-grid .rating-box form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.learning-hub-page .main-content .dashboard-grid .practice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
    padding: 0.78rem 1.35rem;
    border: none;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #004aad, #0068d8);
    box-shadow: 0 10px 24px rgba(0, 74, 173, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.learning-hub-page .main-content .dashboard-grid .practice-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    color: #facc15;
    font-size: 0.9rem;
    line-height: 1;
    flex-shrink: 0;
}

.learning-hub-page .main-content .dashboard-grid .practice-btn:hover {
    background: linear-gradient(135deg, #0056c8, #0077ee);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 74, 173, 0.38);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .rank-bar #rank {
    color: #dbeafe;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .rank-bar .progress-bar {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.2);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .rating-box {
    background: linear-gradient(180deg, #182236 0%, #131b2b 100%);
    border-color: rgba(96, 165, 250, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .rating-box:hover {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .progress-ring__background {
    stroke: rgba(96, 165, 250, 0.16);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .rating-value {
    color: #dbeafe;
    -webkit-text-fill-color: #dbeafe;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .rating-label {
    color: #bfdbfe;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .practice-btn {
    background: linear-gradient(135deg, #004aad, #2563eb);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .practice-btn:hover {
    background: linear-gradient(135deg, #0056c8, #3b82f6);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

@media (max-width: 900px) {
    .learning-hub-page .main-content .dashboard-grid .ratings {
        grid-template-columns: 1fr;
    }
}

.lh-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.lh-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.3rem;
    border-radius: 18px;
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.lh-course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 46px rgba(37, 99, 235, 0.2);
}

.lh-course-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.lh-course-card__medallion {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.lh-course-card__medallion--coding   { background: linear-gradient(135deg, #004aad, #00a0ff); }
.lh-course-card__medallion--stats    { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.lh-course-card__medallion--math     { background: linear-gradient(135deg, #4338ca, #6366f1); }
.lh-course-card__medallion--ds       { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.lh-course-card__medallion--finance  { background: linear-gradient(135deg, #059669, #10b981); }
.lh-course-card__medallion--practice { background: linear-gradient(135deg, #f59e0b, #d97706); }
.lh-course-card__medallion--lessons  { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.lh-course-card__medallion--interviews { background: linear-gradient(135deg, #db2777, #f472b6); }

.lh-course-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.24);
}

.lh-course-card__chip--soon {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(217, 119, 6, 0.4);
}

.lh-course-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f2f6b;
    letter-spacing: -0.01em;
}

.lh-course-card__desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a5568;
    flex: 1;
}

.lh-course-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1d4ed8;
}

.lh-course-card__cta i {
    transition: transform 0.2s ease;
}

.lh-course-card:hover .lh-course-card__cta i {
    transform: translateX(3px);
}

/* ------------------------------------------------------------
   5. Dark mode
   ------------------------------------------------------------ */
html[data-theme='dark'] .learning-hub-page .main-content .dashboard-header {
    background:
        radial-gradient(circle at 18% 20%, rgba(96, 165, 250, 0.2), transparent 32%),
        radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.24), transparent 34%),
        linear-gradient(135deg, #002a66 0%, #004aad 55%, #003580 100%);
    border-color: rgba(59, 130, 246, 0.35);
}

html[data-theme='dark'] .learning-hub-page .main-content .section-box {
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .section-box {
    background: linear-gradient(180deg, #131b2b 0%, #0f172a 42%);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .section-box .section-header {
    background:
        radial-gradient(circle at 12% 20%, rgba(96, 165, 250, 0.22), transparent 38%),
        radial-gradient(circle at 92% 0%, rgba(59, 130, 246, 0.2), transparent 40%),
        linear-gradient(135deg, #002a66 0%, #004aad 55%, #003580 100%);
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .section-box .section-header h2 i {
    color: #facc15;
}

html[data-theme='dark'] .learning-hub-page .main-content .dashboard-grid .section-box .section-header .section-subtitle {
    color: rgba(200, 216, 240, 0.85);
}

html[data-theme='dark'] .learning-hub-page .lh-course-card {
    background: linear-gradient(180deg, #182236 0%, #131b2b 100%);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .learning-hub-page .lh-course-card:hover {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
}

html[data-theme='dark'] .learning-hub-page .lh-course-card__title { color: #dbeafe; }
html[data-theme='dark'] .learning-hub-page .lh-course-card__desc { color: #94a3b8; }
html[data-theme='dark'] .learning-hub-page .lh-course-card__cta { color: #60a5fa; }
html[data-theme='dark'] .learning-hub-page .lh-course-card__chip { background: rgba(96, 165, 250, 0.14); border-color: rgba(96, 165, 250, 0.3); color: #93c5fd; }
html[data-theme='dark'] .learning-hub-page .main-content .section-header h2 i { color: #60a5fa; }

/* ------------------------------------------------------------
   6. Roadmap — gradient hero header + light body panel
      (desktop + mobile share the same design language)
   ------------------------------------------------------------ */
/* Roadmap panel: blue gradient header band on top, soft (non-white) body below */
.learning-hub-page .roadmap-desktop.roadmap-panel,
.learning-hub-page .roadmap-mobile.roadmap-panel {
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #e7effc 0%, #f4f8ff 360px);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

/* Drop the dark-panel grid/shine texture on the light body */
.learning-hub-page .roadmap-desktop.roadmap-panel::before,
.learning-hub-page .roadmap-mobile.roadmap-panel::before {
    display: none !important;
}

/* Dark mode — deep glass body (not the blue hero) */
html[data-theme='dark'] .learning-hub-page .roadmap-desktop.roadmap-panel,
html[data-theme='dark'] .learning-hub-page .roadmap-mobile.roadmap-panel {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   6b. Roadmap main-panel content — Method + Path + Roles
   ------------------------------------------------------------ */
/* Kill the shared shell padding so the hero band is flush to the panel edges */
.learning-hub-page .roadmap-desktop .roadmap-shell,
.learning-hub-page .roadmap-mobile .roadmap-shell {
    padding: 0;
}

.learning-hub-page .roadmap-desktop .roadmap-inner,
.learning-hub-page .roadmap-mobile .roadmap-inner {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
}

.learning-hub-page .roadmap-desktop .rm-body,
.learning-hub-page .roadmap-mobile .rm-body {
    display: flex;
    flex-direction: column;
    gap: 2.6rem;
    padding: 0 2.75rem 3rem;
}

/* Video overlaps onto the lower portion of the blue hero band */
.learning-hub-page .roadmap-desktop .roadmap-video-embed,
.learning-hub-page .roadmap-mobile .roadmap-video-embed {
    margin: -5rem auto 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Colorful splotchy glows climbing the whole body up to the blue cutoff,
   layered over a faint dot grid. Cards sit opaque on top, so the color
   reads as ambient depth in the gaps. */
.learning-hub-page .roadmap-desktop .rm-body,
.learning-hub-page .roadmap-mobile .rm-body {
    background-color: transparent;
    background-image:
        radial-gradient(rgba(37, 99, 235, 0.08) 1.1px, transparent 1.2px),
        radial-gradient(circle 460px at 6% 1%, rgba(0, 104, 216, 0.38), transparent 70%),
        radial-gradient(circle 420px at 94% 4%, rgba(124, 58, 237, 0.34), transparent 70%),
        radial-gradient(circle 380px at 82% 24%, rgba(245, 158, 11, 0.30), transparent 70%),
        radial-gradient(circle 400px at 3% 33%, rgba(13, 148, 136, 0.30), transparent 70%),
        radial-gradient(circle 460px at 22% 60%, rgba(5, 150, 105, 0.28), transparent 70%),
        radial-gradient(circle 430px at 97% 64%, rgba(99, 102, 241, 0.30), transparent 70%),
        radial-gradient(circle 380px at 52% 93%, rgba(37, 99, 235, 0.26), transparent 70%);
    background-size: 22px 22px, auto, auto, auto, auto, auto, auto, auto;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 0 -80px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
}

.rm-path {
    position: relative;
}

/* ---- Panel hero band ---- */
.rm-hero {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 2.75rem 6.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.32), transparent 32%),
        radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.34), transparent 36%),
        linear-gradient(135deg, #003f96 0%, #0068d8 55%, #00499f 100%);
}

.rm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.rm-hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -160px;
    top: -210px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    pointer-events: none;
}

.rm-hero > * { position: relative; z-index: 1; }

.rm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rm-hero__eyebrow i { color: #facc15; }

.rm-hero__title {
    margin: 0.85rem 0 0.5rem;
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.rm-hero__lead {
    margin: 0;
    max-width: 660px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(239, 246, 255, 0.9);
}

.rm-hero__stats {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.rm-hero__stat { display: flex; flex-direction: column; gap: 3px; }

.rm-hero__stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.rm-hero__stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(219, 234, 254, 0.8);
}

.rm-hero__stat-div {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
}

.rm-block {
    position: relative;
}

.rm-block__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.7rem;
}

.rm-block__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rm-block__eyebrow i { color: #f59e0b; }

.rm-block__title {
    margin: 0.85rem 0 0.5rem;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f2f6b;
}

.rm-block__lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

/* ---- Method / Path tabs ---- */
.rm-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    margin: 0 auto;
    width: fit-content;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.14);
}

.rm-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rm-tab i { font-size: 0.85rem; }

.rm-tab:hover { color: #1d4ed8; }

.rm-tab.is-active {
    background: linear-gradient(135deg, #004aad, #0068d8);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.32);
}

.rm-tabpanel { display: none; }
.rm-tabpanel.is-active { display: block; animation: rmFade 0.35s ease; }

@keyframes rmFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Method loop: Study -> Practice -> Apply ---- */
.rm-method {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.rm-method__card {
    position: relative;
    flex: 1 1 220px;
    max-width: 300px;
    padding: 1.5rem 1.4rem 1.4rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    text-align: left;
    overflow: hidden;
}

.rm-method__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
}

.rm-method--study::before    { background: linear-gradient(180deg, #2563eb, #60a5fa); }
.rm-method--practice::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.rm-method--apply::before    { background: linear-gradient(180deg, #059669, #34d399); }

.rm-method__num {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(15, 47, 107, 0.08);
}

.rm-method__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.85rem;
}

.rm-method--study .rm-method__icon    { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.rm-method--practice .rm-method__icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.rm-method--apply .rm-method__icon    { background: linear-gradient(135deg, #059669, #34d399); }

.rm-method__card h4 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2f6b;
}

.rm-method__card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4a5568;
}

.rm-method__link {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 1.1rem;
}

.rm-method__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 1.3rem auto 0;
    padding: 0.75rem 1.2rem;
    max-width: 640px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #92610a;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.rm-method__note i { color: #d97706; }

/* ---- Role selector ---- */
.rm-roles {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-bottom: 1.7rem;
}

.rm-roles__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.rm-roles__label i { color: #f59e0b; }

.rm-roles__btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.14);
}

.rm-role-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rm-role-btn:hover { color: #1d4ed8; }

.rm-role-btn.is-active {
    background: linear-gradient(135deg, #004aad, #0068d8);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 74, 173, 0.32);
}

/* ---- Discipline tracks ---- */
.rm-tracks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
}

.rm-track {
    --rm-accent: #2563eb;
    --rm-accent-soft: rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rm-track:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.rm-track--cs    { --rm-accent: #0068d8; --rm-accent-soft: rgba(0, 104, 216, 0.1); }
.rm-track--math  { --rm-accent: #6366f1; --rm-accent-soft: rgba(99, 102, 241, 0.1); }
.rm-track--stats { --rm-accent: #0d9488; --rm-accent-soft: rgba(13, 148, 136, 0.1); }
.rm-track--fin   { --rm-accent: #059669; --rm-accent-soft: rgba(5, 150, 105, 0.1); }
.rm-track--ml    { --rm-accent: #7c3aed; --rm-accent-soft: rgba(124, 58, 237, 0.1); }

.rm-track > header.rm-track__head,
.rm-track__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 0.85rem;
    padding: 1.15rem 1.3rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--rm-accent-soft);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.rm-track__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.2rem;
    color: #fff;
    background: var(--rm-accent);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.rm-track__meta { display: flex; flex-direction: column; gap: 2px; }

.rm-track__name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f2f6b;
    letter-spacing: -0.01em;
}

.rm-track__tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.rm-levels {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.rm-level {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0.8rem;
    border-radius: 13px;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.rm-level + .rm-level { border-top: 1px solid rgba(15, 23, 42, 0.05); }

.rm-level__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--rm-accent);
    background: var(--rm-accent-soft);
    border: 1px solid var(--rm-accent);
}

.rm-level__content { display: flex; flex-direction: column; gap: 6px; }

.rm-level__topics {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #334155;
}

.rm-level__goal {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rm-accent);
}

.rm-level__goal i { font-size: 0.75rem; }

.rm-level__flag {
    display: none;
    position: absolute;
    top: -8px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--rm-accent);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* Role-targeted states */
.rm-track.is-targeted .rm-level.is-beyond { opacity: 0.38; }
.rm-track.is-targeted .rm-level.is-done   { background: var(--rm-accent-soft); }

.rm-level.is-target {
    background: var(--rm-accent-soft);
    box-shadow: inset 0 0 0 1.5px var(--rm-accent);
}

.rm-level.is-target .rm-level__flag { display: inline-block; }

/* ---- Start Learning panel (grid slot beside Machine Learning) ---- */
.rm-start {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(37, 99, 235, 0.4);
    box-shadow: 0 16px 40px rgba(0, 74, 173, 0.28);
    background:
        radial-gradient(circle at 15% 10%, rgba(96, 165, 250, 0.3), transparent 42%),
        radial-gradient(circle at 90% 6%, rgba(124, 58, 237, 0.22), transparent 40%),
        linear-gradient(150deg, #003f96 0%, #0068d8 60%, #00499f 100%);
}

.rm-start > header.rm-start__head,
.rm-start__head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 1.15rem 1.3rem;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.rm-start__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.2rem;
    color: #0068d8;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.rm-start .rm-track__name { color: #fff; }
.rm-start .rm-track__tag { color: rgba(219, 234, 254, 0.85); }

.rm-start__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem;
    flex: 1;
}

.rm-start__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 13px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rm-start__item:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateX(3px);
}

.rm-start__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: #facc15;
    background: rgba(255, 255, 255, 0.12);
}

.rm-start__item-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.rm-start__item-title { font-weight: 800; font-size: 0.98rem; color: #fff; }

.rm-start__item-desc { font-size: 0.8rem; color: rgba(219, 234, 254, 0.8); }

.rm-start__arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.rm-start__item:hover .rm-start__arrow {
    color: #fff;
    transform: translateX(3px);
}

/* ---- Action buttons ---- */
.rm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.rm-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rm-cta--primary {
    color: #fff;
    background: linear-gradient(135deg, #004aad, #0068d8);
    box-shadow: 0 12px 28px rgba(0, 74, 173, 0.32);
}

.rm-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 74, 173, 0.42);
}

.rm-cta--ghost {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.22);
}

.rm-cta--ghost:hover {
    background: rgba(37, 99, 235, 0.14);
    transform: translateY(-2px);
}

/* ---- Dark mode for the roadmap content ---- */
html[data-theme='dark'] .rm-block__title,
html[data-theme='dark'] .rm-track__name,
html[data-theme='dark'] .rm-method__card h4 { color: #dbeafe; }

html[data-theme='dark'] .rm-block__lead,
html[data-theme='dark'] .rm-method__card p,
html[data-theme='dark'] .rm-level__topics { color: #94a3b8; }

html[data-theme='dark'] .rm-track__tag { color: #7c8aa5; }

html[data-theme='dark'] .rm-block__eyebrow {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.3);
    color: #93c5fd;
}

html[data-theme='dark'] .rm-method__card,
html[data-theme='dark'] .rm-track {
    background: linear-gradient(180deg, #182236 0%, #131b2b 100%);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] .rm-method__num { color: rgba(219, 234, 254, 0.08); }

html[data-theme='dark'] .rm-track__head {
    border-bottom-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] .rm-level + .rm-level,
html[data-theme='dark'] .rm-track__head {
    border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme='dark'] .rm-level__topics { color: #cbd5e1; }

html[data-theme='dark'] .rm-roles__btns {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.18);
}

html[data-theme='dark'] .rm-role-btn { color: #94a3b8; }

html[data-theme='dark'] .rm-tabs {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.18);
}

html[data-theme='dark'] .rm-tab { color: #94a3b8; }

html[data-theme='dark'] .rm-method__note {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

html[data-theme='dark'] .rm-cta--ghost {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.28);
}

html[data-theme='dark'] .rm-hero {
    background:
        radial-gradient(circle at 15% 15%, rgba(96, 165, 250, 0.22), transparent 34%),
        radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.26), transparent 36%),
        linear-gradient(135deg, #002a66 0%, #004aad 55%, #003580 100%);
    border-bottom: 1px solid rgba(96, 165, 250, 0.22);
}

html[data-theme='dark'] .learning-hub-page .roadmap-desktop .rm-body,
html[data-theme='dark'] .learning-hub-page .roadmap-mobile .rm-body {
    background-image:
        radial-gradient(rgba(96, 165, 250, 0.09) 1.1px, transparent 1.2px),
        radial-gradient(circle 460px at 6% 1%, rgba(0, 104, 216, 0.34), transparent 70%),
        radial-gradient(circle 420px at 94% 4%, rgba(124, 58, 237, 0.30), transparent 70%),
        radial-gradient(circle 380px at 82% 24%, rgba(245, 158, 11, 0.20), transparent 70%),
        radial-gradient(circle 400px at 3% 33%, rgba(13, 148, 136, 0.24), transparent 70%),
        radial-gradient(circle 460px at 22% 60%, rgba(5, 150, 105, 0.22), transparent 70%),
        radial-gradient(circle 430px at 97% 64%, rgba(99, 102, 241, 0.26), transparent 70%),
        radial-gradient(circle 380px at 52% 93%, rgba(59, 130, 246, 0.22), transparent 70%);
}

/* ------------------------------------------------------------
   6c. Roadmap mobile — same language, touch-first composition
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .learning-hub-page .roadmap-mobile.roadmap-panel {
        border-radius: 18px;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
        margin-bottom: 1.25rem;
        /* visible so the sticky role strip can pin under the nav */
        overflow: visible;
    }

    .learning-hub-page .roadmap-mobile .rm-hero {
        padding: 1.55rem 1.2rem 4.4rem;
        border-radius: 18px 18px 0 0;
        overflow: hidden;
    }

    .learning-hub-page .roadmap-mobile .rm-hero::after {
        width: 280px;
        height: 280px;
        right: -120px;
        top: -150px;
    }

    .learning-hub-page .roadmap-mobile .rm-hero__eyebrow {
        font-size: 10px;
        padding: 5px 12px;
    }

    .learning-hub-page .roadmap-mobile .rm-hero__title {
        margin-top: 0.7rem;
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .learning-hub-page .roadmap-mobile .rm-hero__lead {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .learning-hub-page .roadmap-mobile .rm-hero__stats {
        gap: 1.1rem;
        margin-top: 1.15rem;
    }

    .learning-hub-page .roadmap-mobile .rm-hero__stat-num {
        font-size: 1.45rem;
    }

    .learning-hub-page .roadmap-mobile .rm-hero__stat-label {
        font-size: 0.65rem;
    }

    .learning-hub-page .roadmap-mobile .rm-hero__stat-div {
        height: 28px;
    }

    .learning-hub-page .roadmap-mobile .rm-body {
        gap: 1.7rem;
        padding: 0 1rem 1.85rem;
        background-position: 0 -40px, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
        background-image:
            radial-gradient(rgba(37, 99, 235, 0.09) 1.1px, transparent 1.2px),
            radial-gradient(circle 280px at 8% 0%, rgba(0, 104, 216, 0.36), transparent 70%),
            radial-gradient(circle 240px at 96% 8%, rgba(124, 58, 237, 0.28), transparent 70%),
            radial-gradient(circle 220px at 88% 38%, rgba(245, 158, 11, 0.24), transparent 70%),
            radial-gradient(circle 240px at 4% 52%, rgba(13, 148, 136, 0.26), transparent 70%),
            radial-gradient(circle 260px at 50% 88%, rgba(37, 99, 235, 0.22), transparent 70%);
        background-size: 18px 18px, auto, auto, auto, auto, auto;
        background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    }

    .learning-hub-page .roadmap-mobile .roadmap-video-embed {
        margin: -3.4rem auto 0;
        max-width: none;
    }

    .learning-hub-page .roadmap-mobile .roadmap-video-embed .video-wrapper {
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid rgba(37, 99, 235, 0.18);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
    }

    .learning-hub-page .roadmap-mobile .rm-block__head {
        margin-bottom: 1.15rem;
        text-align: left;
        max-width: none;
    }

    .learning-hub-page .roadmap-mobile .rm-block__eyebrow {
        font-size: 10px;
        padding: 5px 12px;
    }

    .learning-hub-page .roadmap-mobile .rm-block__title {
        margin: 0.7rem 0 0.4rem;
        font-size: 1.28rem;
        line-height: 1.25;
    }

    .learning-hub-page .roadmap-mobile .rm-block__lead {
        font-size: 0.9rem;
    }

    /* Sticky role strip — stays usable while scrolling tracks */
    .learning-hub-page .roadmap-mobile .rm-roles {
        position: sticky;
        top: 80px;
        z-index: 8;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        margin: 0 -1rem 1.15rem;
        padding: 0.7rem 1rem;
        background: rgba(244, 248, 255, 0.92);
        border-top: 1px solid rgba(37, 99, 235, 0.1);
        border-bottom: 1px solid rgba(37, 99, 235, 0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .learning-hub-page .roadmap-mobile .rm-roles__label {
        font-size: 0.72rem;
    }

    .learning-hub-page .roadmap-mobile .rm-roles__btns {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        max-width: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding: 5px;
        scroll-snap-type: x proximity;
    }

    .learning-hub-page .roadmap-mobile .rm-roles__btns::-webkit-scrollbar {
        display: none;
    }

    .learning-hub-page .roadmap-mobile .rm-role-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 9px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .learning-hub-page .roadmap-mobile .rm-tracks {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        grid-template-columns: none;
    }

    .learning-hub-page .roadmap-mobile .rm-track,
    .learning-hub-page .roadmap-mobile .rm-start {
        border-radius: 16px;
        animation: rmMobileRise 0.45s ease both;
    }

    .learning-hub-page .roadmap-mobile .rm-track:nth-child(1) { animation-delay: 0.04s; }
    .learning-hub-page .roadmap-mobile .rm-track:nth-child(2) { animation-delay: 0.08s; }
    .learning-hub-page .roadmap-mobile .rm-track:nth-child(3) { animation-delay: 0.12s; }
    .learning-hub-page .roadmap-mobile .rm-track:nth-child(4) { animation-delay: 0.16s; }
    .learning-hub-page .roadmap-mobile .rm-track:nth-child(5) { animation-delay: 0.2s; }
    .learning-hub-page .roadmap-mobile .rm-start { animation-delay: 0.24s; }

    .learning-hub-page .roadmap-mobile .rm-track:hover,
    .learning-hub-page .roadmap-mobile .rm-start:hover {
        transform: none;
    }

    .learning-hub-page .roadmap-mobile .rm-track:active {
        transform: scale(0.995);
    }

    .learning-hub-page .roadmap-mobile .rm-track__head,
    .learning-hub-page .roadmap-mobile .rm-start__head {
        padding: 1rem 1.05rem;
        gap: 0.75rem;
    }

    .learning-hub-page .roadmap-mobile .rm-track__icon,
    .learning-hub-page .roadmap-mobile .rm-start__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .learning-hub-page .roadmap-mobile .rm-track__name {
        font-size: 1rem;
    }

    .learning-hub-page .roadmap-mobile .rm-track__tag {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .learning-hub-page .roadmap-mobile .rm-levels {
        padding: 0.35rem;
        gap: 0.15rem;
    }

    .learning-hub-page .roadmap-mobile .rm-level {
        gap: 0.7rem;
        padding: 0.8rem 0.7rem;
        border-radius: 12px;
    }

    .learning-hub-page .roadmap-mobile .rm-level__badge {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .learning-hub-page .roadmap-mobile .rm-level__topics {
        font-size: 0.82rem;
        line-height: 1.48;
    }

    .learning-hub-page .roadmap-mobile .rm-level__goal {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .learning-hub-page .roadmap-mobile .rm-level__flag {
        top: -7px;
        right: 8px;
        padding: 2px 8px;
        font-size: 0.6rem;
    }

    .learning-hub-page .roadmap-mobile .rm-start__list {
        gap: 0.45rem;
        padding: 0.7rem;
    }

    .learning-hub-page .roadmap-mobile .rm-start__item {
        gap: 0.75rem;
        padding: 0.85rem 0.85rem;
        border-radius: 12px;
        min-height: 56px;
    }

    .learning-hub-page .roadmap-mobile .rm-start__item:hover {
        transform: none;
    }

    .learning-hub-page .roadmap-mobile .rm-start__item:active {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.36);
    }

    .learning-hub-page .roadmap-mobile .rm-start__item-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .learning-hub-page .roadmap-mobile .rm-start__item-title {
        font-size: 0.95rem;
    }

    .learning-hub-page .roadmap-mobile .rm-start__item-desc {
        font-size: 0.76rem;
    }

    html[data-theme='dark'] .learning-hub-page .roadmap-mobile .rm-roles {
        background: rgba(15, 23, 42, 0.92);
        border-top-color: rgba(96, 165, 250, 0.14);
        border-bottom-color: rgba(96, 165, 250, 0.18);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    }

    html[data-theme='dark'] .learning-hub-page .roadmap-mobile .roadmap-video-embed .video-wrapper {
        border-color: rgba(96, 165, 250, 0.22);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
    }

    html[data-theme='dark'] .learning-hub-page .roadmap-mobile .rm-body {
        background-image:
            radial-gradient(rgba(96, 165, 250, 0.1) 1.1px, transparent 1.2px),
            radial-gradient(circle 280px at 8% 0%, rgba(0, 104, 216, 0.3), transparent 70%),
            radial-gradient(circle 240px at 96% 8%, rgba(124, 58, 237, 0.24), transparent 70%),
            radial-gradient(circle 220px at 88% 38%, rgba(245, 158, 11, 0.16), transparent 70%),
            radial-gradient(circle 240px at 4% 52%, rgba(13, 148, 136, 0.2), transparent 70%),
            radial-gradient(circle 260px at 50% 88%, rgba(59, 130, 246, 0.2), transparent 70%);
    }
}

@keyframes rmMobileRise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   7. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1100px) {
    .rm-tracks {
        grid-template-columns: 1fr;
    }

    .rm-method__link { display: none; }
    .rm-method__card { flex: 1 1 240px; }
}

@media (max-width: 900px) {
    .learning-hub-page .main-content .dashboard-header {
        padding: 1.9rem 1.6rem 1.7rem;
    }

    .rm-method__link { display: none; }
    .rm-method__card { flex-basis: 100%; max-width: none; }
    .rm-block__title { font-size: 1.45rem; }
    .rm-roles { flex-direction: column; }

    .rm-hero { padding: 1.9rem 1.6rem 5rem; }
    .rm-hero__title { font-size: 1.55rem; }
    .learning-hub-page .roadmap-desktop .rm-body { padding: 0 1.6rem 2.2rem; }
    .learning-hub-page .roadmap-desktop .roadmap-video-embed { margin-top: -4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .learning-hub-page .lh-course-card,
    .rm-track,
    .rm-cta {
        transition: none;
    }

    .rm-tabpanel.is-active { animation: none; }

    .learning-hub-page .roadmap-mobile .rm-track,
    .learning-hub-page .roadmap-mobile .rm-start {
        animation: none;
    }
}
