/* ND369 — Home page */
/* --- CSS TRANG CH? --- */

/* 1. Hero Section */
.home-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('link-anh-xuong-da-cua-ban.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}
.hero-content h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
}
.hero-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--secondary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    border: 2px solid #fff;
    transition: background 0.3s;
}
.btn-secondary:hover {
    background: #fff;
    color: #333;
}

/* 2. Product Grid (Custom cho Home) */
.nd369-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 C?t */
    gap: 20px;
    margin-top: 30px;
}
/* Mobile hi?n th? 2 c?t */
@media (max-width: 768px) {
    .nd369-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .nd369-product-grid {
        grid-template-columns: 1fr;
    }
}

/* 3. Location Tags */
.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.loc-tag {
    background: #f1f1f1;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    transition: 0.3s;
}
.loc-tag:hover {
    background: #0088ff;
    color: #fff;
    border-color: #0088ff;
}

/* Legacy .home-usp (unused) — kept minimal to avoid conflicting with .home-usp-bar */
.home-usp {
    display: none;
}

/* Common */
.section-title {
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 50px;
    font-size: 2rem;
    color: #333;
}
.sub-title {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive cho USP */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .home-hero {
        padding: 36px 0 32px;
    }
}

/* --- TRANG CH? STYLE --- */

/*
 * Trang ch?: bung .ast-container ngo?i ? full width,
 * padding-top t?o khe h? v?i header (tr?nh margin collapse).
 */
body.home #content.site-content > .ast-container,
body.page-template-front-page #content.site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

body.home #primary,
body.page-template-front-page #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero Section ? full-bleed (?nh n?n set inline t? admin) */
.home-hero {
    background-color: #003366;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 120px 0;
    position: relative;
    text-align: center !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* N?i dung trong hero v?n gi?i h?n b? ngang */
.home-hero > .ast-container.hero-container {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.home-hero .ast-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.3);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center !important;
}

.badge-factory {
    background: #cc0000;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block !important;
    margin: 0 auto 20px auto !important;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
    text-align: center !important;
}

.home-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 auto 20px auto !important;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
    text-align: center !important;
    display: block;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px auto !important;
    opacity: 0.95;
    line-height: 1.6;
    text-align: center !important;
    display: block;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto !important;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
}

