/* Enhanced Hero Section CSS - Professional Government Style */
.hero-carousel {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 100vh;
    height: 100dvh; 
    min-height: 100dvh;
    display: flex;
    align-items: center;
    touch-action: pan-y;
    background: linear-gradient(135deg, #001f3f 0%, #00162e 50%, #0d4d4d 100%);
    border-bottom: 4px solid #1a5f5f;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Add a slight scale effect for more dynamism */
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 6s ease-out;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 31, 63, 0.92) 0%, rgba(13, 77, 77, 0.85) 50%, rgba(0, 31, 63, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    /* Space for sticky header so content isn't hidden/cropped */
    padding-top: clamp(56px, 10vh, 96px);
    padding-bottom: clamp(56px, 10vh, 96px);
    display: flex;
    align-items: stretch;
}

.hero-content-inner {
    color: white;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #d4d0c8;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-left: 4px solid #1a5f5f;
    padding-left: 16px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fdf8f3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title .highlight {
    color: #1a5f5f;
    text-shadow: 0 0 22px rgba(26, 95, 95, 0.75), 0 2px 0 rgba(0, 22, 46, 0.35);
    -webkit-text-fill-color: #1a5f5f;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #d4d0c8;
    margin-bottom: 2.5rem;
    opacity: 0.98;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 2.25rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0d4d4d 0%, #1a5f5f 100%);
    border: 3px solid #1a5f5f;
    padding: 16px 40px;
    border-radius: 6px;
    color: #faf8f5;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(13, 77, 77, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(13, 77, 77, 0.5);
    color: #faf8f5;
    background: linear-gradient(135deg, #1a5f5f 0%, #2d7f7f 100%);
}

.btn-hero-secondary {
    background: rgba(13, 77, 77, 0.2);
    border: 3px solid rgba(250, 248, 245, 0.7);
    padding: 14px 40px;
    border-radius: 6px;
    color: #faf8f5;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: #faf8f5;
    color: #001f3f;
    border-color: #faf8f5;
    transform: translateY(-4px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.hero-stat-item {
    min-width: 150px;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a5f5f;
    display: block;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(26, 95, 95, 0.4);
}

.hero-stat-label {
    font-size: 0.95rem;
    color: #d4d0c8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Carousel Controls */
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #1a5f5f;
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-controls {
        bottom: 18px;
    }
    .hero-nav {
        width: 42px;
        height: 42px;
    }
    .hero-nav.prev { left: 14px; }
    .hero-nav.next { right: 14px; }
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

/* Impact strip below hero (second section) */
.hero-impact-strip {
    position: relative;
    padding: 28px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-impact-strip .impact-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 18px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.hero-impact-strip .impact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.hero-impact-strip .impact-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(245, 158, 11, 0.16));
    color: #1e40af;
}

.hero-impact-strip .impact-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.hero-impact-strip .impact-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

/* Floating Animation Elements */
.hero-floating {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-carousel {
        min-height: 100svh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        min-height: 100svh;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        font-size: 0.875rem;
        width: 100%;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-stat {
        padding: 10px 15px;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .hero-dots {
        bottom: 15px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        min-height: 100svh;
        height: 100svh;
    }
    
    .hero-content {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        overflow: visible;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    .hero-stats {
        gap: 8px;
    }
    
    .hero-stat {
        padding: 8px 12px;
    }
    
    .hero-stat-number {
        font-size: 1.25rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }

    .hero-nav.prev {
        left: 15px;
    }
    
    .hero-nav.next {
        right: 15px;
    }
    
    .hero-controls {
        bottom: 30px;
    }
    
    /* Make dots more visible on mobile */
    .hero-dot {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
}

/* Additional Hero Navigation Enhancements */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 8px;
}

.hero-dot.active {
    background: #fbbf24;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}