/* Category / browse courses listing page */

.course-catalog-page {
    background: #f5f7fb;
}

.course-catalog-page main {
    margin-top: 0 !important;
}

.course-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.course-catalog__breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.course-catalog__breadcrumb a {
    color: #2f6fed;
    text-decoration: none;
}

.course-catalog__breadcrumb a:hover {
    text-decoration: underline;
}

.course-catalog__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.course-catalog__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.course-catalog__sub {
    color: #6b7280;
    font-size: 1rem;
    max-width: 640px;
    margin: 0;
}

.course-catalog__lang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.course-catalog__lang-label {
    font-size: 13px;
    color: #6b7280;
    margin-right: 4px;
}

.course-catalog__lang a {
    padding: 8px 18px;
    border: 1px solid #d1d9e6;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: all 0.15s ease;
}

.course-catalog__lang a:hover {
    border-color: #2f6fed;
    color: #2f6fed;
}

.course-catalog__lang a.is-active {
    background: #2f6fed;
    border-color: #2f6fed;
    color: #fff;
}

.course-catalog__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding-bottom: 8px;
}

.course-catalog__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.course-catalog__chip:hover {
    border-color: #2f6fed;
    color: #2f6fed;
}

.course-catalog__chip.is-active {
    border-color: #2f6fed;
    background: #eff6ff;
    color: #2f6fed;
}

.course-catalog__chip i {
    color: #9ca3af;
    font-size: 14px;
}

.course-catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.course-catalog__empty {
    text-align: center;
    padding: 48px 16px;
    color: #6b7280;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #d1d9e6;
}

/* Rich course card */
.cc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cc-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cc-card__head {
    padding: 16px 16px 14px;
    color: #fff;
    position: relative;
    min-height: 120px;
}

.cc-card__head--blue { background: linear-gradient(135deg, #1e5bb8 0%, #3b82f6 100%); }
.cc-card__head--teal { background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%); }
.cc-card__head--purple { background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%); }
.cc-card__head--orange { background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%); }

.cc-card__head-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.cc-card__head-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.95;
}

.cc-card__live-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cc-card__head-sub {
    font-size: 13px;
    margin: 8px 0 6px;
    opacity: 0.92;
    line-height: 1.4;
}

.cc-card__head-date {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.cc-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cc-card__badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.cc-card__badge--live {
    background: #dc2626;
    color: #fff;
}

.cc-card__badge--lang {
    background: #16a34a;
    color: #fff;
}

.cc-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cc-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    margin-bottom: 8px;
}

.cc-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2f6fed;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.cc-card__meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.cc-card__meta i {
    width: 18px;
    color: #9ca3af;
}

.cc-card__foot {
    padding: 14px 16px 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.cc-card__pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.cc-card__price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
}

.cc-card__price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.cc-card__off {
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
}

.cc-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cc-card__btn {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.cc-card__btn--outline {
    border: 1px solid #2f6fed;
    color: #2f6fed;
    background: #fff;
}

.cc-card__btn--outline:hover {
    background: #eff6ff;
    color: #1d5ad8;
}

.cc-card__btn--primary {
    background: #2f6fed;
    color: #fff;
    border: 1px solid #2f6fed;
}

.cc-card__btn--primary:hover {
    background: #1d5ad8;
    color: #fff;
}

@media (max-width: 576px) {
    .course-catalog__top {
        flex-direction: column;
    }

    .cc-card__actions {
        grid-template-columns: 1fr;
    }
}
