.cs-wrapper {
    margin: 0 auto;
}

.cs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* THẺ CARD CHÍNH - BỎ PADDING NGOÀI ĐỂ ẢNH TRÀN VIỀN */
.cs-card {
    background-color: var(--color-white);
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* KHUNG CHỨA ẢNH BANNER FULL VIỀN TRÊN */
.cs-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.cs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* KHUNG NỘI DUNG PHÍA DƯỚI (NHẬN NHIỆM VỤ PADDING) */
.cs-card-body {
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* TIÊU ĐỀ NẰM TRÊN */
.cs-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-deep-navy);
    line-height: 1.4;
    margin: 0 0 8px 0;
    min-height: 62px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PHÂN LOẠI (LEAD SERIES) NẰM DƯỚI TIÊU ĐỀ */
.cs-series-name {
    font-family: 'Inter 24';
    font-size: 13px;
    font-weight: 800;
	background: var(--color-light-blue);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 5px 10px;
    color: var(--color-indigo);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: max-content;
}

/* MÔ TẢ NGẮN */
.cs-desc {
    font-size: 16px;
    color: var(--color-slate-gray);
    line-height: 1.6;
    margin: 0 0 20px 0;
    min-height: 72px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* TIÊU ĐỀ PHỤ KHÓA HỌC */
.cs-label {
	font-family: 'Inter 24';
    font-size: 13px;
    font-weight: 700;
    color: var(--color-teal);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DANH SÁCH BADGES KHÓA HỌC */
.cs-courses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    flex-grow: 1; /* Đẩy nút bấm phía dưới xuống đáy thẻ */
    align-content: flex-start;
}

.cs-course-badge {
	font-family: 'Inter 24';
    background-color: var(--color-brand-white);
    color: var(--color-deep-navy);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

/* NÚT BẤM LIÊN KẾT CUỐI THẺ */
.cs-btn-single {
	font-family: 'Inter 24';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--color-brand-white);
    color: var(--color-deep-navy);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    margin-top: auto; /* Tự động bám sát đáy thẻ */
}

.cs-btn-single:hover {
    background-color: var(--color-indigo);
    color: var(--color-white);
}

.cs-btn-arrow {
    margin-left: 6px;
    width: 10px;
    height: 10px;
}

/* Nút lớn bên dưới chân trang */
.cs-footer-action {
    text-align: center;
    margin-top: 10px;
}

.cs-btn-main {
	font-family: 'Inter 24';
    display: inline-flex;
    align-items: center;
    background-color: var(--color-indigo);
    color: var(--color-white);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(61, 78, 216, 0.3);
    transition: opacity 0.2s;
}

.cs-btn-main:hover {
    opacity: 0.95;
    color: var(--color-white);
}

.cs-btn-main svg {
    margin-left: 10px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Chấm tròn di động */
.cs-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin: 15px 0 30px 0;
}

.cs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #CBD5E1;
    transition: background-color 0.3s, width 0.3s;
    cursor: pointer;
}

.cs-dot.active {
    background-color: var(--color-indigo);
    width: 16px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cs-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 15px;
        padding-bottom: 10px;
        margin-bottom: 0;
    }

    .cs-grid::-webkit-scrollbar {
        display: none;
    }

    .cs-card {
        flex: 0 0 calc(100% - 30px);
        scroll-snap-align: center;
    }

    .cs-dots {
        display: flex;
    }
}