/* Carousel Container */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 95vh;
    /* Increased height */
    min-height: 750px;
    overflow: hidden;
    color: #fff;
    font-family: 'Geist', sans-serif;
}

/* Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 6s ease-out;
    /* Smooth fade and slow zoom effect */
    transform: scale(1);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.05);
    /* Subtle zoom effect on active slide */
    z-index: 2;
}

/* Overlay Gradient */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from dark (left) to transparent (right) */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 3;
    display: flex;
    align-items: center;
    padding-left: 5%;
    /* Spacing from the left */
}

/* Content */
.carousel-content {
    max-width: 1100px;
    /* Increased to allow wider text */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: absolute;
    /* Stack contents */
    left: 5%;
    top: 50%;
    transform: translateY(calc(-50% + 20px));
    pointer-events: none;
    /* Allow clicking through inactive content */
}

.carousel-content.active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
}

.carousel-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7.5rem;
    /* Significantly bigger */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: capitalize;
    color: #ffffff;
    /* Explicitly white */
}

.carousel-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* Button */
.hero-donate-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #A174AE;
    /* Matching the brand color seen in index.html */
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    /* Pill shape */
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 15px rgba(161, 116, 174, 0.4);
}

.hero-donate-btn:hover {
    background-color: #ffffff;
    color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(161, 116, 174, 0.6);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Responsive adjustments for laptops */
@media (max-width: 1200px) {
    .carousel-content h1 {
        font-size: 5rem;
    }

    .carousel-content {
        max-width: 85%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-carousel-section {
        height: 70vh;
        min-height: 500px;
    }

    .carousel-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
        /* Bottom gradient for mobile */
        align-items: flex-end;
        /* Bottom align content on mobile */
        padding-bottom: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .carousel-content {
        left: 20px;
        top: auto;
        bottom: 60px;
        max-width: 100%;
        text-align: left;
        transform: translateY(20px);
    }

    .carousel-content.active {
        transform: translateY(0);
    }

    .carousel-content h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .carousel-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-donate-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .carousel-indicators {
        bottom: 20px;
    }
}