/* Variables & Reset */
:root {
    --primary-color: #00a8e1; /* Xanh từ logo */
    --primary-light: #f0faff; /* Xanh nhạt cho hover/active */
    --secondary-color: #f37021; /* Cam từ logo */
    --secondary-light: #fef1e9; /* Cam cực nhạt để làm nổi bật dòng giá */
    --text-color: #333;
    --text-muted: #555; /* Đậm hơn để đạt chuẩn WCAG AAA (Contrast 7.4:1) */
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --footer-dark: #1a1a1a;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.menu-open {
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Utilities */
.flex-header, .flex-menu, .flex-footer {
    display: flex;
    align-items: center;
}

.section-padding {
    padding: 60px 0;
}

/* Section Titles */
.section-title {
    margin-bottom: 30px;
}

.section-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

.section-title .view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: var(--transition);
}

.section-title .view-more:hover {
    color: var(--secondary-color);
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 15px;
}

.section-title-flex .divider {
    flex-basis: 100%;
}

.hide-mobile {
    display: flex;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
    z-index: 1101; /* Cao nhất để không bị các thành phần sticky khác che */
    width: 40px;
    text-align: center;
}

.menu-close {
    display: none; /* Ẩn mặc định trên PC */
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1110;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1095; /* Nằm dưới header nhưng trên nội dung trang */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
    transition: top 0.3s ease-in-out;
}

.header .container {
    position: relative;
}

.flex-header {
    height: 80px; /* Cố định chiều cao header để menu item căn chỉnh chuẩn */
    justify-content: space-between;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.flex-menu {
    height: 100%;
    list-style: none;
    display: flex;
    align-items: stretch; /* Cho phép các li chiếm toàn bộ chiều cao header */
}

.flex-menu li {
    display: flex;
    align-items: center;
    position: relative;
}

.flex-menu li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    font-weight: bold;
    transition: var(--transition);
}

/* Giữ màu xanh cho menu cha khi đang rê chuột ở menu con hoặc li cha */
.flex-menu li:hover > a,
.flex-menu li a:hover, 
.flex-menu li a.active,
.has-dropdown.open > a {
    color: var(--primary-color);
}

.dropdown-toggle {
    display: none; /* Ẩn mặc định trên PC */
    cursor: pointer;
}

/* Dropdown Menu PC */
.has-dropdown {
    position: relative;
}

.has-dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 95vw; /* Ngăn menu đẩy chiều ngang trình duyệt trên màn hình nhỏ */
    list-style: none;
    display: none;
    flex-direction: column;
    z-index: 100;
    border-top: 3px solid var(--primary-color);
}

/* Tạo cầu nối tàng hình để giữ trạng thái hover khi di chuyển chuột từ Link xuống Menu con */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* Mega Menu Style for 24 Districts */
.dropdown-menu.mega-menu {
    width: 880px;
    min-width: 880px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
}

.dropdown-menu.mega-menu li {
    flex: 0 0 25%;
}

@media (min-width: 1025px) {
    /* Đồng bộ vị trí Mega Menu để không bị tràn và thống nhất trải nghiệm */
    .has-dropdown:has(.mega-menu) {
        position: static;
    }

    .has-dropdown:hover .dropdown-menu.mega-menu {
        left: 15px !important; /* Cố định vị trí left theo container để không bị tràn màn hình 13 inch */
        right: 15px;
        top: 63px; /* Gối lên Header để không bị mất hover khi rê chuột xuống */
        transform: none;
        display: flex;
        width: calc(100% - 30px) !important;
        min-width: unset;
        overflow: scroll;
        max-height: 528px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
    }

    .has-dropdown:hover .dropdown-menu:not(.mega-menu) {
        display: flex;
    }
}

