/* General Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    line-height: 1.6;
}
a {
    color: #0073aa;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* Header Pro */
.site-header-pro {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    text-decoration: none;
}
.header-logo img {
    border-radius: 4px;
}
.main-nav {
    display: flex;
    gap: 20px;
}
.main-nav a {
    color: #4A4A4A;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak ikon & teks */
    transition: color 0.2s ease;
}
.main-nav a:hover {
    color: #000;
}
.main-nav a svg {
    stroke: currentColor;
    width: 20px;
    height: 20px;
}
.new-badge {
    background-color: #7b61ff;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 6px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.login-btn, .signup-btn {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.login-btn {
    color: #4A4A4A;
}
.login-btn:hover {
    background-color: #f5f5f5;
}
.signup-btn {
    background-color: #1a1a1a;
    color: #fff;
}
.signup-btn:hover {
    background-color: #333;
}

/* Form Pencarian di Header */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.search-form input[type="search"] {
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    background-color: #f8f9fa;
    width: 220px;
    height: 38px;
    padding: 6px 40px 6px 18px;
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.search-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.search-form .search-btn {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hamburger & Navigasi Mobile */
.hamburger { display: none; }
.mobile-search-wrapper { display: none; }

/* Layout Utama */
.main-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.content-area {
    flex: 1;
    min-width: 0;
}
.sidebar {
    flex-basis: 300px;
}

/* Konten Artikel */
.post-featured-image {
    width: 100%;
    height: auto; /* Biarkan tinggi menyesuaikan */
    max-height: 450px; /* Batasi tinggi maksimal agar tidak terlalu besar */
    object-fit: cover; /* Pastikan gambar menutupi area tanpa distorsi */
    border-radius: 8px;
    margin-bottom: 10px;
}

.post-title { font-size: 2.2em; margin-bottom: 10px; line-height: 1.2; }
.post-meta { color: #6c757d; font-size: 0.9em; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.post-meta a { font-weight: bold; }
.post-content { line-height: 1.7; }
.post-content p { margin-bottom: 1em; }
/* Aturan untuk gambar DI DALAM isi artikel */
.post-content img {
    max-width: 100%; /* Pastikan gambar tidak lebih lebar dari area konten */
    height: auto;    /* Biarkan tinggi menyesuaikan secara otomatis */
    border-radius: 5px;
    display: block; /* Mencegah spasi ekstra di bawah gambar */
   
}
.related-articles ul { list-style: square; }

/* Navigasi Postingan (Sebelumnya/Berikutnya) */
.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.post-navigation a { display: block; max-width: 48%; text-decoration: none; color: #34495e; }
.post-navigation .meta-nav { font-size: 0.9em; color: #777; display: block; margin-bottom: 5px; }
.post-navigation .post-title-nav { font-weight: bold; }

.nav-next { text-align: right; }
/* Sidebar Widgets */
.widget { margin-bottom: 30px; }
.widget-title { font-size: 1.2em; border-bottom: 2px solid #0073aa; padding-bottom: 5px; margin-bottom: 15px; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 10px; }
/* ======================================= */
/* ### WIDGET TULISAN TERBARU ### */
/* ======================================= */
.recent-posts-widget a { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 15px; /* Beri sedikit jarak lebih */
}

.recent-posts-widget img {
    width: 70px;  /* Atur lebar thumbnail secara spesifik */
    height: 70px; /* Atur tinggi thumbnail secara spesifik */
    object-fit: cover; /* Ini akan memotong gambar agar pas, bukan merusaknya */
    border-radius: 5px;
    flex-shrink: 0;
}

.recent-posts-widget span { 
    color: var(--text-color); 
    font-weight: 500; 
}

/* Video */
.video-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid #ddd; }
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; }

/* Slot Iklan */
.wadahiklan { background-color: #f9f9f9; border: 1px dashed #ccc; padding: 10px; margin-bottom: 20px; text-align: center; min-height: 90px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.wadahiklan::before { content: 'Slot Iklan'; color: #aaa; font-size: 0.9em; }
.wadahiklan:not(:empty)::before { display: none; }
.wadahiklan.sidebar-ad { min-height: 250px; }
.wadahiklan.in-article-ad { min-height: 250px; margin-top: 30px; margin-bottom: 30px; }


/* Footer Baru */
.new-footer { background-color: #f8f9fa; color: #000; padding: 60px 20px; border-top: 1px solid #e7e7e7; }
.footer-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.footer-about .footer-logo { font-size: 1.8em; font-weight: bold; color: #333; text-decoration: none; margin-bottom: 15px; display: inline-block; }
.footer-about p { margin-bottom: 20px; }
a.button-primary { background-color: #0073aa; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; }
/* Styling Ikon Sosial di Footer */
.social-icons a {
    display: inline-flex; /* Gunakan flexbox untuk centering */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #333;
    color: #fff;
    text-decoration: none; /* Hilangkan underline saat hover */
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: currentColor; /* Warna ikon akan mengikuti warna link (color) */
}
.footer-links h4, .footer-contact h4 { font-size: 1.1em; color: #333; margin-bottom: 15px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul a, .footer-contact p { color: #6c757d; text-decoration: none; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e7e7e7; font-size: 0.9em; }
.site-footer { display: none; } /* Sembunyikan footer lama */

/* ======================================= */
/* ### TEMA MOBILE & HAMBURGER ### */
/* ======================================= */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .header-right { display: none; }
    .hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 24px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 101; }
    .hamburger span { width: 24px; height: 2px; background-color: #333; border-radius: 10px; transition: all 0.3s linear; transform-origin: 1px; }
    .main-nav.active { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #fff; padding-top: 80px; align-items: center; gap: 30px; }
    .main-nav.active a { font-size: 24px; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg); }
    .main-nav.active .mobile-search-wrapper { display: block; margin-top: 20px; width: 80%; }
    .search-form-mobile { display: flex; width: 100%; }
    .search-form-mobile input { width: 100%; border: 2px solid #ccc; border-right: none; padding: 12px; font-size: 16px; border-radius: 8px 0 0 8px; }
    .search-form-mobile button { padding: 12px; background: #0073aa; color: white; border: 2px solid #0073aa; border-left: none; cursor: pointer; border-radius: 0 8px 8px 0; }
}

@media (max-width: 800px) {
    .main-content { flex-direction: column; }
    .content-area, .sidebar { width: 100%; flex-basis: 100%; }
    .container { padding: 15px; margin: 0; box-shadow: none; }
    .post-title { font-size: 1.6em; }
}

/* ======================================= */
/* ### Iklan Social Bar On-Scroll ### */
/* ======================================= */

#social-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    
    /* Sembunyikan di luar layar secara default */
    visibility: hidden;
    transform: translateY(100%);
    
    /* Efek transisi saat muncul */
    transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#social-bar-container.visible {
    visibility: visible;
    transform: translateY(0); /* Pindahkan ke posisi normal */
}
/* ======================================= */
/* ### Daftar Artikel & Paginasi ### */
/* ======================================= */

.article-list {
    display: grid;
    grid-template-columns: 1fr; /* Satu kolom untuk daftar */
    gap: 40px;
}
/* Aturan untuk Daftar Artikel di Homepage */
.article-item {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.article-item-image-wrapper {
    flex-shrink: 0;
}

.article-item-image {
    width: 250px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block; /* Mencegah spasi ekstra */
}
.article-item:last-child {
    border-bottom: none;
}

.article-item-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
    border: none;
    padding: 0;
    background: none;
}
.article-item-content h2 a {
    text-decoration: none;
    color: #333;
}
.article-item-content .article-meta {
    font-size: 0.9em;
    color: #000;
    margin-bottom: 15px;
}
.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination a, .pagination .current-page {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.pagination .current-page {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}
.pagination a:hover {
    background-color: #f5f5f5;
}
@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
    }
    .article-item-image {
        width: 100%;
        height: 200px;
    }
}
  /* ### BARU: CSS untuk Navigasi Postingan Visual ### */
        .post-navigation {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            margin-top: 50px;
            padding-top: 30px;
            border-top: 1px solid #eee;
        }
        .post-navigation .nav-link {
            flex-basis: 48%;
            text-decoration: none;
            color: #333;
            border: 1px solid #e7e7e7;
            border-radius: 8px;
            overflow: hidden;
            transition: box-shadow 0.3s ease, transform 0.3s ease;
        }
        .post-navigation .nav-link:hover {
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transform: translateY(-5px);
        }
        .post-navigation .nav-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
        }
        .post-navigation .nav-content {
            padding: 20px;
        }
        .post-navigation .meta-nav {
            font-size: 0.9em;
            color: #777;
            display: block;
            margin-bottom: 8px;
        }
        .post-navigation .post-title-nav {
            font-weight: bold;
            font-size: 1.1em;
            line-height: 1.4;
        }
        .nav-next {
            text-align: right;
        }

        /* Responsive untuk Navigasi */
        @media (max-width: 600px) {
            .post-navigation {
                flex-direction: column;
            }
            .post-navigation .nav-link {
                max-width: 100%;
            }
            .post-navigation .nav-image {
                height: 150px;
            }
        }
/* ======================================= */
/* ### Tombol Floating Share ### */
/* ======================================= */

.floating-share-buttons {
    position: fixed;
    /* ### PERUBAHAN DI SINI: Pindahkan ke bawah ### */
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    
    /* Tampilkan secara horizontal */
    display: flex;
    flex-direction: row;
    
    /* Styling tambahan agar terlihat seperti di mobile */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 4px S12px rgba(0,0,0,0.15);
    gap: 8px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.share-btn:hover {
    transform: scale(1.1);
    border-color: #ccc;
}

.share-btn svg {
    width: 22px;
    height: 22px;
}

.share-btn.facebook { color: #1877F2; }
.share-btn.twitter { color: #1DA1F2; }
.share-btn.tiktok { color: #000000; }
.share-btn.telegram { color: #2AABEE; }
.share-btn.whatsapp { color: #25D366; }
.share-btn.copy-link { color: #6c757d; }

/* Notifikasi "Tersalin!" */
.copy-feedback {
    display: none;
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* Tampilan di mobile, pindah ke bawah */
@media (max-width: 768px) {
    .floating-share-buttons {
        flex-direction: row;
        top: auto;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(255, 255, 255, 0.9);
        padding: 8px;
        border-radius: 30px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}