.ai-module-shell .course-detail-block {
    margin-bottom: 24px;
}

.ai-module-nav {
    display: grid;
    gap: 12px;
}

.ai-module-nav a,
.ai-related-modules a {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    color: inherit;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 0;
    text-decoration: none;
}

.ai-related-modules a {
    justify-content: flex-start;
}

.ai-search-form {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 24px;
}

.ai-search-results {
    display: grid;
    gap: 14px;
}

.ai-search-result {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    color: inherit;
    display: block;
    padding: 18px;
    text-decoration: none;
}

.ai-search-result span {
    color: #7a4dff;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ai-search-result h2 {
    font-size: 20px;
    margin: 0 0 6px;
}

.ai-search-result p,
.ai-search-result small {
    display: block;
    margin: 0;
}

.ai-search-result small {
    color: #5f6470;
    margin-top: 8px;
}

.module-toolbar {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 14px;
}

.module-list a {
    color: inherit;
    text-decoration: none;
}

.module-empty-message {
    color: #5f6470;
    padding: 12px 0;
}

@media (max-width: 575px) {
    .ai-search-form,
    .module-toolbar {
        grid-template-columns: 1fr;
    }
}

body.ai-catalogue-page .course-panel {
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.ai-catalogue-page .course-panel:hover {
    border-color: rgba(0, 75, 255, .22);
    box-shadow: 0 24px 54px rgba(20, 25, 50, .12);
    transform: translateY(-3px);
}

body.ai-catalogue-page .course-body {
    min-height: 100%;
}

body.ai-catalogue-page .course-body h2 {
    color: #14213d;
    line-height: 1.25;
}

.provided-module-grid {
    display: grid;
    gap: 14px;
}

.provided-module-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #edf0f6;
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.provided-module-card:hover {
    border-color: rgba(0, 75, 255, .22);
    box-shadow: 0 18px 38px rgba(20, 25, 50, .1);
    color: inherit;
    transform: translateY(-2px);
}

.provided-module-number,
.provided-module-arrow {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.provided-module-number {
    background: rgba(0, 75, 255, .08);
    border: 1px solid rgba(0, 75, 255, .12);
    border-radius: 8px;
    color: #004bff;
    font-size: 14px;
    font-weight: 800;
    height: 42px;
    width: 42px;
}

.provided-module-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.provided-module-copy strong {
    color: #14213d;
    font-size: 18px;
    line-height: 1.3;
}

.provided-module-copy small {
    color: #5f6470;
    line-height: 1.6;
}

.provided-module-arrow {
    color: #ff8a1f;
    height: 42px;
    width: 28px;
}

.ai-course-module-page .support-card a {
    align-items: flex-start;
    border: 1px solid #edf0f6;
    border-radius: 8px;
    color: inherit;
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    text-decoration: none;
}

.ai-course-module-page .support-card a:hover {
    border-color: rgba(0, 75, 255, .2);
    color: #004bff;
}

@media (max-width: 575px) {
    .provided-module-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .provided-module-arrow {
        display: none;
    }
}

.provided-course-card {
    height: 100%;
}

.provided-course-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.provided-course-card-head,
.provided-course-card-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.provided-course-icon,
.provided-course-card-link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.provided-course-icon {
    background: linear-gradient(135deg, rgba(0, 75, 255, .12), rgba(255, 138, 31, .16));
    border: 1px solid rgba(0, 75, 255, .12);
    border-radius: 8px;
    color: #004bff;
    height: 48px;
    width: 48px;
}

.provided-course-card h2 {
    margin: 0;
}

.provided-course-card h2 a {
    color: inherit;
    text-decoration: none;
}

.provided-course-card p {
    color: #5f6470;
    flex: 1;
    line-height: 1.7;
    margin: 0;
}

.provided-course-card-footer {
    border-top: 1px solid #edf0f6;
    margin-top: auto;
    padding-top: 16px;
}

.provided-course-card-footer span {
    color: #47536b;
    font-weight: 700;
}

.provided-course-card-footer i {
    color: #ff8a1f;
}

.provided-course-card-link {
    background: #004bff;
    border-radius: 8px;
    color: #fff;
    height: 42px;
    text-decoration: none;
    width: 42px;
}

.provided-course-card-link i,
.provided-course-card-link:hover i {
    color: inherit;
}

.provided-course-card-link:hover {
    background: #ff8a1f;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Neutralize .course-level so it never floats to header
   -------------------------------------------------------------------------- */
.course-level,
body.ai-catalogue-page .course-level,
.provided-course-card .course-level {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: none !important;
}

/* ==========================================================================
   Modern Professional Provided Courses Catalogue Page
   ========================================================================== */

/* ── Hero Section ────────────────────────────────────────────────────────── */
.courses-hero-section {
    position: relative;
    background: linear-gradient(135deg, #070913 0%, #0d1224 45%, #141c38 100%);
    color: #ffffff;
    padding: 48px 0 54px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.courses-hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.25) 0%, rgba(30, 64, 175, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.courses-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.courses-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.courses-breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 22px;
}

.courses-breadcrumb-wrap a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.18s ease;
}

.courses-breadcrumb-wrap a:hover {
    color: #60a5fa;
}

.courses-breadcrumb-wrap i {
    font-size: 11px;
    opacity: 0.6;
}

.courses-breadcrumb-wrap span {
    color: #f1f5f9;
    font-weight: 600;
}

.courses-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    color: #fbbf24;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.courses-hero-title {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 16px;
    max-width: 860px;
}

.courses-hero-title .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.courses-hero-desc {
    font-size: 17px;
    line-height: 1.68;
    color: #94a3b8;
    max-width: 760px;
    margin-bottom: 34px;
}

/* ── Hero Stats Ribbon ───────────────────────────────────────────────────── */
.courses-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 10px;
    max-width: 1060px;
}

.courses-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.courses-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(255, 255, 255, 0.07);
}

