/*
========================================
 FILE CSS CHÍNH - TAM TRÍ ĐỨC
========================================
Nội dung:
1. CÀI ĐẶT CHUNG (Body, Wrappers)
2. HEADER (Menu chính)
3. PROFILE DROPDOWN (Menu người dùng)
4. FOOTER (Chân trang)
5. TRANG LOGIN & REGISTER
6. TRANG CHỦ - SLIDESHOW
7. TRANG CHỦ - KHỐI LỌC KHÓA HỌC
========================================
*/

/* ========================================
 1. CÀI ĐẶT CHUNG (Body, Wrappers)
========================================
*/
body { 
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    margin: 0; 
    background-color: #ffffff; /* Nền trắng */
    padding-top: 70px; /* Đẩy nội dung xuống (vì header position:fixed) */
}

/* Lớp bọc full-width cho các Section (ví dụ: slideshow, courses, news) */
.section-wrapper {
    width: 100%;
    padding: 30px 0;
}
/* Màu nền xen kẽ (tùy chọn) */
.section-wrapper.bg-white { background-color: white; }
.section-wrapper.bg-gray { background-color: #f9f9f9; }

/* Lớp căn giữa nội dung (Responsive) */
/* Lớp căn giữa nội dung (Responsive) */
.content-wrapper {
    width: 95%; /* Chiếm 95% màn hình */
    max-width: 1920px; /* <-- ĐÃ SỬA THÀNH 1920px */
    margin: 0 auto; /* Tự căn giữa */
}

/* Lớp căn giữa cho các trang tĩnh (About, Contact) */
/* Lớp căn giữa cho các trang tĩnh (About, Contact) */
.container { 
    width: 90%;
    max-width: 1600px; /* <-- SỬA LẠI THÀNH 1200px */
    margin: 20px auto; 
    padding: 20px; 
    background-color: #fff;
    box-sizing: border-box;
    /* (Thêm lại border/shadow cho đẹp) */
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ========================================
 2. HEADER (Menu chính)
========================================
*/
.main-header {
    position: fixed;  /* Cố định vị trí */
    top: 0;           
    left: 0;          
    z-index: 1000;    /* Nằm trên mọi thứ */
    width: 100%; 
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-content-wrapper {
    width: 95%;
    max-width: 1920px; /* <-- ĐÃ SỬA THÀNH 1920px */
    margin: 0 auto;
    /* ... (code flexbox) ... */
}
/* (Tìm .header-content-wrapper) */
.header-content-wrapper {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Bây giờ nó sẽ căn 2 bên: [Logo] và [Right Side] */
    align-items: center;
    padding: 10px 0;
}

/* *** THÊM CLASS MỚI NÀY VÀO *** */
.header-right-side {
    display: flex;
    align-items: center;
    gap: 30px; /* Đây là khoảng cách giữa Menu và Nút Đăng nhập */
}

/* Logo */
.logo-section .logo-link-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-section .logo-link-wrapper img {
    height: 40px;
    margin-right: 10px; /* Xóa margin-right nếu chỉ dùng logo */
}
.logo-section .logo-link-wrapper:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Menu chính */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; 
}
.main-nav ul li a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: color 0.3s ease; 
    color: #3498db; /* Màu xanh dương (Mặc định) */
}
.main-nav ul li a:hover,
.main-nav ul li a.active { 
    color: #e74c3c; /* Màu đỏ */
}

/* ========================================
 3. PROFILE DROPDOWN (Menu người dùng)
========================================
*/
.profile-section {
    position: relative; /* Vị trí gốc cho menu dropdown */
}

/* Nút "Đăng nhập" (khi chưa login) */
.btn-login {
    display: block;
    padding: 8px 18px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.btn-login:hover {
    background-color: #2980b9;
    color: white;
}

/* Icon avatar (khi đã login) */
.profile-icon-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: box-shadow 0.3s;
}
.profile-icon-img:hover {
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.7); 
}

/* Khung Dropdown (ẩn mặc định) */
.profile-dropdown-content {
    display: none; 
    position: absolute; 
    top: 50px; 
    right: 0; 
    background-color: white;
    min-width: 220px; 
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1001; 
}
.profile-dropdown-content.show {
    display: block;
}

/* Nội dung dropdown */
.dropdown-user-info {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-user-info .user-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}
.dropdown-user-info .user-role {
    font-size: 0.9em;
    color: #777;
}
.dropdown-links {
    padding: 10px 0;
}
.dropdown-links a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    font-size: 1em;
}
.dropdown-links a:hover {
    background-color: #f9f9f9;
    color: #3498db;
}
.dropdown-links .logout-link {
    color: #e74c3c; 
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    padding-top: 10px;
}
.dropdown-links .logout-link:hover {
    color: #c0392b;
    background-color: #fdf2f2;
}

