/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section & Background */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0044cc 0%, #002277 100%);
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 68, 204, 1) 40%, rgba(0, 68, 204, 0) 100%);
    pointer-events: none;
}

/* Header Area */
.header-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 30px;
}

/* Floating Header with Glassmorphism */
.main-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0044cc;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 8px;
    border-radius: 20px;
}

.main-nav a:hover {
    background: #00097C !important;
}

/* Login & User Action Buttons */
.header-user-action {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-post {
    background: var(--primary, #0044cc);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary, #0044cc);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-post:hover {
    background: #0033aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 68, 204, 0.4);
}

.btn-login {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* border: 1px solid #fff; */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-dropdown>.btn-login {
    /* background: transparent; */
    background: #FFFFFF40;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    margin-top: 5px;
}

.dropdown-content a,
.dropdown-content button {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
    font-size: 15px;
}

.dropdown-content a {
    color: #333;
}

.dropdown-content button {
    background: none;
    color: #dc3545;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.dropdown-content a:hover,
.dropdown-content button:hover {
    background-color: #f8f9fa !important;
}

.dropdown-content.show {
    display: block !important;
}

/* Header Solid support */
.header-solid .btn-login {}

/* Mobile Menu Button */
.btn-mobile-menu {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

/* Header Responsive */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        /* Ẩn menu trên mobile/tablet */
    }

    .btn-mobile-menu {
        display: block;
        /* Hiện nút hamburger */
    }

    .logo-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 8px 12px;
    }

    .logo-text {
        display: none;
    }

    .btn-login {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Hero Content Placeholder (To be expanded later) */
.hero-content {
    position: relative;
    z-index: 10;
    margin-top: 182px;
    color: #fff;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #ffcc00;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.main-footer {
    position: relative;
    background-color: #0b0c2a;
    /* Deep blue dark background */
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: 50px;
    overflow: hidden;
}

/* Background Skyline */
.footer-skyline-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Panels Layout */
.footer-panels {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-panel {
    background-color: #0033cc;
    /* Bright blue for panels */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.company-info-panel {
    flex: 1;
    min-width: 300px;
}

/* =========================================
   ADVANCED FILTER MODAL STYLES
   ========================================= */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-modal-container {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.filter-modal-overlay.active .filter-modal-container {
    transform: translateY(0);
}

.filter-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.btn-close-modal {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: #e5e7eb;
    color: #ef4444;
}

.filter-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.filter-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options.scrollable {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.filter-options.scrollable::-webkit-scrollbar {
    height: 6px;
}

.filter-options.scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.filter-option {
    cursor: pointer;
}

.filter-option input {
    display: none;
}

.filter-option span {
    display: inline-block;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-option.round span {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.filter-option input:checked+span {
    background: #0044cc;
    border-color: #0044cc;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 68, 204, 0.2);
}

.filter-inputs-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 5px;
}

.filter-input-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-input-label {
    font-size: 13px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

.formatted-value {
    color: #0044cc;
    font-weight: 600;
}

.filter-input-box {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.filter-input-box:focus {
    border-color: #0044cc;
    box-shadow: 0 0 0 3px rgba(0, 68, 204, 0.1);
}

.filter-inputs-wrapper .separator {
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Red dot for filter button */
.btn-filter.has-filter {
    position: relative;
}

.btn-filter.has-filter::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.filter-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.btn-reset-filter {
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-reset-filter:hover {
    color: #ef4444;
}

.btn-apply-filter {
    background: #0044cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 68, 204, 0.3);
    transition: all 0.3s ease;
}

.btn-apply-filter:hover {
    background: #0033aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 68, 204, 0.4);
}

@media (max-width: 768px) {
    .filter-row-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-modal-container {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .filter-modal-overlay {
        align-items: flex-end;
    }

    .filter-modal-footer {
        border-radius: 0;
        padding-bottom: 30px;
        /* Safe area for mobile */
    }
}

.links-contact-panel {
    flex: 2;
    min-width: 500px;
}

/* Logo in Footer */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-logo .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
}

.footer-logo .fs-16 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    display: block;
}

/* Company Details */
.company-details p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Columns in Right Panel */
.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ffffff;
}

/* Footer Links */
.footer-links {
    margin-bottom: 30px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 13px;
    color: #e0e0e0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #ffffff;
    color: #0033cc;
}

/* Contact Info */
.contact-item {
    margin-bottom: 20px;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.contact-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.email-value {
    font-size: 14px;
    font-weight: 500;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-copyright p {
    font-size: 12px;
    color: #a0a0a0;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-panels {
        flex-direction: column;
    }

    .links-contact-panel {
        min-width: 100%;
    }

    .footer-columns {
        flex-direction: column;
    }
}

/* =========================================
   SEARCH BOX STYLES (HOME)
   ========================================= */
.search-section {
    position: relative;
    z-index: 20;
    margin-top: -70px;
    /* Kéo khối trồi lên trên banner */
}

.search-box-container {
    background-color: #f5f8fc;
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

.search-box-header {
    margin-bottom: 20px;
}

.search-box-header h2 {
    color: #0b0c2a;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.search-box-header p {
    color: #4b5563;
    font-size: 15px;
    margin-bottom: 0;
}

.search-box-form {
    display: flex;
    align-items: stretch;
    gap: 15px;
}

.btn-filter {
    background-color: #000a66;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.btn-filter:hover {
    background-color: #001199;
}

.btn-filter.has-filter {
    background-color: #10b981;
}

.btn-filter.has-filter:hover {
    background-color: #059669;
}

.search-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #0044cc;
    box-shadow: 0 0 0 3px rgba(0, 68, 204, 0.15);
}

.icon-home {
    color: #9ca3af;
    font-size: 18px;
    margin-right: 15px;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: #374151;
    height: 54px;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.btn-search-submit {
    background-color: #000a66;
    color: white;
    border: none;
    border-radius: 12px;
    width: 54px;
    height: 54px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-search-submit:hover {
    background-color: #0044cc;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-box-form {
        flex-direction: column;
    }

    .btn-filter,
    .btn-search-submit {
        height: 50px;
        width: 100%;
        justify-content: center;
    }
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    transition: background-color 0.2s;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions li i {
    color: #94a3b8;
}

.search-suggestions li:hover {
    background-color: #f8fafc;
    color: #0044cc;
}

.search-suggestions li:hover i {
    color: #0044cc;
}

/* =========================================
   SEARCH BOX STYLES (SEARCH PAGE HORIZONTAL)
   ========================================= */
.search-page-header-wrapper {
    background-color: #f5f8fc;
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 100%;
}

.search-page-header-wrapper.overlap-hero {
    position: relative;
    z-index: 10;
    margin-top: -35px;
}

.horizontal-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.horizontal-search-form .search-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.horizontal-search-form .search-row-inputs {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.horizontal-search-form .search-input-box {
    flex: 2;
}

.horizontal-search-form .search-input-box input {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.horizontal-search-form .dropdown-wrapper {
    flex: 1;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    color: #4b5563;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.custom-dropdown.active .custom-dropdown-trigger {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-dropdown-trigger i {
    color: #64748b;
    font-size: 12px;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    z-index: 1000;
    overflow: hidden;
}

.custom-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.input-group-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-col {
    flex: 1;
}

.range-col label {
    display: block;
    font-size: 12px;
    color: #475569;
    margin-bottom: 5px;
    font-weight: 600;
}

.range-col input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.range-col input:focus {
    border-color: #3b82f6;
}

.range-separator {
    color: #94a3b8;
    margin-top: 20px;
}

.custom-dropdown-body {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-options-list li {
    padding: 10px 15px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-options-list li:hover {
    background-color: #f8fafc;
}

.dropdown-options-list li.selected {
    color: #3b82f6;
    font-weight: 600;
    background-color: #eff6ff;
}

.custom-dropdown-footer {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #f1f5f9;
    background-color: #fff;
}

.btn-dropdown-reset {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #000080;
    background: transparent;
    color: #000080;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dropdown-reset:hover {
    background: #f8fafc;
}

.btn-dropdown-apply {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #000080;
    background: #000080;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dropdown-apply:hover {
    background: #000066;
}

.horizontal-search-form .btn-filter-trigger {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    color: #4b5563;
    background-color: #fff;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.horizontal-search-form .btn-search-page {
    height: 48px;
    padding: 0 25px;
    border-radius: 8px;
    background-color: #000a66;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 991px) {
    .horizontal-search-form .search-row-inputs {
        flex-wrap: wrap;
    }

    .horizontal-search-form .search-input-box {
        flex: 100%;
    }

    .horizontal-search-form .dropdown-wrapper {
        flex: calc(33.333% - 8px);
    }

    .horizontal-search-form .btn-search-page {
        flex: 100%;
        justify-content: center;
    }
}

/* =========================================
   PROPERTIES SECTION STYLES
   ========================================= */
.properties-section {
    padding: 40px 0;
    background-color: #f8fafc;
}

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

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
}

.view-all-link {
    color: #0044cc;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #002277;
    text-decoration: underline;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f3f4f6;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.property-image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

.property-badges-top {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-new {
    background-color: #0066ff;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: white;
    color: #ef4444;
    /* red for heart */
}

.property-badges-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
}

.badge-time,
.badge-photos {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.property-content {
    padding: 20px;
}

.property-price {
    margin-bottom: 12px;
}

.price-main {
    font-size: 24px;
    font-weight: 700;
    color: #0066ff;
}

.price-unit {
    font-size: 14px;
    color: #9ca3af;
    margin-left: 8px;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.4;
}

.property-address {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.property-address i {
    margin-top: 3px;
}

.property-features {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.property-features span {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-features i {
    color: #0066ff;
}

@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =========================================
   BUYING GUIDE SECTION STYLES
   ========================================= */
.guide-section {
    padding: 40px 0;
    background-color: #f0f8ff;
    /* Light blue background as in mockup */
    position: relative;
    overflow: hidden;
}

/* Optional background pattern/skyline watermark */
.guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/guide-bg.png');
    /* Hình nền mây và nhà */
    background-size: 100%;
    background-position: bottom center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.guide-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.guide-pre-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.guide-pre-title .line {
    width: 40px;
    height: 2px;
    background-color: #0066ff;
}

.guide-pre-title .text {
    color: #0066ff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.guide-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.guide-subtitle {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 10;
}

.guide-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.05);
    border-left: 4px solid #0062FF;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.1);
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: #f0f8ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.step-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.guide-content {
    flex: 1;
    margin-bottom: 5px;
}

.guide-content ul {
    list-style: none;
    padding: 0;
}

.guide-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.guide-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #0066ff;
    font-size: 18px;
    line-height: 1;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.article-count {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-explore {
    background: #0066ff;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.btn-explore:hover {
    background: #0044cc;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 992px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .guide-pre-title .line {
        width: 20px;
    }
}

/* =========================================
   KNOWLEDGE SECTION STYLES
   ========================================= */
.knowledge-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.knowledge-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* No Image Placeholder */
.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #9ca3af;
    font-weight: 500;
}

/* Specific heights and font sizes based on usage context */
.featured-img-wrap .no-image-placeholder,
.knowledge-card.featured .card-image-wrap .no-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    font-size: 16px;
}

.art-img-wrap .no-image-placeholder,
.knowledge-card.small .card-image-wrap .no-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    font-size: 14px;
}

/* Hero Section for About Page */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 150px;
    color: white;
}

.about-layout {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    /* padding: 0 40px; */
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 52, 131, 0.9) 30%,
            rgba(0, 52, 131, 0.4) 60%,
            rgba(0, 52, 131, 0) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.about-hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.about-hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-explore-white {
    background: white;
    color: #0044cc;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-explore-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Core Values Cards */
.values-container {
    position: relative;
    z-index: 3;
    margin-top: -100px;
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 4px solid #0044cc;
    border-left: 4px solid #0044cc;
    height: 100%;
}

.value-card:nth-child(2) {
    border-bottom-color: #d97706;
    border-left-color: #d97706;
}

.value-card-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.value-card:nth-child(1) .value-card-icon {
    color: #0044cc;
    background: #eff6ff;
}

.value-card:nth-child(2) .value-card-icon {
    color: #d97706;
    background: #fef3c7;
}

.value-card:nth-child(3) .value-card-icon {
    color: #0044cc;
    background: #eff6ff;
}

.value-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.value-card-desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Page Content Area */
.page-content-wrapper {
    background: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.page-header-titles {
    text-align: center;
    margin-bottom: 40px;
}

.page-subtitle {
    color: #0044cc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

.page-title-line {
    width: 60px;
    height: 3px;
    background: #0044cc;
    margin: 0 auto;
}

.page-html-content {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
}

.page-html-content h2,
.page-html-content h3 {
    color: #111827;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-html-content p {
    margin-bottom: 15px;
}

.page-html-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .values-container {
        margin-top: 40px;
    }

    .about-hero {
        padding-bottom: 60px;
    }

    .page-content-wrapper {
        padding: 30px 20px;
    }
}

.knowledge-card.featured {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.knowledge-card .card-image-wrap {
    width: 100%;
    overflow: hidden;
}

.knowledge-card.featured .card-image-wrap {
    height: 350px;
}

.knowledge-card.small .card-image-wrap {
    height: 160px;
}

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

.knowledge-card:hover img {
    transform: scale(1.05);
}

.knowledge-card .card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.knowledge-card.featured .card-content {
    padding: 25px;
}

.knowledge-card.featured .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
    line-height: 1.4;
}

.knowledge-card.small .card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.4;
}

.knowledge-card .card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.knowledge-card .card-author {
    font-size: 13px;
    color: #9ca3af;
    margin-top: auto;
}

@media (max-width: 992px) {
    .knowledge-grid {
        grid-template-columns: 1fr 1fr;
    }

    .knowledge-card.featured {
        grid-column: 1 / 3;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-card.featured {
        grid-column: auto;
    }
}

/* =========================================
   SEARCH RESULTS PAGE STYLES
   ========================================= */


/* Search Layout */
.search-results-page {
    background-color: #f8fafc;
    padding-bottom: 50px;
    min-height: calc(100vh - 200px);
    padding-top: 40px;
}

.search-results-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* Horizontal Property Card */
.horizontal-property-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f1f5f9;
}

.horizontal-property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image-section {
    width: 360px;
    flex-shrink: 0;
    padding: 20px 15px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 8px;
}

.main-image-wrap {
    position: relative;
    height: 266px;
    opacity: 1;
    border-radius: 8px;
}

.main-image-wrap .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;

}

.action-buttons-top {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.btn-icon-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s ease;
}

.btn-icon-round:hover {
    background: #fff;
    color: #0044cc;
}

.time-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.photo-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.thumbnails-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    height: 60px;
}

.thumbnails-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.thumb-more {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.thumb-more img {
    filter: brightness(0.5);
}

.thumb-more span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.card-content-section {
    padding: 20px 20px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content-section .property-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content-section .property-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.card-content-section .price-main {
    font-size: 22px;
    font-weight: 700;
    color: #0044cc;
}

.card-content-section .price-unit {
    font-size: 14px;
    color: #64748b;
}

.card-content-section .property-address {
    font-size: 14px;
    color: #475569;
    margin-bottom: 15px;
}

.map-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    margin-left: 5px;
}

.map-link:hover {
    text-decoration: underline;
}

.card-content-section .property-features {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.card-content-section .property-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.card-content-section .property-features i {
    color: #94a3b8;
}

.property-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-footer-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-contact {
    flex: 1;
    padding: 15px 20px;
    background-color: #000080;
    /* Navy Blue */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-contact:hover {
    background-color: #000066;
}

.btn-zalo-info {
    flex: 1;
    padding: 10px 10px;
    /* background-color: #fff; */
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    justify-content: center;
}

.btn-zalo-info:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

/* Sidebar Filter */
.search-sidebar {
    /* position: sticky; */
    top: 170px;
    height: fit-content;
}

.sidebar-widget {
    background: #F6FAFF;
    /* Light gray-blue background */
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 i {
    color: #3b82f6;
}

.filter-section {
    margin-bottom: 25px;
    border: 1px solid #E5E7EB;
    width: 280px;
    height: auto;
    gap: 16px;
    opacity: 1;
    border-width: 1px;
    border-radius: 12px;
    padding: 16px;
    background: #FFFFFF;

}

.filter-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 15px;
    border-bottom: 1px solid #F3F4F6
}

.filter-tag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-tag input {
    display: none;
}

.filter-tag span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.filter-tag input:checked+span {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 500;
}

.filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0044cc;
}

.filter-checkbox span {
    font-size: 14px;
    color: #475569;
}

.view-more-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: #0044cc;
    font-weight: 500;
    text-decoration: none;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn-sidebar-apply {
    width: 100%;
    padding: 12px;
    background-color: #000080;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-sidebar-apply:hover {
    background-color: #000066;
}

.btn-sidebar-clear {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-sidebar-clear:hover {
    background-color: #f1f5f9;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .search-results-layout {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        order: -1;
        position: static;
        margin-bottom: 20px;
    }

    .horizontal-property-card {
        flex-direction: column;
    }

    .card-image-section {
        width: 100%;
        padding-bottom: 0;
    }

    .card-content-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .search-dropdowns {
        width: 100%;
        flex-wrap: wrap;
    }

    .dropdown-wrapper {
        flex: 1;
        min-width: calc(50% - 8px);
    }

    .btn-search-page {
        width: 100%;
        margin-top: 15px;
    }
}

/* Badge New Ribbon for Search Results */
.badge-new-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 79px;
    height: 32px;
    background-color: #0d6efd;
    /* Blue */
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 0;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 10;
}

.badge-new-ribbon::after {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: transparent;
    /* Ribbon fold shadow effect (Temporary border/placeholder for icon) */
    border-top: 8px solid #0b5ed7;
    /* Darker blue */
    border-right: 8px solid transparent;
}

.main-image-wrap.full-height {
    height: 290px;
}

/* Header Dynamic Styles */
.header-wrapper {
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    z-index: 999;
    background: transparent;
}

.header-solid {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: url('../images/ban-head-mini.jpg') no-repeat center center;
    background-size: cover;
    padding: 32px 0;
}

.header-solid .main-header {
    /* background: transparent; */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Article Layout */
.article-head {
    padding-top: 20px;
}

.article-layout {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.article-main {
    flex: 1;
    background: #fff;
    padding: 20px;
}

.article-sidebar {
    width: 350px;
}

.sidebar-inner {
    position: -webkit-sticky;
    position: sticky;
    top: 150px;
    z-index: 10;
}

/* Title & Meta */
.article-title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #6B7280;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #111827;
}

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

/* Featured Image */
.featured-image-box {
    position: relative;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image-box img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.badge-huongdan {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #1D4ED8;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
}

/* Article Content */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.article-content h2,
.article-content h3 {
    color: #111827;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin: 20px 0;
}

.key-takeaways {
    background-color: #F3F4F6;
    border-left: 4px solid #1D4ED8;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.key-takeaways-title {
    color: #1D4ED8;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Share & Comments Box */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid #E5E7EB;
}

.share-box {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    background-color: #E5E7EB;
    color: #111827;
}

/* Sidebar Styles */
.sidebar-consult-box {
    background-color: #003BD1;
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-bottom: 40px;
}

.sidebar-consult-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sidebar-consult-box p {
    font-size: 14px;
    color: #E0E7FF;
    margin-bottom: 25px;
    line-height: 1.5;
}

.sidebar-consult-btn {
    display: block;
    width: 100%;
    background-color: #ffcc00;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-consult-btn:hover {
    background-color: #EAB308;
}

.related-articles-box {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 25px;
}

.related-articles-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.related-articles-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #2563EB;
    margin-left: 15px;
    max-width: 40px;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.related-item:last-child {
    margin-bottom: 0;
}

.related-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-title a {
    color: inherit;
    text-decoration: none;
}

.related-title a:hover {
    color: #2563EB;
}

.related-date {
    font-size: 12px;
    color: #6B7280;
}

.btn-view-all {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 1px solid #2563EB;
    color: #2563EB;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 25px;
    transition: all 0.2s;
}

.btn-view-all:hover {
    background-color: #EFF6FF;
}

@media (max-width: 992px) {
    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        width: 100%;
        position: static;
    }
}

.article-tags-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags-icon {
    color: #6b7280;
    line-height: 28px;
}

.article-tag-item {
    background-color: #f3f4f6;
    color: #374151;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}


/* No Image Placeholder */
.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #9ca3af;
    font-weight: 500;
}

/* Specific heights and font sizes based on usage context */
.featured-img-wrap .no-image-placeholder,
.knowledge-card.featured .card-image-wrap .no-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    font-size: 16px;
}

.art-img-wrap .no-image-placeholder,
.knowledge-card.small .card-image-wrap .no-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    font-size: 14px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 8px;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
    border-color: #d1d5db;
}

.pagination .page-item.active .page-link {
    background-color: #0044cc;
    color: #fff;
    border-color: #0044cc;
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Hero Section Animations */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

@keyframes fadeInUpCustom {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceScroll {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.hero-background-image {
    animation: kenBurnsZoom 25s ease-in-out infinite alternate;
}

.animate-fade-in-up {
    animation: fadeInUpCustom 1s ease-out forwards;
    opacity: 0;
    /* Hidden before animation starts */
}

.animate-text-slide-up {
    animation: textSlideUp 0.7s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    /* Hidden before animation starts */
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 28px;
    z-index: 10;
    opacity: 0.8;
    animation: bounceScroll 2s infinite ease-in-out;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* Property Card Animations */
@keyframes staggeredLoad {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card-load {
    animation: staggeredLoad 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    /* Hidden before animation */
}

/* Image Zoom on hover */
.property-image {
    transition: transform 0.4s ease;
}

.property-card-link:hover .property-image {
    transform: scale(1.1);
}

/* Shadow Elevation on hover */
.property-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.property-card-link:hover .property-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Overlay Reveal */
.property-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass through */
}

.property-card-link:hover .property-overlay {
    opacity: 1;
}

.btn-view-detail {
    background: #0044cc;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.property-card-link:hover .btn-view-detail {
    transform: translateY(0);
}

/* Favorite Heart Pulse */
.btn-favorite {
    transition: color 0.2s, transform 0.2s;
}

.btn-favorite.active {
    color: #ef4444;
    /* red */
    animation: heartPulse 0.3s ease-in-out forwards;
}

.btn-favorite.active i {
    font-weight: 900;
    /* FontAwesome solid weight */
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Title Color Change */
.property-title {
    transition: color 0.3s ease;
}

.property-card-link:hover .property-title {
    color: #0044cc;
}

/* Guide Card Animations */
@keyframes guideStaggeredLoad {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-guide-card {
    animation: guideStaggeredLoad 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    /* Hidden before animation */
}

/* Base transitions for Guide Card elements */
.guide-card {
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card .step-label {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card .guide-icon img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.guide-card .step-title {
    transition: color 0.3s ease;
}

.guide-card .guide-content ul li {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Hover effects for Guide Card */
.guide-card:hover {
    border-color: #0044cc;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 68, 204, 0.15);
}

/* .guide-card:hover .step-label {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} */

.guide-card:hover .guide-icon {
    transform: scale(1.3);
    margin-right: 20px;
}


.guide-card:hover .step-title {
    color: #0044cc;
}

.guide-card:hover .guide-content ul li {
    opacity: 1;
}

/* Explore Button Hover Effect */
.guide-card .btn-explore {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.guide-card .btn-explore::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 68, 204, 0.1);
    /* Subtle primary overlay */
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.guide-card:hover .btn-explore::before,
.btn-explore:hover::before {
    transform: scaleX(1);
}

.guide-card:hover .btn-explore,
.btn-explore:hover {
    transform: scale(1.02);
}

/* Knowledge Section Animations */
@keyframes headerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-header-slide {
    animation: headerSlideDown 0.6s ease-out forwards;
}

/* Image Zoom */
.knowledge-card .card-image-wrap {
    overflow: hidden;
    position: relative;
}

.knowledge-card .card-image-wrap img {
    transition: transform 0.4s ease;
}

.knowledge-card:hover .card-image-wrap img {
    transform: scale(1.1);
}

/* Featured Overlay Fade */
.knowledge-card.featured .card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.4s ease;
    pointer-events: none;
}

.knowledge-card.featured:hover .card-image-wrap::after {
    background: rgba(0, 0, 0, 0.35);
}

/* Featured Content Fade & Slide */
.knowledge-card.featured .card-content {
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.knowledge-card.featured:hover .card-content {
    opacity: 1;
}

.knowledge-card.featured .card-excerpt,
.knowledge-card.featured .btn-read-more {
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.knowledge-card.featured:hover .card-excerpt,
.knowledge-card.featured:hover .btn-read-more {
    transform: translateY(0);
}

/* Read More Button styling */
.btn-read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: #0044cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Small Article Specific */
.article-hover-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-15px);
    opacity: 0;
    color: #0044cc;
    font-size: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.knowledge-card.small:hover .article-hover-icon {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Article Title Color */
.knowledge-card .card-title a {
    transition: color 0.3s ease;
}

.knowledge-card:hover .card-title a {
    color: #0044cc !important;
}

/* Footer Animations */
@keyframes footerFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-footer-fade-in {
    animation: footerFadeIn 0.6s ease-out forwards;
}

@keyframes footerColumnStagger {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-footer-column {
    animation: footerColumnStagger 0.5s ease-out forwards;
    opacity: 0;
    /* Hidden before animation */
}

/* Contact Slide Right */
.contact-item {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item .contact-value {
    transition: color 0.3s ease;
}

/* Footer Links Slide */
.footer-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(4px);
}

/* Newsletter Input Focus */
.newsletter-input:focus {
    border-color: #0044cc !important;
    box-shadow: 0 0 0 2px rgba(0, 68, 204, 0.2) !important;
}

/* Newsletter Button Hover & Tap */
.btn-newsletter {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s !important;
}

.btn-newsletter:hover {
    transform: scale(1.1) !important;
    background: #003399 !important;
}

.btn-newsletter:active {
    transform: scale(0.9) !important;
}

/* Social Icon Rotate */
.social-links a {
    display: inline-flex;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    transform: scale(1.15) rotate(12deg);
    color: #0044cc !important;
    border-color: #0044cc !important;
}

/* Bottom Bar Slide */
@keyframes bottomBarSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bottom-bar {
    animation: bottomBarSlideDown 0.6s ease-out forwards;
    opacity: 0;
}

/* --- Extracted from articles/index.blade.php --- */

.category-header {
    background-color: #F8FAFC;
    text-align: center;
    padding: 24px 20px;
    border-bottom: 1px solid #E2E8F0;
}

.cat-title {
    font-size: 32px;
    font-weight: 800;
    color: rgb(17, 24, 39);
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cat-desc {
    color: rgb(107, 114, 128);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.news-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Magazine Grid Layout */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Left column - Featured */
.featured-article {
    display: flex;
    flex-direction: column;
}

.featured-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.featured-img-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-img-wrap:hover img {
    transform: scale(1.05);
}

.badge-blue {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #0056b3;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.featured-title {
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
}

.featured-title a:hover {
    color: #0056b3;
}

.art-meta {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.art-meta span {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.art-meta strong {
    color: #111827;
    margin-right: 5px;
}

.featured-excerpt {
    color: #1F2937;
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right column - 4 small articles */
.small-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.small-article .art-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.small-article .art-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.small-article:hover .art-img {
    transform: scale(1.05);
}

.small-article .art-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #1F2937;
}

.small-article .art-title a {
    color: inherit;
    text-decoration: none;
}

.small-article .art-title a:hover {
    color: #0056b3;
}

/* Standard Grid for remaining articles */
.standard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    border-top: 1px solid #E5E7EB;
    padding-top: 50px;
}

@media (max-width: 992px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .featured-img-wrap img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .small-articles-grid {
        grid-template-columns: 1fr;
    }

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

.section-heading-blue-line {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}

.section-heading-blue-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background-color: #0044cc;
}


@media (max-width: 992px) {
    .home-news-layout {
        flex-direction: column !important;
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr !important;
    }
}


.home-news-layout-flex {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.diem-tin-col-flex {
    flex: 0 0 30%;
}

.flex-col-gap-20 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flex-col-gap-10 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.img-160-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.img-400-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.text-gray-800-no-underline {
    color: #1F2937;
    text-decoration: none;
}


/* Extracted inline styles from search.blade.php */
.horizontal-property-card {
    position: relative;
}

.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.action-buttons-top,
.time-badge,
.photo-count-badge {
    z-index: 2;
}

.thumbnails-wrap,
.map-link,
.card-footer-actions {
    position: relative;
    z-index: 2;
}

.btn-contact {
    text-decoration: none;
}

/* Nav Dropdown Menu */
.main-nav ul li.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0;
    margin: 0 !important;
    margin-top: 5px !important;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0 !important;
}

.main-nav ul li.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

.nav-dropdown-menu li a {
    display: block !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    text-decoration: none !important;
    transition: background 0.3s !important;
    font-weight: 500 !important;
    text-transform: none !important;
    /* border-bottom: 1px solid #eee; */
}

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

.nav-dropdown-menu li a:hover {
    background: #f3f4f6 !important;
    color: #0044cc !important;
}

.header-transparent .main-nav a.active {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-solid .main-nav a.active {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Custom Pagination Styles (Bootstrap 5 compat) */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.375rem;
    gap: 5px;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.page-link {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--primary-color, #0f172a);
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border-radius: 4px;
    font-weight: 500;
}

.page-link:hover {
    z-index: 2;
    color: #fff;
    background-color: var(--primary-color, #0f172a);
    border-color: var(--primary-color, #0f172a);
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary-color, #0f172a);
    border-color: var(--primary-color, #0f172a);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.7;
}

.pagination .page-link svg {
    width: 1rem;
    height: 1rem;
}

/* Style for Mobile Menu Active State */
@media (max-width: 992px) {
    .main-nav.active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 0;
        z-index: 1000;
        border-top: 1px solid #eee;
        border-radius: 10px;
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .main-nav.active li {
        list-style: none;
    }

    .main-nav.active a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        color: #1e293b !important;
        /* Force dark text on mobile */
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 500;
        text-decoration: none;
    }

    .main-nav.active a:hover {
        background: #f8fafc !important;
        color: #00097C !important;
    }

    /* Submenu on mobile */
    .main-nav.active .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8fafc;
        padding: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
    }

    .main-nav.active .nav-dropdown-menu a {
        padding-left: 40px;
        font-size: 14px;
        color: #475569 !important;
    }

    .main-nav.active .nav-item-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .main-nav.active .nav-item-dropdown>a i {
        transition: transform 0.3s ease;
    }

    .main-nav.active .nav-item-dropdown.open>a i {
        transform: rotate(180deg);
    }
}