/* ======================================================= */
/* ==           CSS HOÀN CHỈNH CHO TRANG CHỦ          == */
/* ======================================================= */

/* --- CÀI ĐẶT CHUNG --- */
.homepage {
    background-color: #FAF6F2;
    /* Nền cam nhạt */
}

.home-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.two-columns {
    display: flex;
    align-items: center;
    gap: 60px;
}

.two-columns.reverse {
    flex-direction: row-reverse;
}

.section-title {
    font-family: Text-Medium;
    font-size: 40px;
    font-weight: 500;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 5rem;
}

.home-section.home-team h2.section-title {
    margin-bottom: 0;
}

.kicker {
    font-size: 22px;
    font-family: 'Title-One';
    color: #00000080;
    margin-bottom: 8px;
}

.btn {
    text-decoration: none;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Title-One';
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #EC744A;
    color: white;
    font-size: 24px;
    font-family: 'Title-One';
}

.btn-primary:hover {
    background-color: #d6633a;
    color: #fff;
}

.btn-secondary {
    border: 1px solid #EC744A;
    color: #EC744A;
}

.btn-secondary:hover {
    background-color: #EC744A;
    color: white;
}

/* --- 1. HERO --- */
.home-hero {
    padding-top: 60px;
}

.home-hero .hero-content {
    flex: 1;
}

.home-hero h1 {
    font-family: Title-Small;
    font-size: 68px;
    line-height: 1.3;
    color: #1A1A1A;
    margin-bottom: 40px;
}

.home-hero h1 span {
    color: #5EB47C;
}

.home-hero p {
    font-size: 18px;
    color: #1A1A1A;
    margin-bottom: 40px;
    font-family: 'Text-One';
}

.home-hero .hero-image {
    flex: 1.3;
    text-align: right;
}

/* --- 2. STATS BAR --- */
.home-stats {
    background: linear-gradient(90deg, #5EB47C, #007D6E);
    padding: 40px 20px;
}

.home-stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    color: white;
}

.stat-item .stat-number,
.stat-suffix {
    font-size: 68px;
    font-family: Title-Two;
}

.stat-item .stat-title {
    font-size: 22px;
    margin-top: 5px;
    opacity: 0.9;
    font-family: 'Title-One';
}



/* --- 3. JOURNEY --- */
.home-journey {
    background: #B1B1B11A;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item .feature-icon {
    height: 180px;
    width: auto;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
    font-family: 'Title-One';
}

.feature-item p {
    font-size: 18px;
    line-height: 1.6;
    color: #00000080;
    font-family: 'Text-One';
}

/* --- 4. ABOUT --- */
.home-about .about-content {
    flex: 1;
}

.home-about .about-content p {
    font-size: 18px;
    font-family: 'Text-One';
}

.home-about .about-image {
    flex: 1;
}

.home-about h2 {
    text-align: left;
    margin-bottom: 20px;
}

.home-about a.btn {
    margin-top: 20px;
}

/* --- 5. QUOTE --- */
.home-quote {
    background: linear-gradient(90deg, #5EB47C, #007D6E);
}

.home-quote blockquote {
    font-family: 'Title-One';
    font-size: 40px;
    line-height: 1.5;
    color: white;
    text-align: center;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}


.home-quote blockquote::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    /* Tăng chiều cao của sóng */
    /* [TINH CHỈNH] SVG cho đường cong chân thực hơn, dốc nhẹ nhàng */
    background-image: var(--bg-phay-truoc);
    /* <--- ĐÚNG */
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    background-position: bottom;
    left: -45px;
    top: 0;
}

.home-quote blockquote::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    /* Tăng chiều cao của sóng */
    /* [TINH CHỈNH] SVG cho đường cong chân thực hơn, dốc nhẹ nhàng */
    background-image: var(--bg-phay-sau);
    /* <--- ĐÚNG */
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
    background-position: bottom;
    right: -20px;
    bottom: 0;
}

/* --- 6. TEAM --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.team-slider-wrapper {
    /* Basic slider styles, JS is needed for functionality */
    display: flex;
    gap: 20px;
}

.team-member-card {
    text-align: left;
}

.member-photo-wrapper img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
}

.team-member-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-top: 10px;
}

/* ======================================================= */
/* ==           CSS CHO TEAM SLIDER (SWIPERJS)        == */
/* ======================================================= */

.home-team {
    position: relative;
    /* Họa tiết nền mờ */
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M-50 50C-50 22.39 22.39-50 50-50S150 22.39 150 50 77.61 150 50 150-50 77.61-50 50z' stroke='%23dddddd' fill='none' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom left;
}

