/**
 * Batdongsan24h.net - Home Sections Phase 3 & Modern Footer
 * News & Market, Locations, Testimonials, Partners, CTA Banner, 5 Reasons, 5-Col Footer
 */

/* ==========================================================================
   1. TIN TỨC & THỊ TRƯỜNG (NEWS & MARKET)
   ========================================================================== */
.dx-news-section {
    margin-bottom: 50px;
}
.dx-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    box-sizing: border-box;
}
.dx-news-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.dx-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
    text-decoration: none;
}
.dx-news-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #e2e8f0;
}
.dx-news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.dx-news-card:hover .dx-news-thumb {
    transform: scale(1.06);
}
.dx-news-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dx-news-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.dx-news-card:hover .dx-news-title {
    color: #0f4c3a;
}

/* ==========================================================================
   2. BẤT ĐỘNG SẢN THEO KHU VỰC (LOCATIONS)
   ========================================================================== */
.dx-locations-section {
    margin-bottom: 52px;
}
.dx-locations-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 20px;
    box-sizing: border-box;
}

/* Left: Featured Big City Card */
.dx-location-big-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 270px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.dx-location-big-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.dx-location-big-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(14, 38, 56, 0.85) 100%);
    z-index: 1;
}
.dx-location-big-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.dx-location-big-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dx-location-big-title .re-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
}
.dx-location-big-sub {
    font-size: 13.5px;
    color: #e2e8f0;
    margin: 0;
}
.dx-location-big-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #0e2638 !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
    white-space: nowrap;
}
.dx-location-big-card:hover .dx-location-big-btn {
    background: #ffffff;
}

/* Right: 6 Districts Grid */
.dx-districts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 14px;
}
.dx-district-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dx-district-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    text-decoration: none;
}
.dx-district-thumb-wrap {
    width: 100%;
    height: 78px;
    overflow: hidden;
    background-color: #e2e8f0;
}
.dx-district-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.dx-district-card:hover .dx-district-thumb {
    transform: scale(1.08);
}
.dx-district-info {
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
}
.dx-district-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dx-district-count {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   3. KHÁCH HÀNG NÓI VỀ CHÚNG TÔI (TESTIMONIALS)
   ========================================================================== */
.dx-testimonials-section {
    margin-bottom: 50px;
}
.dx-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.dx-testimonial-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 16px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-sizing: border-box;
}
.dx-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}
.dx-testi-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}
.dx-testi-content {
    display: flex;
    flex-direction: column;
}
.dx-testi-quote-mark {
    font-size: 26px;
    color: #0f4c3a;
    line-height: 1;
    font-family: serif;
    margin-bottom: 4px;
}
.dx-testi-quote-text {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 12px 0;
}
.dx-testi-author {
    font-size: 14px;
    font-weight: 700;
    color: #0e2638;
    margin: 0;
}
.dx-testi-role {
    font-size: 12px;
    color: #64748b;
}

/* ==========================================================================
   4. ĐỐI TÁC LIÊN KẾT (PARTNERS)
   ========================================================================== */
.dx-partners-section {
    margin-bottom: 48px;
}
.dx-partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.dx-partner-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}
.dx-partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.dx-partner-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.dx-partner-vin { color: #004b87; }
.dx-partner-sun { color: #f58220; }
.dx-partner-eco { color: #008853; }
.dx-partner-masterise { color: #b8860b; }
.dx-partner-nova { color: #006837; }
.dx-partner-datxanh { color: #005baa; }

/* ==========================================================================
   5. CTA BANNER: BẠN CÓ BẤT ĐỘNG SẢN CẦN BÁN HOẶC CHO THUÊ?
   ========================================================================== */
.dx-cta-banner-section {
    margin-bottom: 48px;
}
.dx-cta-banner-wrap {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 18px rgba(15, 76, 58, 0.06);
    box-sizing: border-box;
}
.dx-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.dx-cta-img-wrap {
    width: 90px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.dx-cta-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dx-cta-title {
    font-size: 18px;
    font-weight: 800;
    color: #0e2638;
    margin: 0 0 4px 0;
}
.dx-cta-sub {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 10px 0;
}
.dx-cta-points {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0f4c3a;
}
.dx-cta-point-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dx-cta-btn {
    background: #ce050d;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(206, 5, 13, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.dx-cta-btn:hover {
    background: #b5040b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(206, 5, 13, 0.45);
    text-decoration: none;
}

/* ==========================================================================
   6. VÌ SAO NÊN CHỌN BATDONGSAN24H.NET? (5 REASONS)
   ========================================================================== */
.dx-reasons-section {
    margin-bottom: 50px;
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
}
.dx-reasons-title {
    font-size: 17px;
    font-weight: 800;
    color: #0e2638;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dx-reasons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.dx-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.dx-reason-icon {
    width: 22px;
    height: 22px;
    color: #007749;
    flex-shrink: 0;
    margin-top: 2px;
}
.dx-reason-text {
    display: flex;
    flex-direction: column;
}
.dx-reason-headline {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
}
.dx-reason-sub {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   7. FOOTER HIỆN ĐẠI 5 CỘT (MODERN FOOTER)
   ========================================================================== */
.dx-footer-modern {
    background: linear-gradient(180deg, #0f4c3a 0%, #082d22 100%);
    color: #e2e8f0;
    padding-top: 50px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
}
.dx-footer-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Col 1: Brand Info */
.dx-footer-logo img {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 14px;
}
.dx-footer-about {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 18px 0;
}
.dx-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dx-footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
}
.dx-footer-social-btn:hover {
    background: #ce050d;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}
.dx-footer-social-btn .re-icon {
    width: 16px;
    height: 16px;
}

/* Col 2, 3, 4: Nav Columns */
.dx-footer-heading {
    font-size: 15px;
    font-weight: 750;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: 0.3px;
}
.dx-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dx-footer-links li a {
    color: #cbd5e1;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
}
.dx-footer-links li a:hover {
    color: #ffffff;
    padding-left: 4px;
    text-decoration: none;
}

/* Col 5: App Download & Hotline */
.dx-footer-app-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.dx-footer-app-btn {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    transition: background 0.15s;
}
.dx-footer-app-btn:hover {
    background: #1e293b;
    text-decoration: none;
    color: #fff;
}
.dx-footer-qr-wrap {
    display: inline-block;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 14px;
}
.dx-footer-qr-img {
    width: 68px;
    height: 68px;
    display: block;
}

/* Hotline Box */
.dx-footer-hotline-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dx-footer-hotline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ce050d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}
.dx-footer-hotline-content {
    display: flex;
    flex-direction: column;
}
.dx-footer-hotline-label {
    font-size: 11px;
    color: #cbd5e1;
}
.dx-footer-hotline-number {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}
.dx-footer-hotline-time {
    font-size: 11px;
    color: #94a3b8;
}

/* Copyright Bar */
.dx-footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #94a3b8;
}
.dx-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.dx-footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}
.dx-footer-bottom-links a:hover {
    color: #ffffff;
}

/* Floating Scroll Top Button */
.dx-scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0f4c3a;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s, background-color 0.2s;
}
.dx-scroll-top-btn:hover {
    background: #ce050d;
    transform: translateY(-3px);
}
.dx-scroll-top-btn .re-icon {
    width: 18px;
    height: 18px;
}
