/* ==========================================================================
   1. HERO SLIDER CORE LAYOUT
   ========================================================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 550px;
    overflow: hidden;
}

#heroBannerCarousel,
.carousel-inner,
.carousel-item {
    width: 100%;
    height: 100%;
}

.hero-slide-bg {
    position: relative;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Keeps everything vertically centered */
}

/* FIX: This aligns your text smoothly with your global navigation grid */
.hero-slide-bg .container {
    position: relative;
    z-index: 2;
    height: auto; /* Changed from 100% to let content center vertically */
    display: flex;
    align-items: center;
    padding-left: 15px; /* Standard Bootstrap gutter alignment */
    padding-right: 15px;
}

/* ==========================================================================
   2. PREMIUM DARK GRADIENT OVERLAY
   ========================================================================== */
.bg-overlay-premium {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 30, 18, 0.75) 0%,
        rgba(10, 30, 18, 0.45) 55%,
        rgba(0, 0, 0, 0.2) 100__%
    );
    z-index: 1;
}

/* ==========================================================================
   3. TYPOGRAPHY & CONTENT
   ========================================================================== */
.hero-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 20px 0;
}

.hero-slide-content h1,
.hero-slide-content .heading {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-slide-content .hero-subtitle,
.hero-slide-content .description-content {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 600px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   4. CALL TO ACTION (CTA) BUTTONS
   ========================================================================== */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    margin-top: 28px;
}

.hero-cta-primary {
    background: #1a7a3c;
    color: #fff;
    border: 2px solid #1a7a3c;
    box-shadow: 0 4px 18px rgba(26, 122, 60, 0.4);
}

.hero-cta-primary:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 122, 60, 0.45);
    text-decoration: none;
}

.hero-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin-left: 10px;
}

.hero-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   5. SMART DOT INDICATORS (Pill Style on Active)
   ========================================================================== */
.carousel-indicators.custom-indicators {
    bottom: 30px !important;
    gap: 8px;
    margin: 0;
    justify-content: center;
    z-index: 5;
}

.custom-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    background-color: transparent !important;
    opacity: 0.7;
    padding: 0 !important;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.custom-indicators button.active {
    background-color: #fff !important;
    border-color: #fff !important;
    opacity: 1;
    width: 28px !important;
    border-radius: 6px !important;
}

.indicator-progress {
    display: none;
}

/* ==========================================================================
   6. ARROW CONTROLS
   ========================================================================== */
.carousel-control-prev.custom-control,
.carousel-control-next.custom-control {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    opacity: 0;
    z-index: 3;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
}

.hero-slider-section:hover .carousel-control-prev.custom-control,
.hero-slider-section:hover .carousel-control-next.custom-control {
    opacity: 0.8;
}

.custom-control:hover {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.28) !important;
}

.carousel-control-prev.custom-control {
    left: 20px;
}
.carousel-control-next.custom-control {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   7. SLIDE COUNTER BADGE
   ========================================================================== */
.slide-counter {
    position: absolute;
    bottom: 24px;
    right: 28px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
}

/* ==========================================================================
   8. TRANSITIONS & TEXT ANIMATIONS
   ========================================================================== */
.animate-text,
.animate-text-delay,
.animate-text-cta {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.animate-text-delay {
    transition-delay: 0.18s;
}
.animate-text-cta {
    transition-delay: 0.32s;
}

.carousel-item.active .animate-text,
.carousel-item.active .animate-text-delay,
.carousel-item.active .animate-text-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   9. RESPONSIVENESS (Breakpoints)
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-slider-section {
        height: 65vh;
        min-height: 450px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider-section {
        height: 50vh;
        min-height: 350px;
    }

    .custom-control {
        display: none !important; /* Disables arrow controls on mobile screens */
    }

    .carousel-indicators.custom-indicators {
        bottom: 16px !important;
    }

    .custom-indicators button {
        width: 8px !important;
        height: 8px !important;
    }

    .custom-indicators button.active {
        width: 20px !important;
    }
}
