* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: Crimson Text, sans-serif;
    }
   
    
    .contains {
        /* max-width: 1200px; */
        width: 100%;
        margin: 0 auto;
        padding: 20px;
    }

    .header {
        text-align: center;
        margin-bottom: 40px;
    }

    .header h1 {
        color: #4A4A4A;
        margin-bottom: 15px;
        font-size: 2.5rem;
    }

    .header p {
        color: #666;
        font-size: 1rem;
        line-height: 1.6;
        max-width: 800px;
        margin: 0 auto;
    }
/* Hero Section //////////////////////////////////////////////////*/
.hero {
    position: relative;
    width: 100%;
    color: #FFFFFF; 
    height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
}

/* Overlay with Background Image */
/* Hero Section //////////////////////////////////////////////////*/
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Push text to bottom */
    color: white;
    text-align: center;
    padding: 20px;
    padding-bottom: 120px;
    margin-bottom: 100px;
    transition: opacity 1s ease-in-out;
}

#hero-overlay-next {
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade effect */
}

#hero-overlay {
    z-index: 2;
    transition: background-image 1s ease-in-out; /* Ensures smooth transition */
}


.hero-text {
    max-width: 80%;
    font-size: 1.2rem; 
    line-height: 1.5;
}

/* .hero {
    position: relative;
    width: 100%;
    color: #FFFFFF;  
    height: 100vh; 
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
} */
/* Overlay with Background Image */
/* .hero .overlay {
    position: relative;
    height: 100%;
    width: 100%;
    background: url('imgg/volunteer-team.png') no-repeat top center/cover; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    padding-bottom: 120px;
    margin-bottom: 100px;
} */

/* Color Overlay (Brown) */
.hero .overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Ensuring text is on top of the overlay */
.hero .overlay h1, 
.hero .overlay p {
    position: relative;
    z-index: 2; /* Keeps text above the overlay */
    color: white;
}
.hero .overlay h1 {
    font-weight: bold;
    margin-bottom: 20px;
}
.hero .overlay p {
    font-weight:normal;
}  
/* Hero Text Container */
@media (max-width: 768px) {
    .hero-text {
        max-width: none;
    font-size: initial; 
    line-height: normal;
    }
    .overlay{
        padding: 20px;
    padding-bottom: 80px;
    margin-bottom: 50px;
    }
}



/* End of Hero Section //////////////////////////////////////////////////*/
/* Service div Starts here ///////////////////////////////////////////////////*/
    .service-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .service-text {
        margin: 50px;
    }
    .service-text h1{
        margin-bottom: 30px;
    }
    .services {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }

    .service-card {
        text-align: left;
        position: relative;
        overflow: hidden;
        /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    }

    .service-card img {
        border-radius: 8px;
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: top;
    }

    .service-card p {
        padding-top: 20px;
        padding-bottom: 20px;
        color: #4A4A4A;
        background: white;
        margin: 0;
    }

    .see-more {
        color: #4040FF;
        text-decoration: none;
        font-weight: normal;
        font-size: small;
    }
    #push-see-more {
        float: right;
    }
/* End of the Service Section ///////////////////////////////////////////*/
/* Volunteer div Starts here ///////////////////////////////////////////////////*/

    .volunteer-section {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        margin-top: 40px;
        margin-bottom: 20px;
        width: 100%;
        height: 450px;
    }
    
    .volunteer-image {
        width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .volunteer-overlay {
        position: relative; /* Keeps content inside the section */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        min-height: 100%; /* Ensures overlay covers entire section */
        background: rgba(0, 0, 0, 0.5);
    }
    
    /* Ensure text remains responsive */
    .volunteer-overlay h2 {
        color: white;
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .volunteer-overlay p {
        color: white;
        margin-bottom: 20px;
        font-size: 1rem;
        width: 60%;
    }
    
    /* Button Styling */
    .volunteer-btn {
        background: #02087D;
        color: white;
        padding: 15px 40px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: normal;
        transition: background 0.3s ease;
    }
    
    .volunteer-btn:hover {
        background: #0000CC;
    }
    #only-link {
         display: block;
       }
    /* ========== Mobile Responsive Fixes ========== */
    @media (max-width: 768px) {
       #only-link {
         display: none;
       }

        .volunteer-section {
            height: auto;
            max-height: none; /* Allows it to grow dynamically */
        }
    
        .volunteer-image {
            height: auto;
            max-height: 100%;
            object-fit: cover;
        }
    
        .volunteer-overlay {
            padding: 15px;
        }
    
        .volunteer-overlay h2 {
            font-size: 1.8rem; /* Adjust heading size for smaller screens */
        }
    
        .volunteer-overlay p {
            font-size: 0.9rem;
        }
    
        .volunteer-btn {
            padding: 12px 30px;
            font-size: 0.9rem;
        }
        .service-card {
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }
        .service-card p {
            padding-left: 10px;
        }
        #push-see-more {
            padding-right: 10px;
        }
        .service-card img {
            height: 300px;
            object-fit: cover;
            /* object-position: top; */
        }
    }
