/* Container for the slider */
/* --- Fix for Stacking Images --- */
.about-slider-container {
    position: relative;
    width: 100%;
    /* Maintain height to prevent collapse */
    height: 400px; 
}

@media (min-width: 768px) {
    .about-slider-container {
        height: 500px;
    }
}

.about-slide {
    /* This is the magic line that stops them from stacking vertically */
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hide all by default */
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* Only the active slide is visible */
.about-slide.active {
    opacity: 1;
    z-index: 2;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photos aren't stretched */
    border-radius: 12px;
}

.image-slider-container {
   width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden; /* Hides the other images */
    height: 400px; /* Adjust based on your images */
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* The slider itself */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide styling */
.slide {
   position: absolute; /* Overlaps images in the same spot */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade effect */
    z-index: 1;
}

.slide img {
   height: 100%;
   width: 100%;
   object-fit: cover;
   display: block;
}

/* Make the active slide visible */
.slide.active {
    opacity: 1;
    z-index: 2;
    
}

Our team members section
#our-team {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

#our-team .section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

.team-member {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* Makes the image circular */
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.team-member .role {
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.95rem;
    color: #777;
}
