/*
Theme Name: iStarHome V2
Theme URI: http://haomkt.com/
Author: Hào
Author URI: https://haomkt.com
Description: Giao diện chuẩn Custom Block Gutenberg, tối ưu Responsive, sạch bóng lỗi tràn viền.
Version: 1.0.1
Text Domain: istarhome
*/

/* ==========================================================================
   1. RESET & KỶ LUẬT THÉP CHỐNG TRÀN VIỀN
   ========================================================================== */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Cấm tiệt kéo ngang */
    margin: 0 !important;
    padding: 0 !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    width: 100%;
    height: auto;
    display: block;
}

/* Xóa khoảng trắng thừa của WP Core */
.wp-site-blocks, .site-main {
    max-width: 100%;
    overflow-x: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-main {
    padding-bottom: 0 !important;
}

/* Đẩy thanh Admin Bar của WordPress xuống */
body.admin-bar .site-header {
    top: 32px;
}

/* Setup Icons */
.h-icon svg, .f-icon svg {
    display: block !important;
    width: 24px !important; 
    height: 24px !important; 
}
.h-icon svg { stroke: #ffffff !important; }
.f-icon svg { fill: #000000 !important; stroke: #000000 !important; }


/* ==========================================================================
   2. HEADER LUXURY (DESKTOP)
   ========================================================================== */
.site-header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 20px 40px;
    color: #ffffff;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease !important;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cột Header (Trái - Phải) */
.header-left, .header-right { 
    display: flex; 
    align-items: center; 
}
.header-left { gap: 50px !important; }
.header-right { justify-content: flex-end; gap: 20px; }

/* Typograhpy & Logo */
.site-header .main-logo { 
    display: flex !important;
    align-items: center !important;
    color: #ffffff; 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-family: serif; 
    letter-spacing: 0.1em;
    margin-right: 40px !important; 
    z-index: 10;
}
.h-icon { color: #ffffff; text-decoration: none; font-size: 1.2rem; }
.mobile-toggle { display: none; } 


/* ==========================================================================
   3. MEGA MENU AP STYLE
   ========================================================================== */
/* Menu Chính Cấp 1 */
.main-menu {
    display: flex !important;
    align-items: center;
    gap: 40px; 
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: static !important; 
}

.main-menu > li > a {
    color: #ffffff !important; 
    text-decoration: none !important; 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: none; 
    letter-spacing: 1px; 
    white-space: nowrap; 
    padding: 30px 0; 
    display: block;
    transition: color 0.3s ease;
}

.main-menu > li > a:hover { color: #d1d1d1 !important; }

/* Khối Bao Ngoài Mega Menu */
.ap-mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background-color: #ffffff;
    padding: 60px 5vw;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 999;
}

.main-menu > li.menu-item-has-children:hover .ap-mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Layout 2 cột (Trái Link - Phải Ảnh) */
.site-header .ap-mega-container {
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important; 
    gap: 80px !important; 
}

/* Cột Trái: Danh sách Links */
.site-header .desktop-nav .ap-mega-links {
    display: block !important;
    width: 220px !important;
    flex: 0 0 220px !important;
    padding: 0 !important; 
    margin: 0 !important;
    list-style: none !important;
}

.site-header .desktop-nav .ap-mega-links li {
    display: block !important;
    margin: 0 0 8px 0 !important; 
    padding: 0 !important;
    text-align: left !important;
    min-height: auto !important;
}

.site-header .desktop-nav .ap-mega-links li a {
    display: block !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #777777 !important; 
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.3s ease !important;
}

.site-header .desktop-nav .ap-mega-links li a:hover { color: #000000 !important; }

/* Cột Phải: Grid 3 ảnh */
.site-header .desktop-nav .ap-mega-media {
    flex: 1 !important;
    display: block !important;
}

.site-header .desktop-nav .mega-media-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important; 
}

.site-header .desktop-nav .mega-item a {
    text-decoration: none;
    color: #000000;
    display: block;
}

.site-header .desktop-nav .mega-item img {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 2px !important; 
    background: #f5f5f5;
    margin-bottom: 15px;
}

/* Text tiêu đề dưới ảnh */
.site-header .desktop-nav h4.mega-item-title,
.site-header .desktop-nav .mega-item-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #111111 !important;
    margin: 15px 0 0 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important; 
    text-transform: none !important;
}

.mega-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #eaeaea;
    margin-bottom: 15px;
}


/* ==========================================================================
   4. HIỆU ỨNG STICKY HEADER (CUỘN TRANG NỀN TRẮNG)
   ========================================================================== */
/* Trạng thái khi cuộn chuột (Class được JS tự động thêm vào) */
.site-header.is-sticky {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #ffffff !important; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important; 
    padding: 10px 40px !important; 
    z-index: 9999 !important;
}

/* Đổi màu chữ Menu & Logo thành Đen khi nền Trắng */
.site-header.is-sticky .main-menu > li > a,
.site-header.is-sticky .main-logo {
    color: #000000 !important;
}
.site-header.is-sticky .main-menu > li > a:hover {
    color: #666666 !important;
}

/* Đổi màu Icon SVG thành Đen */
.site-header.is-sticky .h-icon svg {
    stroke: #000000 !important;
}

/* Đổi màu ảnh Logo (nếu dùng ảnh màu trắng) */
.site-header.is-sticky .main-logo img {
    filter: brightness(0) !important; 
}


/* ==========================================================================
   5. MENU MOBILE & OVERLAY TRẮNG
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #ffffff; color: #000000;
    z-index: 999;
    transform: translateY(-100%); 
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active { transform: translateY(0); }

.overlay-top { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px; border-bottom: 1px solid #eeeeee; 
}
.close-menu { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #000000; flex: 1; text-align: left; }
.mobile-main-logo { font-family: serif; font-size: 1.5rem; font-weight: bold; flex: 1; text-align: center; }
.overlay-top .spacer { flex: 1; }

.overlay-content { padding: 30px 20px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0 0 40px 0; }
.mobile-nav li { margin-bottom: 20px; }
.mobile-nav a { color: #000000; text-decoration: none; font-size: 1.2rem; font-weight: 400; }

.mobile-utils { 
    display: flex; flex-direction: column; gap: 20px; 
    margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eeeeee; 
}
.mobile-utils a { color: #000000; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }

.latest-stories h4 { font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 15px; color: #666666; }


/* ==========================================================================
   6. AP FOOTER STYLES
   ========================================================================== */
.ap-site-footer {
    background-color: #000; 
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 0 5vw;
}

.ap-footer-top { padding: 60px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.footer-logos { display: flex; justify-content: center; gap: 100px; align-items: center; text-align: center; }
.f-logo { font-family: 'Times New Roman', Times, serif; font-size: 1.2rem; letter-spacing: 2px; line-height: 1.2; }
.f-logo em { font-style: italic; }
.f-logo small { font-size: 0.65rem; letter-spacing: 3px; font-family: 'Helvetica Neue', sans-serif; display: block; margin-bottom: 5px; }
.lang-currency-btn { display: flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; font-weight: bold; font-size: 0.9rem; }
.footer-widget .fw-title { font-size: 0.85rem; font-weight: bold; letter-spacing: 1.5px; margin: 0 0 20px 0; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget ul li { margin-bottom: 15px; }
.footer-widget ul li a { color: #d1d1d1; text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; }
.footer-widget ul li a:hover { color: #ffffff; }

.ap-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 40px 0 60px 0; font-size: 0.8rem; font-weight: bold; }
.fb-social a { color: #ffffff; text-decoration: none; margin-right: 20px; font-size: 1rem; }
.fb-links ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 30px; }
.fb-links ul li a { color: #ffffff; text-decoration: none; }
.fb-copyright { color: #d1d1d1; font-weight: normal; font-size: 16px; }

/* ==========================================================================
   TÙY CHỈNH LAYOUT FOOTER MIDDLE: TRÁI RỘNG - PHẢI ÉP SÁT
   ========================================================================== */
.ap-footer-middle { 
    display: flex; 
    justify-content: space-between; /* Đẩy 2 khối ra xa nhau nhất có thể */
    padding: 80px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}

/* Khối bên trái (Giới thiệu) cho rộng thênh thang */
.fm-left { 
    flex: 0 0 40%; /* Chiếm hẳn 40% chiều ngang màn hình */
    padding-right: 80px; /* Tránh text bị đâm vào menu bên cạnh */
}
.footer-about-text {
    color: #d1d1d1;
    font-size: 0.85rem;
    line-height: 1.8;
    margin-top: 20px;
}

.fm-right { 
    flex: 0 0 auto;
    display: flex;
    gap: 90px; /* Tăng gap để các cột bung ra xa hơn */
    justify-content: flex-end;
}

/* 2. Tăng khoảng đệm bên trong các widget để chữ không bị bó hẹp */
.footer-widget {
    min-width: 130px; /* Tăng chiều rộng tối thiểu cho mỗi cột */
    padding-right: 20px; /* Thêm chút thở cho cột cuối */
}

/* ==========================================================================
   7. TRANG BÁO LỖI 404 (ERROR 404 PAGE - LUXURY MINIMALIST)
   ========================================================================== */
.ap-404-page {
    padding-top: 110px; 
    min-height: calc(100vh - 110px); 
    display: flex;
    align-items: center; 
    justify-content: center; 
    background-color: #ffffff;
    box-sizing: border-box;
    text-align: center;
}

.ap-404-container {
    max-width: 650px;
    padding: 60px 20px;
}

.error-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 7rem;
    font-weight: 100;
    line-height: 0.9;
    color: #111111;
    letter-spacing: -2px;
    margin-bottom: 35px;
}
.error-title em {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: 6px;
    display: block;
    margin-top: 15px;
    color: #222222;
}

.error-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.8;
    letter-spacing: 0.3px;
    margin-bottom: 45px;
    padding: 0 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
}
.btn-404-home {
    display: inline-block;
    background: #111111;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 16px 45px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border: 1px solid #111111;
    transition: all 0.3s ease;
}
.btn-404-home:hover {
    background: transparent;
    color: #111111 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}


/* ==========================================================================
   8. GIAO DIỆN CÁC TRANG CHÍNH SÁCH / DỊCH VỤ BẢN LUXURY
   ========================================================================== */
.ap-default-page {
    padding-top: 160px; 
    padding-bottom: 100px;
    background-color: #ffffff;
}

.ap-page-container {
    max-width: 800px; 
    margin: 0 auto; 
    padding: 0 20px;
}

.ap-default-page .page-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 60px;
    color: #111111;
}

.ap-default-page .page-content {
    font-size: 15px;
    color: #444444; 
    line-height: 1.8; 
}

.ap-default-page .page-content h2,
.ap-default-page .page-content h3 {
    color: #111111;
    font-weight: 400;
    margin-top: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #eaeaea; 
    padding-bottom: 10px;
}

.ap-default-page .page-content p {
    margin-bottom: 25px;
}

.ap-default-page .page-content ul,
.ap-default-page .page-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.ap-default-page .page-content li {
    margin-bottom: 10px;
}


/* ==========================================================================
   9. RESPONSIVE MOBILE (GỘP CHUNG TẤT CẢ)
   ========================================================================== */
@media (max-width: 992px) {
    /* Header Mobile */
    .site-header { padding: 15px 20px !important; width: 100% !important; }
    .site-header.is-sticky { padding: 10px 20px !important; }
    .site-header .header-left { gap: 15px !important; width: auto !important; }
    .site-header .main-logo { font-size: 1.2rem !important; margin-right: 0 !important; }
    
    .desktop-nav, .hide-on-mobile, .ap-mega-menu-wrapper { display: none !important; }
    
    /* Nút Hamburger */
    .mobile-toggle { 
        display: flex; flex-direction: column; gap: 4px; background: none; 
        border: none; cursor: pointer; margin-right: 15px; padding: 0; 
    }
    .mobile-toggle .line { width: 22px; height: 1px; background-color: #ffffff; }
    .site-header.is-sticky .mobile-toggle .line { background-color: #000000 !important; }

    /* Ẩn Menu con trên Mobile an toàn tuyệt đối */
    .mobile-nav .sub-menu,
    .mobile-nav ul.children { display: none !important; }

    /* Footer Mobile */
    .footer-logos { flex-direction: column; gap: 40px; }
    .ap-footer-middle { flex-direction: column; gap: 60px; padding: 50px 0; }
    .fm-left { flex: none; width: 100%; }
    .fm-right { grid-template-columns: 1fr 1fr; gap: 40px; }
    .ap-footer-bottom { flex-direction: column; gap: 30px; text-align: center; }
    .fb-links ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .fb-social a { margin: 0 10px; }
}

@media (max-width: 767px) {
    /* 404 Page Mobile */
    .error-title { font-size: 5rem; }
    .error-title em { font-size: 1.6rem; letter-spacing: 4px; }
    .error-desc { font-size: 13px; padding: 0 10px; margin-bottom: 35px; }
    .btn-404-home { padding: 14px 35px; width: 100%; max-width: 280px; }
}

/* ==========================================================================
   10. FULLSCREEN SEARCH OVERLAY (GLOBAL SEARCH)
   ========================================================================== */
.ap-search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    
    /* 1. Giảm độ đục xuống còn 85% (0.85) để nhìn xuyên thấu */
    background-color: rgba(255, 255, 255, 0.85); 
    
    /* 2. Thêm hiệu ứng làm nhòe (blur) cảnh nền phía sau chuẩn Luxury */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Hỗ trợ cho Safari/iPhone */
    
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.ap-search-overlay.active {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* Nút tắt X */
.close-search {
    position: absolute; top: 40px; right: 40px;
    background: none; border: none; cursor: pointer; color: #111111;
    padding: 10px; transition: transform 0.4s ease;
}
.close-search:hover { transform: rotate(90deg); }

/* Khung nội dung giữa màn hình */
.search-overlay-content {
    width: 100%; max-width: 800px; padding: 0 20px; text-align: center;
}
.search-label {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px; font-weight: bold; letter-spacing: 3px;
    color: #555555; margin-bottom: 30px;
}

/* Thanh nhập liệu */
.ap-search-form {
    display: flex; align-items: center;
    border-bottom: 2px solid #111111; padding-bottom: 15px;
}
.ap-search-form input {
    flex: 1; background: transparent; border: none; outline: none;
    font-size: 3.5rem; /* Form chữ khổng lồ */
    font-family: 'Times New Roman', Times, serif; font-style: italic; /* Font nghệ thuật */
    color: #111111; padding: 10px 0;
}
.ap-search-form input::placeholder { color: #cccccc; }

.ap-search-form button {
    background: transparent; border: none; cursor: pointer; color: #111111; padding: 0 10px;
}
.ap-search-form button:hover { color: #666666; }

/* Responsive Mobile */
@media (max-width: 767px) {
    .ap-search-form input { font-size: 2.2rem; }
    .close-search { top: 20px; right: 20px; }
}

/* ==========================================================================
   11. TRANG KẾT QUẢ TÌM KIẾM (SEARCH RESULTS - LUXURY GRID)
   ========================================================================== */
.ap-search-page {
    padding-top: 160px; /* Né cái Header */
    padding-bottom: 100px;
    background-color: #ffffff;
    min-height: 80vh;
}

.ap-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
	/* margin-top: 180px; */
}

/* Tiêu đề Tìm kiếm */
.search-header {
    text-align: center;
    margin-bottom: 80px;
}
.search-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #888888;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.search-title em {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: #111111;
    display: block;
    margin-top: 15px;
    text-transform: none;
    word-break: break-word;
}

/* Lưới kết quả (Grid 3 cột) */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.search-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Ảnh đại diện */
.search-item-thumb {
    width: 100%;
    aspect-ratio: 4/3; /* Tỉ lệ ảnh chữ nhật nằm ngang */
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 20px;
}
.search-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Hover mượt */
}
.search-item:hover .search-item-thumb img {
    transform: scale(1.05); /* Zoom nhẹ ảnh khi đưa chuột vào */
}

/* Thông tin bài viết */
.item-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999999;
    display: block;
    margin-bottom: 10px;
}
.item-title {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #111111;
    margin: 0;
    transition: color 0.3s ease;
}
.search-item:hover .item-title {
    color: #666666;
}

/* --- Phân trang (Pagination) --- */
.ap-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-top: 60px;
    border-top: 1px solid #eeeeee;
    padding-top: 40px;
}
.ap-pagination .page-numbers {
    text-decoration: none;
    color: #888888;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
}
.ap-pagination .page-numbers.current {
    color: #111111;
    border-bottom: 1px solid #111111;
}
.ap-pagination .page-numbers:hover:not(.current) {
    color: #111111;
}

/* --- Trạng thái Không có kết quả --- */
.search-no-results {
    text-align: center;
    padding: 50px 0;
}
.search-no-results p {
    color: #555555;
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.btn-search-again {
    display: inline-block;
    background: #111111;
    color: #ffffff !important;
    padding: 14px 35px;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    transition: 0.3s;
}
.btn-search-again:hover { background: #444444; }

/* --- Responsive Mobile --- */
@media (max-width: 991px) {
    .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 767px) {
    .search-results-grid { grid-template-columns: 1fr; }
    .search-title em { font-size: 2.5rem; }
}

/* ==========================================================================
   FIX LỖI NỘI DUNG ĐÈ LÊN MENU TRÊN TRANG TÌM KIẾM & CHÍNH SÁCH
   ========================================================================== */
.site-main.ap-search-page,
.site-main.ap-default-page {
    padding-top: 160px !important; /* Dùng !important để vô hiệu hóa lệnh ép sát trần */
}

/* Đẩy cái tiêu đề tìm kiếm lùi xuống thêm một chút cho thoáng */
.search-header {
    margin-top: 40px; 
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Để nếu địa chỉ dài thì icon vẫn nằm top */
    gap: 12px; /* Khoảng cách giữa icon và chữ */
    color: #d1d1d1;
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.contact-item svg {
    flex-shrink: 0; /* Giữ icon không bị méo */
    margin-top: 2px;
    color: #ffffff; /* Icon nổi bật */
}
.contact-item a {
    color: #d1d1d1;
    text-decoration: none;
    transition: 0.3s;
}
.contact-item a:hover { color: #ffffff; }

/* ==========================================================================
   TỐI THƯỢNG: ẨN HẾT MENU FOOTER TRÊN MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Ẩn tất cả các khối có tên class chứa từ khóa footer-widgets hoặc menu */
    footer [class*="widget"], 
    footer [class*="menu"], 
    footer .footer-widgets,
    footer .footer-nav,
    footer .nav-menu { 
        display: none !important;
    }

    /* 2. Ép các container còn lại phải co lại theo chiều rộng màn hình */
    .site-footer, 
    footer {
        padding: 30px 15px !important;
        text-align: center !important;
    }

    /* 3. Đảm bảo những thứ quan trọng không bị ẩn theo */
    .site-info, 
    .footer-bottom, 
    .copyright,
    .footer-contact-info {
        display: block !important;
    }
}


/* ==========================================================================
   FIX FOOTER MOBILE V2: ẨN MENU NHƯNG GIỮ LẠI ĐỊA CHỈ
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Chỉ ẩn đúng các khối menu - Giữ lại các khối khác */
    .fm-left, 
    .ap-footer-middle {
        display: none !important;
    }

    /* 2. Ép phần còn lại (Logo + Địa chỉ + Copyright) ra giữa */
    .ap-site-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 40px !important;
    }

    /* 3. Đảm bảo khối thông tin của bro (footer-contact-box) KHÔNG BỊ ẨN */
    .footer-contact-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
}