/* ========================================
 4. FOOTER (Chân trang)
========================================
*/
.main-footer {
    width: 100%;
    background-color: #fdfbfb; 
    border-top: 1px solid #eee;
    padding: 50px 0;
    margin-top: 30px; 
}
/* Lớp bọc căn giữa (ĐÃ SỬA) */
/* Lớp bọc căn giữa (ĐÃ SỬA LỖI) */
.footer-wrapper {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    /* justify-content: space-between; (ĐÃ XÓA DÒNG NÀY) */
    gap: 33px;
}
.footer-column {
    
    width: 33.33%;
}

.footer-column h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase; 
}

/* Footer - Cột 1 */
.footer-column.about-us .logo-text {
    font-size: 1.6em; 
    font-weight: bold;
    color: #e74c3c; 
    margin: 0;
}
.footer-column.about-us .company-subtext {
    font-size: 0.9em;
    color: #999; 
    margin: 5px 0 15px 0;
}
.footer-column.about-us .tagline {
    font-size: 1.1em;
    font-weight: 600; 
    color: #333; 
}

/* Footer - Cột 2 */
.footer-column.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column.contact-info li {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
}
.footer-column.contact-info li i {
    margin-right: 15px;
    color: #e74c3c; 
    font-size: 1.1em;
    width: 20px; 
    text-align: center;
    padding-top: 3px; 
}

/* Footer - Cột 3 */
.social-icons {
    display: flex;
    gap: 15px; 
}
.social-icons .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px; 
    height: 42px;
    border-radius: 50%; 
    background-color: #2c3e50; 
    color: white; 
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s;
}
.social-icons .social-icon:hover {
    background-color: #3498db; 
}

/* ========================================
 5. TRANG LOGIN & REGISTER
========================================
*/
body.login-page {
    font-family: Arial, sans-serif;
    padding-top: 0; /* Ghi đè padding-top của header */
    background-color: #111; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}
.login-container {
    background-color: white;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 400px;
    max-width: 90%;
    text-align: center;
}
.login-container h2 {
    font-size: 2em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 30px;
    color: #000;
}
.login-form .form-group {
    margin-bottom: 20px;
}
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f7f7f7; 
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    text-transform: uppercase; 
}
.login-form input::placeholder {
    color: #999;
}
.social-login {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 25px 0;
}
.social-login-btn {
    flex: 1; 
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.8em; 
    color: #555;
    transition: background-color 0.3s;
}
.social-login-btn:hover {
    background-color: #f5f5f5;
}
/* Màu icon social */
.social-login-btn.facebook { color: #1877F2; }
.social-login-btn.google { color: #DB4437; }
.social-login-btn.apple { color: #000000; }
.social-login-btn.xbox { color: #107C10; }
.social-login-btn.playstation { color: #0070D1; }

.remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 25px;
    color: #777;
    font-size: 0.9em;
}
.remember-me input {
    margin-right: 8px;
}
/* Nút mũi tên (Login) */
.submit-arrow {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
}
.submit-arrow:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}
/* Nút "Đăng ký" (Register) */
.login-form .btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px; 
}
.login-form .btn-submit:hover {
    background-color: #2980b9;
}
/* Link chân form */
.login-footer {
    margin-top: 30px;
}
.login-footer a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.9em;
    margin: 10px 0;
    font-weight: 500;
}
.login-footer a:hover {
    color: #3498db;
}

/* ========================================
 6. TRANG CHỦ - SLIDESHOW
========================================
*/
.slideshow-section-wrapper {
    width: 100%;
    background-color: #f0f0f0; 
    padding-top: 20px;
}
.slideshow-container {
    position: relative;
}
.my-slides {
    display: none; /* JS sẽ xử lý */
}
.my-slides img {
    vertical-align: middle;
    border-radius: 8px; 
    width: 100%; 
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none; 
    background-color: rgba(0,0,0,0.3); 
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover {
    background-color: #717171;
}
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* ========================================
 7. TRANG CHỦ - KHỐI LỌC KHÓA HỌC
========================================
*/
.courses-section-wrapper {
    width: 100%;
    padding: 30px 0;
    background-color: white;
}
/* 1. Khu vực chung */
.courses-filter-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-top: 40px; /* Thêm padding trên */
    padding-bottom: 50px; /* <-- ĐÃ SỬA THÀNH 50px */
    background-color: #fcf8f8; /* <-- THÊM MÀU HỒNG NHẠT NÀY */
}
.courses-sidebar {
    width: 280px; 
    flex-shrink: 0; 
    background-color: #c0392b; 
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box; 
    color: white;
}
.courses-sidebar h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 15px;
}
.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-nav li {
    margin-bottom: 5px;
}
.category-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #f0f0f0; 
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer; 
}
.category-nav li a i {
    width: 20px; 
}
.category-nav li a:hover {
    background-color: rgba(0,0,0,0.1);
    color: white;
}
.category-nav li a.active {
    background-color: white;
    color: #c0392b; 
    font-weight: 600;
}