.dropdown-menu li a {
    padding: 15px 25px !important;
    border-bottom: 1px solid #f1f1f1;
    font-weight: normal !important;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.phone-number {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

/* Hero Slider */
.hero-slider {
    height: 700px;
}

.main-swiper {
    width: 100%;
    height: 100%;
}

.main-swiper .swiper-slide {
    position: relative;
}

.main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background: rgba(0,0,0,0.4);
    padding: 20px;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Page Banner (Internal Pages) */
.page-banner {
    position: relative;
    height: 130px;
    overflow: hidden;
    background-color: var(--white); /* Đảm bảo nền trắng phía sau ảnh mờ */
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color);
    background: transparent; /* Chuyển sang trong suốt theo yêu cầu */
    padding: 30px 20px;
    width: 100%;
    z-index: 10;
}

.page-banner-content h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    justify-content: center;
    font-size: 15px;
    margin-top: 10px;
    padding: 0;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:last-child {
    color: var(--text-color);
    opacity: 0.9;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: var(--text-color);
    opacity: 0.9;
}

/* Swiper Navigation - Unified Style (Matching Hero) */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3); /* Darker for light sections visibility */
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
}

/* Hero Slider Navigation Specific (Transparent white for dark images) */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card-item {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.card-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.card-img img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.price {
    color: var(--secondary-color);
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* Product List Grid (No Swiper) */
.office-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.office-grid .card-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

@media (max-width: 1279px) {
    .office-grid .card-item {
        flex: 0 0 calc(33.333% - 13.4px);
        max-width: calc(33.333% - 13.4px);
    }
}

/* News Listing Page Grid */
.news-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-list-grid .news-card {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Review & Comment Section */
.review-container {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 40px;
}

.rating-input {
    /* display: flex; */
    /* gap: 5px; */
    margin-bottom: 15px;
    margin-top: 5px;
    font-size: 15px;
    color: #ddd;
    cursor: pointer;
}

.rating-input i.active {
    color: #ffc107;
}

.comment-list {
    margin-top: 40px;
}

.comment-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-reply {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    transition: var(--transition);
}

.hidden {
    display: none;
}

.btn-reply:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
}

.comment-reply {
    margin-left: 50px;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
}

.reply-form-wrapper {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Featured Offices Slider adjustment */
.featured-swiper {
    padding-bottom: 50px;
}

.featured-swiper .swiper-pagination {
    bottom: 10px !important;
}

.featured-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

.featured-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Wards Section */
.wards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ward-link {
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ward-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Ward Swiper Adjustments */
.ward-swiper {
    padding-bottom: 50px;
}

.ward-swiper .swiper-pagination {
    bottom: 10px !important;
}

/* Districts Section */
.districts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.district-item {
    display: block;
    width: 100%;
    min-width: 200px;
    text-decoration: none;
    color: var(--white);
}

.district-card {
    position: relative;
    /* height: 300px; */
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.district-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.district-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: center;
}

.district-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.district-card:hover img {
    transform: scale(1.1);
}

/* Why Choose Us */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* About Summary */
.about-flex {
    display: flex;
    align-items: stretch;
    gap: 60px;
    flex-wrap: wrap;
}

.about-section-bg {
    background-color: #f4faff; /* Màu xanh nhạt nhẹ nhàng để phân biệt section */
}

.about-content {
    flex: 0 0 calc(55% - 30px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.about-content h2 {
    font-size: 30px;
    line-height: 1.3;
    margin-top: 0 !important; /* Xóa margin top kế thừa từ rich text */
    margin-bottom: 15px !important;
    color: var(--text-color);
}

.about-content p {
    margin-bottom: 12px !important; /* Thu hẹp khoảng cách giữa các đoạn văn */
}

.about-highlights {
    list-style: none;
    margin: 15px 0 20px; /* Thu gọn margin top/bottom của danh sách */
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 0;
}

.about-highlights li {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.about-highlights li i {
    color: var(--primary-color);
    font-size: 18px;
}

.about-content .btn-submit {
    width: 300px;
    max-width: 100%; /* Đảm bảo không bị tràn trên Mobile */
    text-align: center;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: fit-content;
}

.sig-info .sig-name {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    font-family: "Times New Roman", Times, serif; /* Tạo cảm giác chữ ký hơn */
    font-style: italic;
}

.sig-info .sig-title {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-image {
    flex: 0 0 calc(45% - 30px);
    min-width: 300px;
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.image-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--secondary-color);
    border-left: 5px solid var(--secondary-color);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.1);
}

/* Vision and Mission Section */
.vision-mission-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center; /* Center items if they don't fill the row */
}

.vision-item, .mission-item {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.vision-item:hover, .mission-item:hover {
    transform: translateY(-5px);
}

.vision-item h3, .mission-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.vision-item p, .mission-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* News Slider */
.news-swiper {
    padding-bottom: 50px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease; /* Smooth zoom */
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-body {
    padding: 20px;
}

.news-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-decoration: none;
}

.news-body p {
    color: var(--text-color);
    text-decoration: none;
}

.news-card a {
    text-decoration: none;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question h4 {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Độ cao tối đa đủ cho nội dung */
}

.faq-item.active .faq-question {
    background-color: var(--primary-light);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Content Toggle */
.expandable-content {
    max-height: 160px; /* Initial collapsed height (approx 5-6 lines) */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.expandable-content.is-expanded {
    /* max-height: 2000px; */
    max-height: unset;
    transition: max-height 1s ease-in;
}

.content-toggle-wrapper .btn-toggle-content.is-active i {
    transform: rotate(180deg);
}


/* Prefooter Section */
.prefooter-section {
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
}

.prefooter-links {
    display: flex;
    flex-wrap: wrap;
    row-gap: 12px;
}

.prefooter-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--text-color);
}

.prefooter-links a {
    flex: 0 0 25%; /* Chia 4 cột trên PC */
    max-width: 25%;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.prefooter-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Page Content */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-form-side {
    flex: 1.2;
    min-width: 320px;
}

.contact-map-side {
    flex: 1;
    min-width: 320px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 168, 225, 0.2);
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white) !important; /* Đảm bảo luôn là màu trắng */
    padding: 8px 20px; /* Nhỏ lại theo yêu cầu */
    border: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block; /* Để width tự co theo nội dung */
    text-decoration: none !important; /* Xóa gạch chân */
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Building Specs Table */
.section-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Product Detail Gallery */
.detail-gallery {
    margin-bottom: 30px;
    height: 450px; /* Tăng lên 450px để đảm bảo tỷ lệ 4:3 (600x450) cho ảnh chính */
    overflow: hidden;
    position: relative;
}

/* Layout PC: 1 hình chính bên trái, 4 hình nhỏ bên phải (2 cột nhỏ) */
@media (min-width: 1025px) {
    .gallery-swiper .swiper-wrapper {
        display: flex !important;
        flex-direction: column;
        flex-wrap: wrap;
        height: 100%;
        gap: 8px;
        transform: none !important; /* Vô hiệu hóa tính năng trượt của Swiper trên PC */
    }

    .swiper-slide.gallery-main {
        width: calc(50% - 6px) !important; /* Chiếm 50% bề ngang */
        height: 100% !important;
        margin: 0 !important;
    }

    .swiper-slide.thumb-item {
        width: calc(25% - 6px) !important; /* 2 cột nhỏ, mỗi cột chiếm 25% */
        height: calc(50% - 4px) !important; /* Chia đôi chiều cao 400px */
        margin: 0 !important;
    }
}

.swiper-slide {
    overflow: hidden;
    border-radius: 4px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: unset;
}

.swiper-slide a:hover {
    color: var(--primary-color);
}

.swiper-slide:hover img {
    transform: scale(1.03);
}

/* View All Overlay */
.view-all-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.overlay-content {
    text-align: center;
}

.overlay-content i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.overlay-content span {
    font-weight: bold;
    font-size: 14px;
}

/* Product Summary Bar */
.product-summary-bar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    z-index: 1050; /* Thấp hơn Header (1100) để tránh che lấp menu thả xuống */
}

.summary-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px; /* Tăng padding ngang để text không sát biên */
    flex-wrap: wrap;
    gap: 20px;
}

.product-summary-bar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-summary-bar.is-sticky .summary-bar-flex {
    padding: 12px 30px; /* Giữ khoảng cách thoáng 30px khi sticky */
}

.summary-title-area {
    flex: 1;
    min-width: 300px;
}

.title-rating-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.title-rating-flex h2 {
    margin-bottom: 0 !important;
}

.summary-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-rating .stars {
    color: #ffc107;
    font-size: 16px;
    display: flex;
    gap: 2px;
}

.summary-rating .rating-text {
    font-size: 14px;
    color: var(--text-muted);
}

.summary-title-area h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-summary-bar.is-sticky .title-rating-flex {
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.product-summary-bar.is-sticky .rating-text {
    display: none;
}

.product-summary-bar.is-sticky .summary-bar-flex {
    padding: 12px 30px; /* Giữ khoảng cách thoáng 30px khi sticky */
}

.product-summary-bar.is-sticky .summary-title-area h2 {
    font-size: 17px !important;
    font-size: 19px !important; /* Tăng cỡ chữ tên toà nhà */
    margin: 0 !important;
    white-space: nowrap;
}

.summary-address {
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-summary-bar.is-sticky .summary-address {
    font-size: 13px;
}

.summary-price-area {
    text-align: right;
}

.summary-price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    line-height: 1;
}

.product-summary-bar.is-sticky .summary-price-value {
    font-size: 22px !important; /* Tăng cỡ chữ giá thuê để nổi bật nhất */
    color: var(--secondary-color) !important;
}


.specs-table {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.specs-group {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.specs-group:first-child {
    border-right: 1px solid #f0f0f0;
}

.spec-group-title {
    background: #f8f9fa;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 14px;
    color: var(--primary-color);
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
}

.spec-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: 56px; /* Đảm bảo tất cả các dòng có chiều cao bằng nhau để 2 cột luôn cân xứng */
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background-color: var(--primary-light);
    transition: background-color 0.2s ease;
}

.spec-row.highlight-price {
    background-color: var(--secondary-light);
    border-left: 3px solid var(--secondary-color);
}

.spec-row.highlight-price .spec-value {
    font-size: 22px; /* Tăng cỡ chữ giá thuê to và nổi bật hơn */
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1; /* Khống chế line-height để font chữ to không làm đẩy chiều cao của dòng */
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: normal;
    font-size: 14px;
}

.spec-label i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.spec-value {
    text-align: right;
    color: var(--text-color);
    font-weight: bold;
    font-size: 14px;
}

.spec-row span {
    cursor: unset;
}

/* Detail Layout & Sidebar */
.detail-main-layout {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Giúp aside luôn có chiều cao bằng với cột nội dung trái để sidebar có thể trượt sticky */
    padding-bottom: 2%;
}

.detail-left-column {
    flex: 2;
}

.detail-sidebar {
    flex: 1;
    min-width: 320px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* --- Global Rich Text Styles (Article, Expandable, About, Content Body) --- */
.article-body, .expandable-content, .about-content, .content-body {
    text-align: justify;
    line-height: 1.8;
}

.article-body h2, .expandable-content h2, .about-content h2, .content-body h2 { margin: 35px 0 15px; color: var(--primary-color); font-size: 24px; font-weight: bold; }
.article-body h3, .expandable-content h3, .about-content h3, .content-body h3 { margin: 30px 0 12px; color: var(--text-color); font-size: 20px; font-weight: bold; }
.article-body h4, .expandable-content h4, .about-content h4, .content-body h4 { margin: 25px 0 10px; color: var(--text-color); font-size: 18px; font-weight: bold; }
.article-body h5, .expandable-content h5, .about-content h5, .content-body h5 { margin: 20px 0 8px; color: var(--text-color); font-size: 16px; font-weight: bold; }
.article-body h6, .expandable-content h6, .about-content h6, .content-body h6 { margin: 15px 0 8px; color: var(--text-color); font-size: 14px; font-weight: bold; }

.article-body p, .expandable-content p, .about-content p, .content-body p { margin-bottom: 20px; }

.article-body ul, .expandable-content ul, .about-content ul, .content-body ul,
.article-body ol, .expandable-content ol, .about-content ol, .content-body ol {
    margin-bottom: 25px;
    padding-left: 35px;
}

.article-body ul li, .expandable-content ul li, .about-content ul li, .content-body ul li { list-style-type: disc; margin-bottom: 10px; }
.article-body ol li, .expandable-content ol li, .about-content ol li, .content-body ol li { list-style-type: decimal; margin-bottom: 10px; }

.article-body a, .expandable-content a, .about-content a, .content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.article-body a:hover, .expandable-content a:hover, .about-content a:hover, .content-body a:hover {
    color: var(--secondary-color);
}

.article-body blockquote, .expandable-content blockquote, .about-content blockquote, .content-body blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    border-left: 5px solid var(--primary-color);
    background: var(--bg-light);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
}

/* Global Table Styles */
.article-body table, .expandable-content table, .about-content table, .content-body table {
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white);
    font-size: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.article-body table caption, .expandable-content table caption, .about-content table caption, .content-body table caption {
    padding: 12px;
    font-weight: bold;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    caption-side: bottom;
}

.article-body table th, .expandable-content table th, .about-content table th, .content-body table th,
.article-body table td, .expandable-content table td, .about-content table td, .content-body table td {
    border: 1px solid #eee;
    padding: 15px;
    text-align: left;
}

.article-body table th, .expandable-content table th, .about-content table th, .content-body table th {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

.article-body table tr:nth-child(even),
.expandable-content table tr:nth-child(even),
.about-content table tr:nth-child(even),
.content-body table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-body table tr:hover,
.expandable-content table tr:hover,
.about-content table tr:hover,
.content-body table tr:hover {
    background-color: var(--primary-light);
    transition: background-color 0.2s ease;
}

/* Figure & Images */
.article-body figure, .expandable-content figure, .about-content figure, .content-body figure {
    margin: 35px 0;
    text-align: center;
}

 .article-body img,
 .expandable-content img,
 .about-content img,
 .content-body img,
 .article-body figure img,
 .expandable-content figure img,
 .about-content figure img,
 .content-body figure img {
     border-radius: 15px;
 }

 .article-body figure img,
 .expandable-content figure img,
 .about-content figure img,
 .content-body figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body figcaption, .expandable-content figcaption, .about-content figcaption, .content-body figcaption {
    margin-top: 15px;
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

/* Author Section */
.author-section {
    margin-top: 50px;
    padding: 30px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.author-social a {
    color: var(--text-color);
    font-size: 18px;
    transition: var(--transition);
}

.author-social a:hover {
    color: var(--primary-color);
}

.sidebar-widget {
    margin-bottom: 35px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.popular-post-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.popular-post-info h4 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
    transition: var(--transition);
}

.popular-post-item:hover h4 {
    color: var(--primary-color);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* Modal Screen */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.screen.active {
    display: flex;
}

.modal-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    max-width: 600px;
    width: 95%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-screen {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--secondary-color);
    line-height: 1;
    transition: var(--transition);
}

.close-screen:hover {
    color: var(--primary-color);
}

/* Fancybox Z-index Fix: Đảm bảo ảnh phóng to luôn nằm trên Header và Menu */
.fancybox__container {
    z-index: 11000 !important;
}

/* Footer */
.footer {
    background: #222; /* Dark background */
    color: var(--white);
    padding-top: 40px; /* Only top padding, bottom will be handled by footer-bottom */
    margin-top: 50px;
}

.flex-footer {
    display: flex; /* Already flex */
    flex-wrap: wrap; /* Allow columns to wrap */
    justify-content: space-between; /* Distribute space */
    align-items: flex-start;
    gap: 30px; /* Gap between columns */
    padding-bottom: 40px; /* Padding for the main footer content */
}

.footer-col {
    flex: 1; /* Default flex for columns */
    min-width: 200px; /* Minimum width before wrapping */
}

.footer-col.footer-about {
    flex-basis: 250px; /* Make the first column a bit wider */
    min-width: 250px;
}

.footer .footer-title {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--white);
    font-weight: bold;
}


.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: #ccc; /* Màu xám sáng cho link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color); /* Chuyển màu xanh khi hover */
}

.footer p {
    color: #bbb; /* Màu xám nhẹ cho đoạn văn bản */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px; /* Add margin for paragraphs */
}

.footer p i {
    margin-right: 8px;
    color: var(--primary-color); /* Icon màu xanh */
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    background: var(--footer-dark);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
}

.footer-bottom p {
    color: #999; /* Lighter gray for copyright text */
    margin: 0;
    font-size: 13px;
}

.footer-logo {
    width: 180px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* --- RESPONSIVE --- */

/* Laptop 13-inch (1280px - 1366px) */
@media (max-width: 1366px) {
    .container {
        max-width: 1170px;
    }
    .flex-menu li a {
        padding: 10px 10px;
        font-size: 14px;
    }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .hide-mobile {
        display: none;
    }
    .footer-col {
        flex: 0 0 calc(50% - 15px); /* 2 columns on tablet, with gap */
        max-width: calc(50% - 15px);
    }
    .footer-col.footer-about {
        flex-basis: calc(50% - 15px); /* Adjust first column for 2-col layout */
        max-width: calc(50% - 15px);
    }

    .news-list-grid .news-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .office-grid .card-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1105; /* Đảm bảo cao hơn overlay (1095) và Header (1100) */
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease-in-out;
    }
    .menu-toggle {
        display: block; /* Hiện nút toggle ở màn hình <= 1024px */
    }
    
    .menu-close {
        display: flex; /* Hiện nút đóng với flexbox để căn giữa icon trên Mobile/Tablet */
    }

    .has-dropdown {
        position: relative;
    }

    .has-dropdown > a {
        padding-right: 60px !important; /* Chừa khoảng trống cho nút toggle */
    }

    .has-dropdown > a i {
        display: none; /* Ẩn icon mặc định trong link trên mobile */
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 52px; /* Khớp với chiều cao dòng của menu item */
        z-index: 5;
        color: var(--text-color);
        border-left: 1px solid #f1f1f1;
    }

    .dropdown-toggle i {
        font-weight: 900; /* Đảm bảo icon Solid luôn hiển thị */
    }

    .has-dropdown.open > .dropdown-toggle {
        color: var(--primary-color);
    }

    .has-dropdown.open > .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        width: 100%;
        padding-left: 15px;
        display: none !important; /* Ẩn mặc định trên mobile */
    }
    
    /* Đảm bảo Mega Menu trên Side Menu (Tablet/Mobile) không bị tràn lề */
    .dropdown-menu.mega-menu {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        padding: 0 !important;
        background-color: #fcfcfc;
        position: static;
        transform: none !important; /* Gỡ bỏ căn giữa của desktop */
        left: 0 !important;
    }

    .dropdown-menu.mega-menu li {
        width: 100% !important;
        flex: 0 0 100% !important; /* Ép mỗi item chiếm trọn 1 hàng */
    }

    .has-dropdown.open > .dropdown-menu {
        display: flex !important; /* Chỉ hiển thị khi click vào mũi tên dropdown-toggle */
    }

    .main-nav.active {
        right: 0;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .flex-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 0 20px; /* Bỏ padding lề của container để menu tận dụng hết chiều ngang */
    }
    .flex-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
        display: unset;
    }
    .flex-menu li a {
        display: flex;
        padding: 15px 20px; /* Chỉnh lại padding link cho rộng rãi, dễ bấm */
    }
    .hero-slider {
        height: 500px;
    }
    .page-banner {
        height: 250px;
    }
    .district-item {
        flex: 1 1 calc(33.333% - 20px); /* 3 columns on tablet */
    }
    .slide-content h1 {
        font-size: 1.8rem;
    }
    .page-banner-content h1 {
        font-size: 1.8rem;
    }
    .prefooter-links a {
        flex: 0 0 50%; /* 2 cột trên Tablet */
        max-width: 50%;
    }

    .about-flex {
        gap: 30px;
    }

    .about-content, .about-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-image {
        order: -1; /* Đưa ảnh lên trước văn bản trên mobile/tablet */
        margin-bottom: 30px;
    }

    .about-image img {
        box-shadow: none;
    }

    .image-wrapper::before {
        display: none; /* Ẩn họa tiết trang trí góc ảnh trên mobile */
    }

    /* Gallery & Image Ratios for Mobile/Tablet */
    .detail-gallery {
        height: auto; /* Để container nở theo tỷ lệ ảnh */
    }

    .gallery-swiper .swiper-slide img {
        aspect-ratio: 4/3;
        height: auto;
        width: 100%;
    }

    /* Detail Layout Mobile */
    .detail-main-layout {
        flex-direction: column;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }

    .sticky-sidebar {
        position: static;
        margin-top: 30px;
    }

    .summary-bar-flex {
        padding: 20px; /* Giảm nhẹ padding trên tablet/mobile để cân đối không gian */
    }

    /* Chuyển Summary Bar xuống dưới cùng trên Mobile */
    .product-summary-bar.is-sticky {
        top: auto !important; /* Gỡ bỏ top từ JS/Desktop */
        bottom: 0;
        border-top: 1px solid #eee;
        border-bottom: none;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15); /* Đổ bóng lên trên */
        border-radius: 15px 15px 0 0; /* Bo góc phía trên cho đẹp */
    }

    .product-summary-bar.is-sticky .summary-bar-flex {
        padding: 18px 20px !important; /* Tăng chiều cao bằng padding-height và thoáng 2 bên */
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important; /* Loại bỏ giới hạn của .container chuẩn */
        margin: 0 !important;
    }

    .product-summary-bar.is-sticky .summary-title-area {
        min-width: 0 !important; 
        flex: 1 !important;
        margin-right: 20px !important; /* Tạo khoảng cách an toàn với phần giá */
        display: block !important;
    }

    .product-summary-bar.is-sticky .summary-address {
        display: none; /* Ẩn địa chỉ khi sticky trên mobile để thanh bar gọn gàng hơn */
    }

    .product-summary-bar.is-sticky .summary-price-area span:first-child {
        display: none !important; /* Ẩn chữ "Giá thuê chỉ từ" để lấy chỗ cho con số */
    }

    .product-summary-bar.is-sticky .summary-price-area {
        width: auto;
        flex-shrink: 0; /* Đảm bảo con số giá luôn hiển thị đầy đủ, không bị co lại */
        border-top: none;
        padding-top: 0;
        text-align: right;
    }

    .summary-price-area {
        text-align: left;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    .summary-price-value { font-size: 30px; }

    /* Table Responsive for Tablet/Mobile */
    .article-body table, .expandable-content table, .about-content table, .content-body table {
        display: block;
        overflow-x: auto;
        min-width: 100%; /* Đảm bảo bảng vẫn chiếm 100% và cuộn nếu cần */
    }

    .article-body table th, .expandable-content table th, .about-content table th, .content-body table th {
        white-space: nowrap; /* Giữ tiêu đề trên một dòng khi cuộn */
    }

    .specs-group:first-child {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .specs-group:last-child .spec-row:last-child {
        border-bottom: none;
    }
}

/* Mobile (767px) */
@media (max-width: 767px) {
    .footer-col, .footer-col.footer-about {
        flex: 0 0 100%; /* 1 column on mobile */
        max-width: 100%;
        margin-bottom: 20px; /* Add margin between stacked columns */
    }
}

/* Mobile (768px) */
@media (max-width: 767px) {
    .district-item {
        flex: 1 1 calc(50% - 20px); /* 2 columns on mobile */
    }
    .hero-slider {
        height: 350px;
    }
    .page-banner {
        height: 130px;
    }
    .prefooter-links a {
        flex: 0 0 100%; /* 1 cột trên Mobile */
        max-width: 100%;
    }

    .news-list-grid .news-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .office-grid .card-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .slide-content h1 {
        font-size: 1.5rem;
    }
    .page-banner-content h1 {
        font-size: 1.5rem;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
    .flex-footer {
        gap: 0; /* Remove gap when stacking */
    }
}

.newoffice-author-box {
    background-color: #f0f0f0;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}
.author-flex-container {
    display: flex;
    align-items: center;
    gap: 25px;
}
.author-avatar-link {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
.author-avatar-link img {
    max-width: 100%;
    height: auto;
}
.author-content-right {
    flex: 1;
}
.author-brand-title {
    color: #00a8e1;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.author-bio-text {
    color: #333333;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}
.author-hotline-call {
    color: #f37021;
    font-weight: bold;
    text-decoration: none;
}
@media (max-width: 767px) {
    .author-flex-container {
        flex-direction: column;
        text-align: center;
    }
    .author-avatar-link {
        margin: 0 auto;
    }
}

.btn-toggle-more {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--transition);
    margin: auto !important;
    width: 150px;
    display: block;
    text-align: center;
}