
/* =========================================
   CSS VARIABLES ĐỒNG BỘ THƯƠNG HIỆU KAFA
========================================= */
:root {
  --navy: #1c1917; /* Đen Cà phê */
  --mocha: #44403c; /* Nâu đất trầm */
  --coral: #d97706; /* Cam đất/Vàng Hổ phách */
  --coral-light: #fbbf24; /* Vàng sáng */
  --yellow: #fcd34d; /* Vàng tươi */
  --bg-gradient: linear-gradient(
    135deg,
    #f5f5f4 0%,
    #e7e5e4 100%
  ); /* Be sáng */
  --bg-gray: #fafaf9; /* Màu nền sáng nhẹ */
  --text-main: #292524;
  --text-light: #57534e;
  --border-color: #e7e5e4;
}

body {
  
  color: var(--text-main);
  overflow-x: hidden;
}
/* Tùy chỉnh màu sắc nút điều hướng Swiper cho hợp với màu cam/xanh của Kafa */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 50%;
    transform: scale(0.5);
}

.heroSwiper .swiper-pagination-bullet-active {
    background: #ff5e3a; /* Màu cam Kafa */
}

/* Hiệu ứng hover cho nút CTA */
#cta-btn:hover {
    background-color: #1a3c7a !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.uudai-button {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    margin-top: -50px;
}
.text-center.uudai-button .btn-custom {
    color: #fff;
    background: radial-gradient(54.52% 213.16% at 51.35% -101.5%, #6590E1 0%, #2C5299 100%);
    border-radius: 100px;
    font-size: 25px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.36);
    position: relative;
    padding: 10px 45px;
    font-weight: 600;
    z-index: 99;
    border: 20px solid #fff;
}
/* =========================================
   SECTION 2: FEATURES (VÌ SAO CHỌN KAFA - DẠNG ẢNH)
========================================= */
/* Custom CSS cho Section 2 */
    .gift-section {
        background-color: rgba(255, 217, 205, 1); /* Màu nền cam/hồng nhạt */
            padding: 100px 0;
    }
    
    .gift-title {
        color: #f14c24;
        
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 2rem;
    }

    /* Hiệu ứng hover cho ảnh */
    .gift-img {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border-radius: 16px;
    }

    .gift-img:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    }