/* Cột phải */
.courses-content {
    flex-grow: 1; 
}
.courses-content h1 {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}
.courses-content .category-subtext {
    color: #777;
    margin-bottom: 25px;
}
.course-list-container {
    display: flex; /* <-- SỬA LẠI THÀNH FLEX */
    flex-wrap: wrap; /* <-- THÊM MỚI: Cho phép xuống hàng */
    gap: 25px; /* Giữ nguyên khoảng cách */
    justify-content: center; /* <-- THÊM MỚI: Tự động căn giữa */
}
/* Thẻ khóa học kiểu mới */
.new-course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden; 
    transition: all 0.4s ease; /* Cho JS lọc */
}
.card-contact-bar {
    background: #4a4a4a; 
    color: #f0f0f0;
    font-size: 0.9em;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
}
.card-contact-bar span { display: flex; align-items: center; gap: 8px; }
.card-contact-bar i { font-size: 1.1em; }
.card-main-content { padding: 25px; }
.card-main-content .course-category-tag {
    color: #0070D1; 
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.card-main-content h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: #c0392b; 
    margin: 0 0 10px 0;
}
.card-main-content .course-description { color: #555; margin-bottom: 20px; }
.card-footer {
    padding: 0 25px 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}
.card-meta-info {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 0.9em;
}
.card-meta-info span { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.btn-learn-more {
    background-color: #e74c3c; 
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn-learn-more:hover { background-color: #c0392b; }

/* ========================================
 8. TRANG CHỦ - TIN TỨC MỚI NHẤT
 (Chưa có CSS - chúng ta sẽ làm sau nếu cần)
========================================
*/
.news-section-wrapper {
    width: 100%;
    padding: 30px 0;
    background-color: #f9f9f9;
}
.latest-news .section-title {
    text-align: center;
    font-size: 2em;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 30px;
}
.post-list {
    display: flex;
    gap: 20px;
}
.post-item {
    width: calc(33.333% - 14px);
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
}
.post-item h4 { margin-top: 0; }
.post-item h4 a { color: #333; text-decoration: none; }
.post-item h4 a:hover { color: #3498db; }
.post-item .meta { font-size: 0.8em; color: #777; margin-bottom: 10px; }
.post-item p { font-size: 0.9em; line-height: 1.6; }

.view-all-link {
    text-align: center;
    margin-top: 20px;
}
.btn-detail {
    display: inline-block; background-color: #3498db; color: white;
    padding: 8px 15px; text-align: center; text-decoration: none;
    border-radius: 5px; margin-top: 10px;
}
/* --- CSS CHO TRANG LIÊN HỆ (CONTACT PAGE) --- */

/* 1. Hero Banner (màu đỏ) */
.contact-hero-banner {
    width: 100%;
    padding: 50px 0;
    background-color: #c0392b; /* Màu đỏ */
    /* (Bạn có thể thêm background-image của quân đội ở đây) */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}
.contact-hero-banner h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}
.contact-hero-banner p {
    margin: 10px 0 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* 2. Bọc nội dung chính (2 cột) */
.contact-main-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}
/* Cột trái (Thông tin) */
.contact-info-col {
    flex: 1; /* Chiếm 1 phần */
}
/* Cột phải (Form) */
.contact-form-col {
    flex: 1.5; /* Chiếm 1.5 phần (rộng hơn) */
}

/* 3. Style cột trái (Thông tin) */
.contact-info-col h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #0070D1; /* Màu xanh dương */
    margin-top: 0;
}
.contact-info-col .section-subtitle {
    color: #777;
    margin-top: -10px;
    margin-bottom: 25px;
}
.contact-info-list {
    list-style: none;
    padding: 0;
}
.contact-info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-info-list li .icon-wrapper {
    width: 30px; /* Cố định độ rộng icon */
    font-size: 1.4em;
    color: #c0392b; /* Icon màu đỏ */
    text-align: center;
}
.contact-info-list li .info-text strong {
    display: block;
    color: #333;
    font-size: 1.1em;
}
.contact-info-list li .info-text span {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* 4. Style cột phải (Form) */
.contact-form-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.contact-form-box h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
}
.contact-form-box .section-subtitle {
    color: #777;
    margin-top: -10px;
    margin-bottom: 25px;
}
.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-form .form-group {
    flex: 1; /* 1 cột */
    display: flex;
    flex-direction: column;
}
.contact-form .form-group.full-width {
    flex-basis: 100%;
    margin-bottom: 20px;
}
.contact-form .form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.contact-form .form-group textarea {
    min-height: 120px;
}
.btn-submit-red {
    background-color: #c0392b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-submit-red:hover {
    background-color: #a93226;
}

/* 5. Khu vực "Tại sao chọn chúng tôi" */
.why-us-section-wrapper {
    width: 100%;
    background-color: #f9f9f9; /* Nền xám nhạt */
    padding: 50px 0;
}
.why-us-section {
    display: flex;
    gap: 30px;
    align-items: center;
}
.why-us-image {
    flex: 1;
}
.why-us-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.why-us-content {
    flex: 1.5;
}
.why-us-content h2 {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
}
.why-us-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.why-us-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #555;
}
.why-us-content ul li::before {
    content: '✔'; /* Icon dấu tích */
    position: absolute;
    left: 0;
    top: 0;
    color: #c0392b; /* Màu đỏ */
    font-weight: bold;
}
/* --- CSS CHO KHỐI TESTIMONIAL (THÊM MỚI) --- */

.testimonial-section-wrapper {
    width: 100%;
    padding: 40px 0;
    background-color: #fdfbfb; /* Nền trắng hồng rất nhạt */
}

.testimonial-section {
    position: relative; /* Vị trí gốc cho các mũi tên */
    max-width: 900px; /* Giới hạn độ rộng của cả khối */
    margin: 0 auto;
    text-align: center;
}

/* 1. Slider chính (Featured) */
.testimonial-slider-main {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    padding: 40px 60px;
    margin-bottom: 30px;
}

/* Các slide riêng lẻ (ẩn mặc định) */
.testimonial-slide {
    display: none; /* Ẩn đi, JS sẽ làm hiện */
}
.testimonial-slide.active {
    display: block; /* Hiện slide đang active */
}

.testimonial-slide .student-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}
.testimonial-slide .student-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.testimonial-slide .student-role {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}
.testimonial-slide .stars {
    color: #f39c12; /* Màu vàng */
    font-size: 1.2em;
    margin-bottom: 20px;
}
.testimonial-slide .quote {
    font-size: 1.15em;
    color: #555;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}
/* Dấu ngoặc kép (giống ảnh) */
.testimonial-slide .quote::before,
.testimonial-slide .quote::after {
    content: "”";
    font-family: 'Georgia', serif;
    font-size: 4em;
    color: #e74c3c; /* Màu đỏ */
    opacity: 0.2;
    position: absolute;
}
.testimonial-slide .quote::before {
    top: -10px;
    left: -30px;
    transform: rotate(-10deg);
}
.testimonial-slide .quote::after {
    bottom: -30px;
    right: -30px;
    transform: rotate(170deg);
}

/* 2. Các nút mũi tên (Trái/Phải) */
.testimonial-section .slide-arrow {
    cursor: pointer;
    position: absolute;
    top: 40%; /* Căn giữa slide chính */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(0,0,0,0.1);
    color: #555;
    border-radius: 50%;
    font-size: 1.2em;
    transition: all 0.3s;
    z-index: 10;
}
.testimonial-section .slide-arrow:hover {
    background-color: rgba(0,0,0,0.3);
    color: white;
}
.testimonial-section .slide-arrow.prev {
    left: -20px; /* Đặt bên ngoài card */
}
.testimonial-section .slide-arrow.next {
    right: -20px; /* Đặt bên ngoài card */
}

/* 3. Thanh điều hướng (Thumbnails) */
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.testimonial-thumb-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px;
    width: 200px;
    cursor: pointer;
    text-align: left;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.6;
}
.testimonial-thumb-card:hover {
    opacity: 1;
    transform: translateY(-5px);
}
.testimonial-thumb-card.active {
    opacity: 1;
    border-color: #3498db; /* Viền xanh khi active */
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
.thumb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.thumb-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.thumb-header .thumb-name {
    font-weight: 600;
    color: #333;
}
.thumb-header .thumb-role {
    font-size: 0.8em;
    color: #777;
}
.thumb-quote {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    /* Cắt ngắn 2 dòng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}
.thumb-stars {
    color: #f39c12;
    font-size: 0.8em;
    margin-top: 5px;
}

/* 4. Dấu chấm (Dots) */
.testimonial-dots {
    text-align: center;
}
.testimonial-dots .dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.testimonial-dots .dot.active,
.testimonial-dots .dot:hover {
    background-color: #c0392b; /* Màu đỏ */
}
/* --- CSS CHO KHỐI GIỚI THIỆU (TRANG CHỦ) --- */

/* Lớp bọc 2 cột chính */
.company-info-section {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Căn các cột theo chiều dọc */
}

/* Cột trái (Nội dung) */
.info-col-left {
    flex: 2; /* Chiếm 2 phần (rộng hơn) */
}
.info-col-left h2 {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}
.info-col-left .slogan {
    font-size: 1.2em;
    font-weight: 600;
    color: #e74c3c; /* Màu đỏ */
    margin-top: 0;
    margin-bottom: 15px;
}
.info-col-left .info-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}
.btn-red {
    background-color: #e74c3c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
}
.btn-red:hover {
    background-color: #c0392b;
}

/* Cột phải (2 thẻ đỏ) */
.info-col-cards {
    flex: 1.5; /* Chiếm 1.5 phần */
}
.info-card-grid {
    display: flex;
    gap: 20px;
}
.info-card {
    flex: 1; /* Hai thẻ tự chia đôi không gian */
    background-color: #c0392b; /* Màu đỏ */
    color: white;
    padding: 25px;
    border-radius: 12px;
    min-height: 180px; /* (Tùy chỉnh) Chiều cao tối thiểu */
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}
.info-card .card-subtitle {
    font-size: 0.9em;
    font-weight: 600;
    opacity: 0.8;
}
.info-card .card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 10px 0;
}
.info-card .card-text {
    font-size: 0.9em;
    opacity: 0.9;
}
/* --- CSS CHO KHỐI HOẠT ĐỘNG (THÊM MỚI) --- */

/* Tiêu đề căn giữa (tái sử dụng) */
.section-title-center {
    text-align: center;
    font-size: 2.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.section-subtitle-center {
    text-align: center;
    color: #777;
    max-width: 600px;
    margin: 0 auto 30px auto; /* Căn giữa và tạo khoảng cách */
}

/* Lưới 4 cột */
.activities-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.activity-card {
    flex: 1; /* Chia đều 4 cột */
    min-width: 220px; /* Độ rộng tối thiểu */
    height: 350px; /* Chiều cao cố định */
    position: relative;
    border-radius: 12px;
    overflow: hidden; /* Bo góc */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.activity-card:hover {
    transform: translateY(-10px); /* Hiệu ứng nhấc lên khi hover */
}
.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ảnh lấp đầy thẻ */
    transition: transform 0.4s ease;
}
.activity-card:hover img {
    transform: scale(1.05); /* Phóng to ảnh khi hover */
}

/* Lớp phủ mờ (gradient) ở dưới */
.activity-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
.activity-card-overlay h4 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}
.activity-card-overlay p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}


/* --- CSS CHO KHỐI THỐNG KÊ (MÀU ĐỎ) --- */

.stats-section-wrapper {
    /* Nền đỏ (bạn có thể thay bằng ảnh nền họa tiết) */
    background-color: #c0392b;
    /* (Tùy chọn) Thêm ảnh nền họa tiết tam giác
    background-image: url('link-den-anh-hoa-tiet.png');
    background-repeat: no-repeat;
    background-size: cover;
    */
}

.stats-grid {
    display: grid;
    /* Tạo lưới 3 cột, 2 hàng */
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.stat-card {
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.stat-card .stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #c0392b; /* Số màu đỏ */
    margin: 0;
}
.stat-card .stat-label {
    font-size: 1.05em;
    color: #555;
    margin: 5px 0 0 0;
    font-weight: 500;
}
/* --- CSS CHO KHỐI CTA (TRANG CHỦ) --- */

.cta-section-wrapper {
    background-color: #c0392b; /* Nền đỏ */
    /* (Bạn có thể thêm ảnh nền họa tiết ở đây) */
    /* background-image: url('/assets/images/red-pattern.png'); */
    padding: 60px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cột bằng nhau */
    gap: 40px;
    align-items: flex-start;
}

/* Cột trái: Form */
.cta-form-card {
    background: white;
    border-radius: 12px;
    padding: 30px 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.cta-form-card h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
}
.cta-form-card .section-subtitle {
    color: #777;
    margin-top: -10px;
    margin-bottom: 25px;
}
.cta-form-card .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.cta-form-card .form-group {
    flex: 1; /* 1 cột */
    display: flex;
    flex-direction: column;
}
.cta-form-card .form-group.full-width {
    flex-basis: 100%;
    margin-bottom: 20px;
}
.cta-form-card .form-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.cta-form-card .form-group input,
.cta-form-card .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.cta-form-card .form-group textarea {
    min-height: 100px;
}
.cta-form-card .btn-submit-red {
    width: 100%;
    background-color: #c0392b;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.cta-form-card .btn-submit-red:hover {
    background-color: #a93226;
}
.cta-form-card .form-note {
    font-size: 0.8em;
    color: #999;
    text-align: center;
    margin-top: 15px;
}
/* Style cho thông báo lỗi/thành công */
.cta-message-box {
    padding: 10px; border-radius: 5px; font-weight: bold; margin-bottom: 15px;
}
.cta-error { background-color: #f8d7da; color: #721c24; }
.cta-success { background-color: #d4edda; color: #155724; }


/* Cột phải: Info */
.cta-info-col {
    /* (Để trống vì 2 card con tự sắp xếp) */
}
.info-card-blue {
    background-color: #2c3e50; /* Nền xanh đen */
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}
.info-card-blue h3 {
    margin-top: 0;
    font-size: 1.4em;
}
.info-card-blue p {
    font-size: 1.1em;
    font-weight: 500;
    color: #f39c12; /* Màu vàng */
}

.info-card-white {
    background: white;
    padding: 25px;
    border-radius: 12px;
}
.info-card-white h3 {
    margin-top: 0;
    color: #333;
}
/* (Tab giả) */
.info-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.info-tab {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #777;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
}
.info-tab.active {
    background-color: #eaf2fd;
    color: #3498db;
}
/* (Checklist) */
.info-checklist {
    list-style: none;
    padding: 0;
}
.info-checklist li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1em;
    color: #555;
}
.info-checklist li::before {
    content: '✔'; /* Dấu tích */
    position: absolute;
    left: 0;
    top: 0;
    color: #2ecc71; /* Màu xanh lá */
    font-weight: bold;
}
/* --- CSS CHO TRANG GIỚI THIỆU (ABOUT PAGE) --- */

/* 1. Hero Banner (màu đỏ) */
.about-hero-banner {
    width: 100%;
    padding: 30px 0;
    background-color: #c0392b; /* Màu đỏ */
    /* (Bạn có thể thêm background-image ở đây) */
    color: white;
    text-align: center;
    border-radius: 8px; /* Bo góc */
    margin-bottom: 40px;
}
.about-hero-banner h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}
.about-hero-banner p {
    margin: 5px 0 0 0;
    font-size: 0.95em;
    opacity: 0.9;
}

/* 2. Tiêu đề chung cho các Section */
.section-title-center-blue {
    text-align: center;
    font-size: 2.2em;
    font-weight: 600;
    color: #0070D1; /* Màu xanh dương đậm */
    margin-bottom: 10px;
}
.section-subtitle-center-gray {
    text-align: center;
    color: #777;
    max-width: 600px;
    margin: 0 auto 40px auto; /* Căn giữa và tạo khoảng cách */
}

/* 3. Section Sứ mệnh (3 cột) */
.mission-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 50px;
}
.mission-card {
    flex: 1; /* Chia 3 cột */
    text-align: center;
}
.mission-card img {
    width: 100%;
    height: 150px; /* Chiều cao ảnh */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.mission-card .icon-wrapper {
    font-size: 1.5em;
    color: #0070D1; /* Màu xanh */
}
.mission-card h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}
.mission-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

/* 4. Section Lĩnh vực hoạt động */
.operations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 cột */
    gap: 30px;
    margin-bottom: 30px;
}
.operations-col h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
}
.operations-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.operations-checklist li {
    position: relative;
    padding-left: 25px; /* Khoảng cách cho icon */
    margin-bottom: 12px;
    font-size: 0.95em;
    color: #555;
}
.operations-checklist li::before {
    content: '✔'; /* Dấu tích (hoặc dùng icon Font Awesome) */
    position: absolute;
    left: 0;
    top: 0;
    color: #2ecc71; /* Màu xanh lá */
    font-weight: bold;
}

