/* ========================================
   OVERRIDE STYLES FOR MODERN DESIGN
   ======================================== */

/* Hide old header elements */
.w3ls-header,
.agile-its-header,
.agiletopbar,
.wthreenavigation,
header:not(.modern-navbar),
.header-nav,
.navbar.navbar-default,
.menu-wrap,
.menu-button {
    display: none !important;
}

/* Hide old carousel if needed */
#myCarousel,
.main-banner,
.banner,
.flexslider,
.w3l_banner_nav_right {
    display: none !important;
}

/* Hide old main content sections */
.main-content .w3-categories,
.main-content .w3l-popular-ads,
.main-content .trending-ads {
    display: none;
}

/* Ensure modern sections are visible */
.modern-hero,
.services-section {
    display: block !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove default margins */
body {
    margin: 0;
    padding: 0;
}

/* Ensure container widths work properly */
.container-modern {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fix any z-index issues */
.modern-hero {
    position: relative;
    z-index: 1;
}

.services-section {
    position: relative;
    z-index: 1;
}

/* Ensure footer stays at bottom */
footer {
    margin-top: 0;
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    .container-modern {
        padding: 0 15px;
    }
}

/* Ensure WhatsApp and Phone buttons stay visible */
.whats-app,
.btn-phone {
    z-index: 9999 !important;
}

/* Side menu compatibility */
.agiletopbar {
    z-index: 9998;
}

/* Ensure footer is visible */
footer {
    position: relative;
    z-index: 1;
    background: #2c3e50;
}

/* Fix any potential spacing issues */
.services-section + * {
    margin-top: 0;
}

/* Ensure smooth transitions */
* {
    transition: all 0.3s ease;
}

a {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .modern-hero,
    .whats-app,
    .btn-phone {
        display: none;
    }

    .service-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

