:root {
    --primary-color: #2E3192;
    --secondary-color: #4A4EB2;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Global Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-3px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease-in-out, background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent Header Override for Homepage Hero Integration */
.navbar.navbar-transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* Styling ONLY the top-level direct links of the transparent header */
.navbar.navbar-transparent .nav-links > a,
.navbar.navbar-transparent .nav-links > .dropdown > .dropdown-toggle {
    color: rgba(255, 255, 255, 0.95) !important;
    transition: color 0.3s ease;
}

.navbar.navbar-transparent .nav-links > a:hover,
.navbar.navbar-transparent .nav-links > .dropdown > .dropdown-toggle:hover {
    color: #e74c3c !important;
}

.navbar.navbar-transparent .nav-links > .dropdown > .dropdown-toggle i {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.3s ease;
}

.navbar.navbar-transparent .nav-links > .dropdown > .dropdown-toggle:hover i {
    color: #e74c3c !important;
}

.navbar.navbar-transparent .btn-affordable {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar.navbar-transparent .btn-affordable:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

.navbar.navbar-transparent.navbar-scrolled {
    position: sticky;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* Scrolled state: Style ONLY top-level direct links */
.navbar.navbar-transparent.navbar-scrolled .nav-links > a,
.navbar.navbar-transparent.navbar-scrolled .nav-links > .dropdown > .dropdown-toggle {
    color: var(--text-dark) !important;
}

.navbar.navbar-transparent.navbar-scrolled .nav-links > a:hover,
.navbar.navbar-transparent.navbar-scrolled .nav-links > .dropdown > .dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

.navbar.navbar-transparent.navbar-scrolled .nav-links > .dropdown > .dropdown-toggle i {
    color: var(--text-dark) !important;
}

.navbar.navbar-transparent.navbar-scrolled .nav-links > .dropdown > .dropdown-toggle:hover i {
    color: var(--primary-color) !important;
}

.navbar.navbar-transparent.navbar-scrolled .btn-affordable {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
}

.navbar.navbar-transparent.navbar-scrolled .btn-affordable:hover {
    background: #e74c3c !important;
}

/* Color of hamburger toggle on transparent navbar (white by default on dark slide) */
.navbar.navbar-transparent .mobile-menu-toggle {
    color: var(--white) !important;
}

/* Color of hamburger toggle when navbar is scrolled or when drawer is active */
.navbar.navbar-transparent.navbar-scrolled .mobile-menu-toggle,
.navbar.navbar-transparent .mobile-menu-toggle.active {
    color: var(--text-dark) !important;
}

@media (max-width: 992px) {
    /* Reset homepage transparent header mobile links drawer text color to dark for legibility */
    .navbar.navbar-transparent .nav-links a {
        color: var(--text-dark) !important;
    }
    
    .navbar.navbar-transparent .nav-links .dropdown-toggle {
        color: var(--text-dark) !important;
    }
    
    .navbar.navbar-transparent .nav-links .dropdown-toggle i {
        color: var(--text-dark) !important;
    }
    
    .navbar.navbar-transparent .nav-links a:hover,
    .navbar.navbar-transparent .nav-links .dropdown-toggle:hover {
        color: var(--primary-color) !important;
    }

    /* Keep subtype tags brand blue on mobile transparent navbar links */
    .navbar.navbar-transparent .nav-links .subtype-tags a {
        color: var(--primary-color) !important;
        background: rgba(46, 49, 146, 0.05) !important;
    }
}

.navbar.header-hidden {
    transform: translateY(-100%);
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-footer {
    display: none;
}

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

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(45deg);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 0.85rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 30px;
}

.nav-icons i {
    cursor: pointer;
    transition: var(--transition);
}

.nav-icons i:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none !important;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    max-width: 900px;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 400px;
}

.hero-desc p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.view-property {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 40px;
}

.main-hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.hero-thumbnails {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
}

.thumb {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.thumb:hover {
    border-color: var(--white);
    transform: translateY(-5px);
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center-heading {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.section-header h2 {
    font-size: 2.2rem;
    line-height: 1.2;
}

.section-header.center-heading h2 {
    max-width: 100%;
}

.team-image-wrapper {
    position: relative;
    margin-bottom: 80px;
    border-radius: 20px;
    overflow: hidden;
}

.team-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 2;
}

.team-image {
    width: 100%;
    display: block;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    padding: 30px;
    border-radius: 20px;
    background: var(--bg-light);
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.learn-more:hover .icon-circle {
    transform: translateX(5px);
    background: var(--secondary-color);
}

/* Team Section Styles moved to team.css */

/* Footer Styles */
.site-footer {
    background: #241F21;
    color: #eee;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-heading i {
    display: none;
}

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

.footer-links a {
    color: #999;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #999;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px 0 0 10px;
    background: #222;
    color: var(--white);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .navbar .container {
        padding: 15px 20px;
    }

    .nav-links {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 90px 30px 40px 30px;
        gap: 0;
        z-index: 2000;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        opacity: 0;
        visibility: hidden;
        overflow-y: auto; /* Enable scroll support for long submenus */
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    /* Style only direct top-level link elements and dropdown container blocks */
    .nav-links > a,
    .nav-links > .dropdown {
        width: 100%;
        border-bottom: 1px solid #eef0f6;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .nav-links > a,
    .nav-links > .dropdown > .dropdown-toggle {
        font-size: 1.4rem;
        font-weight: 700;
        padding: 14px 0;
        color: var(--text-dark);
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-decoration: none;
    }

    .nav-links > .dropdown {
        display: block;
    }

    .nav-links.active > a,
    .nav-links.active > .dropdown {
        transform: translateY(0);
        opacity: 1;
    }

    /* Stagger child animations */
    .nav-links.active > *:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active > *:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active > *:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active > *:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active > *:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.active > *:nth-child(6) { transition-delay: 0.3s; }
    .nav-links.active > *:nth-child(7) { transition-delay: 0.35s; }
    .nav-links.active > *:nth-child(8) { transition-delay: 0.4s; }

    .mobile-menu-toggle {
        display: block !important;
        font-size: 1.8rem;
        z-index: 2100;
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Add a close icon state via JS or CSS */
    .mobile-menu-toggle.active {
        color: var(--primary-color);
        transform: rotate(90deg);
    }
    
    .mobile-menu-footer {
        display: block;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #f0f0f0;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease 0.45s;
    }

    .nav-links.active .mobile-menu-footer {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-footer p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
    }

    .mobile-socials {
        display: flex;
        gap: 20px;
    }

    .mobile-socials a {
        width: 45px !important;
        height: 45px !important;
        background: #f8f9fa !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--text-dark) !important;
        font-size: 1.2rem !important;
        padding: 0 !important;
        border: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .footer-grid {
        gap: 0;
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-heading {
        padding: 20px 0;
        margin-bottom: 0 !important;
        cursor: pointer;
    }

    .footer-heading i {
        display: block;
    }

    .footer-col-content {
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    }

    .footer-col.active .footer-col-content {
        max-height: 1000px;
        padding-bottom: 30px;
        transition: all 0.5s cubic-bezier(1, 0, 1, 0);
    }

    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .team-image-wrapper {
        height: 450px;
        margin-bottom: 30px;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .team-image {
        height: 100%;
        object-fit: cover;
    }

    .section-header.center-heading {
        text-align: left;
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .section-header.center-heading h2 {
        font-size: 1.6rem;
    }
    
    .services-grid {
        gap: 0;
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 20px;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .service-card:nth-child(1) { background-color: #f5f6ff; }
    .service-card:nth-child(2) { background-color: #fff6f5; }
    .service-card:nth-child(3) { background-color: #f5fff6; }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .team-title h2 {
        font-size: 1.6rem;
    }
    
    .team-title p {
        font-size: 0.95rem;
    }
    
    .team-nav {
        display: none;
    }

    .hero-content {
        flex-direction: column;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .main-hero-img {
        height: 400px;
    }
    
    .hero-thumbnails {
        bottom: 10px;
        gap: 8px;
    }
    
    .thumb {
        width: 80px;
        height: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

/* Member Profile Page */
.member-profile {
    padding-bottom: 100px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
}

.profile-img-container {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--bg-light);
}

.profile-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
}

.contact-card h5 {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.contact-list {
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-list i {
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-list small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.contact-list p {
    font-weight: 500;
}

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

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Member Profile Page Styles moved to team.css */

/* FAQ Page */
.faq-hero {
    padding: 80px 0;
    background: var(--bg-light);
    margin-bottom: 60px;
}

.faq-hero h1 {
    font-size: 4rem;
    margin: 10px 0 20px;
}

.faq-intro {
    max-width: 700px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.faq-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    margin-bottom: 100px;
}

.faq-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.faq-categories li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-categories li:hover, .faq-categories li.active {
    color: var(--primary-color);
    padding-left: 10px;
}

.group-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.faq-group {
    margin-bottom: 60px;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}

.accordion-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.accordion-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0, 1, 0, 1);
    background: var(--white);
}

.accordion-body p {
    padding: 0 30px 25px;
    color: var(--text-muted);
    line-height: 1.7;
}

.accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.accordion-item.active .accordion-header {
    color: var(--primary-color);
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
    transition: all 0.4s cubic-bezier(1, 0, 1, 0);
}

@media (max-width: 992px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }
    
    .faq-sidebar {
        display: none; /* Hide sidebar on mobile for cleaner look, or make it horizontal */
    }
    
    .faq-hero h1 {
        font-size: 2.5rem;
    }
}

/* About Page */
.about-hero {
    padding: 100px 0;
    background: var(--white);
}

.about-hero h1 {
    font-size: 4rem;
    max-width: 900px;
    margin: 15px 0 25px;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
}

.mission-vision {
    padding-bottom: 100px;
}

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

.mv-card {
    padding: 50px;
    background: var(--bg-light);
    border-radius: 30px;
    transition: var(--transition);
}

.mv-card:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-10px);
}

.mv-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.mv-card:hover .mv-icon {
    color: var(--white);
}

.mv-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.core-values {
    padding: 100px 0;
    background: #111;
    color: var(--white);
}

.center {
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    padding: 40px 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.value-card:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary-color);
}

.value-card:hover i {
    color: var(--white);
}

.value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.value-card p {
    font-size: 0.95rem;
    color: #ccc;
}

.expertise {
    padding: 120px 0;
}

.expertise-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: center;
}

.expertise-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.expertise-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.expertise-list i {
    color: var(--primary-color);
}

.expertise-stats {
    display: flex;
    justify-content: center;
}

.stat-card {
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.expertise-image-box {
    position: relative;
    width: 100%;
}

.about-team-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(46, 49, 146, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

@media (max-width: 992px) {
    .stat-badge {
        position: static;
        margin-top: 20px;
        bottom: auto;
        right: auto;
    }
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.about-contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-contact-card {
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.ac-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.ac-item {
    text-align: center;
}

.ac-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.ac-item h4 {
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .mv-grid, .expertise-layout, .ac-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
}

.floating-help {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    font-weight: 600;
    transition: var(--transition);
    overflow: hidden;
    animation: helpButtonExpand 8s infinite;
}

.floating-help i {
    font-size: 1.5rem;
    padding: 0 4px;
}

.floating-help span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    animation: helpTextExpand 8s infinite;
}

@keyframes helpButtonExpand {
    0%, 15%, 85%, 100% {
        padding: 12px 25px;
        border-radius: 50px;
    }
    30%, 70% {
        padding: 12px;
        border-radius: 50%;
    }
}

@keyframes helpTextExpand {
    0%, 15%, 85%, 100% {
        max-width: 150px;
        opacity: 1;
        margin-left: 10px;
    }
    30%, 70% {
        max-width: 0;
        opacity: 0;
        margin-left: 0;
    }
}

.floating-help:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
    animation-play-state: paused;
}

.floating-help:hover span {
    animation-play-state: paused;
}

/* Help Modal Styling */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.help-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.help-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 380px;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 70px; /* Position above the button */
    transform: scale(0.5) translateY(30px);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-modal-overlay.active .help-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.help-modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.close-help-modal {
    width: 30px;
    height: 30px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.close-help-modal:hover {
    background: #eee;
    transform: rotate(90deg);
}

.help-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.help-option-item:hover {
    background: var(--white);
    transform: translateX(5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.help-option-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.help-option-icon.whatsapp {
    background: #25D366;
}

.help-option-icon.phone {
    background: #3498db;
}

.help-option-details {
    flex: 1;
}

.help-option-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.badge-247 {
    background: #FFD700;
    color: #000;
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-option-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.help-option-item i.ri-arrow-right-s-line {
    color: #ccc;
    font-size: 1rem;
}

.help-modal-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.help-modal-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.help-modal-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .help-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .help-modal-content {
        max-width: 100%;
        margin-bottom: 0;
        border-radius: 30px 30px 0 0;
        transform: translateY(100%);
        transform-origin: bottom;
        padding-bottom: 40px; /* Extra padding for mobile bottom bar */
    }

    .help-modal-overlay.active .help-modal-content {
        transform: translateY(0);
    }

    .help-modal-header h3 {
        font-size: 1.4rem;
    }
}

/* Affordable Housing Button */
.btn-affordable {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-affordable i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-affordable:hover i {
    transform: translateY(2px);
}

.btn-affordable:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Housing Sidebar */
.housing-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.housing-sidebar-overlay.active {
    display: flex;
    opacity: 1;
}

.housing-sidebar-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    height: 100%;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 50px 40px;
    position: relative;
}

.housing-sidebar-overlay.active .housing-sidebar-content {
    transform: translateX(0);
}

.housing-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.sidebar-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-icon-logo { height: 35px; }
.sidebar-boma-logo { height: 45px; }
.logo-divider { color: #ddd; font-size: 1.2rem; }

.close-sidebar-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-sidebar-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.sidebar-body h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.sidebar-body p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.partnership-brief {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 500;
}

.partnership-brief i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.btn-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f2ff;
    color: var(--primary-color);
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.btn-learn-more:hover {
    background: var(--primary-color);
    color: var(--white);
}

.managed-projects h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.compact-project-list {
    list-style: none;
    padding: 0;
}

.compact-project-list li {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.compact-project-list li:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.compact-project-list img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
}

.project-text h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.4;
}

.project-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .housing-sidebar-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .housing-sidebar-content {
        max-width: 100%;
        height: auto;
        max-height: 90vh;
        padding: 40px 25px;
        border-radius: 30px 30px 0 0;
        transform: translateY(100%);
    }

    .housing-sidebar-overlay.active .housing-sidebar-content {
        transform: translateY(0);
    }
    
    .sidebar-body h2 {
        font-size: 1.6rem;
    }
    
    .btn-affordable {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

.fallback-img {
    filter: grayscale(100%) opacity(30%);
    object-fit: contain !important;
    padding: 30px;
    background: #f0f0f0;
}

/* Sharper image edges on desktop */
@media (min-width: 993px) {
    .team-img-box,
    .hero-image-container,
    .team-image-wrapper,
    .profile-img-container,
    .thumb {
        border-radius: 0;
    }
}

/* Valuation Page Styles */
.val-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2E3192 0%, #1a1c54 100%);
    color: white;
    text-align: center;
}

.val-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.val-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.val-hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.val-hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.val-expertise {
    padding: 100px 0;
    background: #f8f9fa;
}

.val-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.val-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.val-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.val-icon {
    width: 60px;
    height: 60px;
    background: rgba(46, 49, 146, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.val-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.val-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.val-network {
    padding: 100px 0;
}

.network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.network-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.network-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.network-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.network-list {
    list-style: none;
    padding: 0;
}

.network-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.network-list li::before {
    content: "\eb7b"; /* Remix Icon checkbox circle line */
    font-family: 'remixicon';
    color: var(--primary-color);
    font-size: 1rem;
}

.val-commitment {
    padding-bottom: 100px;
}

.commitment-card {
    background: #f0f4ff;
    border-radius: 40px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 60px;
}

.commitment-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.commitment-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.trust-shield {
    background: white;
    padding: 40px;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(46, 49, 146, 0.1);
    margin: 0 auto;
}

.trust-shield i {
    font-size: 4rem;
    color: #28a745;
}

.trust-shield span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.val-cta {
    padding: 100px 0;
    background: var(--bg-light);
}

.cta-inner {
    background: white;
    border-radius: 40px;
    padding: 80px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.cta-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.cta-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cta-contact-card {
    text-align: center;
}

.cta-contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.cta-contact-card h4 {
    margin-bottom: 10px;
}

.cta-phones, .cta-emails {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cta-contact-card a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}

.cta-contact-card a:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .val-hero h1 { font-size: 2.5rem; }
    .network-grid, .cta-contact-grid, .commitment-card {
        grid-template-columns: 1fr;
    }
    .cta-inner { padding: 40px 20px; }
}

/* Management Page Styles */
.mgmt-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1c54 0%, #2E3192 100%);
    color: white;
    text-align: center;
}

.mgmt-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.mgmt-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.mgmt-hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.mgmt-pillars {
    padding: 100px 0;
    background: #ffffff;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.pillar-card {
    background: #f8f9fa;
    padding: 50px;
    border-radius: 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.pillar-card:hover {
    background: white;
    box-shadow: 0 30px 60px rgba(46, 49, 146, 0.08);
    transform: translateY(-5px);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(46, 49, 146, 0.2);
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.pillar-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.pillar-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.pillar-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.pillar-list li i {
    color: #28a745;
    font-size: 1.2rem;
}

.mgmt-why {
    padding-bottom: 100px;
}

.mgmt-why-card {
    background: linear-gradient(135deg, #2E3192 0%, #1a1c54 100%);
    border-radius: 40px;
    padding: 80px;
    color: white;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 60px;
}

.mgmt-why-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.mgmt-why-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.8;
}

.pulse-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
    animation: mgmtPulse 3s infinite ease-in-out;
}

@keyframes mgmtPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 30px rgba(255,255,255,0); }
}

.pulse-box i {
    font-size: 5rem;
    color: white;
}

.pulse-box span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .mgmt-hero h1 { font-size: 2.5rem; }
    .pillars-grid, .mgmt-why-card {
        grid-template-columns: 1fr;
    }
    .mgmt-why-card { padding: 40px 30px; }
    .pillar-card { padding: 30px; }
}

/* Agency Page Styles */
.agency-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1c54 0%, #2E3192 100%);
    color: white;
    text-align: center;
}

.agency-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.agency-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.agency-hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

.agency-why {
    padding: 100px 0;
}

.agency-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.agency-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.agency-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(46, 49, 146, 0.1);
}

.agency-icon {
    width: 65px;
    height: 65px;
    background: rgba(46, 49, 146, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    margin-bottom: 25px;
}

.agency-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.agency-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.agency-portfolio {
    padding-bottom: 100px;
}

.portfolio-promo {
    background: linear-gradient(rgba(46, 49, 146, 0.9), rgba(26, 28, 84, 0.9)), url('/images/brand/icon_team.png');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    padding: 100px 60px;
    text-align: center;
    color: white;
}

.promo-text {
    max-width: 700px;
    margin: 0 auto;
}

.promo-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.promo-text p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.promo-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .agency-grid {
        grid-template-columns: 1fr;
    }
    .promo-buttons {
        flex-direction: column;
    }
    .promo-text h2 { font-size: 2.2rem; }
    .agency-hero h1 { font-size: 2.5rem; }
}

/* Contact Page Styles */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2E3192 0%, #1a1c54 100%);
    color: white;
    text-align: center;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.contact-hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-methods {
    padding: 80px 0;
    margin-top: -60px;
}

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

.method-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.method-card:hover {
    transform: translateY(-10px);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: rgba(46, 49, 146, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 25px;
}

.method-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.method-links a {
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

.method-links a:hover {
    color: var(--primary-color);
}

.contact-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

.form-container {
    background: white;
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.contact-form {
    margin-top: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fdfdfd;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 49, 146, 0.1);
}

.offices-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.office-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.office-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.office-info h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.office-info p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .methods-grid, .form-layout, .form-row {
        grid-template-columns: 1fr;
    }
    .contact-hero h1 { font-size: 2.5rem; }
    .form-container { padding: 30px 20px; }
}

/* Affordable Housing Page Styles */
.affordable-housing-page {
    overflow-x: hidden;
}

.ah-hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
}

.ah-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.partnership-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.partnership-badge img {
    height: 35px;
    object-fit: contain;
}

.partnership-badge .divider {
    font-weight: 300;
    color: #ccc;
}

.ah-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.ah-hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.ah-hero-actions {
    display: flex;
    gap: 20px;
}

.floating-img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(46, 49, 146, 0.15);
    animation: floatAnim 6s infinite ease-in-out;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.registration-guide {
    padding: 100px 0;
    background: white;
}

.steps-container {
    max-width: 900px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step-item {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.step-item.highlight {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.managed-projects-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.projects-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.project-large-card {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.project-large-card:hover {
    transform: translateY(-10px);
}

.project-img-box {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-location-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-info {
    padding: 40px;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    gap: 12px;
}

.project-tags span {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.ah-support {
    padding-bottom: 100px;
}

.support-card {
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.support-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.support-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
}

.support-actions {
    display: flex;
    gap: 20px;
}

.support-icon-box {
    font-size: 8rem;
    opacity: 0.2;
}

@media (max-width: 1200px) {
    .ah-hero h1 { font-size: 3rem; }
    .projects-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .ah-hero-grid, .support-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    .partnership-badge, .ah-hero-actions, .support-actions {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .support-icon-box { display: none; }
}

/* Affordable Housing Team Styles */
.ah-team {
    padding: 100px 0;
    background: #f0f4ff;
}

.ah-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ah-expert-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ah-expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 49, 146, 0.1);
}

.expert-img {
    height: 250px;
    overflow: hidden;
}

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

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

.expert-info {
    padding: 25px;
    text-align: center;
}

.expert-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.expert-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.expert-contact a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-phone-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-link {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.support-link i {
    font-size: 1.8rem;
    opacity: 0.8;
}

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

/* Updated Affordable Housing Hero with Background */
.ah-hero {
    padding: 160px 0 120px;
    background: linear-gradient(rgba(26, 28, 84, 0.85), rgba(46, 49, 146, 0.7)), url('/images/brand/affordable-housing.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.ah-hero .partnership-badge {
    margin: 0 auto 30px;
}

.ah-hero h1 {
    color: white;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.ah-hero-desc {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ah-hero-actions {
    justify-content: center;
}

@media (max-width: 768px) {
    .ah-hero {
        padding: 120px 20px 80px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    .ah-hero h1 {
        font-size: 2.2rem;
    }
    .ah-hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .ah-hero-actions .btn-primary, .ah-hero-actions .btn-outline {
        width: 100%;
    }
}

/* Global Mobile App-Like Enhancements for Affordable Housing */
@media (max-width: 768px) {
    .registration-guide {
        padding: 60px 0;
    }
    
    .steps-container {
        gap: 20px;
        margin-top: 30px;
    }
    
    .step-item {
        padding: 25px;
        border-radius: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .step-number {
        font-size: 2.5rem;
        opacity: 0.3;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    .managed-projects-section {
        padding: 60px 0;
    }
    
    .project-large-card {
        border-radius: 25px;
    }
    
    .project-img-box {
        height: 250px;
    }
    
    .project-info {
        padding: 25px;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }
    
    .ah-team {
        padding: 60px 0;
    }
    
    .ah-team-grid {
        gap: 20px;
    }
    
    .ah-expert-card {
        border-radius: 20px;
    }
    
    .ah-support {
        padding-bottom: 60px;
    }
    
    .support-card {
        padding: 40px 20px;
        border-radius: 30px;
    }
    
    .support-text h2 {
        font-size: 2rem;
    }
    
    .support-text p {
        font-size: 1.1rem;
    }
    
    .support-link {
        font-size: 1.2rem;
        justify-content: center;
    }
}

/* Specific Button Adjustments for AH Hero */
.ah-hero .btn-primary {
    background-color: var(--white);
    color: var(--primary-color) !important;
    border-color: var(--white);
}

.ah-hero .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.ah-hero .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: white !important;
}

.ah-hero .btn-outline:hover {
    border-color: white;
    background-color: rgba(255,255,255,0.1);
}

/* Sidebar Actions Grid */
.sidebar-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.sidebar-actions-grid .btn-primary, 
.sidebar-actions-grid .btn-outline {
    border-radius: 12px;
}

/* Mobile Dropdown Active State */
@media (max-width: 992px) {
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f8f9fa;
        border: none;
        margin-top: 10px;
        border-radius: 12px;
        padding: 10px;
        display: block;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(45deg);
    }

    .dropdown-menu li a {
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        padding: 10px 15px !important;
        border: none !important;
        color: var(--text-dark) !important;
        display: block !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .dropdown-menu li a:hover {
        color: var(--primary-color) !important;
        background: transparent !important;
    }
}

/* Mega Dropdown Styles */
.mega-dropdown {
    position: static !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(46, 49, 146, 0.08);
    border-radius: 20px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 999;
    border: 1px solid rgba(46, 49, 146, 0.05);
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.mega-menu-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f2f9;
    padding-bottom: 10px;
}

.mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-col ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.mega-menu-col ul li a i {
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--secondary-color);
}

.mega-menu-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.mega-menu-col ul li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.subtype-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subtype-tags a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(46, 49, 146, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    transition: var(--transition);
}

.subtype-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile responsive styles for mega menu */
@media (max-width: 992px) {
    .mega-dropdown {
        position: relative !important;
        width: 100%;
    }
    
    .mega-menu {
        position: static;
        box-shadow: none;
        padding: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border: none;
        background: #f8f9fa;
        border-radius: 12px;
        margin-top: 10px;
    }
    
    .mega-dropdown.active .mega-menu {
        display: block;
    }
    
    .mega-menu-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mega-menu-col h4 {
        margin-bottom: 12px;
        font-size: 0.95rem;
        color: var(--primary-color);
        border-bottom: 1px solid #e1e5f2;
        padding-bottom: 8px;
    }

    .mega-menu-col ul li a {
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        padding: 8px 10px !important;
        border: none !important;
        color: var(--text-dark) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        transform: none !important;
        opacity: 1 !important;
        width: 100% !important;
    }

    .mega-menu-col ul li a:hover {
        color: var(--secondary-color) !important;
        background: transparent !important;
    }

    .subtype-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 5px 0;
    }

    .subtype-tags a {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        padding: 6px 12px !important;
        border-radius: 30px !important;
        border: none !important;
        display: inline-block !important;
        transform: none !important;
        opacity: 1 !important;
        width: auto !important;
    }
}

/* Dynamic Property Hero */
.hero-dynamic {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 220px 0 90px 0;
    overflow: visible;
    z-index: 5;
}

.hero-dynamic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 150px, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-dynamic .container {
    position: relative;
    z-index: 3;
    max-width: 1140px;
    width: 100%;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.hero-dynamic-content {
    padding-left: 60px;
    padding-bottom: 120px; /* Prevent overlap with absolute filter card */
    position: relative;
}

.hero-pagination-vertical {
    position: absolute;
    left: 30px;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.hero-pagination-vertical .swiper-pagination-bullet {
    width: 4px;
    height: 35px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

.hero-pagination-vertical .swiper-pagination-bullet-active {
    background: #e74c3c;
    height: 55px;
}

/* Hero Main Row (Title on Left, Pricing on Right) */
.hero-main-row {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 25px;
}

.hero-price-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    border-left: 2px solid rgba(255,255,255,0.25);
    padding-left: 30px;
}

.hero-title-col {
    flex: 1;
    min-width: 300px;
}

/* Premium Text Button */
.hero-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
}

.hero-text-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.hero-text-btn:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.hero-text-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .hero-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .hero-price-col {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-dynamic-content {
        padding-left: 35px;
    }
    .hero-pagination-vertical {
        gap: 8px;
    }
    .hero-pagination-vertical .swiper-pagination-bullet {
        width: 3px;
        height: 25px;
    }
    .hero-pagination-vertical .swiper-pagination-bullet-active {
        height: 40px;
    }
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #f7b731;
    margin-bottom: 25px;
}

.hero-dynamic h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-dynamic .property-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-dynamic .meta-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 15px;
    border-radius: 8px;
}

.hero-dynamic .meta-pill i {
    color: #f7b731;
}

/* Filter Card attached to Hero */
.filter-card-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(46, 49, 146, 0.15);
    padding: 25px;
    z-index: 10;
    border: 1px solid rgba(46, 49, 146, 0.05);
}

.filter-form-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1.2fr) auto;
    gap: 15px;
    align-items: end;
}

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

.filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e1e5f2;
    border-radius: 12px;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    background: #fbfcfd;
    transition: var(--transition);
}

.filter-input:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

.btn-filter-search {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    justify-content: center;
    transition: var(--transition);
}

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

/* Premium Property Grid & Listing Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 49, 146, 0.08);
}

.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.badge-agreement {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-sale {
    background: #27ae60;
    color: var(--white);
}

.badge-rent {
    background: var(--primary-color);
    color: var(--white);
}

.badge-airbnb {
    background: #e17055;
    color: var(--white);
}

.property-card-details {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-subtype-tag {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.property-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-card-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-card-location i {
    color: var(--primary-color);
}

.property-card-meta {
    display: flex;
    gap: 15px;
    border-top: 1px solid #f0f2f9;
    padding-top: 15px;
    margin-bottom: 20px;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-dark);
    font-weight: 600;
}

.property-meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f2f9;
    padding-top: 15px;
}

.property-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.property-card-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-card-view {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.btn-card-view:hover,
.property-card:hover .btn-card-view {
    color: var(--primary-color);
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .hero-dynamic {
        min-height: auto;
        padding: 80px 0 100px 0;
    }
    .hero-dynamic-content {
        padding-bottom: 0;
    }
    .hero-dynamic h1 {
        font-size: 2.2rem;
    }
    
    .filter-card-wrapper {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        margin-top: -30px;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }
    
    .filter-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-filter-search {
        width: 100%;
    }
}

/* Blog Catalog and Details Styling */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 49, 146, 0.08);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-item i {
    color: var(--secondary-color);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-card-title {
    color: var(--secondary-color);
}

.blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    border-top: 1px solid #f0f2f9;
    padding-top: 15px;
    margin-top: auto;
}

.btn-read-blog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.btn-read-blog:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Blog Details Layout */
.blog-details-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.blog-rich-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a5568;
}

.blog-rich-content p {
    margin-bottom: 22px;
}

.blog-rich-content h2, .blog-rich-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 35px 0 15px 0;
}

.blog-rich-content ul, .blog-rich-content ol {
    margin-bottom: 22px;
    padding-left: 20px;
}

.blog-rich-content li {
    margin-bottom: 8px;
}

.author-bio-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 50px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    font-size: 2rem;
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .blog-details-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Sticky Bottom Filter Bar & Modal styling */
.mobile-filter-bar-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 20px;
    box-shadow: 0 -8px 30px rgba(46, 49, 146, 0.12);
    z-index: 1000;
    border-top: 1px solid rgba(46, 49, 146, 0.08);
}

.btn-mobile-filter-trigger {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(46, 49, 146, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-mobile-filter-trigger:hover {
    background: var(--secondary-color);
}

.mobile-filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

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

.mobile-filter-modal-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    padding: 25px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 85vh;
    overflow-y: auto;
}

.mobile-filter-modal-overlay.active .mobile-filter-modal-content {
    bottom: 0;
}

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

.mobile-filter-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-mobile-filter-btn {
    background: #f0f2f9;
    border: none;
    color: var(--text-dark);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-mobile-filter-btn:hover {
    background: #e1e5f2;
    color: var(--secondary-color);
}

.filter-form-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 992px) {
    /* Hide the default static filter card wrapper */
    .filter-card-wrapper {
        display: none !important;
    }

    /* Show sticky mobile trigger */
    .mobile-filter-bar-sticky {
        display: block !important;
    }

    /* Elevate need help button to prevent overlapping with the sticky filter strip */
    .floating-help {
        bottom: 85px !important;
        right: 20px !important;
        z-index: 999 !important;
    }

    /* Premium mobile hero adjustments */
    .hero-dynamic {
        min-height: 97vh !important;
        display: flex !important;
        align-items: flex-end !important;
        padding: 120px 0 70px 0 !important;
    }

    .hero-dynamic::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 150px, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.85) 100%) !important;
    }

    .hero-dynamic h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .hero-location-category {
        gap: 8px !important;
        margin-bottom: 20px !important;
        font-size: 0.9rem !important;
    }

    .meta-divider-line {
        display: none !important;
    }

    .affordable-housing-banner-card {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        border-radius: 16px !important;
    }

    .ah-banner-image-box {
        min-height: 220px !important;
        height: 220px !important;
    }

    .ah-banner-image-box img {
        position: static !important;
    }

    .ah-banner-content-box {
        padding: 24px !important;
        gap: 15px !important;
    }

    .ah-banner-heading {
        font-size: 1.6rem !important;
    }

    .ah-banner-desc {
        font-size: 0.9rem !important;
    }
}

/* Affordable Housing Banner Section styles */
.affordable-housing-banner-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(46, 49, 146, 0.05);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 40px;
}

.ah-banner-image-box {
    height: 100%;
    min-height: 350px;
    position: relative;
}

.ah-banner-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ah-banner-content-box {
    padding: 40px 50px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ah-banner-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ah-banner-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.ah-banner-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.ah-banner-action .btn-primary {
    padding: 14px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.discount-percent-badge {
    background: #e3f9eb;
    color: #198754;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #a3cfbb;
    display: inline-block;
}

/* Viral Web Brand Animation Styles */
.vw-brand-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 28px;
    width: 130px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

/* Layer 1: The standard full brand logo aligned left */
.vw-logo-layer {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
    width: 100%;
    animation: vwLogoAnim 7s infinite ease-in-out;
}

/* Layer 2: The interactive sliding reveal row aligned left */
.vw-reveal-layer {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
    width: 100%;
    animation: vwRevealAnim 7s infinite ease-in-out;
}

/* Wrapper for the text. Transitions width on hover to sweep the icon */
.vw-text-wrapper {
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    padding-bottom: 4px;
    animation: vwTextWidthAnim 7s infinite ease-in-out;
}

.vw-reveal-text {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    margin-right: 16px;
    letter-spacing: 0.05em;
    animation: vwTextOpacityAnim 7s infinite ease-in-out;
}

.vw-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Theme overrides */
.vw-theme-white .vw-reveal-text {
    color: #ffffff;
    opacity: 0.9;
}

.vw-theme-original .vw-reveal-text {
    color: #8f8a88;
}

/* Keyframes for continuously looping animation */
@keyframes vwLogoAnim {
    0%, 15% {
        opacity: 1;
    }
    22%, 78% {
        opacity: 0;
    }
    85%, 100% {
        opacity: 1;
    }
}

@keyframes vwRevealAnim {
    0%, 15% {
        opacity: 0;
    }
    22%, 78% {
        opacity: 1;
    }
    85%, 100% {
        opacity: 0;
    }
}

@keyframes vwTextWidthAnim {
    0%, 18% {
        width: 0;
    }
    26%, 72% {
        width: 102px;
    }
    80%, 100% {
        width: 0;
    }
}

@keyframes vwTextOpacityAnim {
    0%, 23% {
        opacity: 0;
    }
    28%, 70% {
        opacity: 1;
    }
    75%, 100% {
        opacity: 0;
    }
}

/* Red overlay badge for property card discounts */
.badge-discount-red {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
    background: #e74c3c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.35);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}


