/* --- Services Page Global Styles --- */
.services-page {
    background-color: #fcfcfc;
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section */
.services-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-align: center;
}

.services-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.services-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Sticky Tabs Navigation (Hamesha upar rahega) */
.tabs-container {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Tabs mobile par niche aa jayenge */
    gap: 12px;
    padding: 15px 0;
}

.tab-link {
    padding: 10px 25px;
    border: none;
    background: #f1f1f1;
    color: #444;
    cursor: pointer;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tab-link.active {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    border-bottom: 3px solid #702d8e;
    font-weight: 700;
}


/* Content & Layout Logic */
.services-content-section {
    padding: 60px 0;
}

.tab-content {
    display: none;
    /* Default hidden */
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- THE SIDE-BY-SIDE WRAPPING GRID --- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    /* Sabhi cards ko side-by-side rakhega */
    gap: 25px;
    /* Cards ke beech ka gap */
    justify-content: center;
    padding: 10px;
}

/* Service Card Design */
.service-card {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;

    /* Responsive Width Calculation */
    flex: 1 1 calc(33.333% - 25px);
    /* Ek line mein 3 cards */
    min-width: 300px;
    /* Mobile par apne aap niche shift hoga */
    max-width: 400px;
    /* Bahut bade screen par failne se rokega */

    display: flex;
    flex-direction: column;
    /* Card ke andar content upar se niche */
    justify-content: space-between;
    /* Button hamesha bottom mein rahega */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #007bff;
}

.service-card .icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Isse sabhi cards ki height ek barabar dikhegi */
}

.know-more {
    text-decoration: none;
    color: #007bff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.know-more i {
    transition: transform 0.3s;
}

.know-more:hover i {
    transform: translateX(5px);
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .service-card {
        flex: 1 1 calc(50% - 25px);
        /* Tablet par 2 cards */
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.2rem;
    }

    .service-card {
        flex: 1 1 100%;
        /* Mobile par 1 card */
    }

    .tabs-nav {
        justify-content: center;
    }
}



/* --- Only Heading Styling --- */
.process-main-header-fixed {
    width: 100% ; /* Full width screen cover */
    text-align: center ; /* Proper center alignment */
    margin: 10px 0 ; /* Top and Bottom spacing */
    display: block ;
}

.process-main-header-fixed h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.purple-line-center {
    width: 80px;
    height: 4px;
    background: #702d8e; /* Branding color */
    margin: 0 auto 20px auto; /* Centering the line */
    border-radius: 2px;
}

.process-main-header-fixed p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto; /* Centering the paragraph */
}

/* Mobile responsive font size */
@media (max-width: 768px) {
    .process-main-header-fixed h2 {
        font-size: 2.2rem;
    }
}

/* Main Container Styling */
.step-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    width: 100%;
}

/* Left Content Side */
.step-content-left {
    flex: 1.2; /* टेक्स्ट को ज्यादा जगह */
}

.step-tag {
    color: #702d8e;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.step-content-left h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 15px 0;
    font-weight: 700;
}

.step-content-left p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Right Image Side */
.step-image-right {
    flex: 0.8;
    text-align: center;
}

.img-wrapper img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.img-caption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step-main-container {
        flex-direction: column; /* मोबाइल पर ऊपर-नीचे */
        padding: 30px;
        text-align: center;
    }
}



/* =========================================================
   PROCESS STEPS - REFINED 50/50 RESPONSIVE LAYOUT
   ========================================================= */

/* 1. Main Container Base */
.step-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px; /* Space between text and image */
    padding: 60px 15px; /* 15px Padding on Left & Right */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box; /* Padding ko width ke andar rakhne ke liye */
}

/* 2. Equal 50/50 Division */
.step-content-left, 
.step-image-right, 
.step-left-img, 
.step-right-text {
    flex: 1; 
    width: 50%;
}

/* 3. Typography Consistency */
.step-tag {
    color: #702d8e;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.step-content-left h3, 
.step-right-text h3 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.step-content-left p, 
.step-right-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* 4. Image Styling */
.img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: block;
}

/* Image Caption - Left Aligned */
.img-caption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #888;
    font-style: italic;
    text-align: left; /* Ab ye hamesha left rahega */
    padding-left: 5px;
}

/* =========================================================
   MOBILE OPTIMIZATION (Responsive Fixes)
   ========================================================= */

@media (max-width: 992px) {
    .step-main-container {
        flex-direction: column !important;
        gap: 35px;
        padding: 40px 15px; /* Mobile par bhi 15px padding barkarar */
    }

    /* Step 2 (alternate) fix for mobile: Text first, then Image */
    .step-main-container.alternate {
        flex-direction: column-reverse !important; 
    }

    .step-content-left, 
    .step-image-right, 
    .step-left-img, 
    .step-right-text {
        width: 100%;
        text-align: left; /* Mobile par bhi professional left align */
    }
    
    .step-content-left h3, 
    .step-right-text h3 {
        font-size: 1.8rem;
    }
}

/* Animation Overflow Fix */
body, html {
    overflow-x: hidden; /* ताकि एनीमेशन बाहर न भागे */
}



/* --- CTA Section Styling --- */
.cta-section {
    padding: 100px 15px;
    background: #ffffff;
}

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #702d8e 0%, #4b1a63 100%); /* Brand Purple Gradient */
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(112, 45, 142, 0.3);
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* --- Button Styling --- */
.btn-primary-cta {
    display: inline-block;
    background: #ffffff;
    color: #702d8e;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.btn-primary-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: #f8f8f8;
    color: #4b1a63;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.9rem !important;
    font-style: italic;
    opacity: 0.8;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .cta-container {
        padding: 40px 20px;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .btn-primary-cta {
        padding: 15px 30px;
        width: 100%;
    }
}