/*
Theme Name: MediaLink2026
Author: propaGANDA
Description: Tema kustom untuk MediaLink dengan tata letak grid, gaya majalah/berita, merah dan hitam.
Version: 1.3
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

:root {
    --primary-red: #da251d;
    --dark-text: #222222;
    --gray-text: #666666;
    --light-gray-bg: #f4f4f4;
    --dark-bg: #333333;
    --font-main: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, sans-serif;
}

body { font-family: var(--font-main); margin: 0; padding: 0; color: var(--dark-text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--primary-red); }

/* --- Top Bar & Header --- */
.top-bar { 
    border-bottom: 1px solid #eee; 
    padding: 10px 0; 
    font-size: 11px; 
    color: var(--gray-text); 
}
.top-bar-inner { 
    display: flex; 
    justify-content: space-between; 
}

.site-header { 
    background-color: var(--primary-red); 
    padding: 5px 0; 
    /* PENGATURAN STICKY HEADER */
    position: sticky; 
    top: 0; 
    z-index: 999; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Opsional: Tambahan sedikit bayangan agar saat menimpa artikel terlihat ada batasnya */
}
.header-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.site-branding a { color: #fff; font-size: 28px; font-weight: bold; display: flex; align-items: center; }
.site-branding img, .custom-logo { max-height: 50px; width: auto; }

/* --- Tombol Hamburger --- */
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; z-index: 100; }
.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after { display: block; background-color: #fff; height: 3px; width: 25px; border-radius: 2px; transition: transform 0.3s ease, background-color 0.3s ease; }
.hamburger-icon { position: relative; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; position: absolute; left: 0; }
.hamburger-icon::before { transform: translateY(-8px); }
.hamburger-icon::after { transform: translateY(8px); }
.menu-toggle.active .hamburger-icon { background-color: transparent; }
.menu-toggle.active .hamburger-icon::before { transform: translateY(0) rotate(45deg); }
.menu-toggle.active .hamburger-icon::after { transform: translateY(0) rotate(-45deg); }

/* --- Menu Navigasi Default (Desktop) --- */
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.main-navigation a { color: #fff; font-size: 14px; font-weight: 600; position: relative; padding-bottom: 5px; }
.main-navigation a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: #FFF500; transition: width 0.3s ease; }
.main-navigation a:hover::after { width: 100%; }
.main-navigation a:hover { color: #fff; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 24px; font-weight: 700; margin: 50px 0 25px; padding-bottom: 10px; border-bottom: 2px solid #ddd; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 80px; height: 2px; background-color: var(--primary-red); }

/* --- SLIDER HERO BANNER --- */
.hero-slider { position: relative; width: 100%; height: 950px; background-color: var(--dark-bg); overflow: hidden; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out, visibility 1s; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.hero-content { position: relative; z-index: 2; padding: 40px 5%; color: #fff; max-width: 1000px; }
.hero-content h1 { font-size: 30px; margin: 0 0 15px; line-height: 1.2; }
.hero-content p { font-size: 14px; line-height: 1.2; }

/* --- Layout Terkini --- */
.terkini-wrapper { display: flex; gap: 20px; margin-bottom: 50px; }
.terkini-main { flex: 2; background-color: var(--light-gray-bg); border-radius: 8px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; position: relative; overflow: hidden; }
.terkini-side { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.terkini-side-item { background-color: var(--light-gray-bg); padding: 15px; border-radius: 8px; display: flex; gap: 15px; align-items: center; }
.terkini-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }

/* --- Grid Artikel & Dokumentasi --- */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 50px; }
.grid-item .thumbnail-placeholder { background-color: #000; border-radius: 8px; aspect-ratio: 4/3; margin-bottom: 15px; background-size: cover; background-position: center; }
.grid-item .red-line { width: 40px; height: 2px; background-color: var(--primary-red); margin-bottom: 12px; }
.grid-item h3 { font-size: 14px; margin: 0 0 10px; text-transform: uppercase; line-height: 1.4; }

.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 60px; }
.doc-item { background-color: #000; aspect-ratio: 16/9; border-radius: 6px; background-size: cover; background-position: center; display: block; transition: transform 0.3s ease; }
.doc-item:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 2; position: relative; }

/* --- Halaman Single (Artikel Penuh) --- */
.single-hero-image {
    width: 100%;
    height: 600px; /* Tinggi gambar banner */
    background-size: cover; /* Agar gambar tidak berulang dan memotong rapi */
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark-bg);
}

.single-post-content { 
    max-width: 800px; /* Membatasi lebar teks agar mata tidak lelah membaca */
    margin: 50px auto 0;
    text-align: justify; 
}

.single-post-title { 
    font-size: 40px; 
    text-align: left; 
    margin-bottom: 15px; 
    line-height: 1.3; 
    color: var(--dark-text); 
    font-weight: 800; 
}

.single-meta { 
    text-align: left; 
    font-size: 14px; 
    color: var(--gray-text); 
    margin-bottom: 40px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #ddd; 
}

.entry-content { 
    font-size: 18px; 
    line-height: 1.8; 
    color: #333; 
}
.entry-content p { margin-bottom: 25px; }
.entry-content h2, .entry-content h3 { color: var(--dark-text); margin-top: 40px; margin-bottom: 15px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }

.archive-hero { background-color: var(--dark-bg); padding: 80px 5%; color: #fff; margin-bottom: 50px; text-align: center; }
.archive-hero h1 { font-size: 32px; color: var(--primary-red); border-bottom: 3px solid var(--primary-red); display: inline-block; padding-bottom: 15px; margin: 0; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 60px 0; flex-wrap: wrap; }
.pagination .page-numbers { font-size: 18px; font-weight: bold; color: var(--gray-text); padding: 5px 10px; }
.pagination .current { color: var(--dark-text); border-bottom: 2px solid var(--primary-red); }

/* --- Footer --- */
.site-footer { 
    background-color: var(--primary-red); 
    color: #fff; 
    padding: 60px 0; 
    margin-top: 60px; 
}

.footer-wrapper {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    flex-wrap: wrap; 
    gap: 30px;
}

/* Kiri: Brand & Copyright */
.footer-brand {
    flex: 1;
    min-width: 200px;
}
/* Logo Teks diperbesar */
.footer-logo-text { font-size: 36px; font-weight: bold; color: #fff; line-height: 1; margin: 0; display: inline-block; }
/* Logo Gambar diperbesar (maksimal tinggi 80px) */
.footer-brand img, .footer-brand .custom-logo { max-height: 80px; width: auto; filter: brightness(0) invert(1); display: block; }
/* Jarak margin-top diperkecil agar lebih menempel dengan logo */
.copyright-text { font-size: 11px; margin-top: 5px; opacity: 0.8; line-height: 1.5; }

/* Tengah: Menu 2 Kolom (Rata Kiri) */
.footer-links {
    flex: 2;
    min-width: 300px;
    display: flex;
    justify-content: flex-start;
}
.footer-links ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    column-count: 2; 
    column-gap: 80px; 
}
.footer-links a { 
    font-size: 13px; 
    color: #fff; 
    display: inline-block; 
    margin-bottom: 12px; 
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-links a:hover { 
    color: #FFF500;
    transform: translateX(5px); 
}

/* Kanan: Sosial Media */
.social-icons { 
    flex: 1;
    min-width: 150px;
    display: flex; 
    justify-content: flex-end;
    gap: 15px; 
}

/* Ikon diperkecil menjadi 24px */
.social-icon-link {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon-link svg {
    width: 100%;
    height: 100%;
    fill: #e9e9e9c2; /* Warna default kuning */
    transition: fill 0.3s ease;
}

/* Efek hover logo sosmed berubah putih */
.social-icon-link:hover svg {
    fill: #FFF500;
}

.social-icon-link:hover {
    transform: translateY(-4px); /* Melompat sedikit ke atas */
}

/* --- Header Halaman Arsip --- */
.archive-header-bg {
    background-color: var(--dark-bg);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.archive-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    text-transform: capitalize;
}

.archive-description {
    margin-top: 15px;
    font-size: 16px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .archive-header-bg { padding: 40px 0; }
    .archive-title { font-size: 28px; }
}

/* =========================================
   PENGATURAN RESPONSIF (MOBILE & TABLET)
   ========================================= */

@media (max-width: 992px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); } 
    .doc-grid { grid-template-columns: repeat(3, 1fr); } 
    .terkini-wrapper { flex-direction: column; } 
    .terkini-main { min-height: 300px; }
    .hero-slider { height: 500px; } 
}

@media (max-width: 768px) {
    @media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
    
    /* Ganti pengaturan site-header menjadi header-inner */
    .header-inner { flex-direction: row; justify-content: space-between; padding: 10px 0; }
    
    .menu-toggle { display: block; }
    .main-navigation { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-red); padding: 20px 0; z-index: 99; box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
    /* ... (kode lainnya biarkan sama) ... */
}

    .hero-slider { height: 450px; } 
    .hero-content h1 { font-size: 26px; margin-bottom: 10px; }
    .hero-content p { display: block; font-size: 14px; line-height: 1.4; } 
    
    .doc-grid { grid-template-columns: repeat(2, 1fr); } 
    .single-post-title { font-size: 28px; }
    .single-hero-image { height: 300px; } /* Banner mengecil di HP */
    .single-post-title { font-size: 28px; }
    .entry-content { font-size: 16px; }
    
    /* Footer Responsif Rata Kiri */
    .footer-wrapper {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }
    .footer-links { justify-content: flex-start; }
    .footer-links ul { column-gap: 40px; }
    .social-icons { justify-content: flex-start; margin-top: 10px; }
    
    .lightbox-close { top: 10px; right: 20px; font-size: 40px; }
}

@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; } 
    .doc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } 
    .hero-slider { height: 400px; }
    .hero-content h1 { font-size: 20px; margin-bottom: 8px; }
    .hero-content p { font-size: 12px; } 
    .terkini-main { min-height: 250px; padding: 20px; }
    .terkini-title { font-size: 18px !important; }
    .terkini-side-item { flex-direction: column; text-align: center; }
    .terkini-side-item > div:first-child { width: 100% !important; height: 120px !important; } 
    .footer-links ul { column-count: 1; } 
    #lightbox-caption { font-size: 14px; }
    #lightbox-desc { font-size: 12px; }
}

