/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    --dark-blue-bg: radial-gradient(ellipse at top, #1B2735 0%, #090A0F 100%);
    --medium-blue-rgba: rgba(23, 42, 69, 0.75); /* Tăng độ mờ một chút */
    --primary-orange: #FF7A00;
    --light-text: #CCD6F6;
    --white-text: #FFFFFF;
    --font-family: 'Roboto', sans-serif;
}

/* ==========================================================================
   2. Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--dark-blue-bg);
    background-attachment: fixed; /* Giữ nền đứng yên khi cuộn, tạo hiệu ứng chiều sâu */
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0; /* Tăng khoảng cách giữa các section */
    position: relative;
    overflow: hidden; /* Chống các hiệu ứng tràn ra ngoài */
}

h1, h2, h3, h4 {
    color: var(--white-text);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--white-text);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.2);
}

/* ==========================================================================
   3. Background Image cho Section (Tính năng mới)
   ========================================================================== */
.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
/* Lớp phủ màu đen lên trên ảnh nền để chữ dễ đọc */
.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 25, 47, 0.85); /* Lớp phủ đậm hơn */
    z-index: 1;
}
/* Đẩy nội dung section lên trên lớp phủ */
.section-with-bg .container {
    position: relative;
    z-index: 2;
}
/* Các ảnh nền khác nhau */
.bg-image-1 {
    background-image: url('../images/bg-1.jpg');
}
.bg-image-2 {
    background-image: url('../images/bg-2.jpg');
}
.bg-image-3 {
    background-image: url('../images/bg-3.jpg');
}


/* ==========================================================================
   4. Styles cho từng Section (Đã tối ưu)
   ========================================================================== */

/* --- Sticky Bar --- */
.sticky-bar {
    /* ... Giữ nguyên ... */
    background-color: var(--primary-orange); color: var(--white-text);
    text-align: center; padding: 10px; font-weight: 700;
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
}
        .close-sticky-bar {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            font-size: 24px;
            font-weight: bold;
            line-height: 1;
            cursor: pointer;
            padding: 5px;
            color: inherit; /* Lấy màu chữ từ thẻ cha */
        }
        .close-sticky-bar:hover {
            opacity: 0.7;
        }
/* --- Hero Section --- */
.hero-section { padding-top: 150px; padding-bottom: 100px; }
.hero-container { display: flex; align-items: center; gap: 40px; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; }
.hero-content .highlight { color: var(--primary-orange); font-size: 50px;}
.hero-content .subtitle { font-size: 1.2rem; margin-bottom: 30px; }
.hero-content .cta-subtext { margin-top: 15px; font-style: italic; font-size: 0.9rem; }
.hero-visual { flex: 1; text-align: center; }
.hero-visual img { max-width: 100%; height: auto; }

/* --- Experts Section --- */
.experts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.expert-card {
    background: var(--medium-blue-rgba); padding: 30px; border-radius: 8px;
    text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
}
.expert-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.expert-card img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary-orange); margin-bottom: 20px;
}
.expert-card h3 { color: var(--white-text); margin-bottom: 5px; }
.expert-card .role { color: var(--primary-orange); font-weight: 700; margin-bottom: 15px; font-size: 0.9rem; }
.expert-card .bio { font-size: 0.9rem; font-style: italic; color: var(--light-text); }

