/* =============================================================================
   COURSES & MASTERCLASSES — The Civilisational Thinker
   Harmonized with home.php, about.php, articles.php, and books.php
   ============================================================================= */

/* ── Base Page Styling ─────────────────────────────────────────────────────── */
.courses-page {
    background-color: var(--paper, #fbf8f0);
    color: var(--ink, #141719);
    font-family: var(--sans, "Manrope", Inter, sans-serif);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.courses-hero {
    position: relative;
    background: linear-gradient(145deg, #0d1620 0%, #101d29 55%, #182838 100%);
    color: #fbf8f0;
    padding: clamp(90px, 12vh, 130px) 0 clamp(60px, 8vh, 90px);
    border-bottom: 1px solid rgba(189, 139, 67, 0.28);
    overflow: hidden;
    isolation: isolate;
}

.courses-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(189, 139, 67, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(112, 37, 43, 0.18) 0%, transparent 55%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 6px);
    pointer-events: none;
    z-index: -1;
}

.courses-hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.courses-hero-content {
    max-width: 720px;
}

.courses-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-light, #d8b675);
    font: 600 11px/1.4 var(--sans, "Manrope", sans-serif);
    letter-spacing: .24em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.courses-hero-title {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: clamp(2.4rem, 4.4vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fbf8f0;
    margin-bottom: 18px;
}

.courses-hero-title em {
    font-style: italic;
    color: var(--gold-light, #d8b675);
}

.courses-hero-description {
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.75;
    color: rgba(251, 248, 240, 0.85);
    margin-bottom: 30px;
}

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

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: var(--gold, #bd8b43);
    color: #101d29;
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(189, 139, 67, 0.28);
}

.btn-hero-primary:hover {
    background: var(--gold-light, #d8b675);
    color: #101d29;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(189, 139, 67, 0.4);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: transparent;
    color: #fbf8f0;
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(189, 139, 67, 0.45);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-hero-outline:hover {
    border-color: var(--gold-light, #d8b675);
    background: rgba(189, 139, 67, 0.12);
    color: #fbf8f0;
    transform: translateY(-2px);
}

/* Hero Stats Aside Card */
.courses-hero-card {
    background: linear-gradient(160deg, rgba(25, 42, 56, 0.85) 0%, rgba(16, 29, 41, 0.95) 100%);
    border: 1px solid rgba(189, 139, 67, 0.35);
    border-radius: 8px;
    padding: clamp(24px, 3vw, 36px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.courses-hero-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light, #d8b675);
    font: 600 10px/1.3 var(--sans, "Manrope", sans-serif);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.courses-hero-card-title {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: 1.5rem;
    line-height: 1.3;
    color: #fbf8f0;
    margin-bottom: 12px;
}

.courses-hero-card-body {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(251, 248, 240, 0.78);
    margin-bottom: 22px;
}

.courses-hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(189, 139, 67, 0.25);
}

.stat-tile {
    display: flex;
    flex-direction: column;
}

.stat-tile-num {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--gold-light, #d8b675);
    line-height: 1;
}

.stat-tile-label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(251, 248, 240, 0.65);
    margin-top: 4px;
}

/* ── Section Header Styling ────────────────────────────────────────────────── */
.section-masthead {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-masthead .eyebrow {
    margin-bottom: 12px;
}

.section-masthead-title {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 400;
    line-height: 1.22;
    color: var(--navy, #101d29);
    margin-bottom: 14px;
}

[data-theme="dark"] .section-masthead-title {
    color: #fbf8f0;
}

.section-masthead-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted, #6d6a63);
}

[data-theme="dark"] .section-masthead-description {
    color: #a3a098;
}

/* ── Two Paths Section ─────────────────────────────────────────────────────── */
.learning-paths-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--paper, #fbf8f0);
    border-bottom: 1px solid var(--line, rgba(20,23,25,0.12));
}

[data-theme="dark"] .learning-paths-section {
    background: var(--paper, #101d29);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.learning-paths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3.5vw, 42px);
}

.learning-path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(32px, 4vw, 46px);
    background: #ffffff;
    border: 1px solid rgba(189, 139, 67, 0.28);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(16, 29, 41, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

[data-theme="dark"] .learning-path-card {
    background: #15222e;
    border-color: rgba(189, 139, 67, 0.24);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.learning-path-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold, #bd8b43);
    box-shadow: 0 20px 48px rgba(16, 29, 41, 0.12);
}

.learning-path-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 1.45rem;
    transition: transform 0.25s ease;
}

.learning-path-card.live .learning-path-icon-wrapper {
    background: rgba(112, 37, 43, 0.1);
    color: var(--maroon, #70252b);
    border: 1px solid rgba(112, 37, 43, 0.25);
}

[data-theme="dark"] .learning-path-card.live .learning-path-icon-wrapper {
    background: rgba(189, 139, 67, 0.15);
    color: var(--gold-light, #d8b675);
    border-color: rgba(189, 139, 67, 0.35);
}

.learning-path-card.self-paced .learning-path-icon-wrapper {
    background: rgba(189, 139, 67, 0.12);
    color: var(--gold, #bd8b43);
    border: 1px solid rgba(189, 139, 67, 0.3);
}

.learning-path-card:hover .learning-path-icon-wrapper {
    transform: scale(1.08);
}

.learning-path-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 700 10px/1.3 var(--sans, "Manrope", sans-serif);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.learning-path-card.live .learning-path-kicker {
    color: var(--maroon, #70252b);
}

[data-theme="dark"] .learning-path-card.live .learning-path-kicker {
    color: var(--gold-light, #d8b675);
}

.learning-path-card.self-paced .learning-path-kicker {
    color: var(--gold, #bd8b43);
}

.learning-path-title {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy, #101d29);
    margin-bottom: 12px;
}

[data-theme="dark"] .learning-path-title {
    color: #fbf8f0;
}

.learning-path-description {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--muted, #6d6a63);
    margin-bottom: 24px;
    flex-grow: 1;
}

[data-theme="dark"] .learning-path-description {
    color: #a3a098;
}

.learning-path-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.learning-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--parchment, #f3eddf);
    color: var(--navy, #101d29);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .learning-feature-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #fbf8f0;
}

.learning-path-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(189, 139, 67, 0.4);
    border-radius: 4px;
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy, #101d29);
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .learning-path-cta {
    color: #fbf8f0;
    border-color: rgba(189, 139, 67, 0.35);
}

.learning-path-card:hover .learning-path-cta {
    background: var(--navy, #101d29);
    border-color: var(--navy, #101d29);
    color: #ffffff;
}

[data-theme="dark"] .learning-path-card:hover .learning-path-cta {
    background: var(--gold, #bd8b43);
    border-color: var(--gold, #bd8b43);
    color: #101d29;
}

/* ── Categories / Intellectual Domains ─────────────────────────────────────── */
.categories-domain-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--parchment, #f3eddf);
    border-bottom: 1px solid var(--line, rgba(20,23,25,0.12));
}

[data-theme="dark"] .categories-domain-section {
    background: #0d1620;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.categories-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
}

.category-domain-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(189, 139, 67, 0.22);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(16, 29, 41, 0.04);
}

[data-theme="dark"] .category-domain-card {
    background: #15222e;
    border-color: rgba(189, 139, 67, 0.2);
}

.category-domain-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold, #bd8b43);
    box-shadow: 0 12px 28px rgba(16, 29, 41, 0.09);
}

.category-domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.category-domain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(189, 139, 67, 0.12);
    color: var(--gold, #bd8b43);
    font-size: 1.15rem;
}

.category-domain-count {
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold, #bd8b43);
    background: rgba(189, 139, 67, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}

.category-domain-name {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy, #101d29);
    margin-bottom: 6px;
    line-height: 1.3;
}

[data-theme="dark"] .category-domain-name {
    color: #fbf8f0;
}

.category-domain-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted, #6d6a63);
    margin-top: auto;
}

[data-theme="dark"] .category-domain-desc {
    color: #a3a098;
}

/* ── Courses Catalog Section ───────────────────────────────────────────────── */
.courses-catalog-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--paper, #fbf8f0);
}

[data-theme="dark"] .courses-catalog-section {
    background: var(--paper, #101d29);
}

/* Catalog Filter Bar */
.catalog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid rgba(189, 139, 67, 0.28);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 29, 41, 0.05);
    margin-bottom: 36px;
}

[data-theme="dark"] .catalog-filter-bar {
    background: #15222e;
    border-color: rgba(189, 139, 67, 0.24);
}

.mode-filter-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--parchment, #f3eddf);
    padding: 4px;
    border-radius: 6px;
}

[data-theme="dark"] .mode-filter-tabs {
    background: rgba(16, 29, 41, 0.6);
}

.mode-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    color: var(--muted, #6d6a63);
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.84rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .mode-tab-btn {
    color: #a3a098;
}

.mode-tab-btn:hover {
    color: var(--navy, #101d29);
}

[data-theme="dark"] .mode-tab-btn:hover {
    color: #fbf8f0;
}

.mode-tab-btn.active {
    background: var(--navy, #101d29);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 29, 41, 0.15);
}

[data-theme="dark"] .mode-tab-btn.active {
    background: var(--gold, #bd8b43);
    color: #101d29;
}

.catalog-dropdown-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-select-wrapper {
    position: relative;
}

.catalog-select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid rgba(189, 139, 67, 0.32);
    border-radius: 4px;
    padding: 8px 32px 8px 14px;
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--navy, #101d29);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

[data-theme="dark"] .catalog-select {
    background: #192a38;
    color: #fbf8f0;
    border-color: rgba(189, 139, 67, 0.28);
}

.catalog-select:focus {
    outline: none;
    border-color: var(--gold, #bd8b43);
}

.catalog-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.72rem;
    color: var(--gold, #bd8b43);
}

/* ── Courses Grid & Card Styling ───────────────────────────────────────────── */
.courses-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(24px, 3.5vw, 36px);
}

.course-card-civil {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(189, 139, 67, 0.28);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(16, 29, 41, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .course-card-civil {
    background: #15222e;
    border-color: rgba(189, 139, 67, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.course-card-civil:hover {
    transform: translateY(-5px);
    border-color: var(--gold, #bd8b43);
    box-shadow: 0 18px 44px rgba(16, 29, 41, 0.12);
}

/* Image container */
.course-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--navy, #101d29);
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.course-card-civil:hover .course-card-img {
    transform: scale(1.05);
}

.course-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #101d29 0%, #1c3144 100%);
    color: var(--gold-light, #d8b675);
    font-size: 2.8rem;
}

/* Badges overlay */
.course-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.course-badge-left,
.course-badge-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.course-mode-pill.live {
    background: rgba(112, 37, 43, 0.92);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(112, 37, 43, 0.35);
}

.pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5252;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.course-mode-pill.self-paced {
    background: rgba(16, 29, 41, 0.9);
    color: var(--gold-light, #d8b675);
    border: 1px solid rgba(189, 139, 67, 0.4);
}

.course-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gold, #bd8b43);
    color: #101d29;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.course-badge-discount {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: var(--maroon, #70252b);
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Card Body */
.course-card-body {
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-grow: 1;
}

.course-categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.course-category-tag {
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--maroon, #70252b);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-theme="dark"] .course-category-tag {
    color: var(--gold-light, #d8b675);
}

.course-title-civil {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy, #101d29);
    margin-bottom: 8px;
}

[data-theme="dark"] .course-title-civil {
    color: #fbf8f0;
}

.course-title-civil a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-title-civil a:hover {
    color: var(--gold, #bd8b43);
}

.course-author-civil {
    font-size: 0.82rem;
    color: var(--muted, #6d6a63);
    margin-bottom: 12px;
}

[data-theme="dark"] .course-author-civil {
    color: #a3a098;
}

.course-excerpt-civil {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink, #141719);
    opacity: 0.85;
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .course-excerpt-civil {
    color: #fbf8f0;
    opacity: 0.8;
}

/* Card Metadata */
.course-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line, rgba(20,23,25,0.1));
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--muted, #6d6a63);
}

[data-theme="dark"] .course-meta-row {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #a3a098;
}

.course-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold, #bd8b43);
}

/* Card Footer & Pricing */
.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.course-price-container {
    display: flex;
    flex-direction: column;
}

.course-price-free {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--maroon, #70252b);
    letter-spacing: 0.04em;
}

[data-theme="dark"] .course-price-free {
    color: var(--gold-light, #d8b675);
}

.course-price-current {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy, #101d29);
    line-height: 1;
}

[data-theme="dark"] .course-price-current {
    color: #fbf8f0;
}

.course-price-original {
    font-size: 0.84rem;
    color: var(--muted, #6d6a63);
    text-decoration: line-through;
    margin-top: 3px;
}

.course-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--navy, #101d29);
    color: #fbf8f0;
    font-family: var(--sans, "Manrope", sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
}

[data-theme="dark"] .course-cta-button {
    background: var(--gold, #bd8b43);
    color: #101d29;
}

.course-card-civil:hover .course-cta-button {
    background: var(--gold, #bd8b43);
    color: #101d29;
    transform: translateY(-1px);
}

[data-theme="dark"] .course-card-civil:hover .course-cta-button {
    background: var(--gold-light, #d8b675);
}

/* ── Empty State ───────────────────────────────────────────────────────────── */
.courses-empty-state {
    text-align: center;
    padding: clamp(60px, 8vw, 90px) 24px;
    background: #ffffff;
    border: 1px dashed rgba(189, 139, 67, 0.4);
    border-radius: 8px;
    max-width: 600px;
    margin: 40px auto;
}

[data-theme="dark"] .courses-empty-state {
    background: #15222e;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(189, 139, 67, 0.12);
    color: var(--gold, #bd8b43);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.empty-state-title {
    font-family: var(--serif, "IM Fell English", Georgia, serif);
    font-size: 1.8rem;
    color: var(--navy, #101d29);
    margin-bottom: 12px;
}

[data-theme="dark"] .empty-state-title {
    color: #fbf8f0;
}

.empty-state-text {
    font-size: 0.95rem;
    color: var(--muted, #6d6a63);
    line-height: 1.65;
    margin-bottom: 24px;
}

/* ── Responsive Queries ────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .courses-hero-container {
        grid-template-columns: 1fr;
    }

    .learning-paths-grid {
        grid-template-columns: 1fr;
    }

    .catalog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .mode-filter-tabs {
        width: 100%;
        justify-content: center;
    }

    .catalog-dropdown-filters {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-select-wrapper {
        flex: 1 1 140px;
    }

    .catalog-select {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .courses-hero-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-dropdown-filters {
        flex-direction: column;
    }

    .catalog-select-wrapper {
        width: 100%;
    }
}
