/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; height: 85vh; min-height: 500px; overflow: hidden; background: var(--hijau); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2)); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-text { max-width: 600px; padding: 0 60px; color: white; }
.hero-text h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-text p { font-size: 1.1rem; margin-bottom: 28px; opacity: 0.9; }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; border: none; transition: all 0.3s; }
.hero-dot.active { background: white; width: 28px; border-radius: 5px; }

/* ============================================================
   STATISTIK
   ============================================================ */
.statistik {
    background: linear-gradient(135deg, #005580 0%, #0077b6 50%, #00a8e8 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.statistik::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.statistik::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.statistik-header {
    text-align: center;
    margin-bottom: 40px;
}
.statistik-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.statistik-header p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.statistik-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}
.stat-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px 16px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.stat-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(245,166,35,0.2);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: var(--kuning);
    border: 1px solid rgba(245,166,35,0.3);
}
.stat-item .angka {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.stat-item .label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 12px;
}
.stat-bar {
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--kuning), #f5c842);
    border-radius: 2px;
    transition: width 1.5s ease;
}

@media (max-width: 1024px) {
    .statistik-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .statistik-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item .angka { font-size: 1.8rem; }
}

/* ============================================================
   BERITA FEATURED LAYOUT
   ============================================================ */
.berita-featured-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: start;
}

/* FEATURED POST */
.featured-post { border-radius: 12px; overflow: hidden; position: relative; }
.featured-link { display: block; position: relative; text-decoration: none; border-radius: 12px; overflow: hidden; height: 450px; }
.featured-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.featured-link:hover img { transform: scale(1.03); }
.featured-no-img { width: 100%; height: 380px; background: linear-gradient(135deg, #0077b6, #00a8e8); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: rgba(255,255,255,0.3); }
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.featured-badge { display: inline-block; background: var(--hijau-muda); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; width: fit-content; }
.featured-overlay h3 { color: white; font-size: 1.2rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.featured-meta { display: flex; gap: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.featured-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--hijau); color: white; padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; width: fit-content; transition: background 0.2s; }
.featured-link:hover .featured-btn { background: var(--hijau-muda); }
.featured-prev, .featured-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; z-index: 10; }
.featured-prev { left: 12px; }
.featured-next { right: 12px; }
.featured-prev:hover, .featured-next:hover { background: rgba(0,0,0,0.6); }

/* FLYER */
/* FLYER SLIDER */
.popular-list {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 450px;
    position: relative;
    background: white;
    padding: 0;
}

.flyer-item {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
}
.flyer-item.active {
    display: block;
    opacity: 1;
}
.flyer-item a { display: block; height: 100%; }
.flyer-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    display: block;
}

.flyer-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.flyer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.flyer-dot.active {
    background: var(--hijau);
    width: 22px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .berita-featured-layout { grid-template-columns: 1fr; }
    .featured-link { height: 280px; }
    .popular-list { height: 300px; }
}

/* ============================================================
   UMKM
   ============================================================ */
.umkm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.umkm-card { border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: transform 0.2s; }
.umkm-card:hover { transform: translateY(-4px); }
.umkm-card img { width: 100%; height: 180px; object-fit: cover; }
.umkm-card .no-img { width: 100%; height: 180px; background: linear-gradient(135deg, #fff8e1, #ffecb3); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.umkm-body { padding: 14px; }
.umkm-body h4 { font-size: 0.95rem; margin-bottom: 4px; }
.umkm-body p { font-size: 0.8rem; color: #888; }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda-list { display: flex; flex-direction: column; gap: 16px; }
.agenda-item { display: flex; gap: 20px; background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid var(--hijau); }
.agenda-tgl { text-align: center; min-width: 60px; }
.agenda-tgl .tgl { font-size: 2rem; font-weight: 800; color: var(--hijau); line-height: 1; }
.agenda-tgl .bln { font-size: 0.75rem; color: #888; text-transform: uppercase; }
.agenda-info h4 { font-size: 1rem; margin-bottom: 4px; }
.agenda-info p { font-size: 0.85rem; color: #888; }

/* ============================================================
   PAGE HERO (untuk halaman selain beranda)
   ============================================================ */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #005580 0%, #0077b6 50%, #00a8e8 100%);
    color: white;
    padding: 70px 20px 50px;
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(245,166,35,0.12) 0%, transparent 45%);
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scale(1.3);
}
.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.page-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--kuning);
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}
.page-hero h1 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.page-hero p {
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.6;
}
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}
.page-hero-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.page-hero-breadcrumb a:hover { color: var(--kuning); }

@media (max-width: 768px) {
    .page-hero { padding: 56px 20px 40px; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: 0.875rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-text { padding: 0 24px; }
    .hero-text h1 { font-size: 1.8rem; }
}

/* ============================================================
   APBDES PREVIEW
   ============================================================ */
.apbdes-preview {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: center;
    background: #f4f6f8;
    border-radius: 0;
    padding: 60px 0;
    box-shadow: none;
}
.apbdes-preview-illust {
    display: flex;
    align-items: center;
    justify-content: center;
}
.apbdes-icon-circle {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 0;
    background: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--hijau-muda);
}
.apbdes-preview-content h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--hijau-muda);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.apbdes-preview-content p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 520px;
}
.apbdes-preview-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    max-width: 560px;
}
.apbdes-preview-card {
    background: white;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.apc-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
}
.apc-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--teks);
}
.apbdes-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teks);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.apbdes-preview-link:hover { color: var(--hijau); }

@media (max-width: 768px) {
    .apbdes-preview { grid-template-columns: 1fr; padding: 40px 0; text-align: center; }
    .apbdes-icon-circle { max-width: 220px; font-size: 4rem; margin: 0 auto; }
    .apbdes-preview-cards { margin-left: auto; margin-right: auto; }
    .apbdes-preview-content p { margin-left: auto; margin-right: auto; }
}