/* CSS Reset & Cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

/* Thêm hiệu ứng cuộn mượt mà khi bấm nút "Xem chi tiết" */
html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.7;
    color: #1e293b; 
    background-color: #f4f7f6; /* Nền xám xanh cực nhạt */
    -webkit-font-smoothing: antialiased; 
}

a {
    text-decoration: none;
    color: inherit;
}

/* Thanh Điều Hướng (Navbar) */
header {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #e31633; 
    display: flex;
    align-items: center;
    gap: 12px; 
}

.logo-img {
    height: 40px; 
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a; 
}

.nav-links a:hover {
    color: #e31633; 
    transition: color 0.2s ease;
}

/* CSS Cho khối Hotline trên Header */
.header-hotline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 10px;
}

.hotline-link {
    font-weight: 800;
    color: #e31633 !important;
    font-size: 16px;
}

.hotline-link:hover {
    color: #c0122a !important;
    text-decoration: underline;
}

.btn-login {
    background-color: #0f172a; 
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px; 
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #e31633; 
    box-shadow: 0 6px 15px rgba(227, 22, 51, 0.3);
    transform: translateY(-2px);
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, #e0eaf5 0%, #f8fafc 100%); 
    color: #0f172a;
    padding: 80px 0; 
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 320px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #0f172a;
}

.hero-text h1::first-line {
    color: #e31633; 
}

.hero-text p {
    font-size: 18px;
    font-weight: 500;
    color: #475569; 
    margin-bottom: 24px; 
    max-width: 90%;
}

/* CSS Khu Vực Đồng Hồ Đếm Ngược */
.countdown-banner {
    margin-bottom: 30px;
    display: block; 
    width: fit-content; 
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(227, 22, 51, 0.15);
    border: 2px dashed #e31633;
}

.countdown-label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 16px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.time-box {
    background: #e31633;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
}

.time-sep {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.hero-action {
    margin-top: 10px; 
    display: block;
}

.btn-primary {
    background-color: #e31633; 
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(227, 22, 51, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c0122a;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(227, 22, 51, 0.4);
}

.hero-image {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.03); 
}

/* Danh sách Khóa Học (Courses) */
.courses, .testimonials {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px; 
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #0f172a;
    text-transform: uppercase;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
}

.course-card {
    background: #ffffff;
    border-radius: 16px;
    border-top: 5px solid #e31633; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.course-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: all 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.05); 
}

.course-card h3 {
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

.course-card p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 16px;
    flex-grow: 1; 
}

.course-link {
    color: #e31633;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    transition: all 0.3s ease;
    margin-top: auto; 
}

.course-link:hover {
    color: #c0122a;
    transform: translateX(8px); 
}

/* KHU VỰC CHI TIẾT LỘ TRÌNH */
.details-section {
    background-color: #ffffff;
    padding: 60px 0; 
    margin: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.details-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px; 
}

.detail-box {
    margin-bottom: 50px;
    padding-top: 80px; 
    margin-top: -80px; 
}

.detail-box:last-child {
    margin-bottom: 0;
}

.detail-heading {
    color: #0f172a;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    border-left: 5px solid #e31633;
    padding-left: 15px;
}

.roadmap-list-large {
    list-style: none;
    text-align: left;
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.roadmap-list-large li {
    font-size: 16px;
    color: #475569;
    margin-bottom: 20px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.roadmap-list-large li:last-child {
    margin-bottom: 0;
}

.roadmap-list-large li::before {
    content: '✓'; 
    color: #e31633;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 0;
}

.roadmap-list-large strong {
    color: #0f172a;
    font-size: 17px;
}

.roadmap-purpose {
    display: block;
    font-size: 14px;
    color: #e31633;
    font-weight: 600;
    margin-top: 6px;
    padding-left: 5px;
}

/* -------------------------------------
   CSS KHU VỰC LMS MỚI
-------------------------------------- */
.lms-section {
    background-color: #e2e8f0; 
    padding: 80px 0; 
    margin: 40px 0;
}

.lms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; 
}

.lms-subtitle {
    text-align: center;
    color: #475569;
    font-size: 18px;
    margin-top: -40px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lms-card {
    border-top: 5px solid #0f172a; 
}

.lms-heading {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* CSS cho Bảng Vàng (Testimonials) */
.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid #e2e8f0;
}

.score-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e31633;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(227, 22, 51, 0.3);
}

.student-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #f8fafc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-card h3 {
    color: #0f172a;
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: #64748b;
    font-size: 15px;
}

/* CSS cho Form Đăng Ký (Contact Section) */
.contact-section {
    background-color: #0f172a; 
    padding: 80px 0; 
    margin-top: 60px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px; 
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    color: white;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-info p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.8;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #e31633;
}

.btn-submit {
    width: 100%;
    background-color: #e31633;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #c0122a;
}

/* Footer - Xanh Navy chuyên nghiệp */
footer {
    background-color: #020617; 
    color: #f8fafc;
    text-align: center;
    padding: 30px 20px;
    font-size: 15px;
    font-weight: 500;
}

footer p {
    margin-bottom: 5px;
}

/* =========================================
   GIAO DIỆN MOBILE (RESPONSIVE)
========================================= */
@media screen and (max-width: 768px) {
    /* Ép Logo và chữ không bị rớt dòng */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 16px 20px;
    }
    
    .logo {
        font-size: 22px; /* Thu nhỏ chữ Logo */
        white-space: nowrap; /* Cấm rớt dòng */
    }
    
    .logo-img {
        height: 32px; /* Thu nhỏ ảnh Logo */
    }

    /* Định dạng lại thanh menu cho điện thoại */
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; /* Cho phép rớt dòng nếu menu quá dài */
        gap: 12px;
        font-size: 14px;
    }

    /* Thu nhỏ tiêu đề Hero Banner */
    .hero {
        padding: 50px 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text p {
        font-size: 16px;
    }

    .hero-container {
        text-align: center; /* Căn giữa nội dung trên điện thoại */
    }

    /* Căn giữa đồng hồ đếm ngược trên điện thoại */
    .countdown-banner {
        margin: 0 auto 30px auto;
    }

    .countdown-timer {
        justify-content: center;
    }

    /* Thu nhỏ các tiêu đề chính */
    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .contact-info h2 {
        font-size: 28px;
    }
}