/* Modern Hero Slider with Photo Backgrounds */
.hero-slider-modern {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide-modern.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Lighter wash so the photo stays visible (similar to farmoreug.org hero) */
    background: linear-gradient(
        180deg,
        rgba(31, 106, 58, 0.22) 0%,
        rgba(22, 82, 45, 0.38) 50%,
        rgba(22, 82, 45, 0.52) 100%
    );
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: clamp(0.85rem, 4vw, 2rem);
    padding-right: clamp(0.85rem, 4vw, 2rem);
    overflow-wrap: anywhere;
}

.hero-slide-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 1s ease;
}

.hero-slide-subtitle {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-slide-buttons .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

/* Slider Controls */
.slider-dots-modern {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

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

.slider-dot-modern.active {
    background: #1F6A3A;
    border-color: #1F6A3A;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(31, 106, 58, 0.5);
}

.slider-arrows-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(31, 106, 58, 0.8);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.slider-arrows-modern:hover {
    background: #1F6A3A;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(31, 106, 58, 0.4);
}

.slider-prev-modern {
    left: 40px;
}

.slider-next-modern {
    right: 40px;
}

@media (max-width: 768px) {
    .hero-slide-title {
        font-size: 2.5rem;
    }
    
    .hero-slide-subtitle {
        font-size: 1.2rem;
    }
    
    .slider-arrows-modern {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .slider-prev-modern {
        left: 15px;
    }
    
    .slider-next-modern {
        right: 15px;
    }

    .hero-slide-buttons .btn {
        padding: 0.85rem 1.35rem;
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .hero-slide-title {
        font-size: 1.85rem;
    }
}
