/* Modern Background */
body {
    background: linear-gradient(to right, #6a3b98, #9b59b6); /* Purple gradient */
    color: white;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
}

/* About Us Section */
.section-body {
    font-size: 18px;
    line-height: 1.6;
    color: #f5f5f5; /* Light text color for readability */
    margin-bottom: 40px;
    text-align: center; /* Centers the text */
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.5); /* Subtle background for contrast */
    border-radius: 10px;
    max-width: 800px; /* Limits the width for better readability */
    margin: 0 auto; /* Centers the container */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
}

/* Hover effect for About Us summary */
.section-body:hover {
    transform: scale(1.02); /* Slightly enlarge the box on hover */
}

/* Headline Styling */
.section-head {
    font-size: 36px;
    line-height: 45px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center; /* Centers the heading */
}

/* Optional line styling under the headline */
.section-head::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #6d356b;
    margin: 20px auto;
}

/* Carousel Styling */
.carousel-container {
    position: relative;
    width: 70%;
    margin: auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.card-container {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.card {
    background: white;
    color: black;
    border-radius: 12px;
    padding: 15px;
    width: 300px;
    margin: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.img-box img {
    width: 100%;
    max-height: 250px; /* Ensures the image doesn't get too big */
    object-fit: contain; /* Keeps the whole image visible */
    border-radius: 10px;
}

.card-content-box {
    padding: 10px;
}

.person-name {
    font-size: 20px;
    font-weight: bold;
}

.person-info {
    font-size: 16px;
    opacity: 0.8;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .carousel-container {
        width: 90%;
    }

    .carousel-btn {
        font-size: 18px;
        padding: 10px;
    }

    .card {
        width: 80%; /* Make the card width smaller on tablets */
    }

    .section-body {
        font-size: 16px; /* Slightly smaller text on tablets */
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        width: 100%; /* Full width for mobile */
    }

    .carousel-btn {
        font-size: 16px;
        padding: 8px;
    }

    .card {
        width: 90%; /* Even smaller cards on mobile */
    }

    .section-body {
        font-size: 14px; /* Smaller text on mobile */
        padding: 15px;
    }

    .section-head {
        font-size: 28px;
    }
}