@media screen and (max-width: 768px) {
    /* Ensure header has proper height */
    header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        width: 100%;
        max-width: 100% !important;
        min-height: 70px; /* ✅ Prevents it from being too small */
        background-color: white;
        border-bottom: 1px solid #ddd;
        box-sizing: border-box;
        z-index: 1100;
    }

    /* Ensure the mobile menu button is visible */
    .menu-toggle {
        display: block !important; /* ✅ Ensures it's visible */
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 20px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%); /* ✅ Centers it vertically */
        z-index: 1100;
    }

    /* Hide the menu initially */
    nav {
        display: none !important;
        position: absolute;
        top: 100%; /* ✅ Prevents overlap with the header */
        left: 0;
        width: 100%;
        background: white;
        text-align: center;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Show the menu when active */
    nav.active {
        display: block !important;
    }

    /* Services Section */
    .services-overview {
        padding: 40px 20px;
        text-align: center;
    }

    /* Convert services grid to a single column on mobile */
    .services-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* ✅ Force single column */
        gap: 20px; /* ✅ Adds spacing between stacked items */
        justify-content: center;
        align-items: center;
    }

    .service-tile {
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: white;
        width: 100% !important;
        max-width: 90%; /* ✅ Ensures it does not touch the screen edges */
        margin: 0 auto; /* ✅ Centers tiles */
    }

    .service-tile h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .service-tile p {
        font-size: 1rem;
    }

    /* CTA Section */
    .cta {
        padding: 40px 20px;
        text-align: center;
    }

    .cta button {
        width: 100%;
        font-size: 1.2rem;
        padding: 15px;
    }
    /* Prevent horizontal scrolling */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
/*        overflow-x: hidden !important;*/
    }
    .logo {
        max-width: 90% !important; /* ✅ Scale the width relative to its original size */
        height: auto !important; /* ✅ Maintains aspect ratio */
        display: block;
    }
    /* About Page Container */
    .about-container {
        width: 100% !important; /* ✅ Ensures it never exceeds the screen width */
        max-width: 90% !important; /* ✅ Adds spacing on both sides */
        margin: 0 auto; /* ✅ Centers content */
        padding: 20px; /* ✅ Provides better spacing */
        box-sizing: border-box; /* ✅ Prevents padding from increasing width */
    }

    /* Prevent large images from causing overflow */
    .about-container img {
        max-width: 100% !important; /* ✅ Ensures images never exceed container width */
        height: auto !important; /* ✅ Maintains aspect ratio */
        display: block;
        margin: 0 auto; /* ✅ Centers images */
    }
    /* Blog Page Container */
    .blog-container {
        width: 100% !important; /* ✅ Ensures it never exceeds the screen width */
        max-width: 90% !important; /* ✅ Adds spacing on both sides */
        margin: 0 auto; /* ✅ Centers content */
        padding: 20px; /* ✅ Provides better spacing */
        box-sizing: border-box; /* ✅ Prevents padding from increasing width */
        text-align: left; /* ✅ Ensures readability */
    }

    /* Prevent large images from causing overflow */
    .blog-container img {
        max-width: 100% !important; /* ✅ Ensures images never exceed container width */
        height: auto !important; /* ✅ Maintains aspect ratio */
        display: block;
        margin: 0 auto; /* ✅ Centers images */
    }

    /* Ensure blog posts stack properly */
    .blog-post {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px;
    }
}

