:root {
    --primary-blue: #1a3b8c;
    --primary-blue-hover: #122863;
    --secondary-blue: #2a52be;
    --light-blue-bg: #eef2ff;
    --accent-red: #d92d20;
    --red-bg: #fef3f2;
    --red-border: #fecdca;
    --text-dark: #1f2937;
    --text-gray: #4b5563;
    --border-color: #eaecf0;
    --bg-main: #ffffff;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --gold: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-gray);
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 59, 140, 0.2);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    margin-top: -6px; /* Kéo logo lên trên để cân bằng phần nền trống ở dưới */
}

.logo span {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: 6px; /* Kéo chữ xuống một chút để ngay giữa logo */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    padding: 120px 0;
}

.hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 24px;
    font-weight: 700;
    color: #e0f2fe; /* Light blue */
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero .btn i {
    margin-left: 10px;
}

/* About & Legal */
.about-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.legal-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.warning-box {
    border: 2px solid var(--red-border);
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.warning-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background-color: var(--accent-red);
}

.warning-header, .about-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.warning-header i {
    font-size: 28px;
    color: var(--accent-red);
}

.warning-header h3 {
    color: var(--accent-red);
    font-size: 22px;
    font-weight: 800;
}

.danger-list {
    margin: 20px 0;
    background-color: var(--red-bg);
    padding: 15px;
    border-radius: 8px;
}

.danger-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

.danger-list i.fa-circle-xmark {
    color: var(--accent-red);
}

.danger-list i.fa-arrow-right {
    color: var(--text-gray);
    font-size: 14px;
}

.small-text {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

.about-box {
    border: 1px solid var(--border-color);
}

.about-header i {
    font-size: 28px;
    color: var(--primary-blue);
}

.about-header h3 {
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Why Us */
.why-us {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-gray);
}

/* Programs 6-Grid */
.programs-6grid-section {
    padding: 80px 0;
}

.grid-6col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.prog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.prog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(26, 59, 140, 0.1);
}

.prog-card .prog-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue-bg);
    color: var(--primary-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.prog-card:hover .prog-icon {
    background: var(--primary-blue);
    color: var(--white);
}

.prog-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    min-height: 40px;
}

.prog-card p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.prog-card:hover .view-more {
    opacity: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-red);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    flex: 1;
    line-height: 1.3;
}

.modal-short {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-body ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-gray);
}

.modal-body ul li i {
    color: #10b981;
    margin-top: 5px;
}

.modal-body ul li strong {
    color: var(--text-dark);
}

/* CTA & Form */
.cta-section {
    padding: 80px 0;
    color: var(--text-dark);
}

.cta-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.cta-content p {
    font-size: 18px;
    color: var(--text-gray);
}

.cta-action {
    flex: 1;
    max-width: 500px;
}

.register-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-title {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

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

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

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Footer */
footer {
    background-color: #111827; /* very dark gray */
    color: #f3f4f6;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
    background: white; /* optional to make logo pop if it's dark */
    padding: 2px;
    border-radius: 5px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 800;
}

.copyright {
    color: #9ca3af;
    font-size: 14px;
}

.footer-col h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
}

.contact-list i {
    color: var(--primary-blue);
    background: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.social-links li {
    margin-bottom: 15px;
}

.social-links a {
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}


/* Detail Pages */
.page-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
}
.page-header h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 15px;
}
.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}
.detail-content {
    padding: 60px 0;
    background: var(--white);
}
.detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.detail-wrapper ul {
    margin-top: 30px;
}
.detail-wrapper ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}
.detail-wrapper ul li i {
    color: #10b981;
    font-size: 20px;
    margin-top: 5px;
}
.detail-wrapper ul li strong {
    color: var(--text-dark);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}
.stat-box {
    background: var(--light-blue-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.stat-label {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 600;
}
.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Hero Grid Form */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}
.hero-form-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: var(--text-dark);
}
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}



/* Roadmap */
.roadmap-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}
.roadmap-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px;
    width: 2px;
    background: var(--border-color);
}
.roadmap-step {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
    border: 4px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.step-content {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    flex-grow: 1;
}
.step-content h3 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
}
.step-content p {
    color: var(--text-gray);
}
.sticky-widgets a:hover {
    transform: scale(1.1);
}

/* Responsive Design (Moved to bottom to ensure proper overrides) */
@media (max-width: 1024px) {
    .about-legal, .grid-2col, .services-grid, .cta-container, .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .benefits-grid, .grid-6col {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    .cta-action {
        width: 100%;
        max-width: 100%;
    }
    .about-legal {
        margin-top: 30px;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-text-content {
        text-align: center !important;
    }
    .hero-text-content h1, .hero-text-content h2, .hero-text-content p {
        text-align: center !important;
    }
    .hero-text-content ul {
        display: inline-block;
        text-align: left !important;
        margin: 0 auto 20px !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding: 40px 0 60px;
    }
    .hero h1 {
        font-size: 28px !important;
    }
    .hero-sub {
        font-size: 16px !important;
    }
    .section-title {
        font-size: 24px;
    }
    .footer-grid, .benefits-grid, .grid-6col {
        grid-template-columns: 1fr;
    }
    .nav-container .logo span {
        display: none;
    }
    .nav-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .instructors-grid, .testimonial-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-text-content h1 {
        font-size: 28px !important;
    }
    .hero-text-content h2 {
        font-size: 16px !important;
    }
    .roadmap-step {
        gap: 15px;
    }
    .step-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sticky-widgets {
        bottom: 15px;
        right: 15px;
    }
    .sticky-widgets a {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