/* --- Meta Bawah & Tombol Share (Single Post) --- */
.single-footer-meta {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-label {
    font-weight: 700;
    margin-right: 10px;
    font-size: 14px;
    color: var(--gray-text);
}

/* Gaya untuk Tag */
.post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tag-link {
    background-color: var(--light-gray-bg);
    color: var(--dark-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.tag-link:hover {
    background-color: var(--primary-red);
    color: #fff;
}

/* Gaya untuk Tombol Share */
.post-share { display: flex; align-items: center; gap: 10px; }
.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Warna khusus saat hover berdasarkan platform */
.share-btn.fb:hover { background-color: #1877F2; color: #fff; transform: translateY(-3px); }
.share-btn.tw:hover { background-color: #000000; color: #fff; transform: translateY(-3px); }
.share-btn.wa:hover { background-color: #25D366; color: #fff; transform: translateY(-3px); }
.share-btn.link:hover { background-color: var(--primary-red); color: #fff; transform: translateY(-3px); }

/* Responsif untuk layar HP */
@media (max-width: 480px) {
    .single-footer-meta { flex-direction: column; align-items: flex-start; }
}

/* --- Bagian Pencarian (Header & Search Page) --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2px 5px 2px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background-color: #fff;
}

.search-field {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    width: 120px;
    transition: all 0.3s ease;
    outline: none;
}

.search-form:focus-within .search-field {
    color: #333;
    width: 160px; /* Memanjang saat diklik */
}

.search-field::placeholder { color: rgba(255,255,255,0.7); }
.search-form:focus-within .search-field::placeholder { color: #999; }

.search-submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.search-form:focus-within .search-submit { color: var(--primary-red); }
.search-submit svg { width: 18px; height: 18px; fill: currentColor; }

/* Header Halaman Pencarian */
.search-header-bg {
    background-color: var(--dark-bg);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}
.search-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}
.search-title span {
    color: var(--primary-red);
    font-style: italic;
}

/* Responsif Pencarian */
@media (max-width: 768px) {
    .header-right { gap: 10px; }
    .search-field { width: 80px; }
    .search-form:focus-within .search-field { width: 120px; }
    .search-header-bg { padding: 40px 0; }
    .search-title { font-size: 24px; }
}

/* --- Halaman 404 Error --- */
.error-404-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.error-code {
    font-size: 150px;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
    margin: 0 0 20px;
    text-shadow: 4px 4px 0px rgba(204, 0, 0, 0.2);
}

.error-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-back-home {
    display: inline-block;
    background-color: var(--dark-bg);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
    color: #fff;
}

.error-divider {
    margin: 50px 0 30px;
    position: relative;
    text-align: center;
}

.error-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.error-divider span {
    background-color: #fff;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.error-search-box {
    max-width: 400px;
    margin: 0 auto;
}

/* Modifikasi kotak pencarian khusus di halaman 404 agar tampilannya gelap/kontras */
.error-search-box .search-form {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 10px 5px 20px;
}
.error-search-box .search-field {
    color: #333;
    width: 100%;
}
.error-search-box .search-submit {
    color: var(--primary-red);
}

/* Responsif 404 */
@media (max-width: 768px) {
    .error-code { font-size: 100px; }
    .error-title { font-size: 24px; }
}

/* --- Efek Hover Interaktif (Berita & Arsip) --- */

/* 1. Efek Hover Grid Standar */
.hover-grid {
    transition: all 0.3s ease;
    border-radius: 8px; /* Sudut sedikit membulat */
    padding-bottom: 15px; /* Ruang untuk efek angkat */
    border: 1px solid transparent; 
}
.hover-grid:hover {
    transform: translateY(-5px); /* Terangkat ke atas 5 pixel */
    box-shadow: 0 10px 20px rgba(0,0,0,0.06); /* Bayangan halus */
    background-color: #fafafa;
    border-color: #f0f0f0;
}
.hover-grid:hover .thumbnail-placeholder {
    opacity: 0.95; /* Gambar sedikit meredup saat hover */
}

/* 2. Efek Hover Artikel Samping (List Kecil) */
.hover-side {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.hover-side:hover {
    background-color: #f8f9fa; /* Latar abu-abu sangat muda */
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transform: translateX(4px); /* Bergeser halus ke kanan */
}

/* 3. Efek Hover Artikel Utama (Kotak Besar) */
.terkini-main {
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}
.terkini-main:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15); /* Bayangan lebih gelap di kotak utama */
}

/* 4. Efek Hover Badge Kategori */
.cat-badge-link {
    transition: all 0.3s ease !important;
}
.cat-badge-link:hover {
    background: #000 !important; /* Label merah berubah hitam saat disentuh */
    color: #fff !important;
    transform: translateY(-2px);
}

/* =========================================
   PENGATURAN RESPONSIF (MOBILE & TABLET)
   ========================================= */

@media (max-width: 992px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); } 
    .doc-grid { grid-template-columns: repeat(3, 1fr); } 
    .terkini-wrapper { flex-direction: column; } 
    .terkini-main { min-height: 300px; }
    .hero-slider { height: 500px; } 
}

@media (max-width: 768px) {
    .top-bar { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
    .site-header { flex-direction: row; justify-content: space-between; padding: 15px 5%; }
    .menu-toggle { display: block; }
    
    .main-navigation { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-red); padding: 20px 0; z-index: 99; box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
    .main-navigation.active { display: block; }
    .main-navigation ul { flex-direction: column; align-items: center; gap: 20px; }

    .hero-slider { height: 450px; } 
    .hero-content h1 { font-size: 26px; margin-bottom: 10px; }
    .hero-content p { display: block; font-size: 14px; line-height: 1.4; } 
    
    .doc-grid { grid-template-columns: repeat(2, 1fr); } 
    .single-post-title { font-size: 28px; }
    .site-footer { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; } 
    .doc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } 
    .hero-slider { height: 400px; }
    .hero-content h1 { font-size: 20px; margin-bottom: 8px; }
    .hero-content p { font-size: 12px; } 
    .terkini-main { min-height: 250px; padding: 20px; }
    .terkini-title { font-size: 18px !important; }
    .terkini-side-item { flex-direction: column; text-align: center; }
    .terkini-side-item > div:first-child { width: 100% !important; height: 120px !important; } 
    .footer-links ul { column-count: 1; } 
}
/* --- Peta Interaktif MediaLink --- */
.map-pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 0 rgba(204, 0, 0, 0.4);
    animation: pulse-red 2s infinite;
    transition: all 0.3s ease;
}

.map-pin:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: #000;
    z-index: 10;
    animation: none;
}

/* Animasi Denyut (Pulse) */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

/* Desain Kotak Tooltip Melayang */
.map-tooltip {
    position: absolute;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-left: 4px solid var(--primary-red);
    width: 220px;
    pointer-events: none; /* Agar mouse tidak tersangkut di tooltip */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 20;
}

.map-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.map-tooltip h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--dark-text);
    font-weight: 800;
}

