/* Hero Carousel Styles */

/* Ensure the container allows images to be seen */
.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #2a6e3f; /* Fallback only */
    padding: 0 !important; /* Remove the padding from base.html */
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slides {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2; /* Image on top */
}

/* The tint overlay should be BEHIND the image */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    z-index: 1; /* Overlay behind image */
}

.carousel-overlay {
    z-index: 10; /* Keep text on very top */
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

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

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
    border-color: white;
}

.carousel-dot:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Carousel Overlay Content */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 5;
}

.carousel-content {
    color: white;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.carousel-content h1 {
    color: white;
    font-size: 3.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.carousel-description {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.carousel-buttons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.carousel-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Info Cards */
.carousel-info-cards {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 250px;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 1.3rem;
}

.info-content h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-carousel {
        height: 75vh;
        min-height: 500px;
    }
    
    .carousel-content h1 {
        font-size: 3rem;
    }
    
    .carousel-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 450px;
    }
    
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    
    .carousel-description {
        font-size: 1.1rem;
    }
    
    .carousel-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .carousel-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .carousel-info-cards {
        flex-direction: column;
    }
    
    .info-card {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 65vh;
        min-height: 400px;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
}
