/**
 * SearchBar Component Styles
 */

.search-bar {
    margin-bottom: 1.5rem;
}

.search-bar__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 0.42rem 0.55rem 0.42rem 0.72rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.search-bar__wrapper:hover {
    border-color: rgba(20, 157, 221, 0.2);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.search-bar__wrapper:focus-within {
    border-color: #149ddd;
    box-shadow: 0 0 0 0.14rem rgba(20, 157, 221, 0.1), 0 10px 20px rgba(15, 23, 42, 0.05);
}

.search-bar__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.35rem 0.45rem 0.35rem 0;
    font-size: 0.94rem;
    color: #0f172a;
    outline: none;
}

.search-bar__input::placeholder {
    color: #94a3b8;
}

.search-bar__button {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    padding: 0.34rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-radius: 10px;
}

.search-bar__button:hover {
    color: #0f172a;
    background: #eef6fc;
    border-color: rgba(20, 157, 221, 0.16);
    transform: translateY(-1px);
}

.search-bar__button:active {
    transform: scale(0.95);
}

.search-bar__button--search {
    order: 2;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.search-bar__button--clear {
    order: 3;
    color: #64748b;
    margin-left: 0.15rem;
}

.search-bar__button--clear:hover {
    color: #0f172a;
    background: #eef2f7;
}

.search-bar__suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 30;
    max-height: 240px;
    overflow-y: auto;
}

.search-bar__suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
}

.search-bar__suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #172b4d;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-bar__suggestion:hover,
.search-bar__suggestion--active {
    background: #f1f8ff;
    color: #0f4e7a;
}

/* Variant styles */

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-bar {
        margin-bottom: 1rem;
    }

    .search-bar__input {
        font-size: 0.9rem;
        padding: 0.35rem 0.3rem 0.35rem 0;
    }

    .search-bar__button {
        font-size: 0.95rem;
    }
}.courses-section {
    background: #f8fafc;
    min-height: 100vh;
    padding: 18px 0 34px;
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #040b14;
    margin-bottom: 15px;
    font-family: "Raleway", sans-serif;
}

.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.courses-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-align: left;
    margin-bottom: 12px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid #e8ecf0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.courses-hero-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0;
    flex: 0 1 auto;
}

.courses-hero-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    line-height: 1.08;
    font-family: "Raleway", sans-serif;
}

.courses-hero-search {
    width: min(100%, 520px);
    flex: 1 1 380px;
    margin-left: auto;
    align-self: center;
    margin-top: 10px;
}

.courses-hero-search .search-bar {
    margin-bottom: 0;
}

.courses-search-summary {
    color: #555;
    font-size: 0.95rem;
    background: color-mix(in srgb, #149ddd 6%, #fff);
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 12px 14px;
}

.courses-lane {
    margin: 18px 0 28px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e8ecf0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.courses-lane-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e8ecf0;
}

.lane-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e8ecf0;
    background: #fff;
    color: #149ddd;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.lane-page-btn-text {
    gap: 6px;
    width: auto;
    padding: 0 14px;
    font-size: 0.86rem;
    font-weight: 700;
}

.lane-page-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #149ddd;
    background: color-mix(in srgb, #149ddd 6%, #fff);
}

.lane-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lane-page-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

.lane-page-count {
    min-width: 54px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
}

.category-back {
    margin-top: 1.25rem;
}

.category-back__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #dde3ea;
    background: #f3f5f8;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.category-back__link i {
    font-size: 1.05rem;
}

.category-back__link:hover {
    background: #eaf0f5;
    border-color: #c8d2dc;
    color: #0f172a;
    transform: translateX(-1px);
}

.courses-lane-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, #149ddd 10%, transparent);
    color: #0a7ba7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid color-mix(in srgb, #149ddd 20%, transparent);
}

/* Course Cards */
.course-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    border-top: 4px solid;
    border: 1px solid #e8ecf0;
    border-top: 4px solid #149ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.course-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 6px;
    gap: 8px;
    padding-right: 2px;
}

.course-header i {
    font-size: 34px;
    color: #149ddd;
}

.course-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
    flex: 1 1 auto;
    min-width: 0;
}

/* Group title and inline status badge so the percent sits just to the right of the title */
.course-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.course-title-group h2 {
    flex: 0 1 auto;
    margin: 0;
}