/* End of Volunteer Section //////////////////////////////////////////////*/
/* Outreach div Starts here ///////////////////////////////////////////////////*/
    .outreach-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .outreach-header h2 {
        /* align-items: center; */
        text-align: center;
        display: block;
        font-weight: bold;
        margin-bottom: 10px;
        color: black;
    }
    .outreach-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 40px;
    }
    .outreach-section h2, p{
        color: black;
    }
    .outreach-section .h3 {
        font-weight: normal;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .initiatives-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .initiative-card {
        border-radius: 8px;
        overflow: hidden;
        /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
        background: white;
    }
    
    .initiative-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        object-position: top;
    }
    .initiative-card > p {
        /* padding-left: 10px; */
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .see-more-link {
        /* margin-right: 10px; */
        color: #4040FF;
        text-decoration: none;
        font-weight: normal;
        font-size: smaller;
        float: right; /* Moves the link to the right */
    }
    #align-outreach{
        float: left;
    }
    #header-contact-btn{
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .initiative-content {
        text-align: left;
    }
/* Outreach div Ends here ///////////////////////////////////////////////////*/ 
/* Mission section Starts here //////////////////////////////////////////////*/
    /* Ensure section behaves correctly */
.Mission {
    display: flex; /* Added to apply flex properties */
    flex-direction: column; /* Ensure vertical stacking */
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    width: 100%; /* Ensures full width */
}

/* Ensure mission container is centered */
.mission-container {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 90%; /* Ensures it is centered */
    /* max-width: 600px;  */
}

/* Ensure h2 title is visible */
.mission-container h2 {
    color: black;
    font-size: 24px;
    font-weight: bold;
    margin-top: 15px; /* Add spacing */
    text-align: center;
    display: block; /* Ensure visibility */
    position: relative; /* Prevent accidental overlap */
    z-index: 2;
}

/* Mission Indicators */
.mission-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    /* margin-right: 5px; */
}

/* Default indicator style */
.mission-indicators .indicator {
    margin: 0 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    display: inline-block;
    transition: all 0.4s ease-in-out;
    opacity: 0.5; /* Slightly faded by default */
    transform: scale(1) translateY(0); /* Default scale */
}

/* Active indicator effect */
.mission-indicators .indicator.active {
    background-color: #02087D;
    transform: scale(1.5) translateY(-2px); /* Grows slightly and moves up */
    opacity: 1; /* Fully visible */
    box-shadow: 0px 0px 12px rgba(58, 76, 179, 0.6); /* Soft glow effect */
    animation: pulse 0.6s ease-in-out;
}

/* Pulse animation for smooth expansion */
@keyframes pulse {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.6) translateY(-2px); }
    100% { transform: scale(1.5) translateY(-2px); }
}

/* About content */
.about-content {
    line-height: 1.8;
    color: #555;
    text-align: center;
    width: 100%;
}

.about-content p {
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

/* Button alignment */
.mission-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.mission-controls button {
    padding: 5px;
    font-size: 12px;
    cursor: pointer;
}
/* Mission Section Ends Here ///////////////////////////////////////////////////*/
/* telemedicine div Starts here ///////////////////////////////////////////////////*/ 

.telemedicine-section {
    position: relative;
    height: 450px;
    margin-top: 40px;
    overflow: hidden;
}

.telemedicine-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.telemedicine-content {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom */
    padding: 40px;
    text-align: left; 
}

.telemedicine-content p, h2 {
    color: white;
    /* max-width: 600px; */
    line-height: 1.6;
    margin-bottom: 20px;
}
.tele-btn {
    /* padding: 15px 40px; */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
}
/* telemedicine div Ends here ///////////////////////////////////////////////////*/ 
/* Responsive Design */
    @media (max-width: 1024px) {
        .initiatives-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
        /* Responsive Design */
        @media (max-width: 768px) {
            .outreach-header h2 {
            font-size: 1.8rem;
        }
        
        .initiatives-grid {
            grid-template-columns: 1fr;
        }
    
        .telemedicine-content {
            padding: 20px;
        }
        .telemedicine-content p {
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 5; /* Limits to 5 lines */
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
        }
    
        .telemedicine-content h2 {
            font-size: 2rem;
        }
        .services {
            grid-template-columns: 1fr;
        }

        .header h1 {
            font-size: 2rem;
        }

        .volunteer-image {
            height: 300px;
        }

        .volunteer-overlay h2 {
            font-size: 1.5rem;
        }

        .container {
            padding: 15px;
        }

            
        }