/* =========================================
   SECTION 3: TARGET AUDIENCE (SÁNG)
========================================= */
/* Tổng quan Section */
    .target-section {
        background-color: rgba(255, 217, 205, 1);; /* Màu nền hồng nhạt/cam nhạt */
         padding: 100px 0;
         padding-top: 0px;
    }

    /* Định dạng Tiêu đề */
    .target-title {
        color: #f14c24; /* Màu cam Kafa */
        font-weight: 900;
        text-transform: uppercase;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    /* Định dạng Đoạn văn */
    .target-desc {
        color: #000;
        font-size: 1.4rem;
        line-height: 1.6;
        margin-bottom: 30px;
         /* Dùng font có chân giống trong ảnh thiết kế */
    }

    /* Nút Button CTA */
    .btn-target {
        background-color: #2b56a4; /* Màu xanh Kafa */
        color: #ffffff;
        font-weight: bold;
        padding: 12px 30px;
        border-radius: 50px; /* Bo tròn hoàn toàn */
        text-transform: uppercase;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
        border: none;
    }

    .btn-target:hover {
        background-color: #1a3c7a; /* Xanh đậm hơn khi hover */
        color: #ffffff;
        transform: translateY(-2px);
    }

    /* Thẻ Card bên phải */
    .target-card {
        background-color: rgba(252, 242, 231, 1); /* Màu nền của card hơi ngả vàng/hồng nhẹ */
        border-radius: 16px;
        padding: 12px;
        box-shadow: 0px 16px 25px 0px rgba(240, 78, 35, 0.35);
        height: 100%; /* Giúp các card bằng nhau */
        transition: transform 0.3s ease;
    }

    .target-card:hover {
        transform: translateY(-5px);
    }

    /* Hình ảnh trong Card */
    .target-card img {
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
        aspect-ratio: 4/3; /* Giữ khung ảnh luôn cùng tỷ lệ dù up ảnh kích thước khác nhau */
        margin-bottom: 15px;
    }

    /* Text dưới ảnh trong Card */
    .target-card-text {
        font-size: 1.3rem;
        color: #000;
        text-align: center;
        margin: 0;
        
        font-weight: 600;
        line-height: 1.4;
    }

/* =========================================
   SECTION 4: TIMELINE PROCESS (TỐI)
========================================= */
.process-section {
           background: linear-gradient(180deg, #FFF7F5 -11.22%, #F04E23 267.11%);
    padding: 100px 0;
    }

    .process-title {
        color: #f14c24;
            max-width: 1200px;
    margin: 0 auto;
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    .process-subtitle {
        color: #000;        
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .process-card {
        background-color: #ffffff;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        max-width: 800px;
        margin: 0 auto;
    }

    .step-item {
        background-color: #dbe9ff;
        border-radius: 12px;
        padding: 15px 20px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        cursor: pointer;
        color: #000;
    }

    .step-number {
        width: 38px;
        height: 38px;
        padding-bottom: 10px;
        background-color: #f14c24;
        color: #ffffff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-right: 20px;
    }

    .step-text {
        
        font-size: 1.6rem;
        font-weight: 600;
        margin: 0;
    }

    .step-item:hover,
    .step-item.active {
        background-color: #2b56a4;
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(43, 86, 164, 0.3);
    }

    .step-item:hover .step-number,
    .step-item.active .step-number {
        background-color: #f14c24; 
    }

    .step-arrow {
        color: #f14c24;
        text-align: center;
        margin: 8px 0;
    }
    
    .step-arrow svg {
        width: 20px;
        height: 20px;
    }

/* =========================================
   SECTION 5: ƯU ĐÃI (SÁNG)
========================================= */
/* Tổng quan Section */
    .model-section {
        background-color: rgba(249, 181, 163, 1); /* Màu cam sữa giống ảnh thiết kế */
        padding: 60px 0;
    }

    .model-title {
        color: #e54320;
        
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .model-desc {
        color: #000;
        
        font-size: 1.5rem;
        line-height: 1.6;
        margin: 0 auto 50px auto;
    }

    /* Container chứa lưới ảnh */
    .model-gallery-wrapper {
        position: relative;
        padding: 20px;
    }

    /* Lưới 2x2 */
    .model-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Định dạng ảnh trong lưới */
    .model-grid a.gallery-item {
        display: block;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .model-grid a.gallery-item:hover {
        transform: scale(1.03);
    }

    .model-grid img {
        width: 100%;
        height: 250px; /* Cố định chiều cao để các ảnh luôn bằng nhau */
        object-fit: cover;
        display: block;
    }

    /* Nhãn (Badge) đè lên giữa lưới ảnh */
    .model-badge {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #e54320;
        color: #fff;
        
        font-weight: 900;
        font-size: 1.1rem;
        padding: 8px 30px;
        border-radius: 50px;
        z-index: 10;
        white-space: nowrap;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* Responsive cho màn hình nhỏ */
    @media (max-width: 768px) {
        .model-grid img { height: 150px; }
        .model-gallery-wrapper { margin-bottom: 40px; }
    }

/* =========================================
   SECTION 6: FINAL CTA & FORM (TỐI)
========================================= */
/* Tổng quan Section */
    .advantage-section {
        background-color: #2b508f; /* Màu nền xanh đậm giống ảnh */
        padding: 60px 0;
    }

    /* Tiêu đề chính */
    .advantage-title {
        color: #ffffff;
        
        font-weight: 900;
        text-transform: uppercase;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    /* Tiêu đề phụ (Mô tả) */
    .advantage-subtitle {
        color: #ffffff;
         /* Font có chân */
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    /* Thiết kế thẻ Card */
    .adv-card {
        background-color: #ffffff;
        border-radius: 16px;
        padding: 30px;
        height: 100%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .adv-card:hover {
        transform: translateY(-5px);
    }

    /* Phần Header trong Card (Icon + Tiêu đề) */
    .adv-card-header {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }

    /* Icon trong Card */
    .adv-card-icon {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-right: 20px;
        flex-shrink: 0;
    }

    /* Tiêu đề trong Card */
    .adv-card-title {
        color: #e54320; /* Màu cam đỏ Kafa */
        
        font-weight: 900;
        font-size: 1.2rem;
        text-transform: uppercase;
        margin: 0;
        line-height: 1.3;
    }

    /* Nội dung Mô tả trong Card */
    .adv-card-desc {
        color: #000000;
         /* Font có chân */
        font-size: 1.4rem;
        line-height: 1.6;
        margin: 0;
    }
    
    /* Xử lý khoảng cách các đoạn văn được sinh ra từ textarea */
    .adv-card-desc p {
        margin-bottom: 10px;
    }
    .adv-card-desc p:last-child {
        margin-bottom: 0;
    }
    h2.advantage-title.display-6 {
        max-width: 1350px;
    margin: 0 auto;
}

/* =========================================
   SECTION 7
========================================= */
/* Section Tổng quan */
.p-50 {
    padding-right: 10%;
    padding-left: 3%;
}
    .contact-section {
        background-color: #ffffff;
        padding: 60px 0;
        position: relative;
    }
.contact-section-full {
        background-color: #ffffff;
        overflow-x: hidden;
    }

    /* Cột ảnh bên trái tràn viền */
    .kafa-img-full {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Cắt ảnh vừa vặn khung, không bị méo */
        min-height: 500px;
        display: block;
    }
    /* Ảnh bên trái */
    .contact-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px; /* Bo góc nhẹ nếu cần */
        min-height: 500px;
    }

    /* Tiêu đề */
    .contact-title {
        color: #f14c24; /* Màu cam đỏ Kafa */
        
        font-weight: 900;
        text-transform: uppercase;
        font-size: 2.3rem;
        margin-bottom: 10px;
    }

    /* Mô tả */
    .contact-desc {
        color: #000;
        
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 30px;
    }

    /* =========================================
       CSS TÙY CHỈNH CHO CONTACT FORM 7
       ========================================= */
    .kafa-form-group {
        margin-bottom: 20px;
    }

    /* Các ô nhập liệu (Input) */
    .wpcf7-form-control.kafa-input {
            width: 100%;
            background-color: #e8e8e8;
            border: none;
            border-radius: 12px;
            padding: 20px;
            margin: 10px 0px;
            
            font-size: 1.2rem;
            color: #333;
            outline: none;
            transition: box-shadow 0.3s ease;
    }

    .wpcf7-form-control.kafa-input::placeholder {
        color: #888;
    }

    .wpcf7-form-control.kafa-input:focus {
        box-shadow: 0 0 0 2px #f14c24; /* Viền cam khi nhấp vào */
        background-color: #ffffff;
    }

    /* Nút Đăng ký */
    .kafa-form-submit .kafa-btn-submit {
           background: radial-gradient(94.97% 217.85% at 52.27% -67.82%, #FFAC4D 17.79%, #F04E23 91.73%);
            color: #ffffff;
            border: none;
            border-radius: 50px;
            margin-top: 25px;
            padding: 12px 50px;
           
            font-weight: 900;
            font-size: 1.2rem;
            cursor: pointer;
            box-shadow: 0px 6px 15px 0px rgba(249, 145, 117, 0.65);
            transition: transform 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
    }

    .kafa-btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(241, 76, 36, 0.4);
    }

    .kafa-btn-submit .arrow {
          font-family: sans-serif;
    position: relative;
    top: -1px;
    }

    /* Ẩn cái loader mặc định của CF7 cho đẹp */
    .wpcf7-spinner {
        display: none !important;
    }
/* =========================================
   RESPONSIVE (Mobile Breakpoints)
========================================= */


@media (max-width: 1300px) {
  .offer-list-item{
    font-size: 0.75rem;
  }
  .hero-section{
        padding: 50px 0;
  }

}
@media (max-width: 992px) {
  .hero-section {
    padding: 3rem 0;
    display: block;
    text-align: center;
  }
  .hero-offer-box{
        padding-right: 30px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-visual {
    transform: scale(0.9);
    margin-top: 2rem;
  }
  .quiz-box {
    left: 0;
    right: 0;
    margin: 0 auto;
    position: relative;
  }
  .profile-card {
    right: 0;
    transform: translateX(10px);
  }
  .feature-card {
    grid-template-columns: 1fr;
  }
  .feature-card.reverse-layout .card-visual {
    order: -1;
  }
  .target-audience-section,
  .process-section,
  .offer-section {
    padding: 60px 0;
  }
  .floating-badge {
    right: 10px;
  }
  .timeline-container::before {
    left: 16px;
  }
  .timeline-item {
    gap: 12px;
  }
  .timeline-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .step-active {
    margin-left: 0;
    padding: 12px 0 12px 12px;
  }
  .title-large {
    font-size: 2.2rem;
  }
  .card-val {
    font-size: 1.8rem;
  }
  .title-xl {
    font-size: 2.2rem;
  }
  .title-xl .italic {
    font-size: 2.4rem;
  }
  .form-card {
    padding: 32px 24px;
  }
  .final-cta-section {
    padding: 80px 0;
  }
}
@media (max-width: 768px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
  .offer-badge {
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
  }
}
/* =========================================
   CSS RESPONSIVE HEADER (PC & MOBILE)
   ========================================= */

/* --- DÀNH CHO MÀN HÌNH PC (TỪ 992px TRỞ LÊN) --- */
@media (min-width: 992px) {
    .menu-toggles {
        display: none !important; /* Ẩn nút hamburger trên PC */
    }
    .header-btn .nav-menu {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }
}

/* --- DÀNH CHO MÀN HÌNH MOBILE & TABLET (DƯỚI 991px) --- */
@media (max-width: 991px) {
    /* Đảm bảo Header bao bọc lấy các thành phần */
    #site-navigation .container {
        justify-content: space-between; /* Giãn cách Logo - Nút Action - Hamburger */
        align-items: center;
        position: relative; /* Để menu thả xuống bám vào vị trí này */
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Khối chứa Menu và Nút Toggle */
    .header-btn {
        display: flex;
        align-items: center;
        order: 3; /* Đẩy khối này sang bên phải cùng */
    }

    /* Hiển thị nút Hamburger */
    .menu-toggles {
        display: block;
        font-size: 24px;
        cursor: pointer;
        padding: 5px 10px;
        color: #333; /* Đổi màu icon nếu cần */
    }

    /* Ẩn Menu ngang mặc định và chuyển thành dạng Dropdown tuyệt đối */
    .header-btn .nav-menu {
        display: none; /* Ẩn hoàn toàn, chờ JS bật lên */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 0;
        margin: 0;
        z-index: 9999;
        border-top: 1px solid #eee;
    }

    /* Định dạng cho từng mục trong menu trên Mobile */
    .header-btn .nav-menu li {
        list-style: none;
        width: 100%;
    }

    .header-btn .nav-menu li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #f5f5f5;
        text-decoration: none;
        color: #333;
        font-size: 16px;
        font-weight: 500;
    }

    .header-btn .nav-menu li a:hover {
        background-color: #fafafa;
        color: #f14c24; /* Đổi màu chữ khi hover */
    }

    /* Tùy chỉnh nút Banner Action trên Mobile cho gọn gàng */
    .banner-action {
        order: 2; /* Nằm giữa Logo và Toggle */
    }
}

/* --- DÀNH CHO ĐIỆN THOẠI NHỎ (DƯỚI 575px) --- */
@media (max-width: 575px) {
    .banner-action {
        display: none; /* Ẩn nút "Nhận ưu đãi" nếu màn hình quá chật chội để tránh vỡ giao diện */
    }
}