/* 3 thẻ hoạt động */
.op-card-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}
.op-card {
    flex: 1; /* Chia 3 cột */
    height: 120px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    font-weight: 600;
}
.op-card i {
    font-size: 1.5em;
    margin-bottom: 10px;
}
/* Màu nền cho 3 thẻ */
.op-card.blue { background-color: #3498db; }
.op-card.green { background-color: #2ecc71; }
.op-card.orange { background-color: #f39c12; }

/* 5. Section Thông tin pháp lý */
.legal-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0;
    border-top: 1px solid #eee;
}
/* Thẻ xanh đậm bên trái */
.legal-card {
    flex: 1;
    background-color: #2c3e50; /* Nền xanh đen */
    color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}
.legal-card i {
    font-size: 2.5em;
    margin-bottom: 15px;
}
.legal-card h4 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
}
.legal-card p {
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
}
/* Cột phải (Văn bản & Ảnh) */
.legal-info-content {
    flex: 2; /* Rộng gấp 2 */
}
.legal-info-content h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-top: 0;
}
.legal-info-content p {
    font-size: 0.95em;
    color: #555;
}
.legal-info-content img {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}
/* --- CSS CHO TRANG TIN TỨC (BLOG PAGE) --- */

/* 1. Hero Banner (màu xanh đen) */
.blog-hero-banner {
    width: 100%;
    padding: 50px 0;
    /* (Bạn có thể thêm ảnh nền mờ ở đây) */
    background-color: #2c3e50; 
    color: white;
    text-align: center;
}
.blog-hero-banner h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}
.blog-hero-banner p {
    margin: 10px 0 25px 0;
    font-size: 1.1em;
    opacity: 0.9;
}
/* Các tab lọc */
.blog-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.blog-filter-tabs a {
    padding: 10px 20px;
    text-decoration: none;
    color: #f0f0f0; /* Chữ trắng mờ */
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}
.blog-filter-tabs a i {
    margin-right: 8px;
}
.blog-filter-tabs a:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
}
.blog-filter-tabs a.active {
    background-color: white;
    color: #2c3e50; /* Chữ màu xanh đen */
    border-color: white;
    font-weight: 600;
}