.map-tooltip p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .map-pin { width: 10px; height: 10px; }
    .interactive-map-area { padding-top: 60%; } /* Menyesuaikan rasio di HP */
}

/* =========================================
   EFEK HOVER INTERAKTIF UNTUK ARTIKEL
   ========================================= */

/* 1. Efek Kartu Terangkat (Lift Effect) */
.grid-item, .terkini-side-item {
    transition: transform 0.3s ease;
}
.grid-item:hover, .terkini-side-item:hover {
    transform: translateY(-6px); /* Mengangkat kartu ke atas sejauh 6px */
}

/* 2. Garis Merah Memanjang (Expansion) */
.grid-item .red-line {
    transition: width 0.4s ease-out; /* Animasi mulus saat memanjang */
}
.grid-item:hover .red-line {
    width: 100px; /* Garis merah yang tadinya 40px memanjang jadi 100px */
}

/* 3. Judul Berubah Warna ke Merah */
.grid-item h3 a,
.terkini-side-item .terkini-title a,
.terkini-main .terkini-title a {
    transition: color 0.3s ease;
}
.grid-item:hover h3 a,
.terkini-side-item:hover .terkini-title a,
.terkini-main:hover .terkini-title a {
    color: var(--primary-red);
}

/* 4. Efek Gambar Lebih Cerah (Highlight) */
.grid-item .thumbnail-placeholder,
.terkini-side-item > div:first-child {
    transition: filter 0.3s ease;
}
.grid-item:hover .thumbnail-placeholder,
.terkini-side-item:hover > div:first-child {
    filter: brightness(1.15); /* Membuat gambar 15% lebih terang saat disentuh */
}

