/* ================= GLOBAL BASE STYLES ================= */
.main-body-content {
    background: linear-gradient(to top, #e8f5e9 70%, white);
    padding: 60px 0 80px 0;
}

.text-center-override, .text-center-override p {
    text-align: center !important;
}

/* ================= CENTERED BANNER SLIDER ================= */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 550px;
    background: linear-gradient(to bottom, #2e7d32 20%, #1b5e20 50%, #004d00 100%);
    overflow: hidden; 
    margin-bottom: 60px;
    margin-top: 40px;
    border-bottom: 1px solid #003300;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 5; }

.hero-content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2%;
}

.hero-text-area {
    flex: 0 0 45%;
    color: #ffffff;
    padding-right: 20px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out forwards;
    font-family: Arial, sans-serif;
    font-weight: 500;
    position: relative; /* Baseline layering fix */
    z-index: 10;        /* Sits cleanly above default image frames */
}

.hero-text-area h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(to bottom, #a5d6a7 0%, #81c784 50%, #66bb6a 100%);
    color: white;
    position: relative;
    z-index: 20; /* Elevates button above standard text wrapper layers */
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 51, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero:hover { 
    background: linear-gradient(to bottom, #c8e6c9 0%, #a5d6a7 50%, #81c784 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 51, 0, 0.4);
    color: white;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-image-area { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    height: 900%;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Pushes the massive image bounding container below text */
}

.hero-image-area img { 
    max-width: 200%; 
    max-height: 500px;
    height: auto; 
    border-radius: 10px; 
    object-fit: contain;
    align-self: center;
}

/* ================= SLIDER ARROWS ================= */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    height: 300px;
    font-size: 30px;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    z-index: 30; /* Adjusted to sit cleanly above interactive elements */
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    border-radius: 5px;
}

.hero-slider-container:hover .slider-arrow { opacity: 1; }

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

/* ================= CONTENT CONTAINERS ================= */
.container {
    max-width: 900px;
    margin: 80px auto; 
    position: relative;
    text-align: center; 
    font-family: sans-serif;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.container.appear {
    opacity: 1;
    transform: translateY(0);
}

.card-header {
    background: linear-gradient(to top, #d0f6c6 15%, #ffffff) !important; 
    padding: 15px 40px;
    width: fit-content;   
    min-width: 280px;      
    margin: 0 auto;        
    border-radius: 8px;
    position: relative;
    z-index: 2;            
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: 5px solid green; 
}

.card-header h2 {
    color: black;
    margin: 0;
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-body {
    background-color: white;
    padding: 60px 40px 40px 40px; 
    border-radius: 12px;
    margin-top: -25px; 
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    box-sizing: border-box;
    width: 100%; 
}

.card-body p {
    line-height: 1.8;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    color: black;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* ================= PRE-OWNED ASSETS SECTION ================= */
.asset-section {
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 20px; 
    background-size: cover;
    background-position: center;
    transition: background 0.5s ease-in-out;
}

.bg-properties {
    background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.5)), url('/banner/propertiesbanner.webp');
}

.bg-vehicles {
    background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.5)), url('../banner/vehiclebanner.jpg');
}

.asset-content-wrapper {
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 20px;
}

.asset-tabs { 
    display: flex; 
    margin-bottom: 20px; 
}

.tab-btn {
    padding: 10px 30px;
    border: 1px solid #004d00;
    cursor: pointer;
    background: white;
    color: #004d00;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-btn:first-child { border-radius: 4px 0 0 4px; }
.tab-btn:last-child { border-radius: 0 4px 4px 0; border-left: none; }

.tab-btn.active { background: #004d00; color: white; }

.asset-content h2 { color: #1b1b1b; margin-bottom: 15px; font-size: 2.5rem; }

.asset-content p { text-align: left; margin-bottom: 25px; max-width: 500px; line-height: 1.6; }

/* ================= ENHANCED CONTACT CARD ================= */
.contact-branch-section { margin-bottom: 40px; padding-bottom: 30px; }

.contact-branch-section:first-of-type { border-bottom: 1px dashed rgba(0, 77, 0, 0.15); }

.branch-title {
    font-size: 23px;
    font-weight: 700;
    color: #004d00;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.contact-grid-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.contact-item { font-size: 18px; color: #444; line-height: 1.5; }

.contact-item strong { color: #1b1b1b; font-weight: 600; }

.contact-separator { color: #004d00; opacity: 0.3; font-weight: bold; }

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 1000px) {
    #backToTop { left: auto; right: 20px; }
}

@media screen and (max-width: 700px) {
    .hero-image-area {
        z-index: 1 !important; /* Forces the image container layer down */
    }
    
    .hero-image-area img { 
        opacity: 0.1; 
    }
    
    .hero-text-area { 
        text-align: center; 
        position: absolute; 
        z-index: 999 !important; /* Forces text block layer above background element blocks */
        width: 100%;
        padding-right: 0;
        box-sizing: border-box;
    }

    .btn-hero {
        position: relative !important;
        z-index: 9999 !important; /* Absolute top priority touch targets */
    }
}

@media screen and (max-width: 600px) {
    .contact-grid-row { flex-direction: column; gap: 10px; }
    .contact-separator { display: none; }
}

/* ================= PRIVACY POP-OUT MODAL ================= */
.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none; 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.privacy-modal {
    background-color: #ffffff;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 6px solid #004d00;
    overflow: hidden;
    animation: modalFadeIn 0.4s ease-out forwards;
}

.privacy-header {
    background-color: #f4fbf4;
    padding: 20px;
    border-bottom: 1px solid #e2eee2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-header h3 {
    margin: 0;
    color: #004d00;
    font-family: sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
}

.privacy-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.privacy-close-btn:hover {
    color: #cc0000;
}

.privacy-body {
    padding: 25px;
    color: #333333;
    font-family: sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 250px;
    overflow-y: auto;
}

.privacy-body p {
    margin: 0 0 15px 0;
}

.privacy-footer {
    padding: 15px 25px 25px;
    text-align: right;
}

.privacy-accept-btn {
    background-color: #004d00;
    color: #ffffff;
    border: 2px solid #004d00;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-accept-btn:hover {
    background-color: #F0AA18;
    border-color: #F0AA18;
    color: #004d00;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}