.course-show-hero {
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.course-show-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0A3442;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
}

.course-show-back:hover {
    color: #33A5A0;
}

.course-show-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d9e8e6;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.course-show-image {
    width: 280px;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.course-show-meta h1 {
    margin: 8px 0 12px;
    color: #0A3442;
    font-size: 28px;
}

.course-show-type {
    display: inline-block;
    background: #e8f7f5;
    color: #0A3442;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.course-show-dates,
.course-show-price {
    color: #555;
    margin-bottom: 8px;
}

.course-show-description {
    margin-top: 12px;
    line-height: 1.8;
    color: #333;
}

.course-show-book-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    background: #0A3442;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.course-show-videos {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.course-show-videos h2 {
    color: #0A3442;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-show-empty {
    text-align: center;
    color: #b91c1c;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.course-video-block {
    background: #fff;
    border: 1px solid #d9e8e6;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.course-video-title {
    margin: 0 0 8px;
    color: #0A3442;
    font-size: 20px;
}

.course-video-desc {
    margin: 0 0 16px;
    color: #666;
}

.course-video-player video,
.course-video-player iframe {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 10px;
    background: #000;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 280px;
}

.course-video-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    background: #f3f4f6;
    border-radius: 10px;
}

.course-video-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0A3442;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
}

.course-video-empty {
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.courses .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.courses .card-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.courses .card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Course listing cards */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e3efed;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(10, 52, 66, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card-link:hover .course-card {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(10, 52, 66, 0.14);
    border-color: #33A5A0;
}

.course-card__media {
    position: relative;
    overflow: hidden;
    background: #f0f7f6;
}

.course-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.course-card-link:hover .course-card__media img {
    transform: scale(1.04);
}

.course-card__status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
}

.course-card__status.is-upcoming {
    background: rgba(22, 163, 74, 0.92);
}

.course-card__status.is-active {
    background: rgba(51, 165, 160, 0.95);
}

.course-card__status.is-ended {
    background: rgba(107, 114, 128, 0.92);
}

.course-card__body {
    flex: 1;
    padding: 18px 18px 12px;
    text-align: right;
}

.course-card__title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0A3442;
    line-height: 1.5;
}

.course-card__excerpt {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.course-card__meta i {
    color: #33A5A0;
    width: 16px;
    text-align: center;
}

.course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid #eef4f3;
    background: linear-gradient(180deg, #fafdfd 0%, #f3fafa 100%);
}

.course-card__price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0A3442;
    white-space: nowrap;
}

.course-card__price.is-free {
    color: #16a34a;
}

.course-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #0A3442;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.course-card-link:hover .course-card__cta {
    background: #33A5A0;
}

.course-card__cta i {
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .course-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

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

    .course-card__price {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .course-show-header {
        flex-direction: column;
    }

    .course-show-image {
        width: 100%;
        height: 220px;
    }
}

/* Courses / Programs type switch */
.courses-page-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.courses-type-switch {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.courses-type-switch__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 88px;
    min-height: 88px;
    padding: 12px 10px;
    border-radius: 16px;
    border: 2px solid #d9e8e6;
    background: #fff;
    color: #0A3442;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(10, 52, 66, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.courses-type-switch__btn i {
    font-size: 1.6rem;
    color: #33A5A0;
}

.courses-type-switch__btn span {
    font-size: 0.95rem;
    font-weight: 700;
}

.courses-type-switch__btn:hover {
    transform: translateY(-2px);
    border-color: #33A5A0;
}

.courses-type-switch__btn.is-active {
    background: linear-gradient(135deg, #33A5A0 0%, #0A3442 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(10, 52, 66, 0.18);
}

.courses-type-switch__btn.is-active i {
    color: #fff;
}

.courses-page-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .courses-page-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .courses-type-switch {
        position: static;
        flex-direction: row;
        justify-content: center;
        order: -1;
    }

    .courses-type-switch__btn {
        flex: 1;
        max-width: 160px;
        min-height: 76px;
    }
}

/* Enrollment bar + actions */
.course-card__media-link,
.course-card__title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.course-card__footer--enrollment {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0;
    border-top: none;
    background: transparent;
}

.course-enrollment-panel {
    width: 100%;
    padding: 14px 18px 18px;
    border-top: 1px solid #eef4f3;
    background: linear-gradient(180deg, #fafdfd 0%, #f3fafa 100%);
}

.course-enrollment-bar {
    margin-bottom: 14px;
}

.course-enrollment-track {
    height: 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.course-enrollment-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.course-enrollment-label {
    display: block;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0A3442;
}

.course-enrollment-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.course-btn-subscribe {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.course-btn-subscribe:hover {
    background: #d97706;
    color: #fff;
    transform: translateY(-1px);
}

.course-btn-subscribe.is-disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

.course-btn-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 8px;
    background: #166534;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s ease;
}

.course-btn-info:hover {
    background: #14532d;
    color: #fff;
}

.course-show-meta .course-enrollment-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fafc;
}

@media (max-width: 600px) {
    .course-enrollment-actions {
        flex-direction: row;
    }
}

.course-show-locked {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

.course-show-locked__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.course-show-locked h2 {
    margin: 0 0 12px;
    color: #0A3442;
    font-size: 1.25rem;
}

.course-show-locked p {
    margin: 0 0 10px;
    color: #64748b;
    line-height: 1.8;
}

.course-show-locked__meta {
    font-weight: 700;
    color: #0A3442;
}

.course-show-book-btn--secondary {
    display: inline-block;
    margin-top: 12px;
    margin-right: 8px;
    background: #33A5A0;
}
