 /* --- GLOBAL VARIABLES & RESET (Giống trang chủ) --- */
 :root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-body: #f8fafc;
    --header-height: 90px;
    --menu-height: 55px;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
/*    padding-top: var(--header-height);*/
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none !important; transition: 0.3s; }

/* --- HEADER & FOOTER (Copy style từ trang chủ) --- */


/* --- COURSE HERO (Phần nền đen trên cùng) --- */
.course-hero {
    background-color: #1e293b; /* Màu tối sang trọng */
    color: #fff;
    padding: 40px 0 60px; /* Padding dưới lớn để Sidebar đè lên */
}
.breadcrumb-custom a { color: #cbd5e1; font-size: 0.9rem; }
.breadcrumb-custom .active { color: #fff; font-weight: 600; }
.course-title { font-size: 2.2rem; line-height: 1.3; margin-bottom: 15px; }
.course-meta { font-size: 0.95rem; color: #cbd5e1; display: flex; align-items: center; flex-wrap: wrap; }
.course-meta span { margin-right: 20px; display: flex; align-items: center; }
.course-meta i { color: #facc15; margin-right: 5px; }
.instructor-avatar-small { width: 30px; height: 30px; border-radius: 50%; margin-right: 8px; border: 2px solid #fff; }

/* --- RIGHT SIDEBAR (Thanh thanh toán dính) --- */
.sidebar-wrapper {
    position: sticky;
    margin-top: -100px;
    top: 80px; /* Cách top 90px khi cuộn */
    z-index: 99;
}
.course-sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
/* Video Preview */
.video-preview {
    position: relative;
    cursor: pointer;
    height: 200px;
    overflow: hidden;
}
.video-thumb { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.video-preview:hover .video-thumb { transform: scale(1.1); filter: brightness(0.7); }
.play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: rgba(255,255,255,0.9);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3); animation: pulse 2s infinite;
}
.play-overlay i { color: var(--primary); font-size: 24px; margin-left: 4px; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}


.header-scrolled {
    height: 50px !important; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

/* 2. Logo thu nhỏ */
.header-scrolled .logo {
    font-size: 1.2rem; /* Giảm cỡ chữ logo */
}
.header-scrolled .logo img {
    height: 40px;
}

.header-scrolled .search-input {
    padding: 6px 20px 6px 45px; /* Giảm padding ô tìm kiếm */
    font-size: 0.9rem;
}

/* 4. Menu ngang (Main Menu) phải chạy lên theo */
/* Khi header thu nhỏ còn 50px, menu phải dính vào top: 50px */
.main-menu.menu-scrolled {
    top: 50px !important; 
}

.sidebar-body { padding: 20px; }
.current-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.old-price { font-size: 1rem; text-decoration: line-through; color: #94a3b8; }
.discount-badge { background: #ffe4e6; color: #db2777; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; margin-left: 10px; }

.btn-buy-now {
    width: 100%; padding: 12px; font-size: 1.1rem; font-weight: 700;
    background: linear-gradient(135deg, #f97316 0%, #db2777 100%);
    color: white; border: none; border-radius: 8px; margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}
.btn-buy-now:hover { transform: translateY(-2px); color: white; box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6); }

.feature-list li {
    margin-bottom: 10px; font-size: 0.9rem; color: #475569; display: flex; align-items: center;
}
.feature-list i { width: 25px; color: var(--text-gray); }

/* --- CONTENT SECTION (Bên trái) --- */
.content-box {
    background: #fff; border-radius: 12px; padding: 30px;
    margin-bottom: 30px; border: 1px solid #f1f5f9;
}
.box-title { font-size: 1.4rem; margin-bottom: 20px; border-left: 5px solid var(--primary); padding-left: 15px; }

/* What you learn box */
.what-learn-box { border: 1px solid #e2e8f0; background: #fff; padding: 25px; border-radius: 12px; }
.check-list { display: flex; flex-wrap: wrap; padding-left:15px }
.check-list li {
    width: 50%; margin-bottom: 12px; display: flex; align-items: flex-start;
    font-size: 0.95rem; color: #334155;
}
.check-list i { color: var(--primary); margin-right: 10px; margin-top: 4px; }

/* Curriculum (Giáo trình) */
.section-header {
    background: #f8fafc; padding: 15px 20px; border: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 700;
}
.lesson-item {
    display: flex; justify-content: space-between; padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9; font-size: 0.95rem;
}
.lesson-item:last-child { border-bottom: none; }
.lesson-title i { color: #94a3b8; margin-right: 10px; font-size: 0.8rem; }
.play-btn { color: var(--primary) !important; cursor: pointer; }
.preview-text { color: var(--primary); font-weight: 600; font-size: 0.85rem; margin-right: 10px; cursor: pointer; }

/* Instructor */
.instructor-card { display: flex; align-items: flex-start; }
.instructor-avatar-big { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-right: 20px; }

/* Mobile Sticky Bar (Chỉ hiện mobile) */
.mobile-sticky-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; padding: 10px 15px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 9999; display: none; align-items: center; justify-content: space-between;
}
@media (max-width: 991px) {
    .course-hero { padding-bottom: 30px; }
    .sidebar-wrapper { display: none; } /* Ẩn sidebar trên mobile */
    .mobile-sticky-bar { display: flex; } /* Hiện thanh dính mobile */
    .check-list li { width: 100%; }
}

.site-footer {
    background-color: #0f172a; /* Màu xanh đen sâu thẳm (Slate 900) */
    color: #94a3b8; /* Màu chữ xám sáng */
    font-size: 0.95rem;
    padding-top: 60px;
    margin-top: 50px;
    position: relative;
}

/* Kẻ viền trang trí màu cam trên cùng */
.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #db2777);
}

/* Tiêu đề cột */
.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px;
    background-color: var(--primary); /* Gạch chân nhỏ màu cam */
    border-radius: 2px;
}

/* Liên kết (Links) */
.footer-links li {
    margin-bottom: 12px;
    display: block;
}
.footer-links a {
    color: #94a3b8;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: #fff;
    transform: translateX(5px); /* Hiệu ứng trượt sang phải */
    text-decoration: none !important;
}
.footer-links i { margin-right: 8px; font-size: 0.8rem; color: #64748b; }

/* Thông tin liên hệ */
.contact-info li {
    display: flex; margin-bottom: 15px;
}
.contact-info i {
    width: 25px; color: var(--primary); margin-top: 4px;
}

/* Social Buttons */
.social-btn {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    display: inline-flex; justify-content: center; align-items: center;
    border-radius: 50%; color: #fff; margin-right: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Newsletter Box (Đăng ký nhận tin) */
.newsletter-box {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.footer-input {
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 6px;
    padding: 10px 15px;
    width: 100%;
    margin-bottom: 10px;
}
.footer-input:focus {
    background: #1e293b;
    border-color: var(--primary);
    color: #fff;
    box-shadow: none;
}
.btn-sub {
    width: 100%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    padding: 10px;
    border-radius: 6px;
}
.btn-sub:hover { background: var(--primary-dark); }

/* Footer Bottom */
.footer-bottom {
    background-color: #020617; /* Màu đen nhất */
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
}

.modal {
  /* --- AUTH MODAL STYLES --- */
  /* --- MODERN AUTH MODAL --- */
  /* 1. Modal Radius & Shadow */
  /* 2. Tabs "Pill" Style */
  /* 3. INPUT GROUP (QUAN TRỌNG - Làm input đẹp ở đây) */
  /* Khi bấm vào input thì viền của cả cụm đổi màu */
  /* Icon bên trái */
  /* Ô nhập liệu */
  /* Đổi màu icon khi focus */
  /* Placeholder màu nhạt */
  /* 4. Button */ }
  .modal .modal-content {
    border-radius: 20px !important;
    /* Bo góc to hơn */
    border: none !important;
    overflow: hidden;
    /* Để header không bị lòi ra khỏi bo góc */ }
  .modal .nav-pills {
    background-color: #f8fafc;
    padding: 6px;
    border-radius: 12px;
    margin: 20px; }
  .modal .nav-pills .nav-link {
    border-radius: 10px;
    color: #000;
    font-weight: 600;
    padding: 10px 0;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease; }
  .modal .nav-pills .nav-link.active {
    background-color: #fff;
    color: #ea580c;
    /* Cam đậm */
    -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Bóng mờ tinh tế */ }
  .modal .modern-input-group {
    background-color: #f1f5f9;
    /* Nền xám nhạt hiện đại */
    border: 2px solid transparent;
    /* Viền trong suốt */
    border-radius: 12px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    overflow: hidden; }
  .modal .modern-input-group:focus-within {
    background-color: #fff;
    border-color: #f97316;
    /* Viền cam hiện lên */ }
  .modal .modern-icon {
    background: transparent !important;
    border: none !important;
    color: #252525;
    padding-left: 20px;
    padding-right: 10px;
    font-size: 1.1rem; }
  .modal .modern-input {
    background: transparent !important;
    border: none !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
    /* XÓA BÓNG FOCUS XẤU XÍ */
    height: 50px;
    /* Cao hơn cho dễ nhìn */
    padding-left: 5px;
    font-weight: 500;
    color: #334155;
    width: 100%;
    font-size: 14px; }
  .modal .modern-input-group:focus-within .modern-icon i {
    color: #f97316; }
  .modal .modern-input::-webkit-input-placeholder {
    color: #000;
    opacity: .6;
    font-weight: 400; }
  .modal .modern-input:-ms-input-placeholder {
    color: #000;
    opacity: .6;
    font-weight: 400; }
  .modal .modern-input::-ms-input-placeholder {
    color: #000;
    opacity: .6;
    font-weight: 400; }
  .modal .modern-input::placeholder {
    color: #000;
    opacity: .6;
    font-weight: 400; }
  .modal .btn-gradient {
    background: linear-gradient(135deg, #f97316 0%, #db2777 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    -webkit-transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
    transition: -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
    transition: transform 0.2s, box-shadow 0.2s;
    transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s, -webkit-box-shadow 0.2s;
    color: white; }
  .modal .btn-gradient:hover {
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
    -webkit-box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
            box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
    /* Bóng màu cam hồng */ }
  .modal .btn-gradient:active {
    -webkit-transform: scale(0.98);
            transform: scale(0.98); }
  .modal .small {
    font-size: 14px; }
  .modal label {
    font-weight: normal !important;
    font-size: 14px;
    color: #000 !important; }   

/* --- PHẦN ĐÁNH GIÁ (REVIEWS) --- */
.rating-summary {
    background: #f8fafc; padding: 20px; border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.rating-number { font-size: 3rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.rating-stars i { color: #facc15; font-size: 1.2rem; }

/* Thanh Progress bar sao */
.progress-item { display: flex; align-items: center; margin-bottom: 5px; font-size: 0.85rem; }
.progress-item .star-label { width: 50px; color: #64748b; }
.progress-item .progress { flex-grow: 1; height: 8px; border-radius: 10px; margin: 0 10px; background: #e2e8f0; }
.progress-bar-warning { background-color: #facc15; }

/* Bình luận viên */
.review-item { border-bottom: 1px solid #f1f5f9; padding: 20px 0; }
.review-item:last-child { border-bottom: none; }
.reviewer-info { display: flex; align-items: center; margin-bottom: 10px; }
.reviewer-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; margin-right: 15px; }
.reviewer-name { font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.review-date { font-size: 0.8rem; color: #94a3b8; }
.review-content { color: #475569; font-size: 0.95rem; line-height: 1.6; }

/* --- KHÓA HỌC LIÊN QUAN (Premium Style) --- */
/* --- 1. THẺ CARD BAO NGOÀI --- */
.related-course-card {
    display: flex; /* Xếp ngang: Ảnh trái, Chữ phải */
    align-items: flex-start; /* Căn hàng trên cùng */
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent; /* Để sẵn viền ẩn */
    transition: all 0.3s ease;
    text-decoration: none !important; /* Bỏ gạch chân mặc định của thẻ a */
    color: inherit; /* Giữ màu chữ kế thừa */
}

/* Hiệu ứng khi di chuột vào cả thẻ */
.related-course-card:hover {
    background-color: #f9f9f9; /* Nền xám nhẹ */
    border-color: #e0e0e0; /* Hiện viền */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Bóng mờ */
}

/* --- 2. ẢNH THUMBNAIL (Size nhỏ gọn 120x68 - Tỷ lệ 16:9) --- */
.related-thumb-wrapper {
    width: 120px;       /* Chiều rộng cố định */
    height: 68px;       /* Chiều cao cố định */
    flex-shrink: 0;     /* Không cho ảnh bị co lại khi màn hình nhỏ */
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    border: 1px solid #f0f0f0;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt ảnh vừa khung */
    transition: transform 0.5s ease;
}

/* Zoom ảnh nhẹ khi hover */
.related-course-card:hover .related-thumb {
    transform: scale(1.1);
}

/* --- 3. PHẦN NỘI DUNG CHỮ --- */
.related-body {
    flex-grow: 1; /* Chiếm hết phần còn lại */
    padding-left: 12px; /* Cách ảnh ra 12px */
    display: flex;
    flex-direction: column;
}

/* Tiêu đề khóa học */
.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 4px;
    
    /* Cắt dòng nếu dài quá 2 dòng (Quan trọng để không vỡ khung) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.related-course-card:hover .related-title {
    color: #ee4d2d; /* Đổi màu cam khi hover */
}

/* Đánh giá sao (Star) */
.related-meta {
    font-size: 11px;
    color: #777;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.related-meta i.fa-star {
    color: #ffc107; /* Màu vàng nghệ */
    font-size: 10px;
    margin-right: 3px;
}

/* --- 4. GIÁ TIỀN & ICON MŨI TÊN --- */
.related-price {
    font-size: 14px;
    font-weight: 700;
    color: #ee4d2d; /* Màu giá tiền nổi bật */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Đẩy mũi tên sang phải cùng */
}

.related-price .small.text-muted {
    font-size: 11px;
    color: #999 !important;
    margin-left: 5px;
    font-weight: 400;
}

/* Icon mũi tên */
.btn-arrow-icon {
    font-size: 12px;
    color: #ccc;
    transform: translateX(-5px); /* Mặc định thụt lùi một chút */
    transition: all 0.3s ease;
}

/* Khi hover thì mũi tên hiện ra và trượt sang phải */
.related-course-card:hover .btn-arrow-icon {
    opacity: 1;
    color: #ee4d2d;
    transform: translateX(0);
}

.related-meta i { color: #facc15; margin-right: 4px; }

/* Giá tiền */
.related-price {
    font-weight: 800;
    color: var(--primary); /* Màu cam chủ đạo */
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Nút icon mũi tên nhỏ (trang trí) */
.btn-arrow-icon {
    width: 24px; height: 24px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    font-size: 0.7rem;
    transition: 0.3s;
}
.related-course-card:hover .btn-arrow-icon {
    background: var(--primary);
    color: white;
}


.top-header {
    background: #fff;
    height: var(--header-height);
    display: flex; align-items: center;
    border-bottom: 1px solid #f1f5f9;
    position: sticky; top: 0; width: 100%; z-index: 1000;
}

.logo {
    font-size: 1.5rem; font-weight: 800; color: var(--primary);
    letter-spacing: -1px; display: flex; align-items: center;
}
.logo i { font-size: 1.8rem; margin-right: 8px; }

.logo img {
    max-height: 80px;
}

/* Search Bar */
.search-box { position: relative; width: 100%; max-width: 330px; }
.search-input {
    width: 100%; padding: 10px 20px 10px 45px;
    border-radius: 50px; border: 1px solid #e2e8f0;
    background: #f8fafc; transition: all 0.3s;
}
.search-input:focus {
    background: #fff; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); outline: none;
}
.search-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #94a3b8;
}

/* User Actions */
.btn-action { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.btn-action:hover { color: var(--primary); }
.btn-signup {
/*    background: var(--primary); */
    color: #fff;
    padding: 8px 20px; border-radius: 50px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, #f97316 0%, #db2777 100%);
}
.btn-signup:hover { 

/*    background: var(--primary-dark); */
    color: #fff; transform: translateY(-2px); 

background: linear-gradient(-135deg, #f97316 0%, #db2777 100%);
}

/* --- 3. MAIN MENU (Menu Ngang) --- */
.main-menu {
    background: #fff;
    height: var(--menu-height);
    display: flex; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
/*            position: fixed; */
top: var(--header-height); width: 100%; z-index: 999;
position: relative;
    top: 0;
}

.menu-list { display: flex; align-items: center; height: 100%; }
.menu-item { height: 100%; display: flex; align-items: center; margin-right: 30px; position: relative; }
.menu-link {
    color: var(--text-dark); font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; height: 100%;
}
.menu-link:hover { color: var(--primary); }
.menu-link i { margin-right: 6px; font-size: 1.1rem; }

/* Nút Danh mục nổi bật */
.menu-cat-btn {
    background: #f1f5f9; padding: 0 15px; border-radius: 6px; height: 36px;
    color: var(--text-dark) !important;
}
.menu-cat-btn:hover { background: var(--text-dark); color: #fff !important; }

/* MEGA MENU (Dropdown lớn) */
.mega-dropdown {
    position: absolute; top: var(--menu-height); left: 0;
    width: 800px; background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 20px; border-radius: 0 0 8px 8px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s;
    z-index: 99999;
}
.menu-item:hover .mega-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-col h6 {
    color: var(--primary); font-weight: 700; text-transform: uppercase;
    font-size: 0.85rem; margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 5px;
}
.mega-link-item { display: block; padding: 5px 0; color: #64748b; font-size: 0.9rem; }
.mega-link-item:hover { color: var(--text-dark); padding-left: 5px; }

.top-header, 
.logo, 
.logo i,
.search-input,
.main-menu {
    transition: all 0.3s ease-in-out;
}

.description-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease; /* Hiệu ứng trượt mượt mà */
}

/* TRẠNG THÁI THU GỌN (Mặc định) */
.description-wrapper.collapsed {
    max-height: 250px; /* Chiều cao tối đa khi thu gọn (bạn có thể chỉnh số này) */
}

/* TRẠNG THÁI MỞ RỘNG */
.description-wrapper.expanded {
    max-height: none; /* Bỏ giới hạn chiều cao */
}

/* LỚP PHỦ MỜ DẦN */
.desc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Độ cao của vùng mờ */
    /* Tạo dải màu từ trong suốt sang trắng */
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none; /* Để vẫn bôi đen được văn bản phía dưới nếu cần */
    transition: opacity 0.3s;
}

/* Khi mở rộng thì ẩn lớp mờ đi */
.description-wrapper.expanded .desc-overlay {
    opacity: 0;
    visibility: hidden;
}

/* Wrapper Giảng viên */
.instructor-bio-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* TRẠNG THÁI THU GỌN (Giới hạn 150px thôi cho gọn) */
.instructor-bio-wrapper.collapsed {
    max-height: 150px; 
}

/* TRẠNG THÁI MỞ RỘNG */
.instructor-bio-wrapper.expanded {
    max-height: none;
}

/* LỚP PHỦ MỜ (Ngắn hơn lớp phủ của bài viết chính) */
.bio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Mờ 60px dưới cùng */
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Ẩn lớp mờ khi mở ra */
.instructor-bio-wrapper.expanded .bio-overlay {
    opacity: 0;
    visibility: hidden;
}

button {
    outline: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .main-menu { display: none; }
    .course-title {
        font-size: 25px;
    } 

    .site-footer {
        margin-top: 30px;
    }

    body {
        padding-top: 0;
        padding-bottom: 72px;
    }
    .logo img {
        max-width: 155px;
    }
    .top-header {
        position: static;
    }
    :root {

        --header-height: 80px;
        --menu-height: 55px;
    }

    .what-learn-box {
        margin-top: 20px;
    }
    
    /* Ẩn thanh Sticky Bar dưới đáy luôn vì đã có box này rồi */
    .mobile-sticky-bar {
/*        display: none !important;*/
    }
}

@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1200px;
    }
}


.payment-modal-content {
  border-radius: 16px !important;
  border: none;
  overflow: hidden; }

/* 2. Timer Badge */
.payment-timer-badge {
  display: inline-block;
  background-color: #eff6ff;
  /* Xanh dương rất nhạt */
  color: #1e3a8a;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500; }

/* 3. Cột QR Code */
.border-right-md {
  border-right: 1px solid #e2e8f0; }

@media (max-width: 768px) {
  .border-right-md {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
    margin-bottom: 5px; } }
.qr-container {
  background: #fff;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
          box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: inline-block; }

.qr-image {
  border-radius: 8px; }

/* 4. Info Rows (Bảng thông tin) */
.border-left-orange {
  border-left: 4px solid #f97316; }

.transfer-info-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px; }

.info-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 2px 0;
  border-bottom: 1px dashed #e2e8f0; }

.info-row:last-child {
  border-bottom: none; }

.info-row.bg-highlight {
  /*    padding: 10px 0;*/
  border-radius: 8px;
  border-bottom: none; }

.info-label {
  color: #64748b;
  font-size: 0.9rem; }

.info-value {
  font-size: 14px;
  color: #334155; }

/* 5. Copy Button */
.btn-copy {
  background: #f1f5f9;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  color: #64748b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s; }
  .btn-copy i {
    font-size: 14px; }

.btn-copy:hover {
  background: #e2e8f0;
  color: #f97316; }

/* 6. Alert Warning Custom */
.alert-warning-custom {
  background-color: #fffbeb;
  /* Vàng kem */
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.85rem;
  border-radius: 8px;
  line-height: 1.5; }

.text-warning-dark {
  color: #b45309; }

/* 7. Text Colors Override */
.text-orange {
  color: #f97316 !important; }

.text-primary, .btn-outline-primary{
        color: var(--primary) !important;}

.btn-outline-primary {
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}
.payment-modal-content h4 {
  font-size: 18px; }
.payment-modal-content .text-muted {
  color: #3B3B44 !important; }

  /* Custom Video Modal */
#videoModalnew .modal-content {
    border-radius: 8px;
    overflow: hidden;
}

#videoModalnew .close:hover {
    color: var(--primary) !important; /* Đổi màu khi di chuột vào nút đóng */
    transform: rotate(90deg); /* Hiệu ứng xoay nhẹ */
    transition: all 0.3s;
}

/* Trên mobile, video full màn hình ngang */
@media (max-width: 576px) {
    #videoModalnew .modal-dialog {
        margin: 0;
        max-width: 100%;
    }
    #videoModalnew .modal-content {
        border-radius: 0;
        min-height: 100vh; /* Full màn hình đen */
        justify-content: center;
    }
}


.instructor-banner-wrapper {
        /* Gradient cam pha chút đỏ nhẹ để đằm màu hơn, đỡ chói */
        background: linear-gradient(120deg, #ff8c42 0%, #f97316 100%);
        padding: 50px 0;
        color: #fff;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        margin: 40px 0 -50px;
        box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2); /* Bóng màu cam nhẹ */
        position: relative;
        overflow: hidden;
    }

    /* Trang trí nền (Hình tròn mờ) */
    .instructor-banner-wrapper::after {
        content: ''; position: absolute; top: -50px; right: -50px;
        width: 300px; height: 300px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%; pointer-events: none;
    }

    .badge-sub-title {
        background: rgba(255,255,255,0.2);
        color: #fff; font-size: 11px; font-weight: 700;
        padding: 5px 12px; border-radius: 20px;
        letter-spacing: 1px; display: inline-block; margin-bottom: 10px;
    }

    .instructor-banner-wrapper .banner-title {
        font-size: 2.2rem; font-weight: 800;
        margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .instructor-banner-wrapper .banner-desc {
        font-size: 1.05rem; opacity: 0.95; line-height: 1.6;
        margin-bottom: 30px; font-weight: 400;
    }

    /* NÚT PILL TRẮNG (Điểm nhấn) */
    .btn-register-pill {
        background: #fff;
        color: #f97316; /* Chữ cam */
        border: none;
        padding: 14px 35px;
        border-radius: 50px; /* Bo tròn viên thuốc */
        font-weight: 800; font-size: 14px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        cursor: pointer; display: inline-block;
    }
    
    .btn-register-pill:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        color: #ea580c;
    }

    .hotline-text {
        margin-top: 15px; font-size: 14px; opacity: 0.9;
    }

    /* Ảnh Banner */
    .instructor-banner-wrapper .banner-img {
        max-height: 280px;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
        transition: transform 0.3s;
    }
    .instructor-banner-wrapper:hover .banner-img {
        transform: scale(1.03) rotate(2deg);
    }

    /* --- 2. MODAL & FORM STYLE (FIX LỖI THÔ) --- */
    
    .instructor-modal-soft .modal-content {
        border-radius: 16px; /* Bo góc modal lớn */
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        overflow: hidden;
    }
    
    .instructor-modal-soft .modal-header {
        background: #fcfcfc;
        padding: 25px 25px 10px 25px;
    }

    .instructor-modal-soft .modal-body {
        padding: 10px 30px 30px 30px;
    }

    .label-soft {
        font-size: 13px; font-weight: 700; color: #475569;
        margin-bottom: 6px;
    }

    /* INPUT MỀM (Nền xám, không viền đen) */
    .input-soft {
        background-color: #f8fafc;
        border: 1px solid #e2e8f0; /* Viền rất nhạt */
        border-radius: 8px; /* Bo góc nhẹ 8px */
        height: 45px;
        font-size: 14px; color: #333;
        transition: 0.2s;
    }
    
    .input-soft:focus {
        background-color: #fff;
        border-color: #f97316; /* Focus màu cam */
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); /* Glow nhẹ */
    }

    /* NÚT SUBMIT FORM */
    .btn-submit-gradient {
        background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
        color: #fff; border: none;
        height: 50px;
        border-radius: 50px; /* Bo tròn mềm mại */
        font-weight: 700; font-size: 15px;
        box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
        transition: 0.3s;
    }
    .btn-submit-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
        opacity: 0.95;
        color: white !important;
    }

    .course-description p {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 15px;
     }
     .course-description h2 {
        font-size: 20px;
        margin-bottom: 15px;
       text-align: left;
        line-height: 24px;


     }

     .course-description h3 {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: left;
        line-height: 24px;

     }


@media (max-width: 767px) {
    .lesson-item  .lesson-title {
        font-size: 14px;
        max-width: 220px;
    }
    .course-description h2 {
        font-size: 18px;
    }
    .section-header > span  {
        font-size: 15px;
    }
    .course-description h3 {
        font-size: 16px;
    }
}
