/* ==========================================================================
   STYLE KHUSUS: DIREKTORI SEMUA BAHASA (bahasa.css)
   Status: FIXED LAYOUT + MOBILE SAFE AREA
   ========================================================================== */

/* 1. HERO SECTION & HEADER */
.hero-mini {
    text-align: center; 
    /* Padding atas disesuaikan agar tidak terlalu jauh dari navbar utama */
    padding: 3rem 1.5rem 5rem 1.5rem;
    background: linear-gradient(135deg, hsla(224, 64%, 33%, 1) 0%, hsla(221, 83%, 53%, 1) 50%, hsla(224, 64%, 33%, 1) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    /* Pastikan z-index lebih rendah dari navbar utama tapi di atas background */
    z-index: 1; 
}

.hero-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.5px, transparent 1.5px);
    background-size: 30px 30px; opacity: 0.6; pointer-events: none;
}

.hero-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: radial-gradient(circle at center, rgba(30, 58, 138, 0.4) 0%, rgba(30, 58, 138, 1) 90%);
        pointer-events: none;
    }
.hero-content { position: relative; z-index: 2; }
.hero-mini h1 { font-size: 2.5rem; margin: 0 0 1rem 0; font-weight: 800; letter-spacing: -1px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero-mini p { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 2rem auto; }

/* 2. SEARCH BOX (FLOATING) */
.search-wrapper { margin-top: -2.5rem; position: relative; z-index: 20; padding: 0 1rem; margin-bottom: 2rem; }
.search-box-dir {
        background: white; padding: 8px 8px 8px 24px; border-radius: 99px;
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        display: flex; align-items: center; max-width: 540px; margin: 0 auto;
        border: 1px solid rgba(0,0,0,0.05);
    }
.search-input { flex: 1; border: none; outline: none; font-size: 1.05rem; padding: 12px 0; font-family: inherit; color: #1E293B; }
.search-icon { color: #94A3B8; margin-right: 12px; }

/* 3. STICKY NAV (FILTER PILLS) */
.sticky-nav {
	position: sticky; top: 70px; z-index: 50; /* Adjust top value based on your main header height */
	padding: 1rem 0; background: rgba(249, 250, 251, 0.95); backdrop-filter: blur(10px);
	margin-bottom: 2rem; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-scroll {
	display: flex; justify-content: center; gap: 8px;
	overflow-x: auto; white-space: nowrap; padding: 0 1rem; scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-pill {
	padding: 8px 16px; border-radius: 99px; font-size: 0.9rem; font-weight: 600;
	color: #64748B; background: white; border: 1px solid #E2E8F0; cursor: pointer;
	transition: all 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.nav-pill:hover { color: #1E3A8A; border-color: #1E3A8A; }
.nav-pill.active { background: #1E3A8A; color: white; border-color: #1E3A8A; }

/* 4. CONTENT GRID */
.region-section { scroll-margin-top: 160px; margin-bottom: 3rem; }
.region-divider { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: #64748B; }
.region-divider::before, .region-divider::after { content: ""; flex: 1; border-bottom: 1px solid #CBD5E1; margin: 0 1.5rem; opacity: 0.5; }
.region-title { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #1E3A8A; display: flex; align-items: center; gap: 8px; }
.count-badge { font-size: 0.7rem; background: #E0F2FE; color: #0284C7; padding: 2px 8px; border-radius: 99px; vertical-align: middle; }

.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.lang-card-item {
	background: white; border: 1px solid #E2E8F0; border-radius: 12px; padding: 1rem 1.25rem;
	display: flex; align-items: center; gap: 1rem; text-decoration: none; transition: all 0.2s;
}
.lang-card-item:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: #38BDF8; }
.avatar { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.05); }
.info h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #1E293B; display: flex; align-items: center; gap: 6px;}
.info p { margin: 2px 0 0 0; font-size: 0.85rem; color: #64748B; }
.badge-pop { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; background: linear-gradient(135deg, #F97316, #EA580C); color: white; padding: 2px 6px; border-radius: 4px; font-weight: 700; display: inline-block; }
.arrow-go { margin-left: auto; color: #CBD5E1; transform: translateX(-5px); opacity: 0; transition: 0.2s; }
.lang-card-item:hover .arrow-go { transform: translateX(0); opacity: 1; color: #38BDF8; }

/* 5. SEO & STATS */
.seo-content { background: white; border-radius: 16px; border: 1px solid #E2E8F0; padding: 3rem; margin-top: 5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.seo-content h2 { color: #1E3A8A; font-size: 1.5rem; margin-top: 0; }
.seo-content p { color: #64748B; font-size: 1rem; margin-bottom: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.stat-item { background: #F8FAFC; padding: 1.5rem; border-radius: 12px; text-align: center; border: 1px solid #E2E8F0; }
.stat-num { font-size: 2rem; font-weight: 800; color: #1E3A8A; display: block; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: #64748B; font-weight: 500; }

.no-result { text-align: center; padding: 4rem; display: none; color: #64748B; }
.scroll-top { position: fixed; bottom: 80px; right: 20px; background: #1E3A8A; color: white; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 90; border: 2px solid white; }
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: #38BDF8; transform: translateY(-3px); }

/* 6. RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    /* Safe Area untuk Mobile Nav agar konten paling bawah tidak ketutup */
    main { padding-bottom: 20px; }
    
    .hero-dir { padding-top: 2rem; }
    .hero-dir h1 { font-size: 1.8rem; }
    .nav-scroll { justify-content: flex-start; padding-left: 1rem; padding-right: 1rem; }
    .lang-grid { grid-template-columns: 1fr; }
    
    /* Sticky nav di mobile mungkin perlu turun sedikit jika header mobile lebih tinggi */
    .sticky-nav { top: 0; position: relative; background: transparent; border: none; padding: 0.5rem 0; margin-bottom: 1rem; }
    
    .seo-content { padding: 1.5rem; margin-top: 3rem; }
    .region-divider::before, .region-divider::after { margin: 0 0.5rem; }
}