/* =========================================
   STYLE.CSS - SMP MUHAMMADIYAH MERAUKE
   ========================================= */

/* --- Reset Dasar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* --- Container Utility --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Styling (Sticky/Melayang) --- */
header {
    background: linear-gradient(90deg, #0b1a3a 0%, #1e3c72 50%, #0b1a3a 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky; /* Agar menempel */
    top: 0;
    z-index: 1000;
    width: 100%;
}

.top-header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
}

.text-smp { font-size: 14px; color: #fff; letter-spacing: 1px; }
.text-muhammadiyah { font-size: 24px; color: #fbbf24; }
.text-merauke { font-size: 14px; color: #fff; }

/* Search Box */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,0.9);
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1e3c72;
    cursor: pointer;
    padding: 5px;
}

/* Right Badges */
.right-badges {
    display: flex;
    gap: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.badge-item i {
    font-size: 28px;
    color: #a5c9ff;
}

.badge-item span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

/* --- Navbar --- */
.bottom-header {
    padding: 10px 0;
    background: rgba(0,0,0,0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #fbbf24;
}

.dropdown i {
    font-size: 12px;
    margin-left: 5px;
}

.btn-contact {
    background-color: white;
    color: #0b1a3a;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-contact:hover {
    background-color: #fbbf24;
    color: #000;
}

/* =========================================
   HERO SLIDER SECTION (DYNAMIC - AKTIF)
   ========================================= */

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 600px; /* Tinggi Banner */
    overflow: hidden;
    background-color: #000;
}

/* Slide Item (Posisi Absolut agar menumpuk) */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Default sembunyi */
    transition: opacity 1s ease-in-out; /* Efek transisi halus */
    display: flex;
    align-items: center;
}

/* Slide yang sedang aktif muncul */
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay Gelap */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

/* Konten Teks */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.news-text {
    max-width: 600px;
    animation: slideUp 1s ease forwards; /* Animasi teks naik */
}

.badge-hero {
    background-color: #fbbf24;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.news-text h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.news-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Navigasi Titik 3 (Dots) - Pindah ke Tengah */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); /* Posisi tengah rata */
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover, .dot.active {
    background-color: #fbbf24;
    border-color: #fbbf24;
    transform: scale(1.3);
}

/* Animasi Teks Naik */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsif HP */
@media (max-width: 768px) {
    .hero-slider-container {
        height: 500px;
    }
    .news-text h1 {
        font-size: 28px;
    }
    .slider-dots {
        left: 50%; /* Tetap di tengah */
        transform: translateX(-50%);
    }
}
/* --- News Grid Section --- */
.news-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #0b1a3a;
    font-weight: 700;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: #fbbf24;
    margin: 10px auto;
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #fbbf24;
    color: #0b1a3a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.date {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.date i {
    margin-right: 5px;
    color: #fbbf24;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content h3 a {
    text-decoration: none;
    color: #0b1a3a;
    transition: color 0.3s;
}

.card-content h3 a:hover {
    color: #1e3c72;
}

.card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    margin-top: auto;
    text-decoration: none;
    color: #0b1a3a;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.card-link:hover {
    color: #fbbf24;
    gap: 10px;
}

/* =========================================
   SOCIAL MEDIA SECTION (LAYOUT FINAL)
   ========================================= */

.social-section {
    padding: 60px 0;
    background-color: white;
}

/* 1. Container Flexbox (Kiri Tombol - Kanan Konten) */
.social-wrapper {
    display: flex; 
    gap: 30px;
    align-items: flex-start;
}

/* 2. KOLOM KIRI (Tombol Navigasi) */
.social-nav {
    flex: 1; /* Lebar 30% */
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

.social-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; 
    text-align: left;
}

.social-btn:hover {
    background-color: #f9fafb;
    border-color: #0b1a3a;
}

.social-btn.active {
    background-color: #1e3c72;
    border-color: #1e3c72;
    color: white;
}

.btn-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- UPDATE CSS LOGO KECIL --- */

/* Lingkaran Background Logo */
/* --- PERBAIKAN LOGO (GANTI TOTAL BAGIAN INI) --- */

/* 1. Wadah Lingkaran */
.icon-circle {
    width: 40px;          /* Lebar lingkaran dikunci 40px */
    height: 40px;         /* Tinggi lingkaran dikunci 40px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    overflow: hidden;     /* PENTING: Memotong apapun yang lewat dari 40px */
    flex-shrink: 0;       /* Agar lingkaran tidak gepeng */
}

/* 2. Gambar Logo di Dalamnya */
.icon-circle img {
    max-width: 20px !important;  /* Paksa lebar maksimal 20px */
    max-height: 20px !important; /* Paksa tinggi maksimal 20px */
    width: 20px;
    height: 20px;
    object-fit: contain;         /* Agar gambar proporsional */
    display: block;
}