/* 2. Khu vực nội dung chính */
.blog-content-wrapper {
    padding: 40px 0; /* (Chúng ta sẽ bọc nó trong .container) */
}
.blog-content-wrapper .section-title-center-blue {
    color: #333; /* Đổi thành màu đen */
}

/* 3. Lưới các bài viết */
.blog-grid {
    display: grid;
    /* Tạo lưới 3 cột */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}
/* (Responsive: Tự chuyển về 2 cột hoặc 1 cột trên màn hình nhỏ) */
@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr; /* 1 cột */
    }
}


/* 4. Thẻ bài viết (New Blog Card) */
.new-blog-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden; /* Bo góc ảnh */
    display: flex;
    flex-direction: column; /* Xếp dọc */
    transition: all 0.3s ease;
}
.new-blog-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.new-blog-card .card-image {
    width: 100%;
    height: 200px; /* Chiều cao ảnh */
    object-fit: cover;
}
.new-blog-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Quan trọng: để thẻ cao bằng nhau */
}
.new-blog-card .card-category-tag {
    color: #0070D1; /* Màu xanh */
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.new-blog-card .card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin: 0 0 10px 0;
}
.new-blog-card .card-title:hover {
    color: #c0392b; /* Màu đỏ khi hover */
}
.new-blog-card .card-excerpt {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
    flex-grow: 1; /* Đẩy phần meta xuống dưới */
    margin-bottom: 15px;
}
.new-blog-card .card-meta-info {
    display: flex;
    flex-wrap: wrap; /* Cho phép rớt hàng nếu quá chật */
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85em;
    color: #888;
}
.new-blog-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.new-blog-card .meta-item i {
    color: #aaa;
}
.new-blog-card .card-read-more {
    color: #0070D1;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto; /* Đẩy nút "Đọc thêm" qua phải */
}
/* --- CSS CHO TRANG KHÓA HỌC (COURSES PAGE - v2) --- */