.course-status-pill--inline {
    margin-left: 0.25rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
}

.course-description {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
    flex-grow: 0;
}

.course-level-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin-right: 8px;
    vertical-align: middle;
}

.course-level-tag.beginner {
    background: #e8f7ee;
    color: #1b8f4d;
}

.course-level-tag.intermediate {
    background: #fff4e5;
    color: #b06b00;
}

.course-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-top: 7px;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #555;
}

.course-card .btn-outline-primary {
    margin-top: auto !important;
    padding-top: 0.4rem;
    padding: 0.42rem 0.72rem;
    font-size: 0.86rem;
    line-height: 1.2;
}

.meta-item i {
    color: #149ddd;
}

.meta-item.level {
    background: #e8f4f8;
    padding: 4px 10px;
    border-radius: 20px;
    color: #149ddd;
    font-weight: 500;
}

.meta-item.level.beginner {
    background: #e8f7ee;
    color: #1b8f4d;
}

.meta-item.level.intermediate {
    background: #fff4e5;
    color: #b06b00;
}

/* Course Detail */

/* Theme consistency overrides */
.courses-section {
    background: #f8fafc;
}

.course-header h2,
.section-title h2 {
    color: #1a1a2e;
}

.course-description,
.meta-item,
.section-title p {
    color: #555;
}

