/* ==========================================================================
   Hero Title & Responsive Layout Fix
   BKK Banda Aceh - Consistent Desktop & Mobile Display
   ========================================================================== */

/* 1. Desktop & Global Styles */
.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h2 {
    color: #00a7a0 !important; /* Hijau Toska Kemenkes */
    font-size: clamp(1.75rem, 3.8vw, 2.6rem) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.25rem;
}

.hero-content h2 span {
    color: #f08e20 !important; /* Orange SOLID - NO gradient */
    display: block !important;
    margin-top: 0.5rem !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #f08e20 !important;
    text-fill-color: #f08e20 !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Remove any gradient pseudoelements */
.hero-content h2 span::before,
.hero-content h2 span::after {
    display: none !important;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
    font-size: 1.25rem;
    color: #fbbf24;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* 2. Tablet & Mobile Responsive Rules (max-width: 768px) */
@media (max-width: 768px) {
    /* Prevent hero-slider from clipping content under fixed navbar */
    .hero-slider {
        height: auto !important;
        min-height: calc(100vh - var(--header-height, 64px)) !important;
        min-height: calc(100dvh - var(--header-height, 64px)) !important;
        overflow: hidden !important;
        display: flex !important;
    }

    .slide {
        min-height: calc(100vh - var(--header-height, 64px)) !important;
        min-height: calc(100dvh - var(--header-height, 64px)) !important;
        height: 100% !important;
    }

    /* Enforce safe space from navbar and center vertically within safe zone */
    .slide .container,
    .hero-container {
        padding-top: calc(var(--header-height, 64px) + 1.25rem) !important;
        padding-bottom: 3.5rem !important;
        min-height: calc(100vh - var(--header-height, 64px)) !important;
        min-height: calc(100dvh - var(--header-height, 64px)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .hero-content {
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: auto 0 !important;
    }

    .hero-content h2 {
        font-size: clamp(1.35rem, 5.2vw, 1.85rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .hero-content h2 span {
        margin-top: 0.35rem !important;
        font-size: 0.95em !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
        margin-bottom: 1.25rem !important;
    }

    .hero-tagline {
        font-size: 1.05rem !important;
        margin-bottom: 0.35rem !important;
    }

    .hero-buttons {
        gap: 0.65rem !important;
    }

    .hero-buttons .btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .slider-nav {
        bottom: 1rem !important;
    }

    .slider-controls {
        display: none !important; /* Hide left/right arrows on mobile so text remains unobstructed */
    }
}

/* 3. Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .slide .container,
    .hero-container {
        padding-top: calc(var(--header-height, 64px) + 0.85rem) !important;
        padding-bottom: 2.75rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-content h2 {
        font-size: clamp(1.2rem, 5.8vw, 1.55rem) !important;
        line-height: 1.28 !important;
    }

    .hero-desc {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.1rem !important;
    }

    .hero-tagline {
        font-size: 0.95rem !important;
        margin-bottom: 0.3rem !important;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.15rem !important;
        font-size: 0.85rem !important;
    }
}
