/* ============================================
   PUBLIC HOME CSS — Redesign
   Tema: Hijau Elegan | Hero 16:9 | Mobile-First
   ============================================ */

:root {
    --home-primary: #0d6e3e;
    --home-primary-dark: #0a4a28;
    --home-primary-light: #e8f5e9;
    --home-accent: #c8a951;
    --home-accent-light: #fef9e7;
    --home-bg-light: #f9faf7;
    --home-bg-white: #ffffff;
    --home-text-dark: #1a2e1f;
    --home-text-muted: #5a7d62;
    --home-border: #dce8df;
    --home-shadow-sm: 0 2px 8px rgba(10, 74, 40, 0.06);
    --home-shadow-md: 0 8px 30px rgba(10, 74, 40, 0.1);
    --home-shadow-lg: 0 20px 50px rgba(10, 74, 40, 0.12);
    --home-radius: 16px;
    --home-radius-sm: 10px;
    --home-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--home-primary-light);
    color: var(--home-primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--home-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--home-text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Main Content ===== */
.main-content-public {
    min-height: 100vh;
    background-color: var(--home-bg-white);
}

/* ===== HERO SECTION (DESKTOP DEFAULT) ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #0a3d20;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-bottom: 70px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 40, 20, 0.75) 0%,
        rgba(10, 60, 30, 0.7) 50%,
        rgba(13, 110, 62, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.25rem 2rem;
    color: #fff;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background-color: #4cff8d;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.hero-title-highlight {
    color: var(--home-accent);
}

.hero-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-btn {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    transition: var(--home-transition);
    text-align: center;
    min-height: 46px;
    text-decoration: none;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--home-accent), #d4b85f);
    color: #3e2f0a;
    border: none;
    box-shadow: 0 6px 20px rgba(200, 169, 81, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 81, 0.4);
    color: #3e2f0a;
}

.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
    padding: 0 0.75rem;
}

.hero-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.15rem;
    font-weight: 500;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    flex-shrink: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== LAYANAN SECTION ===== */
.layanan-section {
    padding: 3rem 0;
    background-color: var(--home-bg-white);
}

.layanan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

.layanan-card {
    text-align: left;
    padding: 1.5rem;
    border-radius: var(--home-radius-sm);
    border: 1px solid var(--home-border);
    transition: var(--home-transition);
    background-color: var(--home-bg-white);
}

.layanan-card:hover {
    border-color: var(--home-primary);
    box-shadow: var(--home-shadow-md);
    transform: translateY(-2px);
}

.layanan-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.layanan-icon-primary {
    background-color: #e8f5e9;
    color: #0d6e3e;
}

.layanan-icon-success {
    background-color: #e0f2e0;
    color: #146c33;
}

.layanan-icon-warning {
    background-color: #fef9e7;
    color: #8a6d14;
}

.layanan-icon-info {
    background-color: #e0f0e8;
    color: #0d5a3e;
}

.layanan-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--home-text-dark);
}

