/*
Theme Name: Tema Kantor Kementerian Haji dan Umrah Banyumas
Theme URI: https://haji.banyumas.go.id
Author: Tim TI Kantor Kementerian Haji dan Umrah Kabupaten Banyumas
Description: Tema khusus responsive untuk Kantor Kementerian Haji dan Umrah Kabupaten Banyumas.
Version: 2.0.0
Text Domain: kemenhaji-banyumas
*/

/* Reset & Basic Styling */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #333; line-height: 1.6; background-color: #f8f9fa; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 1. Header Atas */
.header-top { background: goldenrod; color: #fff; font-size: 13px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* 2. Header Utama */
.header-main { background: #fff; padding: 15px 0; border-bottom: 1px solid #eee; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.brand-box { display: flex; align-items: center; gap: 15px; }
.brand-logo { max-width: 75px !important; width: 75px; height: auto; }
.brand-title { font-size: 20px; font-weight: 700; color: #044b2a; line-height: 1.2; }
.brand-slogan { font-size: 13px; color: #666; margin-top: 3px; }
.banner-box { display: flex; gap: 10px; }
.banner-box img { max-height: 60px; width: auto; border-radius: 4px; }

/* 3. Header Bawah (Running Text) */
.header-bottom { background: #fff3cd; border-top: 1px solid #ffeeba; border-bottom: 2px solid #d4af37; padding: 8px 0; overflow: hidden; }
.marquee-text { display: inline-block; white-space: nowrap; animation: marquee 25s linear infinite; font-size: 13px; font-weight: 600; color: #856404; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* 4. Navbar & Dropdown Menu */
.navbar { background: goldenrod; position: relative; z-index: 1000; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.main-menu { list-style: none; display: flex; flex-wrap: wrap; }
.main-menu li { position: relative; }
.main-menu a { display: block; padding: 14px 18px; color: #fff; font-size: 14px; font-weight: 600; transition: 0.3s; }
.main-menu a:hover { background: aqua; color: black; }

/* Dropdown Level 1 (Submenu) & Level 2 (Sub-Submenu) */
.main-menu ul { display: none; position: absolute; top: 100%; left: 0; background: goldenrod; min-width: 220px; list-style: none; box-shadow: 0 4px 10px rgba(0,0,0,0.15); border-top: 3px solid #d4af37; }
.main-menu li:hover > ul { display: block; background: goldenrod; }
.main-menu ul ul { top: 0; left: 100%; border-top: none; border-left: 3px solid black; }
.main-menu ul a { padding: 10px 15px; font-size: 13px; border-bottom: 1px solid black; }

.search-box form { display: flex; }
.search-box input { padding: 6px 10px; border: none; border-radius: 3px 0 0 3px; outline: none; font-size: 13px; }
.search-box button{ padding: 6px 12px; background: #d4af37; border: none; color: #fff; font-weight: bold; border-radius: 0 3px 3px 0; cursor: pointer; }
.search-box button:hover{ padding: 6px 12px; background: aqua; border: none; color: black; font-weight: bold; border-radius: 0 3px 3px 0; cursor: pointer; }

/* Layout Content (5-7) */
.main-content-area { padding: 30px 0; }
.grid-layout { display: flex; gap: 25px; flex-wrap: wrap; }
.primary-content { flex: 1 1 68%; min-width: 300px; }
.sidebar-content { flex: 1 1 28%; min-width: 250px; background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Card Berita */
.post-card { background: #fff; border-radius: 6px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.post-card img { width: 100%; max-height: 350px; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-card-title { font-size: 20px; color: #044b2a; margin-bottom: 10px; }

/* Footer (9-11) */
.footer-top { background: #e9ecef; padding: 25px 0; border-top: 3px solid #d4af37; }
.footer-main { background: #111; color: #ccc; padding: 40px 0 20px; font-size: 14px; }
.footer-grid { display: flex; gap: 25px; flex-wrap: wrap; }
.footer-col { flex: 1 1 30%; min-width: 250px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid #044b2a; display: inline-block; padding-bottom: 5px; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: #ccc; display: block; margin-bottom: 8px; transition: 0.2s; }
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }

.footer-bottom { background: goldenrod; color: #fff; text-align: center; padding: 15px 0; font-size: 13px; }

/* Responsif HP */
@media (max-width: 768px) {
    .header-top .container, .header-main .container { flex-direction: column; text-align: center; }
    .brand-box { flex-direction: column; }
    .grid-layout { flex-direction: column; }
    .main-menu { flex-direction: column; width: 100%; }
    .main-menu ul, .main-menu ul ul { position: static; width: 100%; }
}

/* ==========================================
   SUPPORT GUTENBERG COLOR & BLOCK LAYOUT
   ========================================== */

/* Memaksa elemen Gutenberg menjaga warna & alignment */
.entry-content .has-background {
    padding: 15px 20px;
    border-radius: 4px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Mengatur Kolom Gutenberg agar Sejajar */
.wp-block-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wp-block-column {
    flex: 1;
    min-width: 280px;
}

/* Mengatur Alignment Gambar & Teks */
.aligncenter { text-align: center; margin: 0 auto; }
.alignright { float: right; margin-left: 20px; }
.alignleft { float: left; margin-right: 20px; }