.courses-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.courses-stat-icon.stat-tracks {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}

.courses-stat-icon.stat-modules {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
}

.courses-stat-icon.stat-projects {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.courses-stat-icon.stat-cert {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.courses-stat-number {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.courses-stat-label {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 500;
}

/* ── Main Catalogue Body ─────────────────────────────────────────────────── */
.courses-catalogue-main {
    padding: 48px 0 80px;
    background-color: #f8fafc;
}

.courses-catalogue-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Filter Toolbar ──────────────────────────────────────────────────────── */
.courses-toolbar-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 36px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.courses-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.courses-count-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.courses-count-number {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.courses-count-label {
    font-size: 14px;
    color: #64748b;
}

.courses-search-container {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.courses-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.courses-search-input {
    width: 100%;
    padding: 11px 40px 11px 42px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}

.courses-search-input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.courses-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    display: none;
    padding: 4px;
}

.courses-search-clear:hover {
    color: #0f172a;
}

/* Category Filter Pills */
.courses-category-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.category-pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-pill:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #cbd5e1;
}

.category-pill.active {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

/* ── Modern Course Cards Grid ────────────────────────────────────────────── */
.courses-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.nex-course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.nex-course-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 64, 175, 0.35);
    box-shadow: 0 20px 32px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(30, 64, 175, 0.08);
}

.nex-course-card-body {
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Top Meta Row inside Card */
.nex-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.nex-course-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Gradients for Course Domain Icons */
.gradient-ai {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
}

.gradient-genai {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
}

.gradient-ml {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
}

.gradient-data {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    color: #ffffff;
}

.gradient-tools {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
}

.gradient-prompt {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
}

.gradient-media {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: #ffffff;
}

.gradient-marketing {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
    color: #ffffff;
}

.gradient-career {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: #ffffff;
}

.gradient-dl {
    background: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
    color: #ffffff;
}

.gradient-llm {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
    color: #ffffff;
}

.gradient-agent {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
}

.nex-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #1e40af;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Card Content */
.nex-course-title {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.32;
    margin-bottom: 12px;
}

.nex-course-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.18s ease;
}

.nex-course-card:hover .nex-course-title a,
.nex-course-title a:hover {
    color: #1e40af;
}

.nex-course-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Key Highlight Pills inside Card */
.nex-course-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.nex-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 4px 9px;
    border-radius: 6px;
}

.nex-highlight-pill i {
    color: #3b82f6;
    font-size: 10.5px;
}

/* Card Footer */
.nex-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.nex-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
}