@media (max-width: 768px) {
    .courses-section {
        padding-top: 12px;
    }

    .courses-lane {
        padding: 14px;
        margin: 14px 0 22px;
    }

    .courses-lane-footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    /* Mobile card adjustments for better spacing and vertical centering */
    .course-card {
        padding: 18px;
    }

    .course-header {
        align-items: flex-start;
    }

    .course-header h2 {
        font-size: 0.98rem;
        line-height: 1.25;
        margin-top: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .course-title-group {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .course-status-pill {
        align-self: flex-start;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Final mobile-specific overrides to ensure spacing and centering take effect */
@media (max-width: 768px) {
    .courses-lane .course-card {
        padding: 18px !important;
    }

    .courses-lane .course-card .course-header {
        align-items: flex-start !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        gap: 0.4rem !important;
    }

    .courses-lane .course-card .course-header h2 {
        font-size: clamp(0.95rem, 3.6vw, 1rem) !important;
        margin: 0 !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .courses-lane .course-card .course-title-group {
        align-items: flex-start !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
    }

    .courses-lane .course-card .course-status-pill {
        margin: 0 !important;
        align-self: flex-start !important;
        position: relative !important;
        top: 0 !important;
        padding: 0.26rem 0.72rem !important;
        min-width: 2.8rem !important;
    }

    .courses-lane .course-card .course-header-badges {
        position: static !important;
        right: auto !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.module-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.module-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #149ddd;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    background: #f8fafc;
    border-left: 4px solid #149ddd;
    transition: all 0.3s;
}

.module-header:hover {
    background: color-mix(in srgb, #149ddd 4%, #fff);
}

.module-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    flex-grow: 1;
}

.module-header i {
    font-size: 20px;
    color: #149ddd;
    transition: transform 0.3s;
}

.module-header i.expanded {
    transform: rotate(180deg);
}

.topic-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.topic-name i {
    color: #149ddd;
    font-size: 16px;
}

.topic-description {
    color: #555;
    font-size: 13px;
    margin: 8px 0 12px 26px;
}

.topic-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-left: 26px;
}

@media (max-width: 768px) {

    .section-title h2 {
        font-size: 28px;
    }

    .course-card {
        padding: 12px;
    }

    .course-header {
        flex-direction: row;
        text-align: left;
        gap: 0;
    }

    .course-header i {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .course-header h2 {
        font-size: 18px;
    }

    .course-description {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 5px;
    }

    .course-meta {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 9px;
        padding-top: 6px;
    }

    .meta-item {
        font-size: 11px;
    }

    .course-card .btn-outline-primary {
        margin-top: 0.35rem !important;
        padding: 0.36rem 0.62rem;
        font-size: 0.8rem;
    }

    .module-header {
        flex-wrap: wrap;
    }
}

/* Slides Viewer Styles */

.slide-counter {
    font-size: 13px;
    color: #b0d4ff;
    font-weight: 500;
}

.slide-title {
    font-size: 26px;
    font-weight: 700;
    color: #040b14;
    margin-bottom: 25px;
    font-family: "Raleway", sans-serif;
    padding-bottom: 15px;
    border-bottom: 3px solid;
}

.slide-title {
    border-bottom-color: #149ddd;
}

.slide-body {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    /* Don't stretch the body to fill the min-height container */
    flex: none;
}

.slide-body ul {
    margin: 0;
    padding-left: 25px;
    list-style-type: disc;
}

.slide-body li {
    margin-bottom: 8px;
    color: #444;
}

/* Nested sub-bullets with reduced spacing */
.slide-body li ul {
    margin-top: 5px;
    margin-bottom: 0;
}

.slide-body li ul li {
    margin-bottom: 3px;
    font-size: 14px;
}

.slide-body li ul li:last-child {
    margin-bottom: 0;
}

.slide-body li .bullet-label {
    color: #149ddd;
    font-weight: 600;
}

.slide-body p {
    margin: 0 0 15px 0;
}

.content-table {
    margin: 16px 0;
}

.content-table .table-title {
    font-weight: 600;
    color: #040b14;
    margin-bottom: 8px;
}

.content-table .table-wrapper {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    background: #fff;
}

.content-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.content-table th,
.content-table td {
    border-bottom: 1px solid #eee;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.content-table thead th {
    background: #f8fafc;
    color: #1a1a2e;
    font-weight: 600;
}

.content-table tbody tr:last-child td {
    border-bottom: none;
}

.content-table .table-caption {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

.content-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 16px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    max-height: min(52vh, 34rem);
    width: auto;
    max-width: min(calc(100vw - 2rem), 150%);
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .content-image img {
        max-width: 100%;
        width: 100%;
        max-height: min(42vh, 22rem);
    }
}

.content-image figcaption {
    margin-top: 0;
    font-size: 12px;
    color: #777;
}

/* Side Navigation Buttons */

/* Progress Dots */

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #149ddd;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: #149ddd;
    transform: scale(1.3);
}

.dot:hover {
    background: #149ddd;
    opacity: 0.7;
}

/* Fullscreen Presentation Mode */
/* Fullscreen Presentation Mode */

/* small × symbol sizing inside exit button */

/* Nested sub-bullets in presentation mode */

/* Search Results Styling */
.search-results-info {
    background: color-mix(in srgb, #149ddd 6%, #fff);
    border-left: 4px solid #149ddd;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #555;
}

.search-results-info p {
    margin: 0;
}

.search-results-info strong {
    color: #149ddd;
    font-weight: 600;
}

.search-inline-status {
    margin: 0 0 1rem;
    color: #555;
    font-size: 0.92rem;
}

.search-match-list {
    margin: 0.65rem 0 0;
    padding-left: 1rem;
}

.search-match-list li {
    margin-bottom: 0.2rem;
    color: #555;
}

.search-match-link {
    color: inherit;
    text-decoration: none;
}

.search-match-link:hover {
    text-decoration: underline;
}

.match-topic {
    font-weight: 600;
}

.match-course {
    color: #0a7ba7;
}

/* Exercises Container Styles */

.courses-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(20, 157, 221, 0.14), transparent 30%),
        radial-gradient(circle at 86% 16%, rgba(32, 201, 151, 0.12), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #eef8f1 100%);
}

.courses-section::before,
.courses-section::after {
    content: '';
    position: absolute;
    inset: auto;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(10px);
}

.courses-section::before {
    width: 240px;
    height: 240px;
    top: 0;
    left: -100px;
    background: rgba(20, 157, 221, 0.12);
}

.courses-section::after {
    width: 320px;
    height: 320px;
    right: -140px;
    top: 140px;
    background: rgba(32, 201, 151, 0.12);
}

.courses-search-summary,
.search-results-info,
.search-inline-status {
    border-radius: 16px;
}

.courses-lane {
    border-radius: 24px;
    border: 1px solid rgba(20, 157, 221, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.courses-lane-kicker {
    background: linear-gradient(90deg, rgba(20, 157, 221, 0.12) 0%, rgba(32, 201, 151, 0.12) 100%);
    border-color: rgba(20, 157, 221, 0.18);
    color: #0a7ba7;
}

.course-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(20, 157, 221, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(20, 157, 221, 0.08), transparent 40%);
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14);
}

.course-header {
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.course-header i {
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 157, 221, 0.12) 0%, rgba(32, 201, 151, 0.14) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.course-header h2 {
    font-size: 1.15rem;
    line-height: 1.25;
}

.course-description {
    font-size: 0.95rem;
    line-height: 1.65;
}

.course-level-tag {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

.course-meta {
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding-top: 0.9rem;
    border-top-color: #e5eef5;
}

.meta-item {
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #e5eef5;
    color: #4b5563;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.course-card .btn-outline-primary {
    border-radius: 999px;
    border: 1px solid rgba(20, 157, 221, 0.18);
    background: #f8fbff;
    color: #0a7ba7;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.course-card .btn-outline-primary:hover {
    background: rgba(20, 157, 221, 0.08);
    color: #0a7ba7;
    transform: translateY(-1px);
}

.search-results-info {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(20, 157, 221, 0.12);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.search-match-list {
    margin-top: 0.75rem;
    padding-left: 1.1rem;
}

.search-match-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.35rem 0;
}

.match-topic {
    color: #0f172a;
}

.match-course {
    color: #0a7ba7;
}

.courses-lane-footer {
    padding-top: 1rem;
    border-top-color: #e5eef5;
}

.lane-page-btn {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.lane-page-btn-text {
    border-radius: 999px;
}

@media (max-width: 768px) {
    .course-card {
        border-radius: 18px;
    }

    .course-header i {
        width: 2.75rem;
        height: 2.75rem;
    }

    .course-card .btn-outline-primary {
        background: #f8fbff;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }

    .courses-hero {
        display: block;
        gap: 0.75rem;
        padding: 0.85rem;
        border-radius: 16px;
    }

    .courses-hero-search {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .courses-hero-title h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .courses-hero-title {
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: nowrap;
        margin-bottom: 0.3rem;
    }

    .courses-hero-title .courses-lane-kicker {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .course-card {
        padding: 20px;
    }

    .course-header {
        flex-direction: column;
        text-align: center;
    }

    .course-meta {
        justify-content: center;
    }

    .module-header {
        flex-wrap: wrap;
    }
}

/* Exit button internal sizing */

/* Give the controls container a little right padding so button doesn't touch edge */

/* Modules preview list for SEO-friendly course cards */
.course-modules-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Visually hidden for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SEO-friendly h1 in section title */
.section-title h1 {
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-family: "Raleway", sans-serif;
}

/* Course card h2 styling */
.course-card .course-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
}

.course-card.is-completed {
    border-color: #9be1b5;
    border-style: solid;
    border-width: 2px;
    box-shadow: 0 10px 30px rgba(155, 225, 181, 0.06);
}

.course-card.is-inprogress {
    border-color: #f3cf8e;
}

.course-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.24rem 0.72rem;
    border-radius: 999px;
    border: 1px solid #dde3ea;
    background: #f3f5f8;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
    min-width: 2.8rem;
    text-align: center;
    margin-left: 0.35rem;
    margin-right: 0.08rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.course-status-pill.completed {
    background: #e9f9f0;
    border-color: #9be1b5;
    color: #166534;
}

.course-status-pill.inprogress {
    background: #fff7e6;
    border-color: #f3cf8e;
    color: #9a5b00;
}

.course-header-badges {
    display: none;
}

@media (max-width: 768px) {
    .course-meta-exercises {
        display: none;
    }

    .course-card .course-header {
        flex-direction: row !important;
        text-align: left !important;
        align-items: center !important;
        justify-content: center;
        position: relative;
        gap: 0.45rem;
        padding: 0.32rem 0.15rem;
        min-height: 2.35rem;
    }

    .course-card .course-header h2 {
        font-size: 1rem;
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 3.4rem;
        box-sizing: border-box;
        margin: 0;
        line-height: 1.2;
    }

    .course-card .course-header-badges {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        position: absolute;
        right: 0.15rem;
        flex-shrink: 0;
    }

    .course-card .course-description .course-level-tag {
        display: none;
    }

    .course-card .course-header-badges .course-status-pill {
        margin-left: 0;
        margin-right: 0;
    }
}