/* --- Roadmap Section --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after {
    content: ''; position: absolute;
    width: 3px; background-color: rgba(23, 42, 69, 0.7);
    top: 0; bottom: 0; left: 50%; margin-left: -1.5px;
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item::after {
    content: ''; position: absolute;
    width: 20px; height: 20px; right: -10px; background-color: var(--primary-orange);
    top: 25px; border-radius: 50%; z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -10px; }

        /* --- Final CTA Section --- */
        .cta-section-subtitle {
            text-align: center; max-width: 700px;
            margin: 0 auto 30px auto; font-size: 1.1rem;
        }
        .final-cta-main {
            text-align: center; max-width: 800px; margin: 0 auto 60px auto;
        }
        .final-cta-main .countdown-timer {
            margin: 30px 0; display: flex; justify-content: center; gap: 20px;
        }
        .timer-unit { 
            background: transparent; padding: 10px; border-radius: 8px; 
            text-align: center; min-width: 80px; border: 1px solid var(--primary-orange); 
        }
        .timer-unit span:first-child { 
            display: block; font-size: 2rem; font-weight: 700; 
            color: var(--white-text); line-height: 1.1; 
        }
        .timer-unit span:last-child { 
            display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--light-text); 
        }
        .final-cta-button {
            padding: 20px 45px; font-size: 1.3rem; margin-bottom: 15px;
            box-shadow: 0 10px 30px rgba(255, 122, 0, 0.25);
        }
        .final-cta-main .cta-subtext {
            font-size: 1rem; font-style: italic; opacity: 0.9;
        }
        .secondary-form-container {
            max-width: 600px; margin: 0 auto; text-align: center;
        }
        .secondary-form-container .form-intro-text {
            margin-bottom: 20px; font-style: italic; opacity: 0.8;
        }
        .cta-form { 
            background: var(--medium-blue-rgba); padding: 30px; border-radius: 8px; 
            border: 1px solid rgba(255, 255, 255, 0.1); 
        }
        .application-form input {
            width: 100%; padding: 15px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(10, 25, 47, 0.8); color: var(--white-text); font-size: 1rem;
        }
        .form-group { position: relative; margin-bottom: 22px; }
        .application-form .cta-button { width: 100%; margin-top: 10px; }
        .error-message { color: #ff7675; font-size: 0.85rem; position: absolute; left: 5px; bottom: -20px; display: none; }
        .form-group.error input { border-color: #ff7675; }
        .form-group.error .error-message { display: block; }
        .form-group.success input { border-color: #28a745; }
        
        /* CSS ĐÃ CẬP NHẬT CHO HIỂN THỊ GIÁ */
        .price-box {
            display: flex;
            flex-direction: column; /* THAY ĐỔI: Xếp chồng theo chiều dọc */
            justify-content: center;
            align-items: center; /* THAY ĐỔI: Căn giữa theo chiều ngang */
            gap: 0; /* THAY ĐỔI: Reset gap */
            margin: 0 auto 30px auto;
        }
        .price-box .new-price { /* THAY ĐỔI: Đưa .new-price lên trước */
            font-size: 8rem; /* THAY ĐỔI: 0đ TO HƠN */
            font-weight: 900;
            color: var(--primary-orange);
            line-height: 1;
        }
        .price-box .original-price {
            font-size: 2.5rem; /* THAY ĐỔI: Kích thước nhỏ hơn */
            color: #8892b0;
            font-weight: 500;
            margin-top: -15px; /* THAY ĐỔI: Kéo giá cũ lên gần hơn */
        }
.countdown-timer { margin: 0; display: flex; justify-content: center; gap: 20px; }
.timer-unit { background: transparent; padding: 10px; border-radius: 8px; text-align: center; min-width: 80px; border: 1px solid var(--primary-orange); }
.timer-unit span:first-child { display: block; font-size: 2rem; font-weight: 700; color: var(--white-text); line-height: 1.1; }
.timer-unit span:last-child { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--light-text); }
.cta-form { background: var(--medium-blue-rgba); padding: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
.application-form h3 { text-align: center; font-size: 1.8rem; color: var(--white-text); }
.application-form p { text-align: center; font-size: 0.9rem; margin: -5px 0 25px 0; }
.form-group { position: relative; margin-bottom: 22px; }
.application-form input {
    width: 100%; padding: 15px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 25, 47, 0.8); color: var(--white-text); font-size: 1rem;
}
.application-form .cta-button { width: 100%; margin-top: 10px; }
.error-message { color: #ff7675; font-size: 0.85rem; position: absolute; left: 5px; bottom: -20px; display: none; }
.form-group.error input { border-color: #ff7675; }
.form-group.error .error-message { display: block; }
.form-group.success input { border-color: #28a745; }


/* --- FAQ Section --- */
.faq-item { max-width: 700px; margin: 0 auto 20px auto; border-bottom: 1px solid var(--medium-blue-rgba); padding-bottom: 15px; }
.faq-item h4 { color: var(--primary-orange); }

/* --- Footer --- */
.footer { background: rgba(23, 42, 69, 0.5); padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* ==========================================================================
   5. Responsive Design (Đã rà soát và bổ sung)
   ========================================================================== */
@media (max-width: 992px) {
    .truth-grid { grid-template-columns: 1fr; }
    .truth-content h2 { text-align: center; }
    .truth-visual { display: none; }
    .experts-grid { grid-template-columns: repeat(2, 1fr); } /* Chuyển thành 2 cột trên tablet */
    .deliverables-grid { grid-template-columns: 1fr; }
    .criteria-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    h2 { font-size: 2.2rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.8rem; }
    .comparison-grid { grid-template-columns: 1fr; }
    .experts-grid { grid-template-columns: 1fr; } /* Chuyển về 1 cột trên mobile */
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 10px; }
    .criteria-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .countdown-timer { gap: 10px; }
    .timer-unit { min-width: auto; flex-grow: 1; padding: 10px 5px; }
    .timer-unit span:first-child { font-size: 1.8rem; }
}
/* ==========================================================================
   About Us Section (Bổ sung)
   ========================================================================== */

.aboutUs-section {
    padding: 80px 0; /* Giảm padding một chút cho cân đối */
}

/* Cấu trúc responsive giống Bootstrap */
.aboutUs-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.aboutUs-section .align-items-center {
    align-items: center;
}

.aboutUs-section .col-12,
.aboutUs-section .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .aboutUs-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Định dạng cho nội dung bên trái */
.aboutUs-content .section-title {
    text-align: left; /* Căn lề trái cho tiêu đề */
    margin-bottom: 25px;
}

.aboutUs-content .description p {
    margin-bottom: 15px;
}

.aboutUs-content .description ul {
    list-style: none; /* Bỏ dấu chấm đầu dòng mặc định */
    padding-left: 0;
    margin-top: 20px;
}

.aboutUs-content .description li {
    position: relative;
    padding-left: 25px; /* Tạo khoảng trống cho icon */
    margin-bottom: 15px;
}

.aboutUs-content .description li::before {
    content: '✅'; /* Icon đầu dòng */
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-orange); /* Sử dụng màu cam chủ đạo */
}

/* Định dạng cho video bên phải */
.aboutUs-video-wrapper {
    border-radius: 10px;
    overflow: hidden; /* Đảm bảo video cũng được bo góc */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aboutUs-video-wrapper video {
    display: block; /* Bỏ khoảng trống thừa dưới video */
    width: 100%;
    height: auto;
}

/* Responsive cho mobile */
@media (max-width: 767px) {
    .aboutUs-content .section-title {
        text-align: center; /* Căn giữa tiêu đề trên mobile */
    }
    .aboutUs-video-wrapper {
        margin-top: 30px; /* Tạo khoảng cách giữa text và video */
    }
}
/* --- Feedback Section --- */
.feedback-section {
    background-color: transparent; /* Giữ nền trong suốt để hợp với body */
    padding: 80px 0;
}
.feedback-section .section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    opacity: 0.9;
}
.feedback-carousel {
    margin: 0 auto;
    padding: 20px 0;
}
.feedback-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    /* THAY ĐỔI: Không đặt chiều cao cố định trực tiếp ở đây nữa,
       mà sẽ dùng padding-bottom để tạo ra hình vuông dựa trên chiều rộng */
    padding: 0 10px; /* Điều chỉnh padding xung quanh slide */
}
.feedback-carousel .swiper-slide a { /* THÊM MỚI: Wrapper cho ảnh để tạo tỷ lệ vuông */
    display: block; /* Quan trọng để padding-bottom có tác dụng */
    width: 100%; /* Chiếm toàn bộ chiều rộng của slide */
    padding-bottom: 100%; /* THÊM MỚI: Tạo tỷ lệ 1:1 (hình vuông) */
    position: relative; /* Để ảnh bên trong có thể absolute */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Đảm bảo ảnh không tràn ra ngoài bo góc */
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.feedback-carousel .swiper-slide img {
    position: absolute; /* THÊM MỚI: Ảnh tuyệt đối trong wrapper vuông */
    top: 0;
    left: 0;
    width: 100%; /* Chiếm 100% chiều rộng của wrapper */
    height: 100%; /* Chiếm 100% chiều cao của wrapper */
    object-fit: cover; /* Rất quan trọng: Tự động cắt cúp ảnh để lấp đầy hình vuông mà không bị méo */
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border-radius: 12px; /* Đảm bảo ảnh cũng bo góc */
}
.feedback-carousel .swiper-slide img:hover {
    transform: scale(1.02);
}

/* Swiper Navigation (Next/Prev buttons) */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-orange) !important;
    --swiper-navigation-size: 35px;
}

/* Swiper Pagination (dots) */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary-orange) !important;
}

