/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevents horizontal scrollbar when elements exceed viewport width */
}

a {
    text-decoration: none;
    color: #007bff;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure sections are block-level elements by default */
section {
    display: block;
    width: 100%; /* Ensure sections take full available width */
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* NEW: Mobile Menu Custom PNG Icons Styles - Now based on link slug/anchor */
.mobile-bottom-menu .menu-item i {
    display: block;
    width: 28px; /* Unified icon size */
    height: 28px; /* Unified icon size */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 3px;
    
    /* CRITICAL FIX 1: Hide the Font Awesome character/fallback */
    font-size: 0 !important;
    
    /* Ensure the browser treats it as a block element for background-image to work */
    color: transparent !important; 
    
    /* Reset Font Awesome properties */
    font-family: 'Arial', sans-serif !important; 
    font-weight: normal !important;
}

/* CRITICAL FIX 2: Explicitly link to your uploaded PNGs using their slugs */
.mobile-bottom-menu .menu-item i.icon-home {
    background-image: url('../img/mobile_menu_icons/home.png');
}
.mobile-bottom-menu .menu-item i.icon-about {
    background-image: url('../img/mobile_menu_icons/about.png');
}
.mobile-bottom-menu .menu-item i.icon-sale {
    background-image: url('../img/mobile_menu_icons/sale.png');
}
.mobile-bottom-menu .menu-item i.icon-rent {
    background-image: url('../img/mobile_menu_icons/rent.png');
}
.mobile-bottom-menu .menu-item i.icon-lands {
    background-image: url('../img/mobile_menu_icons/lands.png');
}
.mobile-bottom-menu .menu-item i.icon-contact {
    background-image: url('../img/mobile_menu_icons/contact.png'); /* Corrected to contact.png */
}
/* Fallback/Generic mapping */
.mobile-bottom-menu .menu-item i.icon-properties,
.mobile-bottom-menu .menu-item i.icon-properties-for-sale,
.mobile-bottom-menu .menu-item i.icon-properties-for-rent,
.mobile-bottom-menu .menu-item i.icon-lands-for-sale {
    /* Set a fallback for more complex slugs */
}


/* NEW: Global Mobile-First Text Alignment for Sections */
@media (max-width: 768px) {
    section > h2,
    section > h3,
    section > p.section-subtitle,
    section > .text-center { /* Target common direct children for centering */
        text-align: center;
    }

    /* You might need to add more specific selectors if content isn't centering. */
}