
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
}

h1, h2 {
    font-weight: 700;
    color: #1e293b;
}

p {
    line-height: 1.7;
    color: #475569; 
}

a {
    text-decoration: none;
    color: #4f46e5; 
    transition: color 0.3s ease;
}

a:hover {
    color: #312e81;
}

/* --- Layout Container --- */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}



/* --- Hero Section --- */
.hero-section {
    background-color: #f1f5f9; 
    text-align: center;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    text-align: center;
}


/* --- Service Sections --- */
.service-section {
    padding: 80px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Alternate background color for visual separation */
.main-content > .service-section:nth-child(even) {
    background-color: #f8fafc;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.service-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.service-text h2, p{
    text-align: center;
    padding: 0 20px;
}
.service-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}



/* --- Responsive Design --- */
@media (min-width: 768px) {
    .service-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-content > .service-section:nth-child(even) .service-image {
        order: 2;
    }
}

@media (max-width: 767px) {
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .service-image img {
    width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
}





/* ==== FIX EXTRA VERTICAL SPACE ON MOBILE & TABLET ==== */

/* 1. Fix container alignment */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
    display: block; /* ✅ Remove global flex to avoid stacking issues */
}

/* 2. Keep proper spacing between sections */
.service-section {
    padding: 60px 0; /* ✅ Reduced a bit for mobile smoothness */
}

/* 3. Optimize service-content grid */
.service-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px; /* ✅ Balanced gap for mobile */
    align-items: center;
}

/* 4. Fix image alignment on mobile */
.service-image {
    display: flex;
    justify-content: center;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 5. Tablet & Desktop Layout */
@media (min-width: 768px) {
    .service-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .main-content > .service-section:nth-child(even) .service-image {
        order: 2;
    }

    .service-text h2, 
    .service-text p {
        text-align: left; /* ✅ Better readability */
        padding: 0;
    }
}

/* 6. Fix for smaller screens */
@media (max-width: 767px) {
    .service-image img {
        width: 100%;
    }

    .service-text h2, 
    .service-text p {
        text-align: center;
        padding: 0 10px;
    }
}

/* 7. Remove any accidental body scroll gap */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
