.portal-career-course-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 56px;
}

.portal-career-course-breadcrumb {
    margin-bottom: 24px;
    color: #64748b;
    font-size: 14px;
}

.portal-career-course-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portal-career-course-breadcrumb a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.portal-career-course-breadcrumb span {
    margin: 0 8px;
}

.portal-career-course-breadcrumb__separator {
    color: #cbd5e1;
}

.portal-career-course-breadcrumb__current {
    color: #334155;
}

.portal-career-course-banner {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 32px;
    padding: 44px 48px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 68%, #d1fae5 100%);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
}

.portal-career-course-banner__illustration {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.portal-career-course-banner__illustration svg {
    max-width: 100%;
    height: auto;
}

.portal-career-course-banner__content {
    min-width: 0;
}

.portal-career-course-banner__tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.1);
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
}

.portal-career-course-banner__title {
    margin: 0;
    color: #1e3a8a;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
}

.portal-career-course-filter {
    margin-bottom: 26px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(22, 49, 92, 0.06);
}

.portal-career-course-search {
    display: flex;
    gap: 12px;
    max-width: 540px;
    margin-bottom: 20px;
}

.portal-career-course-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    color: #243b5c;
    outline: none;
}

.portal-career-course-search__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.portal-career-course-search__button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #1e40af;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.portal-career-course-search__button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.portal-career-course-filter__label {
    margin-bottom: 12px;
    color: #52647f;
    font-size: 14px;
    font-weight: 700;
}

.portal-career-course-filter__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-career-course-filter__tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f3f6fb;
    color: #274066;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portal-career-course-filter__tag:hover {
    background: #e6f0ff;
    color: #1e40af;
    transform: translateY(-2px);
}

.portal-career-course-filter__tag.is-active {
    background: #1e40af;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.2);
}

.portal-career-course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.portal-career-course-card {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.portal-career-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.15);
}

.portal-career-course-card__thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
}

.portal-career-course-card__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portal-career-course-card:hover .portal-career-course-card__thumbnail img {
    transform: scale(1.04);
}

.portal-career-course-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.portal-career-course-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-career-course-card__badge svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.portal-career-course-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.portal-career-course-card:hover .portal-career-course-card__overlay {
    opacity: 1;
}

.portal-career-course-card__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    transition: transform 0.3s;
}

.portal-career-course-card:hover .portal-career-course-card__play {
    transform: scale(1.1);
}

.portal-career-course-card__play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    fill: #1e40af;
}

.portal-career-course-card__time {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.portal-career-course-card__time svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.portal-career-course-card__info {
    padding: 16px;
}

.portal-career-course-card__title {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.portal-career-course-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.portal-career-course-card__date {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    font-weight: 600;
}

.portal-career-course-card__instructor {
    min-width: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-career-course-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    border-radius: 16px;
    background: #ffffff;
    color: #7b8ca5;
    text-align: center;
}

.portal-career-course-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 48px 0;
    padding: 24px 0;
    flex-wrap: wrap;
}

.portal-career-course-pagination__pages {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.portal-career-course-pagination__btn,
.portal-career-course-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: all 0.2s ease;
}

.portal-career-course-pagination__btn:not(.is-disabled):hover,
.portal-career-course-pagination__page:not(.is-active):hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

.portal-career-course-pagination__page.is-active {
    border-color: #1e40af;
    background: #1e40af;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.portal-career-course-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 40px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
}

.portal-career-course-pagination__btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.portal-career-course-pagination__summary {
    margin: 0 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.portal-career-course-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(8, 18, 36, 0.86);
}

.portal-career-course-modal.is-open {
    display: flex;
}

.portal-career-course-modal__content {
    width: min(920px, 100%);
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

.portal-career-course-modal__player-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.portal-career-course-modal__player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.portal-career-course-modal__empty {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.6;
}

.portal-career-course-modal__info {
    padding: 18px 22px 20px;
}

.portal-career-course-modal__title {
    margin-bottom: 8px;
    color: #1d3354;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.portal-career-course-modal__meta {
    color: #60718a;
    font-size: 13px;
    line-height: 1.5;
}

.portal-career-course-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.portal-career-course-modal__close:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: scale(1.04);
}

@media (max-width: 1200px) {
    .portal-career-course-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .portal-career-course-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px 24px;
    }

    .portal-career-course-banner__illustration {
        width: 100%;
        height: 150px;
        flex-basis: auto;
    }

    .portal-career-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .portal-career-course-main {
        padding: 24px 16px 40px;
    }

    .portal-career-course-banner__title {
        font-size: 24px;
    }

    .portal-career-course-search {
        max-width: none;
    }

    .portal-career-course-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-career-course-modal {
        padding: 16px;
    }

    .portal-career-course-modal__close {
        top: 12px;
        right: 12px;
    }
}