.home-team .section-header {
    /* ... giữ style cũ ... */
}

/* --- SWIPER STYLES --- */
.team-slider-container {
    position: relative;
    /* Thêm padding để nút không bị che */
    padding: 0;
}

.team-swiper {
    width: 100%;
    height: 100%;
    max-height: 400px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    /* Center slide text vertically */
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-member-card {
    text-align: left;
    width: 100%;
}

.member-photo-wrapper {
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.member-photo-wrapper img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member-card:hover .member-photo-wrapper img {
    transform: scale(1.05);
}

.team-member-card h3 {
    font-size: 20px;
    font-family: 'Title-One';
    color: #1A1A1A;
    margin: 0;
    text-align: center;
}

/* Style cho nút Prev/Next */
.team-swiper-prev,
.team-swiper-next {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #1A1A1A !important;
    /* Ghi đè màu mặc định của swiper */
    transition: all 0.3s ease;
}

.team-swiper-prev:hover,
.team-swiper-next:hover {
    background-color: #f0f0f0;
}

.team-swiper-prev::after,
.team-swiper-next::after {
    font-size: 18px !important;
    /* Chỉnh kích thước mũi tên */
    font-weight: bold;
}

.team-swiper-prev {
    left: 0;
}

.team-swiper-next {
    right: 0;
}

/* --- 7. NEWSLETTER --- */
/* ======================================================= */
/* ==       CSS CHO NEWSLETTER (CONTACT FORM 7)       == */
/* ======================================================= */

.home-newsletter {
    background-color: #F0F0F0;
    text-align: center;
    padding: 80px 20px;
}

.home-newsletter .section-title {
    /* Style này đã có ở phần chung, không cần thêm lại nếu đã có */
}

/* --- Wrapper cho form --- */
.newsletter-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-form-wrapper .newsletter p {
    justify-content: space-between;
}

.newsletter-form-wrapper .newsletter p {
    display: flex;
    justify-content: space-between;
}

/* 
   Quan trọng: Biến thẻ <p> của CF7 thành flex container 
   để sắp xếp input và button nằm ngang.
*/
.newsletter-form-wrapper .newsletter p {
    display: flex;
    align-items: center;
    /* Căn các item theo chiều dọc */
    gap: 10px;
    /* Khoảng cách giữa input và button */
    margin: 0;
    /* Xóa margin mặc định của thẻ <p> */
    width: 100%;
    position: relative;
}

.newsletter-form-wrapper .newsletter p .wpcf7-spinner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -75px;
}

/* Bắt buộc: Ẩn thẻ <br> mà CF7 tự động thêm vào */
.newsletter-form-wrapper .newsletter br {
    display: none;
}

/* Cho phép thẻ <span> bao quanh input chiếm hết không gian còn lại */
.newsletter-form-wrapper .newsletter .wpcf7-form-control-wrap {
    flex-grow: 1;
}

/* --- Style cho ô input email --- */
.newsletter-form-wrapper .newsletter-input.wpcf7-email {
    width: 100%;
    /* Luôn chiếm hết chiều rộng của thẻ span cha */
    background: #ffffff !important;
    border: none;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    height: auto !important;
    font-size: 16px;
    color: #333 !important;
    box-shadow: none !important;
    font-family: 'Text-One';
    font-size: 18px;
}

.newsletter .wpcf7 form .newsletter .newsletter-btn {}

.newsletter-form-wrapper .newsletter-input.wpcf7-email::placeholder {
    color: #999;
}

/* --- Style cho nút Submit --- */
.newsletter-form-wrapper .newsletter-btn.wpcf7-submit {
    flex-shrink: 0;
    /* Ngăn nút bị co lại khi không đủ chỗ */
    background-color: #EC744A !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-size: 20px !important;
    font-family: 'Title-One';
    transition: background-color 0.3s ease;
    height: auto !important;
}

.newsletter-form-wrapper .newsletter-btn.wpcf7-submit:hover {
    background-color: #d6633a !important;
    /* Màu cam đậm hơn */
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .two-columns {
        flex-direction: column !important;
    }

    .home-hero .hero-content {
        order: 2;
        text-align: center;
    }

    .home-hero .hero-image {
        order: 1;
    }

    .home-about .about-content {
        text-align: center;
    }

    .home-about h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .home-section {
        padding: 60px 15px;
    }

    .home-stats .container {
        flex-direction: column;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .home-quote blockquote {
        font-size: 24px;
    }

    .btn-primary {
        font-size: 20px;
    }

    .home-hero h1 {
        font-size: 36px;
    }
}