/* =========================================
   GALERI DOKUMENTASI & LIGHTBOX
   ========================================= */

.doc-item {
    position: relative;
    overflow: hidden; /* Mencegah overlay keluar batas kotak */
}

/* Teks Overlay yang muncul saat gambar di-hover */
.doc-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 30px 10px 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.doc-item:hover .doc-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Desain Wadah Pop-up Layar Penuh */
.lightbox-container {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.92); /* Background hitam transparan */
}

.lightbox-container.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animasi gambar saat muncul */
.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    animation: zoomIn 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    max-width: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: normal;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-red);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Sesuaikan ukuran tombol close di HP */
@media (max-width: 768px) {
    .lightbox-close { top: 10px; right: 20px; font-size: 40px; }
    #lightbox-caption { font-size: 14px; }
}

/* =========================================
   EFEK HOVER ARTIKEL TERKINI (BESAR)
   ========================================= */
.terkini-main {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terkini-main:hover {
    transform: translateY(-6px); /* Mengangkat kotak sebesar 6px ke atas */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25); /* Menambahkan bayangan lembut */
    z-index: 10; /* Memastikan posisinya berada di atas elemen lain saat terangkat */
}

/* --- Halaman Profil Dinamis --- */

/* Animasi Logo Mitra */
.mitra-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    border-color: #ddd !important;
    transform: translateY(-3px);
}

