@import url('https://fonts.googleapis.com/css2?family=Limelight&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Services Section Styles */
.ser {
    text-align: center;
    font-family: "Roboto", sans-serif;
    margin-top: 2%;
    width: 80%;
    margin-left: 10%;
    margin-bottom: 3rem;
}

/* .ser h1 {
    font-family: 'Limelight', cursive;
    font-size: 3rem;
    color: #9c4971;
    margin-bottom: 1rem;
} */

.ser img {
   
    opacity: 0.8;
}

/* Maternal & Child Health Section */
section:has(.set) {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 90%;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #9c4971, #ff6b9d);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Main Container */
.set {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
}

/* Service Card Wrapper */
.set1 {
    flex: 1;
    min-width: 350px;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.set1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #9c4971, #ff6b9d);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.set1:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.set1:hover::before {
    transform: scaleX(1);
}

/* Image + Title Block */
.set2:first-of-type {
    padding: 2.5rem 2.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #9c4971 0%, #ff6b9d 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.set2:first-of-type::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: transform 0.6s ease;
}

.set2:first-of-type:hover::before {
    transform: rotate(30deg) scale(1.1);
}

.set1 img {
    width: 220px;
    height: 220px;
    border-radius: 10%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.set1:hover img {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.set2 h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Description Block */
.set2:last-of-type {
    padding: 2rem 2.5rem;
    text-align: center;
}

.set2:last-of-type p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ser {
        width: 95%;
        margin-left: 2.5%;
    }

    .ser h1 {
        font-size: 2.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .set {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .set1 {
        min-width: 100%;
        max-width: none;
    }
    .set1 img {
    width: 120px;
    height: 120px;
    border-radius: 10%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
section:has(.set) {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 90%;
    margin: 0 auto;
}
}

@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }

    .set2:first-of-type {
        padding: 2rem 1.5rem 1rem;
    }

    .set2:last-of-type {
        padding: 1.5rem;
    }
}

/* Hover Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.set1 {
    animation: fadeInUp 0.8s ease forwards;
}

.set1:nth-child(1) { animation-delay: 0.2s; }
.set1:nth-child(2) { animation-delay: 0.4s; }

