/* Homepage Hero Section - Dynamic */
/* The main hero styles are in style.css, this file adds specific enhancements */

.hero-section {
    position: relative;
    overflow: hidden;
    transition: background-image 1s ease-in-out;
}

/* Hero section with background image */
.hero-section-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add overlay for better text readability when using background image */
.hero-section-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 81, 37, 0.7); /* Dark green overlay with 70% opacity */
    z-index: 1;
}

/* Transition effect */
.hero-section.hero-transitioning {
    opacity: 0.7;
}

.hero-section {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, background-image 1s ease-in-out;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .hero-title {
    /* Base styles are already in style.css */
}

.hero-section .hero-divider {
    display: block;
    width: 7.5em;
    border-bottom: 0.3125em solid #40a639;
    margin: 1rem auto;
}

.hero-section .hero-subtitle {
    /* Base styles are already in style.css */
}

/* Slideshow Controls */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 0.5rem 1rem !important;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 1;
    min-height: auto !important;
    min-width: auto !important;
    display: inline-block !important;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

/* Slideshow Indicators */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.hero-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0 !important;
    transition: background 0.3s ease;
    min-height: 8px !important;
    min-width: 8px !important;
    display: block !important;
}

.hero-indicator.active {
    background: white;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-prev,
    .hero-next {
        font-size: 2rem;
        padding: 0.3rem 0.6rem !important;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-indicators {
        bottom: 10px;
    }

    .hero-indicator {
        width: 6px;
        height: 6px;
        min-width: 6px !important;
        min-height: 6px !important;
    }
}