.nex-module-badge i {
    color: #1e40af;
    font-size: 14px;
}

.nex-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nex-explore-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nex-explore-btn:hover {
    background: #1e40af;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.22);
}

.nex-explore-btn:hover i {
    transform: translateX(4px);
}

/* Empty State when Search has no results */
.courses-empty-state {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 60px 24px;
    text-align: center;
    display: none;
}

.courses-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #eff6ff;
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.courses-empty-state h3 {
    font-size: 20px;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 8px;
}

.courses-empty-state p {
    font-size: 14.5px;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto 20px;
}

.courses-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background: #1e40af;
    color: #ffffff;
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.courses-reset-btn:hover {
    background: #1d4ed8;
}

/* ── Why Learn at AI NEXO Section ────────────────────────────────────────── */
.courses-why-section {
    padding: 70px 0;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
}

.courses-why-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.courses-why-eyebrow {
    font-size: 12.5px;
    font-weight: 750;
    color: #1e40af;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.courses-why-title {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.courses-why-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

.courses-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.why-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 64, 175, 0.25);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

.why-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.why-feature-card h4 {
    font-size: 18px;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 10px;
}

.why-feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── Consultation Banner ─────────────────────────────────────────────────── */
.courses-cta-banner {
    margin-top: 48px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 44px 48px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
}

.courses-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.courses-cta-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.courses-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 750;
    color: #38bdf8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.courses-cta-content h3 {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.25;
}

.courses-cta-content p {
    font-size: 15.5px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.courses-cta-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.cta-counsel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.cta-counsel-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
}

.cta-phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cta-phone-link:hover {
    color: #ffffff;
}

.cta-phone-link i {
    color: #38bdf8;
}

/* ── Responsive Adaptations ──────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .courses-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

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

@media (max-width: 991.98px) {
    .courses-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 30px;
    }

    .courses-cta-actions {
        width: 100%;
    }

    .cta-counsel-btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .courses-hero-section {
        padding: 36px 0 44px;
    }

    .courses-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .courses-grid-layout {
        grid-template-columns: 1fr;
    }

    .courses-why-grid {
        grid-template-columns: 1fr;
    }

    .courses-toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }

    .courses-search-container {
        max-width: 100%;
    }

    .courses-category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .category-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ==========================================================================
   Modern Course Show Page (Specialization Overview & Modules Directory)
   ========================================================================== */

/* ── Hero for Course Show Page ───────────────────────────────────────────── */
.course-detail-hero {
    position: relative;
    background: linear-gradient(135deg, #070913 0%, #0d1224 45%, #141c38 100%);
    color: #ffffff;
    padding: 44px 0 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.course-detail-hero::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.28) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.course-detail-hero::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.16) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.course-detail-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.course-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    color: #fbbf24;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.course-detail-title {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: clamp(32px, 3.8vw, 50px);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 16px;
    max-width: 900px;
}

.course-detail-title .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-detail-desc {
    font-size: 16.5px;
    line-height: 1.68;
    color: #94a3b8;
    max-width: 820px;
    margin-bottom: 24px;
}

.course-detail-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.course-detail-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}

.course-detail-tag-item i {
    color: #38bdf8;
    font-size: 11px;
}

.course-detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-hero-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}

.btn-hero-explore:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
}

.btn-hero-counsel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-hero-counsel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* ── Main Content Layout for Course Show Page ────────────────────────────── */
.course-detail-main {
    padding: 48px 0 80px;
    background-color: #f8fafc;
}

.course-detail-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: flex-start;
}

/* ── Content Blocks ──────────────────────────────────────────────────────── */
.detail-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}

.detail-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.detail-card-title {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.detail-card-body {
    font-size: 15.5px;
    line-height: 1.8;
    color: #475569;
}

.detail-card-body p {
    margin-bottom: 16px;
}

.detail-card-body p:last-child {
    margin-bottom: 0;
}

/* Outcomes 4-Pillar Grid inside Course Show */
.course-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.outcome-pillar-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.2s ease;
}

.outcome-pillar-box:hover {
    background: #ffffff;
    border-color: rgba(30, 64, 175, 0.2);
    box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.06);
}

.outcome-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.outcome-pillar-box h4 {
    font-size: 16px;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 6px;
}

.outcome-pillar-box p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