/* 3. Efek Saat Tombol Aktif */
.social-btn.active .icon-circle {
    background-color: rgba(255,255,255,0.2);
}

.social-btn.active .icon-circle img {
    filter: brightness(0) invert(1); /* Opsional: Membuat logo jadi putih saat aktif */
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.platform-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.account-name {
    font-size: 13px;
    opacity: 0.7;
}

.social-btn.active .account-name {
    opacity: 0.9;
}

/* 3. KOLOM KANAN (Area Konten/Feed) */
.social-feed-area {
    flex: 2; /* Lebar 70% */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden; 
    min-height: 500px;
}

.card-header-blue {
    background: linear-gradient(90deg, #0b1a3a 0%, #1e3c72 100%);
    color: white;
    padding: 15px 25px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-view-profile {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    transition: 0.3s;
}

.btn-view-profile:hover {
    background: white;
    color: #0b1a3a;
}

.embed-box {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 450px;
}

/* Responsif (HP) */
@media (max-width: 768px) {
    .social-wrapper {
        flex-direction: column;
    }
    .social-nav {
        width: 100%;
        min-width: unset;
    }
    .social-feed-area {
        width: 100%;
    }
}
/* --- TOMBOL SHARE (WA, FB, IG) --- */
.share-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-area span {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

/* WhatsApp (Hijau) */
.share-wa {
    background-color: #25D366; 
}

/* Facebook (Biru) */
.share-fb {
    background-color: #1877F2; 
}

/* Instagram (Gradasi Khas) */
.share-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
/* =========================================
   FOOTER SECTION (Style Kemendikdasmen)
   ========================================= */

.main-footer {
    background-color: #0b1a3a; /* Warna Biru Gelap Utama */
    color: white;
    padding-top: 60px;
    margin-top: 0;
    font-size: 14px;
}

/* --- BAGIAN ATAS (Identitas) --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 70px; /* Ukuran Logo Footer */
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.footer-brand-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fbbf24; /* Kuning Emas */
}

.footer-brand-text p {
    font-size: 14px;
    opacity: 0.8;
    max-width: 400px;
}

/* Tombol Hubungi Kami (Putih) */
.btn-hubungi {
    background-color: white;
    color: #0b1a3a;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hubungi:hover {
    background-color: #fbbf24; /* Berubah Kuning saat hover */
    color: #000;
}

/* Garis Pembatas */
.footer-line {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

/* --- BAGIAN TENGAH (Kolom Link) --- */
.footer-content {
    display: grid;
    /* Membuat 4 kolom responsif */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fbbf24; /* Judul kolom warna kuning */
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #fbbf24;
    padding-left: 5px; /* Efek geser kanan sedikit saat hover */
}

/* --- SOSIAL MEDIA ICONS (PERBAIKAN LOGO BESAR) --- */

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.fs-icon {
    width: 35px !important;   /* Paksa lebar lingkaran 35px */
    height: 35px !important;  /* Paksa tinggi lingkaran 35px */
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    overflow: hidden !important; /* PENTING: Memotong gambar yang kelebihan */
}

/* Pengaturan Logo dengan !important agar tidak membesar */
.fs-icon img {
    width: 20px !important;       /* Paksa lebar 20px */
    height: 20px !important;      /* Paksa tinggi 20px */
    max-width: 20px !important;
    object-fit: contain;
    filter: grayscale(0%);
    display: block;
    margin: 0 auto;
}

.fs-icon:hover {
    background-color: #fbbf24;
    transform: translateY(-3px);
}

.fs-icon:hover img {
    filter: brightness(1.1);
}

/* --- BAGIAN BAWAH (Copyright) --- */
.footer-bottom {
    background-color: #060e21; /* Warna lebih gelap/hitam */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.7;
}

/* Responsif HP */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
    }
    
    .footer-content {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* =========================================
   DROPDOWN MENU CSS (SUB MENU)
   ========================================= */

/* Parent Menu Item */
.dropdown-item {
    position: relative; /* Agar anak menu muncul relatif terhadap induknya */
}

/* Style saat menu induk di-hover */
.dropdown-item:hover .drop-trigger {
    color: #fbbf24;
}

/* Kotak Sub Menu (Awalnya Sembunyi) */
.dropdown-menu {
    display: none; /* Sembunyi dulu */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px; /* Lebar dropdown */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0 !important;
    z-index: 9999;
    flex-direction: column !important; /* Susun ke bawah */
    gap: 0 !important; /* Reset gap navbar utama */
}

/* Style Item Sub Menu */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333 !important; /* Warna teks hitam */
    font-size: 14px;
    white-space: nowrap; /* Jangan biarkan teks turun baris */
    transition: 0.2s;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Efek Hover Item Sub Menu */
.dropdown-menu li a:hover {
    background-color: #f3f4f6;
    color: #0b1a3a !important; /* Biru saat hover */
    padding-left: 25px; /* Efek geser kanan */
}

/* MEKANISME MUNCUL (HOVER) */
.dropdown-item:hover .dropdown-menu {
    display: flex !important; /* Munculkan saat induk di-hover */
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   HALAMAN ARSIP BERITA (BERITA.PHP)
   ========================================= */

.archive-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.archive-grid {
    display: grid;
    grid-template-columns: 300px 1fr; /* Kiri 300px, Kanan sisanya */
    gap: 40px;
    align-items: start;
}

/* --- 1. SIDEBAR (KIRI) --- */
.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.no-padding { padding: 0; overflow: hidden; }

/* Form Pencarian Sidebar */
.search-form-sidebar {
    display: flex;
    gap: 10px;
}

.search-form-sidebar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.search-form-sidebar button {
    background: #0b1a3a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Menu Sidebar */
.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar-menu li a i.arrow { font-size: 12px; color: #ccc; }

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: #eef2ff;
    color: #0b1a3a;
    border-left: 4px solid #0b1a3a;
}

/* --- 2. KONTEN UTAMA (KANAN) --- */
.content-header { margin-bottom: 30px; }
.content-header h3 { font-size: 28px; color: #0b1a3a; font-weight: 700; margin-bottom: 10px; }
.content-header p { color: #666; font-size: 14px; }

/* Item Berita Horizontal (Seperti Referensi) */
.news-item-horizontal {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.news-item-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.nih-image {
    width: 250px; /* Lebar gambar fix */
    min-width: 250px;
    height: 180px;
    overflow: hidden;
}

.nih-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-item-horizontal:hover .nih-image img { transform: scale(1.1); }

.nih-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nih-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.nih-text h4 a {
    font-size: 18px;
    color: #0b1a3a;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: block;
}

.nih-text h4 a:hover { color: #fbbf24; }

.nih-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.nih-link {
    font-size: 13px;
    font-weight: 600;
    color: #1e3c72;
    text-decoration: none;
}

/* Paginasi */
.pagination {
    margin-top: 40px;
    display: flex;
    gap: 5px;
}

.page-link {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

.page-link.active, .page-link:hover {
    background: #0b1a3a;
    color: white;
    border-color: #0b1a3a;
}

/* Tombol Lihat Semua di Home (index.php) */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #0b1a3a;
    border: 2px solid #0b1a3a;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-view-all:hover {
    background-color: #0b1a3a;
    color: white;
}

/* Responsif HP */
@media (max-width: 768px) {
    .archive-grid { grid-template-columns: 1fr; }
    .news-item-horizontal { flex-direction: column; }
    .nih-image { width: 100%; height: 200px; }
}

/* =========================================
   BAGIAN REKOMENDASI BERITA (DETAIL PAGE)
   ========================================= */

.related-section {
    background-color: #f8f9fa; /* Warna abu-abu muda */
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.related-header {
    margin-bottom: 30px;
    border-left: 5px solid #fbbf24; /* Garis kuning di kiri judul */
    padding-left: 15px;
}

.related-header h3 {
    font-size: 24px;
    color: #0b1a3a;
    font-weight: 700;
}
/* =========================================
   UI SHARE BUTTON (GAYA PORTAL BERITA)
   ========================================= */

.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0; /* Jarak atas bawah */
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Garis pemisah tipis di bawahnya */
}

.share-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.btn-share-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Membuat bulat sempurna */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-share-circle:hover {
    transform: translateY(-3px); /* Efek naik dikit saat disentuh */
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    color: white;
}

/* Warna Brand Sosial Media */
.bg-fb { background-color: #1877F2; } /* Facebook Blue */
.bg-wa { background-color: #25D366; } /* WhatsApp Green */
.bg-x  { background-color: #000000; } /* X (Twitter) Black */
.bg-copy { background-color: #7f8c8d; } /* Abu-abu untuk copy link */

/* Responsif HP: Agar tidak terlalu besar di layar kecil */
@media (max-width: 480px) {
    .btn-share-circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
/* =========================================
   GALERI FOTO DI DETAIL BERITA
   ========================================= */

.galeri-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

.galeri-container h3 {
    font-size: 20px;
    color: #0b1a3a;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Grid Layout: Otomatis menyesuaikan jumlah kolom */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.galeri-item {
    border-radius: 8px;
    overflow: hidden;
    height: 120px; /* Tinggi seragam */
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.galeri-item:hover {
    transform: scale(1.05); /* Efek zoom sedikit saat disentuh */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar tidak gepeng */
}