/* 1. Hero Banner (màu đỏ) */
.courses-page-hero {
    width: 100%;
    padding: 30px 0;
    background-color: #c0392b; /* Màu đỏ */
    /* (Bạn có thể thêm ảnh nền mờ ở đây) */
    color: white;
}
/* (Dùng chung .content-wrapper 1200px để căn giữa) */
.courses-page-hero h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}
/* Breadcrumbs (VD: Trang chủ /...) */
.breadcrumbs {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}
.breadcrumbs a {
    color: white;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    margin: 0 5px;
}

/* 2. Bố cục 2 cột chính (Sidebar + Content) */
.courses-page-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* 3. Sidebar Lọc (Bên trái) */
.courses-page-sidebar {
    width: 280px; /* Độ rộng cố định */
    flex-shrink: 0; /* Không bị co lại */
}
.filter-nav {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
}
.filter-nav h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.filter-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    text-decoration: none;
    color: #555; /* Màu chữ xám */
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s;
}
.filter-nav li a i {
    width: 18px;
    text-align: center;
}
.filter-nav li a:hover {
    background-color: #f5f5f5;
    color: #333;
}
/* Trạng thái ACTIVE (màu xanh dương) */
.filter-nav li a.active {
    background-color: #0d6efd; /* Màu xanh */
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* 4. Nội dung chính (Bên phải) */
.courses-page-content {
    flex-grow: 1; /* Lấp đầy phần còn lại */
}
.courses-page-content h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

/* 5. Lưới 3 cột */
.courses-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột */
    gap: 25px;
}
/* (Responsive - Tự chuyển về 2 hoặc 1 cột) */
@media (max-width: 1100px) {
    .courses-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .courses-page-layout { flex-direction: column; } /* Xếp dọc 2 cột */
    .courses-page-sidebar { width: 100%; }
    .courses-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .courses-page-grid { grid-template-columns: 1fr; } /* 1 cột */
}

