/* Story Carousel Styles extracted from styles.css */
.story-carousel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    margin: 0 auto;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.about-text {
    flex: 1;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

/* Remove navigation buttons */
.carousel-btn {
    display: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 20px;
    color: var(--dark);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Add animation for image hover */
.carousel-image:hover {
    transform: scale(1.05);
}

/* Add gradient overlay for better text visibility */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    border-radius: 20px;
    pointer-events: none;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .story-carousel {
        flex-direction: row;
        align-items: flex-start;
        margin: 40px 0;
    }
    
    .carousel-container {
        width: 500px;
        height: 400px;
        margin: 0;
    }
    
    .about-text {
        padding: 0 20px;
    }
}

@media (min-width: 992px) {
    .carousel-container {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .carousel-container {
        height: 250px;
        border-radius: 10px;
    }
    
    .about-text h3 {
        font-size: 22px;
        margin-top: 20px;
    }
    
    .about-text p {
        font-size: 15px;
        line-height: 1.5;
    }
}