/* ── Modules Section in Course Show ──────────────────────────────────────── */
.modules-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}

.modules-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.modules-section-header h2 {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.modules-section-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.modules-search-wrap {
    position: relative;
    width: 100%;
    max-width: 280px;
}

.modules-search-wrap input {
    width: 100%;
    padding: 9px 16px 9px 36px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 13.5px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.modules-search-wrap input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.modules-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}

/* Module Cards Grid inside Course Show */
.show-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.show-module-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 14px;
}

.show-module-item-card:hover {
    border-color: rgba(30, 64, 175, 0.35);
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -4px rgba(30, 64, 175, 0.08);
}

.show-module-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.show-module-number {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.show-module-item-card:hover .show-module-number {
    background: #1e40af;
    color: #ffffff;
}

.show-module-title {
    font-size: 15px;
    font-weight: 750;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.show-module-item-card:hover .show-module-title {
    color: #1e40af;
}

.show-module-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.show-module-item-card:hover .show-module-arrow {
    background: #1e40af;
    color: #ffffff;
    transform: translateX(3px);
}

/* ── Sidebar Styles for Course Show Page ─────────────────────────────────── */
.course-sidebar-sticky {
    position: sticky;
    top: 90px;
}

.sidebar-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.sidebar-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sidebar-summary-card h3 {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.sidebar-specs-list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
}

.sidebar-spec-item i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-spec-item strong {
    color: #0f172a;
    margin-right: 4px;
}

.sidebar-spec-item span {
    color: #64748b;
}

.btn-sidebar-enroll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    margin-bottom: 14px;
}

.btn-sidebar-enroll:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.4);
}

.sidebar-direct-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.sidebar-direct-phone:hover {
    color: #1e40af;
}

.sidebar-direct-phone i {
    color: #2563eb;
}

/* Related Tracks Widget in Sidebar */
.sidebar-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.sidebar-related-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-related-list {
    display: grid;
    gap: 10px;
}

.sidebar-related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: all 0.18s ease;
}

.sidebar-related-link:hover {
    background: #eff6ff;
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.2);
    transform: translateX(3px);
}

.sidebar-related-link i {
    font-size: 11px;
    color: #94a3b8;
}

.sidebar-related-link:hover i {
    color: #1e40af;
}

/* ==========================================================================
   Modern Module Detail Page (/course-provided/:course/:module)
   ========================================================================== */

.module-page-main {
    padding: 40px 0 80px;
    background-color: #f8fafc;
}

.module-page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.module-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: flex-start;
}

/* ── Hero for Module Page ────────────────────────────────────────────────── */
.module-detail-hero {
    position: relative;
    background: linear-gradient(135deg, #070913 0%, #0d1224 45%, #141c38 100%);
    color: #ffffff;
    padding: 40px 0 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.module-detail-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.24) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.module-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.module-hero-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.module-number-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.module-parent-track-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

.module-parent-track-pill:hover {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

.module-hero-title {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 14px;
    max-width: 860px;
}

.module-hero-desc {
    font-size: 16px;
    line-height: 1.65;
    color: #94a3b8;
    max-width: 780px;
    margin: 0;
}

/* ── Module Content Cards ────────────────────────────────────────────────── */
.module-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.module-content-card .detail-card-head {
    margin-bottom: 18px;
}

/* Important Points Checklist */
.concept-checklist {
    display: grid;
    gap: 12px;
}

.concept-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
}

.concept-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eff6ff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Callout Highlight Cards */
.module-callout-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 18px;
}

.module-callout-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.module-callout-content h4 {
    font-size: 17px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.module-callout-content p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

/* ── Module FAQs Accordion ───────────────────────────────────────────────── */
.module-faq-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}

.module-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.module-faq-header h3 {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.faq-search-box {
    position: relative;
    width: 100%;
    max-width: 260px;
}

.faq-search-box input {
    width: 100%;
    padding: 8px 14px 8px 34px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: all 0.18s ease;
}

.faq-search-box input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.faq-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}

.enhanced-faq-list {
    display: grid;
    gap: 12px;
}

.enhanced-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enhanced-faq-item:hover {
    border-color: #cbd5e1;
}

.enhanced-faq-item.is-open {
    border-color: #3b82f6;
    box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.12);
}

