/* ====================================
   HERO CAROUSEL - FIXED OVERLAY
   ==================================== */

.hero-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.7) 0%, rgba(76, 175, 80, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.carousel-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: white;
}

.carousel-btn {
    background: var(--secondary);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--secondary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.3);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-indicator:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ====================================
   RESPONSIVE - MOBILE CAROUSEL
   ==================================== */

/* Tablets and below */
@media (max-width: 768px) {
    .hero-carousel {
        height: 500px; /* Taller on mobile to accommodate content */
    }

    .carousel-overlay {
        /* Lighter overlay on mobile so image is more visible */
        background: linear-gradient(135deg, rgba(46, 125, 50, 0.5) 0%, rgba(76, 175, 80, 0.3) 100%);
    }

    .carousel-content {
        padding: 1.5rem;
    }
    
    .carousel-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .carousel-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .carousel-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Smaller navigation buttons on mobile */
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Small mobile phones */
@media (max-width: 480px) {
    .hero-carousel {
        height: 450px;
    }

    /* Even lighter overlay for small screens */
    .carousel-overlay {
        background: linear-gradient(135deg, rgba(46, 125, 50, 0.4) 0%, rgba(76, 175, 80, 0.25) 100%);
    }

    .carousel-content {
        padding: 1rem;
    }

    .carousel-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .carousel-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .carousel-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    .hero-carousel {
        height: 400px;
    }

    /* Minimal overlay for very small screens */
    .carousel-overlay {
        background: linear-gradient(135deg, rgba(46, 125, 50, 0.35) 0%, rgba(76, 175, 80, 0.2) 100%);
    }

    .carousel-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .carousel-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .carousel-content {
        padding: 0.75rem;
    }
}