/* =========================================
   TEMA PORTAL BERITA ALMER - HEADER ONLY
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800;900&family=Outfit:wght@500;700;800&display=swap');

:root {
    --color-black: #121212;
    --color-white: #ffffff;
    --color-orange: #ff6b00;
    --color-yellow: #ffc107;
    --color-bg: #f4f4f5;
    --color-border: #e0e0e0;
    --color-text-muted: #71717a;
}

/* --- RESET DASAR --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- LAPIS 1: TOP BAR --- */
.top-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 13px;
    border-bottom: 2px solid var(--color-orange);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.date-now {
    color: #a1a1aa;
    font-weight: 500;
}

/* Modifikasi Area Sosial Media */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antar lingkaran ikon */
}

.top-bar-right a {
    color: #a1a1aa;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;  /* Membuat area klik presisi persegi */
    height: 28px;
    border-radius: 50%; /* Membuat background menjadi lingkaran penuh */
    background-color: transparent;
    transition: all 0.3s ease; /* Animasi halus untuk semua perubahan */
}

/* Efek saat disorot Mouse */
.top-bar-right a:hover {
    color: var(--color-black); /* Warna ikon berubah jadi hitam */
    background-color: var(--color-yellow); /* Background lingkaran jadi kuning */
    transform: translateY(-2px); /* Efek melayang/terangkat sedikit ke atas */
}

/* --- LAPIS 2: MAIN HEADER --- */
.main-header {
    background-color: var(--color-white);
    padding: 30px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--color-black);
    text-decoration: none;
    line-height: 1;
    letter-spacing: -1.5px;
}

.logo-accent {
    color: var(--color-orange);
}

.site-tagline {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.search-form {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: 30px;
    overflow: hidden;
    width: 300px;
}

.search-form:focus-within {
    border-color: var(--color-orange);
}

.search-form input {
    border: none;
    padding: 12px 20px;
    flex: 1;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.search-form button {
    background: var(--color-white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: var(--color-black);
}

/* --- LAPIS 3: NAVIGATION BAR --- */
.main-navigation {
    background-color: var(--color-black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 18px 25px;
    color: var(--color-white);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-orange);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

.nav-menu > li > a:hover {
    color: var(--color-yellow);
}

/* Ruang untuk Konten di bawahnya */
.main-content {
    margin-top: 40px;
    min-height: 50vh;
}

/* =========================================
   LAYOUT KOLOM GANDA (MAIN & SIDEBAR)
========================================= */
.content-wrapper {
    display: flex;
    gap: 40px; /* Jarak antara konten kiri dan sidebar kanan */
    align-items: flex-start;
}

.main-column {
    flex: 1; /* Konten kiri mengambil sisa ruang otomatis */
    min-width: 0;
}

.sidebar-column {
    width: 320px; /* Lebar sidebar dikunci di 320px */
    flex-shrink: 0;
    position: sticky; /* Membuat sidebar diam saat layar di-scroll */
    top: 90px; 
}

/* =========================================
   DESAIN WIDGET SIDEBAR MODERN
========================================= */
.sidebar-widget {
    background: var(--color-white);
    border-radius: 8px; /* Sudut tumpul modern */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Bayangan sangat halus */
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px); /* Melayang saat disorot */
}

.widget-title {
    background: transparent;
    color: var(--color-black);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    margin: 25px 25px 0 25px;
    padding: 0 0 0 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-left: 4px solid var(--color-orange); /* Garis aksen oren */
}

.widget-content {
    padding: 20px 25px 25px 25px;
}

/* List Berita (Gambar Mini & Teks) */
.sidebar-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-news-list li {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.sidebar-news-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.side-thumb {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-news-list li:hover .side-thumb img {
    transform: scale(1.1); /* Zoom lambat pada gambar */
}

.side-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    font-size: 20px;
}

.side-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-date {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 4px;
}

.side-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.side-title:hover {
    color: var(--color-orange);
}

/* List Kategori */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    margin-bottom: 10px;
}

.sidebar-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-black);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.sidebar-category-list a:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.cat-count {
    background: var(--color-yellow);
    color: var(--color-black);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 800;
}

/* =========================================
   FOOTER MODERN & PREMIUM
========================================= */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding-top: 60px;
    margin-top: 40px; /* Jarak antara konten atas dengan footer */
}

.footer-inner {
    display: grid;
    /* Membagi footer menjadi 4 kolom dengan proporsi yang disesuaikan */
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.footer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Ikon Sosial Media di Footer */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #222222;
    color: var(--color-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-orange);
    color: var(--color-black);
    transform: translateY(-3px);
}

/* Judul setiap kolom Footer */
.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--color-yellow);
    text-transform: uppercase;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

/* Garis kecil di bawah judul kolom */
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-orange);
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Tautan akan bergeser sedikit ke kanan saat disorot */
.footer-links a:hover {
    color: var(--color-orange);
    transform: translateX(5px); 
}

/* Informasi Kontak */
.footer-contact li {
    display: flex;
    gap: 15px;
    color: #a1a1aa;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--color-orange);
    font-size: 16px;
    margin-top: 3px;
}

/* Area Hak Cipta di dasar layar */
.footer-bottom {
    background: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222222;
}

.footer-bottom p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #71717a;
}