.layanan-desc {
    font-size: 0.8rem;
    color: var(--home-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ===== BERITA SECTION ===== */
.berita-section {
    padding: 3rem 0;
    background-color: var(--home-bg-light);
}

/* Carousel wrapper - hidden by default, shown on mobile */
.berita-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

/* Dot indicators - hidden by default */
.carousel-dots {
    display: none;
}

.berita-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.berita-card {
    background-color: var(--home-bg-white);
    border-radius: var(--home-radius-sm);
    overflow: hidden;
    box-shadow: var(--home-shadow-sm);
    transition: var(--home-transition);
    border: 1px solid var(--home-border);
}

.berita-card:hover {
    box-shadow: var(--home-shadow-md);
    transform: translateY(-2px);
}

.berita-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.berita-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.berita-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.7rem;
    background-color: var(--home-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.berita-body {
    padding: 1rem;
}

.berita-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--home-text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.berita-meta-dot {
    width: 3px;
    height: 3px;
    background-color: var(--home-accent);
    border-radius: 50%;
}

.berita-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--home-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-excerpt {
    font-size: 0.8rem;
    color: var(--home-text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-footer {
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 3rem 0;
    background-color: var(--home-bg-white);
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(150deg, #0a4a28 0%, #0d6e3e 50%, #0f7a42 100%);
    border-radius: 20px;
    color: #fff;
    box-shadow: var(--home-shadow-md);
}

.cta-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cta-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--home-accent), #d4b85f);
    color: #3e2f0a;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--home-transition);
    box-shadow: 0 6px 20px rgba(200, 169, 81, 0.3);
    min-height: 44px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 81, 0.4);
    color: #3e2f0a;
}

.cta-icon-large {
    font-size: 4rem;
    opacity: 0.2;
}

/* ===== PUBLIC FOOTER ===== */
.public-footer {
    background-color: #0a3520;
    color: rgba(255, 255, 255, 0.65);
    padding: 2.5rem 0 0;
    position: relative;
}

.public-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-accent), var(--home-primary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand-tagline {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-about {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.875rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--home-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--home-transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
}

.footer-links a:hover {
    color: var(--home-accent);
}

.footer-links .link-icon {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-links .link-text-static {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin: 0;
}

/* ===== PUBLIC HEADER (via JS fetch) ===== */
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0.625rem 0;
    transition: var(--home-transition);
}

.public-header.scrolled {
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--home-shadow-sm);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--home-border);
}

.public-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.public-header .header-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.public-header .header-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.public-header .header-brand-text {
    display: flex;
    flex-direction: column;
}

.public-header .header-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.public-header .header-brand-tagline {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.public-header.scrolled .header-brand-name {
    color: var(--home-text-dark);
}

.public-header.scrolled .header-brand-tagline {
    color: var(--home-text-muted);
}

.public-header .header-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.public-header .nav-link {
    padding: 0.4rem 0.75rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--home-transition);
    min-height: 36px;
    display: flex;
    align-items: center;
}

.public-header.scrolled .nav-link {
    color: var(--home-text-dark);
}

.public-header .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.public-header.scrolled .nav-link:hover {
    background-color: var(--home-primary-light);
    color: var(--home-primary);
}

/* Login Button Header */
.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: linear-gradient(135deg, var(--home-accent), #d4b85f);
    color: #3e2f0a;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--home-transition);
    box-shadow: 0 3px 10px rgba(200,169,81,0.25);
    white-space: nowrap;
    min-height: 38px;
}

.btn-login-header:hover {
    transform: translateY(-1px);
    color: #3e2f0a;
}

.public-header.scrolled .btn-login-header {
    background: linear-gradient(135deg, var(--home-primary), #0f854a);
    color: #fff;
    box-shadow: 0 3px 10px rgba(13,110,62,0.25);
}

/* Mobile Menu Toggle */
.public-header .mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1.5px solid rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: var(--home-transition);
    min-width: 40px;
    min-height: 36px;
}

/* ===== RESPONSIVE: Tablet (min 576px) ===== */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        padding: 6rem 1.5rem 3.5rem;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-btn {
        min-width: 180px;
    }

    .layanan-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .berita-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-card {
        padding: 2.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .berita-footer {
        text-align: center;
        margin-top: 1rem !important;
    }
}

/* ===== RESPONSIVE: Tablet Landscape (min 768px) ===== */
@media (min-width: 768px) {
    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stat-item {
        text-align: left;
        padding-left: 0.75rem;
        border-left: 2px solid var(--home-accent);
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 3fr 1fr 1.5fr;
        gap: 3rem;
        padding: 0 1.5rem 2.5rem;
    }

    .cta-card {
        flex-direction: row;
        text-align: left;
        padding: 2.5rem 3rem;
    }

    .cta-icon-large {
        font-size: 6rem;
    }

    .berita-footer {
        text-align: center;
        margin-top: 2rem !important;
    }
}

/* ===== RESPONSIVE: Desktop (min 992px) ===== */
@media (min-width: 992px) {
    .hero-content {
        padding: 5rem 2rem 4rem;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 600px;
    }

    .layanan-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .berita-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .layanan-section {
        padding: 3rem 0;
    }

    .berita-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2.3rem;
    }
}

/* ===== RESPONSIVE: Large Desktop (min 1200px) ===== */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3rem !important;
    }
}

