body {
    font-family: "Spectral", serif;
    font-style: normal;
}

.section {
    padding: 100px 20px;
    color: #fff;
}

.section1 {
    padding: 50px 20px;
    color: #fff;
}

.sectionAll {
    background-image: url('/images/WhoWeAre/background.jpg');
    background-size: 100% 103%;
    background-repeat: no-repeat;
    background-position: center;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title h2 {
    text-align: center;
    font-size: 44px;
    margin-bottom: 40px;
    color: #FFFFFF;

}


/* Card Styles */
.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 2px solid #5fa9e8;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    text-transform: uppercase;
    font-size: 24px;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-content h3:hover {
    color: #1f5fff;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 70px);
    transition: transform 0.5s ease;
    transform: translateY(0);
}

.carousel-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #5fa9e8;
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 200px;
    }
}
@media (max-width: 768px) {
   
    .carousel-wrapper {
        height: 60vh;
    }
    
    
    .carousel-indicator {
        flex-direction: row;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .card-image {
        height: auto;
        max-height: 200px;
    }
    
    
    .section, .section1 {
        padding: 40px 10px;
    }
    
   
    .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
   
    .carousel-wrapper {
        height: 50vh;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    

    .card-content h3 {
        font-size: 20px;
    }
}



@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 200px;
    }

    .carousel-wrapper {
        height: 50vh;
    }

    .carousel-indicator {
        flex-direction: row;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .section,
    .section1 {
        padding: 40px 10px;
    }

    .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 30vh;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .card-content h3 {
        font-size: 20px;
    }
}


@media (min-width: 1025px) and (max-width: 1366px) {
    .carousel-wrapper {
        height: 60vh;
    }

    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .card-image {
        height: 250px;
    }

    .section-title h2 {
        font-size: 40px;
    }
}


@media (min-width: 820px) and (max-width: 1024px) {
    .carousel-wrapper {
        height: 55vh;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-image {
        height: 220px;
    }

    .section-title h2 {
        font-size: 36px;
    }
}


@media (min-width: 480px) and (max-width: 819px) {
    .carousel-wrapper {
        height: 50vh;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 200px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}