/* 6. Thẻ Khóa học (Kiểu v2) */
.course-card-v2 {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.course-card-v2:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.card-v2-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-v2-content {
    padding: 20px;
}
.card-v2-tag {
    color: #0d6efd; /* Màu xanh dương */
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}
.card-v2-title {
    font-size: 1.25em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin: 5px 0 10px 0;
    display: block; /* Cho thẻ <a> */
}
.card-v2-title:hover {
    color: #c0392b; /* Màu đỏ */
}
.card-v2-desc {
    font-size: 0.9em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    /* Cắt ngắn 3 dòng (tùy chọn) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-v2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
    font-size: 0.85em;
    color: #777;
    font-weight: 500;
}
.card-v2-footer span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 7. Phân trang (Pagination) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 500;
}
.pagination a:hover {
    background-color: #f5f5f5;
    color: #0d6efd;
}
.pagination span.current {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}
/* --- CSS CHO TRANG HỒ SƠ CÁ NHÂN (PROFILE PAGE) --- */

.profile-header {
    background-color: #f8f9fa; /* Nền xám nhạt */
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}
.profile-header h1 {
    margin: 0 0 5px 0;
    font-size: 2.2em;
    color: #333;
}
.profile-header .role-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #3498db; /* Màu xanh */
    color: white;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 20px;
}
.profile-header .role-tag.teacher {
    background-color: #2ecc71; /* Màu xanh lá */
}
.profile-header .role-tag.admin {
    background-color: #c0392b; /* Màu đỏ */
}

.profile-section-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Lưới danh sách các lớp học */
/* Lưới danh sách các lớp học (ĐÃ SỬA) */
.profile-course-grid {
    display: flex; /* Dùng Flex */
    flex-wrap: wrap; /* Tự xuống hàng */
    gap: 25px; /* Khoảng cách */
    justify-content: center; /* Tự căn giữa (nếu lẻ) */
}

/* Ghi đè độ rộng thẻ cho trang profile */
.profile-course-grid .new-course-card {
    flex-basis: 420px;
    flex-grow: 1;
    max-width: 440px; 
}
@media (max-width: 768px) {
    .profile-course-grid {
        grid-template-columns: 1fr; /* 1 cột trên di động */
    }
}

.profile-course-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden; /* Bo góc */
}
.profile-course-card .card-content {
    padding: 20px;
}
.profile-course-card .card-content h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #c0392b; /* Màu đỏ */
    margin: 0 0 10px 0;
}
.profile-course-card .card-content p {
    margin: 0 0 15px 0;
    color: #555;
    font-weight: 500;
}
.profile-course-card .card-meta {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #777;
    font-weight: 500;
}
.profile-course-card .card-meta span {
    margin-right: 15px;
}
.profile-course-card .card-meta .status-paid {
    color: #2ecc71; /* Màu xanh lá */
    font-weight: 600;
}
.profile-course-card .card-meta .status-unpaid {
    color: #e74c3c; /* Màu đỏ */
    font-weight: 600;
}
/* --- CSS CHO BẢNG (TÁI SỬ DỤNG TỪ ADMIN) --- */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.modern-table th,
.modern-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
}
.modern-table th {
    background-color: #f8f9fa; 
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}
.modern-table td {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}
.modern-table tr:last-child td {
    border-bottom: none; 
}
/* --- CSS CHO TRANG CHI TIẾT KHÓA HỌC (MỚI) --- */

/* 1. Hero Banner của Khóa học */
.course-detail-hero {
    width: 100%;
    height: 300px; /* Chiều cao banner */
    background-color: #2c3e50; /* Màu nền dự phòng */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}
/* Lớp phủ mờ để chữ nổi bật */
.course-detail-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); /* Độ mờ */
}
.course-detail-hero h1 {
    position: relative; /* Nằm trên lớp phủ */
    z-index: 2;
    font-size: 2.8em;
    font-weight: 600;
}

/* 2. Layout nội dung (Mô tả + Bảng lớp) */
.course-detail-content {
    padding: 30px 0;
}
.course-detail-content h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.course-detail-content .description {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

/* 3. Bảng danh sách lớp (Tái sử dụng .modern-table) */
.class-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.class-list-table th, 
.class-list-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.class-list-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.class-list-table td {
    vertical-align: middle;
}
.btn-register-class {
    background-color: #2ecc71; /* Màu xanh lá */
    color: white !important; /* Ghi đè màu link */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn-register-class:hover {
    background-color: #27ae60;
}
/* --- CSS CHO THÔNG BÁO (FLASH MESSAGE) --- */
.flash-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 25px;
    border: 1px solid;
}
.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