/* =============================================
   ╔══════════════════════════════════════════╗
   ║        MOBILE VIEW (max-width: 767px)    ║
   ╚══════════════════════════════════════════╝
   ============================================= */
@media (max-width: 767px) {

    /* ===== GLOBAL MOBILE ENHANCEMENTS ===== */
    .main-content-public {
        background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
    }

    /* Smooth reveal animation for sections */
    .layanan-section,
    .berita-section,
    .cta-section {
        animation: fadeInUp 0.6s ease-out both;
    }

    .berita-section {
        animation-delay: 0.15s;
    }

    .cta-section {
        animation-delay: 0.3s;
    }

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

    /* ===== MOBILE HEADER ===== */
    .public-header {
        padding: 0.5rem 0;
        background: rgba(10, 50, 30, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        overflow: visible; /* ← KUNCI: biarkan dropdown keluar dari parent */
    }

    .public-header.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 4px 30px rgba(10, 74, 40, 0.1);
        overflow: visible; /* ← KUNCI */
    }

    .public-header .mobile-menu-toggle {
        display: flex;
    }

    .public-header .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 0.5rem;
        box-shadow: var(--home-shadow-lg);
        border-radius: 0 0 var(--home-radius-sm) var(--home-radius-sm);
        gap: 0;
        /* HAPUS semua height, max-height, overflow-y */
    }

    .public-header .header-nav.mobile-open {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .public-header .header-nav .nav-link {
        color: var(--home-text-dark);
        padding: 0.85rem 1.1rem;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.25s ease;
    }

    .public-header .header-nav .nav-link:active {
        background: var(--home-primary-light);
        color: var(--home-primary);
        transform: scale(0.97);
    }

    .public-header .header-nav .btn-login-header {
        margin: 0.5rem;
        justify-content: center;
        background: linear-gradient(135deg, #0d6e3e, #0f854a);
        color: #fff;
        box-shadow: 0 6px 24px rgba(13, 110, 62, 0.3);
        font-size: 0.9rem;
        padding: 0.85rem 1.5rem;
        border-radius: 14px;
    }

    .public-header.scrolled .mobile-menu-toggle {
        color: var(--home-text-dark);
        border-color: var(--home-border);
    }

    body {
        overflow-x: hidden;
    }

    .main-content-public {
        overflow: visible !important;
    }

    /* ===== HERO SECTION - MOBILE REDESIGN ===== */
    /* Height mengikuti konten, tidak full screen */
    .hero-section {
        min-height: auto;
        height: auto;
        justify-content: flex-start;
        padding-top: 0;
        padding-bottom: 50px;
        background-position: center 25%;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 35, 18, 0.9) 0%,
            rgba(10, 50, 28, 0.82) 40%,
            rgba(13, 80, 50, 0.76) 70%,
            rgba(13, 110, 62, 0.85) 100%
        );
    }

    .hero-content {
        padding: 10rem 1.25rem 6rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
        max-width: 100%;
    }

    .hero-badge {
        align-self: flex-start;
        font-size: 0.68rem;
        padding: 0.3rem 0.85rem;
        margin-bottom: 1.25rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hero-badge-dot {
        background: #4cff8d;
        box-shadow: 0 0 10px rgba(76, 255, 141, 0.7);
    }

    .hero-title {
        font-size: 1.8rem !important;
        line-height: 2;
        margin-bottom: 0.6rem;
        text-align: left;
    }

    .hero-title br {
        display: none;
    }

    .hero-title-highlight {
        position: relative;
        color: #f0d878;
        text-shadow: 0 0 30px rgba(200, 169, 81, 0.4);
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: left;
        margin: 0 0 4rem;
        max-width: 100%;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.78);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        margin-bottom: 3rem;
    }

    .hero-btn {
        font-size: 0.88rem;
        padding: 0.85rem 1.5rem;
        min-height: 48px;
        border-radius: 14px;
    }

    .hero-btn-primary {
        background: linear-gradient(135deg, #e0c55b, #f0d878);
        color: #3e2f0a;
        box-shadow: 0 8px 30px rgba(200, 169, 81, 0.35);
    }

    .hero-btn-primary:active {
        transform: scale(0.96);
        box-shadow: 0 4px 15px rgba(200, 169, 81, 0.3);
    }

    .hero-btn-outline {
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .hero-btn-outline:active {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.6);
    }

    /* Hero Stats - horizontal bar */
    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 0.85rem 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hero-stat-item {
        flex: 1;
        text-align: center;
        padding: 0.25rem 0.4rem;
        position: relative;
    }

    .hero-stat-item + .hero-stat-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: rgba(255, 255, 255, 0.15);
    }

    .hero-stat-number {
        font-size: 1.35rem;
        font-weight: 600;
        background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .hero-wave {
        bottom: -2px;
    }

    /* ===== LAYANAN SECTION - MOBILE ===== */
    .layanan-section {
        padding: 2.5rem 0 1.5rem;
        position: relative;
    }

    .layanan-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, var(--home-primary), var(--home-accent));
        border-radius: 3px;
    }

    .section-label {
        font-size: 0.7rem;
        letter-spacing: 1.8px;
        background: linear-gradient(135deg, #e8f5e9, #d4edda);
        border: 1px solid rgba(13, 110, 62, 0.1);
    }

    .section-title {
        font-size: 1.35rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .layanan-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .layanan-card {
        padding: 1.15rem 0.9rem;
        border-radius: 14px;
        background: #fff;
        border: 1px solid rgba(13, 110, 62, 0.08);
        box-shadow: 0 2px 12px rgba(10, 74, 40, 0.04);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .layanan-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(13, 110, 62, 0.02), rgba(200, 169, 81, 0.03));
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .layanan-card:active {
        transform: scale(0.96);
        box-shadow: 0 4px 20px rgba(10, 74, 40, 0.1);
        border-color: rgba(13, 110, 62, 0.2);
    }

    .layanan-card:active::after {
        opacity: 1;
    }

    .layanan-icon-circle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
    }

    .layanan-icon-primary {
        background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
        color: #0d6e3e;
        box-shadow: 0 4px 12px rgba(13, 110, 62, 0.15);
    }

    .layanan-icon-success {
        background: linear-gradient(135deg, #e0f2e0, #b8dfb8);
        color: #146c33;
        box-shadow: 0 4px 12px rgba(20, 108, 51, 0.15);
    }

    .layanan-icon-warning {
        background: linear-gradient(135deg, #fef9e7, #fdf0c8);
        color: #8a6d14;
        box-shadow: 0 4px 12px rgba(138, 109, 20, 0.12);
    }

    .layanan-icon-info {
        background: linear-gradient(135deg, #e0f0e8, #c5e0d2);
        color: #0d5a3e;
        box-shadow: 0 4px 12px rgba(13, 90, 62, 0.15);
    }

    .layanan-title {
        font-size: 0.88rem;
        margin-bottom: 0.25rem;
        position: relative;
        z-index: 1;
    }

    .layanan-desc {
        font-size: 0.72rem;
        line-height: 1.5;
        position: relative;
        z-index: 1;
    }

    /* ===== BERITA SECTION - MOBILE CAROUSEL ===== */
    .berita-section {
        padding: 2.5rem 0 2rem;
    }

    .berita-carousel-wrapper {
        overflow: hidden;
        position: relative;
        margin: 0 -0.5rem;
        padding: 0.25rem 0.5rem;
    }

    .berita-grid.berita-carousel-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.25rem 0;
    }

    .berita-grid.berita-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .berita-grid.berita-carousel-track .berita-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
        margin: 0 0.25rem;
        border-radius: 16px;
        background: #fff;
        border: 1px solid rgba(13, 110, 62, 0.06);
        box-shadow: 0 4px 20px rgba(10, 74, 40, 0.06);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        position: relative;
    }

    .berita-grid.berita-carousel-track .berita-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(13, 110, 62, 0.03), rgba(200, 169, 81, 0.04));
        opacity: 0;
        transition: opacity 0.35s ease;
        z-index: 1;
        pointer-events: none;
    }

    .berita-grid.berita-carousel-track .berita-card:active::before {
        opacity: 1;
    }

    .berita-grid.berita-carousel-track .berita-image-wrapper {
        aspect-ratio: 16 / 9;
        border-radius: 0;
        background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    }

    .berita-grid.berita-carousel-track .berita-image {
        transition: transform 0.5s ease;
    }

    .berita-grid.berita-carousel-track .berita-card:active .berita-image {
        transform: scale(1.03);
    }

    .berita-grid.berita-carousel-track .berita-category {
        font-size: 0.62rem;
        padding: 0.22rem 0.65rem;
        letter-spacing: 0.8px;
        z-index: 2;
    }

    .berita-grid.berita-carousel-track .berita-body {
        padding: 1rem 1.1rem;
    }

    .berita-grid.berita-carousel-track .berita-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }

    .berita-grid.berita-carousel-track .berita-excerpt {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .berita-grid.berita-carousel-track .berita-meta {
        font-size: 0.66rem;
        margin-bottom: 0.5rem;
    }

    /* Carousel Dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.25rem 0;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(13, 110, 62, 0.2);
        border: none;
        cursor: pointer;
        padding: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carousel-dot.active {
        width: 24px;
        border-radius: 10px;
        background: linear-gradient(135deg, #0d6e3e, #0f854a);
        box-shadow: 0 2px 10px rgba(13, 110, 62, 0.35);
    }

    /* Berita Footer button styling */
    .berita-footer .btn {
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.85rem;
        border: 2px solid var(--home-primary);
        color: var(--home-primary);
        background: transparent;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .berita-footer .btn:active {
        background: var(--home-primary);
        color: #fff;
        transform: scale(0.96);
    }

    /* ===== CTA SECTION - MOBILE ===== */
    .cta-section {
        padding: 2.5rem 0 3rem;
    }

    .cta-card {
        padding: 2rem 1.3rem;
        border-radius: 20px;
        background: linear-gradient(160deg, #0a4525 0%, #0d6e3e 40%, #0f7a42 100%);
        box-shadow: 
            0 10px 40px rgba(10, 74, 40, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset;
        position: relative;
        overflow: hidden;
    }

    .cta-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
        pointer-events: none;
    }

    .cta-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .cta-text {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }

    .cta-btn {
        font-size: 0.88rem;
        padding: 0.85rem 1.5rem;
        min-height: 48px;
        border-radius: 14px;
        background: linear-gradient(135deg, #e0c55b, #f0d878);
        box-shadow: 0 8px 28px rgba(200, 169, 81, 0.3);
    }

    .cta-btn:active {
        transform: scale(0.95);
    }

    .cta-illustration {
        display: none;
    }

    /* ===== MOBILE FOOTER ENHANCEMENTS ===== */
    .public-footer {
        padding: 2rem 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 1.25rem 1.5rem;
    }

    .footer-heading {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
        padding-bottom: 0.5rem;
    }

    .footer-heading::after {
        width: 20px;
        height: 2px;
    }

    .footer-links a {
        font-size: 0.75rem;
        min-height: 40px;
    }

    .footer-about {
        font-size: 0.75rem;
    }

    .footer-bottom {
        padding: 0.85rem;
        font-size: 0.68rem;
    }

    /* ===== TOAST MOBILE ===== */
    .toast {
        top: 70px;
        left: 1rem;
        right: 1rem;
        border-radius: 14px;
    }

    /* ===== SPINNER MOBILE ===== */
    .spinner-overlay p {
        font-size: 0.85rem;
    }
}