.hero-features li {
    font-weight: 600;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.hero-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.btn-primary-hero {
    background: var(--secondary-color);
    color: #fff;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(204, 51, 0, 0.4);
    transition: 0.3s;
    display: inline-block;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    box-shadow: 0 8px 25px rgba(204,0,0,0.5);
}

.btn-secondary-hero {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-secondary-hero:hover {
    background: #fff;
    color: #003366;
    transform: translateY(-3px);
}

/* Hero mobile: rút ngắn chiều cao + ít cắt ảnh nền */
@media (max-width: 768px) {
    .home-hero {
        padding: 36px 0 32px !important;
        background-position: center 28% !important;
        background-size: cover !important;
        min-height: 0 !important;
    }

    .home-hero > .ast-container.hero-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero-content {
        padding: 0 !important;
        max-width: 100%;
    }

    .badge-factory {
        font-size: 11px;
        padding: 5px 12px;
        margin: 0 auto 10px auto !important;
        max-width: 100%;
        line-height: 1.3;
    }

    .home-hero h1 {
        font-size: clamp(1.4rem, 6.2vw, 1.7rem) !important;
        line-height: 1.15 !important;
        margin: 0 auto 10px auto !important;
        letter-spacing: -0.02em;
    }

    .hero-desc {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        margin: 0 auto 12px auto !important;
        padding: 0 !important;
        max-width: 36em;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }

    .hero-features {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 0 auto 14px auto !important;
        max-width: 100%;
    }

    .hero-features li {
        font-size: 11px !important;
        font-weight: 600;
        padding: 5px 10px !important;
        border-radius: 16px;
        line-height: 1.25;
        max-width: 100%;
    }

    .hero-btn-group {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 !important;
        max-width: 100%;
    }

    .home-hero .btn-primary-hero,
    .home-hero .btn-secondary-hero {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 16px !important;
        font-size: 15px !important;
        border-radius: 40px;
    }
}

@media (max-width: 380px) {
    .home-hero {
        padding: 28px 0 24px !important;
    }

    .home-hero h1 {
        font-size: 1.3rem !important;
    }

    .hero-features li {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}

/* USP Bar */
.home-usp-bar {
    background: var(--bg-light, #f4f8ff);
    padding: 56px 0;
    border-bottom: none;
    border-top: 1px solid #e4ebf3;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.home-usp-bar .ast-container {
    display: block !important;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e4ebf3;
    box-shadow: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.usp-item:hover {
    background: #fff;
    border-color: rgba(0, 77, 153, 0.35);
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.08);
    transform: translateY(-2px);
}

.usp-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.usp-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.usp-text strong {
    display: block;
    color: var(--primary-color, #004d99);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.usp-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .home-usp-bar {
        padding: 48px 0;
    }

    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .home-usp-bar {
        padding: 40px 0;
    }

    .usp-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .usp-item {
        padding: 16px 14px;
    }
}

/* Common Section */
.section-pad {
    padding: 80px 0;
}

.section-heading {
    text-align: center;
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color); /* G?ch ch?n m?u ?? cam */
}

.section-sub {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- FIX L?I HI?N TH? S?N PH?M --- */

/* Section S?n Ph?m Trang Ch? */
.home-products {
    background: #fff;
}

.home-products .section-heading {
    margin-bottom: 15px;
    display: block;
}

.home-products .section-sub {
    margin-bottom: 40px;
    display: block;
}

/* 1. ??m b?o container bao ngo?i ch?y d?ng kh?i (d?c) */
.home-products .ast-container {
    display: block !important; /* Ng?n ch?n theme set flex ngang */
    width: 100%;
}

/* 2. Reset Grid cha */
.home-products .nd369-product-grid {
    display: block !important; /* B? grid ? ??y, v? shortcode sinh ra th? UL con */
    width: 100%;
    margin-top: 30px;
}

/* 3. Danh sách sản phẩm — desktop 4 cột; mobile vuốt ngang (media bên dưới) */
.home-products .nd369-product-grid ul.products {
    display: grid !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (min-width: 901px) {
    .home-products .nd369-product-grid ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 4. Reset t?ng ? s?n ph?m */
.home-products .nd369-product-grid ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important; /* G? b? float c? c?a Woo */
    clear: none !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box; /* ??m b?o padding kh?ng l?m v? khung */
    transition: transform 0.3s;
}

/* Hi?u ?ng khi di chu?t v?o s?n ph?m */
.home-products .nd369-product-grid ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #003366;
}

/* Ch?nh ?nh s?n ph?m cho g?n */
.home-products .nd369-product-grid ul.products li.product img {
    margin-bottom: 15px !important;
    border-radius: 4px;
    width: 100%;
    height: auto;
    object-fit: cover; /* C?t ?nh vu?ng v?n n?u k?ch th??c l?ch */
}

/* Ch?nh ti?u ?? s?n ph?m ? c? ??nh 2 d?ng */
.home-products .nd369-product-grid ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.home-products .nd369-product-grid ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    color: #003366;
    font-weight: bold;
    line-height: 1.4 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: calc(1.4em * 2) !important;
    max-height: calc(1.4em * 2) !important;
    height: calc(1.4em * 2) !important;
}

/* Ch?nh gi? ti?n */
.home-products .nd369-product-grid ul.products li.product .price {
    color: #cc0000 !important;
    font-size: 16px !important;
    font-weight: bold;
    margin-top: auto !important;
    margin-bottom: 12px !important;
    display: block;
}

/* Ch?nh n?t Mua/Xem */
.home-products .nd369-product-grid ul.products li.product .button {
    width: 100%;
    text-align: center;
    background: #f1f1f1 !important;
    color: #333 !important;
    border-radius: 4px;
    font-weight: 600;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.home-products .nd369-product-grid ul.products li.product .button:hover {
    background: #cc0000 !important;
    color: #fff !important;
}

/* Mobile: vuốt ngang, card sau lấp ló */
@media (max-width: 900px) {
    .home-products .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden;
    }

    .home-products .section-heading,
    .home-products .section-sub {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-products .nd369-product-grid {
        margin-top: 20px;
    }

    .home-products .nd369-product-grid.woocommerce ul.products,
    .home-products .nd369-product-grid ul.products {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding: 0 16px 12px !important;
        margin: 0 !important;
        scrollbar-width: none;
    }

    .home-products .nd369-product-grid.woocommerce ul.products::-webkit-scrollbar,
    .home-products .nd369-product-grid ul.products::-webkit-scrollbar {
        display: none;
    }

    .home-products .nd369-product-grid.woocommerce ul.products li.product,
    .home-products .nd369-product-grid ul.products li.product,
    .home-products .nd369-product-grid.woocommerce ul.products.columns-4 li.product {
        flex: 0 0 78% !important;
        width: 78% !important;
        max-width: 78% !important;
        min-width: 0 !important;
        margin: 0 !important;
        scroll-snap-align: start;
        height: auto !important;
        float: none !important;
    }

    .home-products .nd369-product-grid ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px !important;
        min-height: calc(1.4em * 2) !important;
        max-height: calc(1.4em * 2) !important;
        height: calc(1.4em * 2) !important;
    }

    .home-products .nd369-product-grid ul.products li.product .price,
    .home-products .nd369-product-grid ul.products li.product .price.contact-price {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .home-products .nd369-product-grid.woocommerce ul.products li.product,
    .home-products .nd369-product-grid ul.products li.product,
    .home-products .nd369-product-grid.woocommerce ul.products.columns-4 li.product {
        flex: 0 0 82% !important;
        width: 82% !important;
        max-width: 82% !important;
    }
}

/* Legacy override ?? g?p v?o block s?n ph?m ph?a tr?n ? gi? selector ?? kh?ng ??ng markup c? */
.woocommerce ul.products li.product .button-wrapper,
.woocommerce ul.products li.product .product-button {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-top: auto !important;
}

/* Customer Segments — title trên, 4 card dưới */
.home-segments {
    background: var(--bg-light, #f4f8ff);
}

.home-segments .ast-container {
    display: block !important;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.home-segments-header {
    text-align: center;
    margin: 0 auto 36px;
    max-width: 720px;
}

.home-segments-header .section-heading {
    margin-bottom: 12px;
    white-space: nowrap;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.home-segments-header .section-sub {
    margin-bottom: 0;
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 0;
    align-items: stretch;
}

.segment-card {
    background: #fff;
    padding: 28px 20px 24px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid #e4ebf3;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    box-shadow: none;
}

.segment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 51, 102, 0.1);
    border-color: var(--primary-color, #004d99);
}

.seg-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}

.segment-card h3 {
    color: var(--primary-color, #004d99);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.segment-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.seg-link {
    color: var(--secondary-color, #cc3300);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-block;
    margin-top: auto;
}

.segment-card:hover .seg-link {
    color: var(--accent-color, #ff6600);
}

@media (max-width: 1024px) {
    .segment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .home-segments-header .section-heading {
        font-size: 1.35rem;
        white-space: normal;
    }

    .segment-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .segment-card {
        padding: 24px 18px;
    }
}

/* Location Preview */
.loc-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.map-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 15px;
    color: #495057;
    font-weight: bold;
    border: 2px dashed #adb5bd;
    font-size: 16px;
    line-height: 1.8;
    padding: 20px;
}

.loc-list-btn h3 {
    color: #003366;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.loc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.loc-tag-item {
    background: #f1f1f1;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.loc-tag-item:hover {
    background: #003366;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
}

.loc-tag-item.view-all {
    background: #cc0000;
    color: #fff;
    font-weight: 800;
}

.loc-tag-item.view-all:hover {
    background: #ff0000;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.4);
}

/* Bottom CTA — full-bleed như hero */
.home-cta-bottom {
    background: linear-gradient(135deg, var(--primary-color, #004d99) 0%, #003366 100%);
    padding: 72px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    width: 100%;
}

.home-cta-bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.45;
    pointer-events: none;
}

.home-cta-bottom .ast-container,
.home-cta-bottom-inner {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    box-sizing: border-box;
}

.home-cta-bottom h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    font-weight: 900;
    margin: 0 auto 14px;
    text-shadow: none;
    text-align: center;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.home-cta-bottom p {
    font-size: 1.05rem;
    margin: 0 auto 28px;
    opacity: 0.95;
    max-width: 640px;
    text-align: center;
    line-height: 1.55;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
}

.home-cta-bottom .btn-primary-hero,
.home-cta-bottom .btn-secondary-hero {
    min-width: 200px;
    text-align: center;
}

.home-cta-bottom .btn-secondary-hero:hover {
    background: #fff;
    color: var(--primary-color, #004d99);
}

@media (max-width: 640px) {
    .home-cta-bottom {
        padding: 52px 0;
    }

    .cta-buttons-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .home-cta-bottom .btn-primary-hero,
    .home-cta-bottom .btn-secondary-hero {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        font-size: 1rem;
        padding: 14px 22px;
    }
}

/* Home locations — card đồng bộ /khu-vuc/ (không icon pin) */
.home-locations {
    background: #fff;
}

.home-locations .ast-container {
    display: block !important;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
}

.home-locations-header {
    text-align: center;
    margin: 0 auto 36px;
    max-width: 720px;
}

.home-locations-header .section-heading {
    margin-bottom: 12px;
    white-space: nowrap;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.home-locations-header .section-sub {
    margin-bottom: 0;
}

.home-locations-grid.kv-district-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.home-locations-footer {
    text-align: center;
    margin-top: 8px;
}

.btn-view-map {
    display: inline-block;
    color: var(--secondary-color, #cc3300);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--secondary-color, #cc3300);
    padding-bottom: 2px;
    font-size: 1rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-view-map:hover {
    color: var(--accent-color, #ff6600);
    border-bottom-color: var(--accent-color, #ff6600);
}

@media (max-width: 1100px) {
    .home-locations-grid.kv-district-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .home-locations-grid.kv-district-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .home-locations .ast-container {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .home-locations-header {
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .home-locations-header .section-heading {
        font-size: 1.35rem;
        white-space: normal;
    }

    .home-locations-grid.kv-district-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding: 0 16px 12px;
        margin-bottom: 20px;
        scrollbar-width: none;
    }

    .home-locations-grid.kv-district-grid::-webkit-scrollbar {
        display: none;
    }

    .home-locations-grid .kv-district-item {
        flex: 0 0 82%;
        max-width: 82%;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .home-locations-footer {
        padding: 0 16px;
    }
}