.enhanced-faq-btn {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.18s ease;
}

.enhanced-faq-btn:hover {
    color: #1e40af;
}

.enhanced-faq-chevron {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: transform 0.24s ease, background 0.2s ease, color 0.2s ease;
}

.enhanced-faq-item.is-open .enhanced-faq-chevron {
    transform: rotate(180deg);
    background: #eff6ff;
    color: #1e40af;
}

.enhanced-faq-body {
    padding: 0 20px 18px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #475569;
}

/* ── Bottom Prev/Next Module Navigation ──────────────────────────────────── */
.module-bottom-nav-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.nav-direction-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 48%;
}

.nav-direction-link:hover {
    background: #eff6ff;
    border-color: rgba(30, 64, 175, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(30, 64, 175, 0.08);
}

.nav-direction-link.nav-next {
    justify-content: flex-end;
    text-align: right;
    margin-left: auto;
}

.nav-dir-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.nav-direction-link:hover .nav-dir-icon {
    background: #1e40af;
    color: #ffffff;
    border-color: #1e40af;
}

.nav-dir-meta small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.nav-dir-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 750;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.nav-direction-link:hover .nav-dir-meta strong {
    color: #1e40af;
}

/* ── Sidebar: All Modules Navigation Widget ──────────────────────────────── */
.sidebar-modules-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.sidebar-modules-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-modules-head h3 {
    font-family: var(--nex-font-heading, 'Outfit', sans-serif);
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sidebar-modules-count {
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    padding: 3px 9px;
    border-radius: 999px;
}

.sidebar-modules-scroll {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
    display: grid;
    gap: 8px;
}

.sidebar-modules-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-modules-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.sidebar-module-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    transition: all 0.18s ease;
}

.sidebar-module-nav-item:hover {
    background: #eff6ff;
    border-color: rgba(30, 64, 175, 0.25);
    color: #1e40af;
}

.sidebar-module-nav-item.is-active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.sidebar-module-nav-num {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #ffffff;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.sidebar-module-nav-item.is-active .sidebar-module-nav-num {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.sidebar-module-nav-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* ── Sidebar: Purchase Programs with Premium Fallbacks ───────────────────── */
.sidebar-programs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.sidebar-programs-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-programs-list {
    display: grid;
    gap: 14px;
}

.sidebar-program-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sidebar-program-item:hover {
    border-color: rgba(30, 64, 175, 0.3);
    box-shadow: 0 8px 18px -2px rgba(30, 64, 175, 0.08);
}

.sidebar-program-thumb-wrap {
    height: 110px;
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-program-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-program-fallback-icon {
    font-size: 34px;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-program-info {
    padding: 14px;
}

.sidebar-program-info h4 {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    margin-bottom: 8px;
}

.sidebar-program-info h4 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.18s ease;
}

.sidebar-program-info h4 a:hover {
    color: #1e40af;
}

.sidebar-program-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.sidebar-program-meta i {
    font-size: 11px;
    color: #94a3b8;
}

.sidebar-program-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.sidebar-program-price {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.sidebar-program-btn {
    padding: 6px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af !important;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: all 0.18s ease;
}

.sidebar-program-btn:hover {
    background: #1e40af;
    color: #ffffff !important;
}

/* ── Responsive Rules for Course Show and Module Pages ───────────────────── */
@media (max-width: 1199.98px) {
    .course-detail-grid,
    .module-page-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 24px;
    }

    .show-modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .course-detail-grid,
    .module-page-grid {
        grid-template-columns: 1fr;
    }

    .course-sidebar-sticky {
        position: static;
    }

    .course-outcomes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .course-detail-hero,
    .module-detail-hero {
        padding: 32px 0 40px;
    }

    .detail-content-card,
    .modules-section-card,
    .module-content-card,
    .module-faq-wrap {
        padding: 22px 18px;
    }

    .module-bottom-nav-card {
        flex-direction: column;
        gap: 12px;
    }

    .nav-direction-link {
        max-width: 100%;
        width: 100%;
    }

    .nav-direction-link.nav-next {
        margin-left: 0;
    }

    .modules-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .modules-search-wrap {
        max-width: 100%;
    }

    .module-callout-card {
        flex-direction: column;
    }
}

