/* Carousel Section - Add this to your styles.css */

.carousel-section {
    padding: 2rem 2rem; /* Reduced from 4rem to 2rem */
    background: #fff;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.slide-content {
    min-width: 100%;
    padding: 2rem 3rem; /* Reduced top/bottom padding from 3rem to 2rem */
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.slide-content.active {
    opacity: 1;
    display: block;
}

.slide-image {
    width: 900px;
    height: 600px;
    border-radius: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem; /* Reduced bottom margin from 2rem to 1.5rem */
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    position: relative;
    border: 5px solid #fff;
}

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

/* Optional: Add hover effect */
.slide-image:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.slide-content p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 107, 0.8);
    color: white;
    border: none;
    padding: 1rem 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 107, 107, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Carousel Dots */
.carousel-dots {
    text-align: center;
    padding: 1.5rem 0 0; /* Reduced from 2rem to 1.5rem */
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot:hover {
    background-color: #ff6b6b;
    transform: scale(1.2);
}

.dot.active {
    background-color: #ff6b6b;
    transform: scale(1.3);
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .carousel-section {
        padding: 1.5rem 1rem; /* Even more reduced on mobile */
    }

    .slide-content {
        padding: 1.5rem 1rem; /* Reduced padding on mobile */
    }

    .slide-image {
        width: 150px;
        height: 150px;
        border: 3px solid #fff;
        margin-bottom: 1rem; /* Reduced margin on mobile */
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .carousel-dots {
        padding: 1rem 0 0;
    }
}