/* --- PENGATURAN WARNA UTAMA --- */
:root {
    --primary-color: #F38020; /* Oranye Sheetflare */
    --primary-hover: #d97017;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a; /* Warna Gelap Premium untuk Header/Footer */
}

/* Reset & Basic Setup */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; background: #fff; color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.clr { clear: both; }

/* Global Font untuk Judul */
.menu-utama > li > a, .news-feed-judul, .news-feed-judul-block, 
.kategori, .judul-sidebar-right, .featured-title {
    font-family: 'Montserrat', sans-serif;
}

/* --- HEADER (PERBAIKAN BACKGROUND UNTUK LOGO PUTIH & STICKY) --- */
.main-header { 
    margin-bottom: 20px; 
    position: sticky; /* Membuat header menempel */
    top: 0; /* Menempel tepat di ujung atas layar */
    z-index: 1000; /* Memastikan header selalu berada di atas konten lain saat di-scroll */
}

/* Background menjadi Gelap agar logo transparan putih terlihat jelas */
.logo-bar { background: var(--bg-dark); border-bottom: 3px solid var(--primary-color); } 
.logo-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }

.search-form { display: flex; }
/* Sedikit perbaikan bentuk kolom pencarian agar cocok di background gelap */
.search-field { padding: 8px 12px; border: none; border-radius: 4px 0 0 4px; outline: none; width: 250px; background: #fff; }
.search-field:focus { box-shadow: 0 0 5px var(--primary-color); }
.search-submit { background: var(--primary-color); color: var(--text-light); border: none; padding: 8px 15px; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: bold; }
.search-submit:hover { background: var(--primary-hover); }

/* --- NAVIGASI --- */
.fluid-nav { background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.menu-utama { list-style: none; display: flex; }
.menu-utama > li > a { display: block; padding: 15px 20px; color: var(--text-dark); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.menu-utama > li > a:hover, 
.menu-utama > li > a.active { background-color: var(--primary-color); color: var(--text-light); }
/* --- GAYA IKON SOSIAL MEDIA & WRAPPER KANAN --- */
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 25px; /* Jarak antara ikon sosmed dan form pencarian */
}

.social-icons { 
    display: flex; 
    gap: 10px; 
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1); /* Warna abu transparan agar menyatu dengan background gelap */
    border-radius: 50%;
    color: var(--text-light); /* Warna putih untuk icon SVG */
    transition: all 0.3s ease;
}

.social-icons a svg {
    width: 18px;
    height: 18px;
}

.social-icons a:hover {
    background: var(--primary-color); /* Berubah oranye saat di-hover */
    color: var(--text-light);
    transform: translateY(-3px); /* Efek melayang sedikit ke atas */
}
/* --- LAYOUT UTAMA --- */
#content-wrap { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 20px; margin-bottom: 50px; }
#content-left-wrap { flex: 0 0 calc(70% - 15px); max-width: calc(70% - 15px); }
#sidebar-right { flex: 0 0 calc(30% - 15px); max-width: calc(30% - 15px); }

/* --- GAYA GAMBAR BESAR UTAMA (HERO) --- */
.featured-news-box { 
    position: relative; 
    width: 100%; 
    height: 400px; 
    overflow: hidden; 
    border-radius: 8px; 
    margin-bottom: 30px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.featured-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.featured-news-box:hover .featured-img { transform: scale(1.03); }

/* Overlay Gradasi agar Teks Kelihatan */
.featured-overlay { 
    position: absolute; 
    bottom: 0; left: 0; width: 100%; 
    padding: 30px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); 
    color: var(--text-light); 
}
.featured-kategori { background: var(--primary-color); padding: 3px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 3px; display: inline-block; margin-bottom: 10px;}
.featured-title { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.featured-title a:hover { color: #eee; }
.featured-date { font-size: 12px; color: #ccc; }

/* --- NEWS FEED (LIST REGULER) --- */
.news-feed-judul-block { border-bottom: 2px solid var(--primary-color); margin-bottom: 20px; }
.news-feed-judul-block span { background: var(--primary-color); color: var(--text-light); padding: 8px 15px; display: inline-block; font-weight: 700; font-size: 14px; }

.news-feed-list { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #eee; }
.news-feed-link { display: flex; gap: 20px; align-items: flex-start; }
.news-feed-link:hover .news-feed-judul { color: var(--primary-color); }

figure { flex: 0 0 270px; margin: 0; overflow: hidden; border-radius: 4px; }
.newsfeed-image { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform 0.3s; }
.news-feed-link:hover .newsfeed-image { transform: scale(1.05); }

.news-feed-text-block { flex: 1; }
.kategori { color: var(--primary-color); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.news-feed-judul { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: #000; }
.tanggal { font-size: 12px; color: #888; margin-bottom: 10px; }
.the-excerpt { font-size: 14px; color: #555; line-height: 1.6; }

/* --- SIDEBAR --- */
.judul-sidebar-right { font-size: 16px; border-left: 4px solid var(--primary-color); padding-left: 10px; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; }
.recent-post-widget { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px dashed #ddd; padding-bottom: 15px; }
.recent-post-widget img { width: 100px; height: 75px; object-fit: cover; border-radius: 4px; }
.recent-post-widget a { font-size: 14px; font-weight: 600; font-family: 'Montserrat', sans-serif; line-height: 1.4; color: #222; }
.recent-post-widget a:hover { color: var(--primary-color); }

/* --- FOOTER PROFESIONAL --- */
.main-footer {
    background-color: var(--bg-dark);
    color: #cccccc;
    border-top: 4px solid var(--primary-color);
    padding-top: 50px; /* Jarak luas di bagian atas */
}

/* Tata letak 4 kolom pakai Grid */
.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 30px;
    margin-bottom: 40px;
}

/* Judul setiap kolom */
.footer-col h3 {
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

/* Garis oranye kecil di bawah judul kolom */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Kolom 1 (Tentang) */
.footer-logo { height: 45px; margin-bottom: 15px; display: block; }
.about-col p { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: flex; justify-content: center; align-items: center;
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.05); /* Sedikit transparan */
    border-radius: 50%; color: var(--text-light);
    transition: all 0.3s ease;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { background: var(--primary-color); transform: translateY(-3px); }

/* Kolom 2 & 3 (Link Tautan) */
.link-col ul { list-style: none; padding: 0; margin: 0; }
.link-col ul li { margin-bottom: 10px; }
.link-col ul li a {
    color: #aaaaaa;
    font-size: 14px;
    transition: color 0.3s;
}
.link-col ul li a:hover { color: var(--primary-color); padding-left: 5px; /* Efek geser dikit saat di-hover */ }

/* Kolom 4 (Newsletter) */
.newsletter-col p { font-size: 14px; margin-bottom: 15px; }
.footer-form { display: flex; flex-direction: column; gap: 10px; }
.footer-form input {
    padding: 10px 15px; border: none; border-radius: 4px; outline: none;
    background: rgba(255,255,255,0.1); color: #fff;
}
.footer-form input:focus { background: rgba(255,255,255,0.2); }
.footer-form button {
    padding: 10px 15px; border: none; border-radius: 4px;
    background: var(--primary-color); color: #fff; font-weight: bold;
    cursor: pointer; transition: background 0.3s;
}
.footer-form button:hover { background: var(--primary-hover); }

/* Hak Cipta Paling Bawah */
.footer-bottom {
    background-color: #111111; /* Lebih gelap dari background footer */
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888888;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    /* Mengatur ulang Header Mobile: Logo Kiri, Sosmed Kanan, Search di bawah */
    .logo-bar-inner { 
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Mendorong Logo ke kiri, Sosmed ke kanan */
        align-items: center;
        padding: 12px 15px; 
    }
    /* --- HALAMAN BACA BERITA (SINGLE POST) --- */
.single-post-wrapper {
    background: #fff;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.single-post-kategori {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}
.single-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}
.single-post-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}
.single-post-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
}
.single-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
/* Tombol Kembali */
.btn-back {
    display: inline-block;
    background: #eee;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: bold;
}
.btn-back:hover { background: var(--primary-color); color: #fff; }
    /* Hilangkan sifat pembungkus 'header-right' agar isinya bisa kita atur sejajar dengan logo */
    .header-right { 
        display: contents; 
    }

    /* 1. Logo di Kiri Atas */
    #logo {
        order: 1;
    }

    /* Perkecil logo sedikit di HP agar tidak kebesaran */
    #logo img {
        height: 40px; 
    }

    /* 2. Sosmed di Kanan Atas */
    .social-icons { 
        order: 2;
        gap: 8px; /* Jarak antar ikon dirapatkan */
    }
    
    .social-icons a {
        width: 32px; /* Ikon diperkecil sedikit agar pas di HP */
        height: 32px;
    }

    /* 3. Form Pencarian Turun ke Baris Bawah (Full Width) */
    .search-form { 
        order: 3;
        width: 100%; 
        margin-top: 15px; /* Jarak dari baris logo & sosmed */
        display: flex;
        flex-direction: row;
    }
    
    .search-field { 
        flex: 1; /* Otomatis memenuhi lebar yang tersedia */
        width: auto; 
        margin-bottom: 0; 
        border-radius: 4px 0 0 4px;
    }

    .search-submit { 
        border-radius: 0 4px 4px 0;
        width: auto; 
    }

    /* --- Pengaturan Menu dan Konten Lainnya --- */
    .menu-utama { overflow-x: auto; white-space: nowrap; }
    #content-wrap { flex-direction: column; }
    #content-left-wrap, #sidebar-right { flex: 0 0 100%; max-width: 100%; }
    .featured-news-box { height: 250px; }
    .featured-title { font-size: 20px; }
    .news-feed-link { flex-direction: column; gap: 15px; }
    figure { flex: 0 0 auto; width: 100%; }
    .newsfeed-image { height: auto; aspect-ratio: 16/9; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}
