/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@100..700&family=Caveat:wght@400..700&family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply default font */
body {
    font-family: 'Anuphan', sans-serif;
}

/* Image Slider Section */
.image-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    background-color: #ddd;
    margin-top: 40px;
    margin-bottom: 60px;
}

.slider-images {
    display: flex;
    width: 100%;
    height: 100%;
    animation: slide 50s infinite;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.slider-images img:hover {
    transform: scale(1.05);
}

/* Keyframes for Image Sliding Animation */
@keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* People Section */
.people {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.people h2 {
    font-family: 'Caveat', cursive;
    margin-bottom: 20px;
}

.advisor img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coordinators {
    display: flex;
    justify-content: center;
    gap: 5cm;
    flex-wrap: wrap;
}

.coordinator img {
    width: 100%;
    height: auto;
    max-width: 250px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Members Section */
.members {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.members h2 {
    font-family: 'Chakra Petch', sans-serif;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.members .cards {
    display: flex;
    justify-content: center; /* Center cards horizontally */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
}

.card {
    background-color: #fff;
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Make the cards circular */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Success Stories & Testimonials Section */
.testimonials-container {
    width: 90%; /* Adjust width as needed */
    max-width: 1200px; /* Prevent it from becoming too wide */
    margin: 0 auto; /* Center horizontally */
    text-align: center;
    padding: 20px;
}

/* Testimonials Wrapper */
.testimonials-wrapper {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
    gap: 20px; /* Space between testimonial cards */
    flex-wrap: wrap; /* Wrap cards on smaller screens */
    width: 100%; /* Use full width of the container */
    max-width: 1200px; /* Limit the max width for a clean layout */
}

/* Individual Testimonial Card */
.testimonial {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.testimonial img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial .stars {
    color: gold;
    margin: 10px 0;
}

.testimonial .feedback {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

#prev {
    left: 20px;
}

#next {
    right: 20px;
}

/* Footer Section */
footer {
    font-family: 'Sour Gummy', sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slider-images img {
        height: 400px;
    }

    .advisor img {
        width: 250px;
        height: 250px;
    }

    .coordinators {
        gap: 3cm;
    }

    .members .cards {
        gap: 20px;
    }

    .card {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 992px) {
    .slider-images img {
        height: 350px;
    }

    .coordinators {
        flex-direction: column;
        gap: 20px;
    }

    .coordinator img {
        max-width: 200px;
    }

    .members .cards {
        gap: 20px;
    }

    .card {
        width: 160px;
        height: 160px;
    }

    .members h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .slider-images img {
        height: 300px;
    }

    .members .cards {
        flex-direction: column; /* Show one card per row */
        align-items: center; /* Center cards */
        gap: 15px; /* Adjust the gap */
    }

    .card {
        width: 150px;
        height: 150px;
        padding: 8px;
    }

    .members h2 {
        font-size: 1.5em;
    }

    footer {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .slider-images img {
        height: 250px;
    }

    .advisor img {
        width: 200px;
        height: 200px;
    }

    .coordinators {
        gap: 10px;
    }

    .coordinator img {
        max-width: 160px;
    }

    .members .cards {
        flex-direction: column; /* Ensure one card per row */
        align-items: center; /* Center each card */
        gap: 15px; /* Adjust gap */
    }

    .card {
        width: 130px;
        height: 130px;
        padding: 8px;
    }

    .members h2 {
        font-size: 1.4em;
    }

    footer {
        font-size: 0.85em;
    }
}