.mitra-card:hover .mitra-logo {
    filter: grayscale(0%) !important; /* Logo berubah jadi berwarna penuh saat disentuh */
    opacity: 1 !important;
}

/* Merapikan Tipografi di Halaman Profil */
.entry-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-text);
    margin-top: 50px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Garis dekoratif di bawah judul section */
.entry-content h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #eee;
}

.entry-content p {
    font-size: 17px;
    line-height: 1.8; /* Memberi ruang antar baris agar tidak rapat */
    color: #555;
    margin-bottom: 25px;
}

/* Styling List (Misi, Strategi, Program) */
.entry-content ul {
    padding-left: 0;
    list-style: none;
}

.entry-content ul li {
    background: #fdfdfd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.entry-content ul li:hover {
    transform: translateX(10px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border-top: 4px solid var(--primary-red);
}

.info-card h2 {
    color: var(--dark-text);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Kotak Visi Misi Berdampingan */
.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.visi-box {
    background: var(--primary-red);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
}

.misi-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Styling List */
.info-card ul {
    list-style: none;
    padding: 0;
}
.info-card ul li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
    display: flex;
    gap: 10px;
}
.info-card ul li::before {
    content: "→";
    color: var(--primary-red);
    font-weight: bold;
}

/* Membuat semua paragraf di dalam konten profil menjadi justify */
.entry-content p {
    text-align: justify;
    text-justify: inter-word; /* Memastikan spasi antar kata terbagi rata */
    hyphens: auto;           /* Opsional: memutus kata di ujung baris agar spasi tidak terlalu lebar */
}