/* Fancybox custom styles (optional) */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.9);
}
.fancybox__caption {
    color: var(--white-text);
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

/* Responsive cho Feedback Section */
@media (max-width: 992px) {
    .feedback-carousel {
        max-width: 700px; /* Điều chỉnh lại max-width cho tablet */
    }
}
@media (max-width: 768px) {
    .feedback-carousel {
        max-width: 100%; /* Để full width trên mobile */
    }
    .feedback-carousel .swiper-slide {
        padding: 0 5px; /* Giảm padding trên mobile */
    }
    .swiper-button-next, .swiper-button-prev {
        --swiper-navigation-size: 28px;
    }
}
@media (max-width: 480px) {
    .feedback-section {
        padding: 60px 0;
    }
    .swiper-button-next, .swiper-button-prev {
        --swiper-navigation-size: 24px;
    }
}
/* === About Snap Carousel Cards === */
/* Chỉ dùng class tự định nghĩa theo chuẩn của anh */

:root{
  --as-primary: #1e88e5;
  --as-heading: #111111;
  --as-text: #333333;
  --as-bg: #ffffff;
  --as-bg-alt: #f6f7f9;
  --as-shadow: 0 12px 28px rgba(0,0,0,.10);
  --as-radius: 16px;
}

.aboutSnap{/* background: var(--as-bg); */padding: 48px 0;}
.as-wrapper{ max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.as-header{ margin-bottom: 16px; }
.as-title{margin: 0 0 6px;font-size: 1.9rem;color: #ffffff;}
.as-sub{ margin: 0; color: var(--as-text); opacity: .85; }

.as-nav{ position: relative; height: 0; }
.as-btn{
  position: absolute; top: -54px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--as-bg); box-shadow: var(--as-shadow);
  font-size: 20px; line-height: 42px; text-align: center; cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.as-btn:hover{ transform: translateY(-1px); }
.as-prev{ right: 64px; }
.as-next{ right: 16px; }

.as-row{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92%;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.as-row:focus{ outline: none; }

.as-card{
  scroll-snap-align: start;
  background: var(--as-bg);
  border-radius: 20px;
  box-shadow: var(--as-shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
}

.as-hero{ position: relative; }
.as-hero img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.as-hero-overlay{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 60%);
  color: #fff;
}
.as-hero-overlay h3{ margin: 0; font-size: 1.25rem; }
.as-hero-overlay p{ margin: 0; opacity: .98; }

.as-strip{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 20%;
  gap: 10px;
  padding: 12px;
  background: var(--as-bg-alt);
}
.as-thumb{
  border: 0; padding: 0; background: transparent; cursor: pointer;
  border-radius: 12px; overflow: hidden; position: relative;
  outline: none;
}
.as-thumb img{
  width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .25s ease;
}
.as-thumb:hover img{ transform: scale(1.03); }
.as-thumb.is-active::after{
  content: ""; position: absolute; inset: 0;
  border: 2px solid var(--as-primary); border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9) inset;
}

/* Desktop: hiện 2 card */
@media (min-width: 1024px){
  .as-row{ grid-auto-columns: 48%; }
}

/* Mobile tweaks */
@media (max-width: 480px){
  .as-title{ font-size: 1.5rem; }
  .as-btn{ top: -50px; }
}