﻿/* =========================================
   1. GLOBAL WRAPPER & VARIABLES
   ========================================= */
:root {
    --primary-color: #0046ba; /* Màu chủ đạo */
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f9fbfd;
}

.enrollment-wrapper {
    position: relative;
    padding: 60px 0 80px 0;
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================
   2. SECTION HEADER (TIÊU ĐỀ & MÔ TẢ)
   ========================================= */

/* Tiêu đề chính */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    /* Loại bỏ text-shadow cũ kỹ, thay bằng màu sắc sắc nét */
}

/* Đường gạch chân cách điệu */
.title-separator {
    width: 100%;
    max-width: 120px;
    height: 3px;
    background: #e0e0e0; /* Màu nền đường kẻ */
    position: relative;
    margin: 0 auto 35px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

    /* Icon ngôi sao/điểm nhấn ở giữa */
    .title-separator span {
        background-color: var(--bg-light); /* Trùng màu nền wrapper */
        padding: 0 15px;
        color: var(--primary-color);
        font-size: 16px;
        position: relative;
        z-index: 2;
    }


.section-desc {
    font-size: 1.3rem; /* Chữ lớn */
    font-weight: 600; /* Chữ đậm hơn bình thường */
    line-height: 1.5;
    /* Tạo màu Gradient cho chữ */
    background: linear-gradient(135deg, #1a1a1a 0%, var(--primary-color, #0046ba) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 10px; /* Khoảng cách để không bị cắt chân chữ */
}

    /* Dấu ngoặc kép trang trí (Quote Mark) - Tinh tế hơn */
    .section-desc::before {
        content: '\201C';
        font-family: Georgia, serif;
        font-size: 5rem;
        position: absolute;
        top: -40px;
        left: -20px;
        color: var(--primary-color);
        opacity: 0.08; /* Rất mờ để không làm rối mắt */
        line-height: 1;
        z-index: -1;
    }

/* =========================================
   3. CARD STYLES (THẺ SẢN PHẨM)
   ========================================= */

/* Khung thẻ - Sử dụng Flex để cân bằng chiều cao */
.enrollment-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Đảm bảo các thẻ bằng nhau trong cùng 1 hàng */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.04);
    /* Bóng đổ mềm mại, hiện đại */
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 10px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

    /* Hiệu ứng Hover vào thẻ */
    .enrollment-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 70, 186, 0.15), 0 10px 10px -5px rgba(0, 70, 186, 0.04);
        border-color: rgba(0, 70, 186, 0.2);
    }

/* Phần chứa ảnh */
.card-img-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0; /* Ngăn ảnh bị co lại */
}

/* Ảnh nền */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease; /* Chuyển động chậm và mượt hơn */
}

.enrollment-card:hover .card-img {
    transform: scale(1.08); /* Zoom nhẹ */
}

/* Lớp phủ Gradient (Thay vì màu đơn sắc) - Trông cao cấp hơn */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient từ trong suốt đến màu xanh đậm */
    background: linear-gradient(to top, rgba(0, 70, 186, 0.85), rgba(0, 70, 186, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.enrollment-card:hover .card-overlay {
    opacity: 1;
}

/* Icon mũi tên */
.card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enrollment-card:hover .card-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Phần nội dung text */
.card-body {
    padding: 25px 20px;
    flex-grow: 1; /* Đẩy footer xuống đáy */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Tiêu đề thẻ */
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    transition: color 0.3s;
    line-height: 1.4;
    text-align: center;
}

.enrollment-card:hover .card-title {
    color: var(--primary-color);
}

/* Đường gạch chân animation */
.card-line {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    margin-top: auto; /* Luôn nằm dưới cùng */
    border-radius: 10px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.enrollment-card:hover .card-line {
    width: 100%;
    background: var(--primary-color);
}

/* =========================================
   4. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .card-img-container {
        height: 200px;
    }
}
