@charset "utf-8";
/* 
Theme Name: ID Mozaik Islam
Description: Portal Islam Indonesia - Clean, Modern, Elegant & Minimalist
*/

/* --- 1. LAYOUT UTAMA & GLOBAL --- */
body { 
    text-align: center; 
    background: #f4f6f8; 
    border: 0px; 
    margin-top: 0; 
    background-attachment: fixed; 
    font-family: Arial, Helvetica, sans-serif; 
}
#content { 
    width: 780px; 
    margin: 5px auto; 
    border: 1px solid #dcdcdc; 
    background: #FFF; 
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08); 
    border-radius: 10px; 
    overflow: hidden; 
    font-size: 12px; 
    line-height: 1; 
}
.clear { clear: both; }

/* --- 2. NAVIGASI --- */
#navigation { 
    border-top: 1px solid #143e23; 
    background: #1e5631; /* Hijau Tua Islami Elegan */
    text-align: left; 
    position: relative; 
}
.nav-toggle { 
    display: none; 
    width: 100%; 
    background: #143e23; 
    color: #fff; 
    border: none; 
    padding: 10px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    text-align: left; 
}
#nav-list { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
    display: flex; 
    flex-wrap: wrap; 
}
#nav-list li { 
    margin: 0; 
    border-right: 1px solid rgba(255, 255, 255, 0.15); 
}
#nav-list li a { 
    display: block; 
    padding: 10px 15px; 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 12px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: background 0.2s ease;
}
#nav-list li:hover { 
    background: #d4af37; /* Sentuhan Warna Emas Mozaik */
    color: #1e5631;
}

/* --- MENU BERANAK (DROPDOWN) --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    top: 100%;
    left: 0;
}
.dropdown-content a {
    background: #ffffff !important;
    color: #2c3e50 !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f1f1 !important;
    margin: 0 !important;
    font-weight: normal !important;
    border-right: none !important;
}
.dropdown-content a:last-child {
    border-bottom: none !important;
}
.dropdown-content a:hover {
    background-color: #f8f9fa !important;
    color: #1e5631 !important;
    font-weight: bold !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- 3. HEADER, SEARCH & BLOG DESCRIPTION --- */
#heading { 
    display: flex; 
    flex-direction: column; 
    padding: 15px 20px 12px 20px; 
    background: #ffffff; 
    box-sizing: border-box; 
    text-align: left; 
    gap: 12px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.head-info { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.site-logo { 
    display: flex; 
    align-items: center; 
}

.logo-image, .site-logo img { 
    height: auto !important; 
    max-height: 55px; 
    width: auto !important; 
    object-fit: contain;
    display: block; 
}

.mobile-search-btn {
    display: none;
    background: #f0f4f1;
    border: 1px solid #1e5631;
    color: #1e5631;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-search-btn:hover {
    background: #1e5631;
    color: #ffffff;
}

#header-search { 
    display: flex;
    align-items: center;
}

#header-search form { 
    display: flex; 
    gap: 5px; 
}

#header-search input[type="text"] { 
    padding: 7px 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    width: 160px; 
    outline: none;
    font-size: 12px;
}

#header-search input[type="text"]:focus {
    border-color: #1e5631;
}

#header-search button { 
    padding: 7px 15px; 
    background-color: #1e5631; 
    color: #ffffff; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold;
    font-size: 12px;
    transition: background 0.2s ease;
}

#header-search button:hover {
    background-color: #143e23;
}

/* Styling Deskripsi Blog */
#blog-description {
    width: 100%;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #1e5631;
    border-radius: 4px;
    box-sizing: border-box;
}

#blog-description p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    line-height: 1.5;
    color: #4a5568;
    margin: 0;
    font-weight: 500;
}

/* --- 4. BREADCRUMB (NAV-TAG) --- */
#nav-tag { 
    font-size: 13px; 
    color: #555; 
    margin-bottom: 20px; 
    padding: 10px 15px; 
    background-color: #f8f9fa; 
    border: 1px solid #e4e4e4; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    flex-wrap: nowrap; 
    overflow: hidden; 
    font-family: sans-serif; 
    gap: 8px; 
}
#nav-tag a { color: #1e5631; text-decoration: none; transition: all 0.3s ease; white-space: nowrap; font-weight: 500; }
#nav-tag .breadcrumb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 50px; color: #666; }
#nav-tag .separator { color: #bdc3c7; font-size: 11px; flex-shrink: 0; }
#nav-tag a:hover { color: #d4af37; text-decoration: underline; }

/* --- 5. KONTEN ARTIKEL (.posts-content) --- */
.posts-content { color: #2c3e50; text-align: left; }
.posts-content p { font-size: 15px; line-height: 1.8em; margin-bottom: 20px; color: #333; }
.posts-content a { color: #1e5631; text-decoration: underline; font-weight: 500; }
.posts-content a:hover { color: #d4af37; text-decoration: none; }
.posts-content img { border: none; margin: 10px 0; max-width: 100%; height: auto; border-radius: 4px; }

/* PERBAIKAN: Judul H2 & Link H2 yang Lebih Profesional */
.posts-content h2 { 
    font-size: 20px; 
    font-weight: 700; 
    color: #1e5631; 
    margin: 30px 0 15px 0; 
    padding-bottom: 8px; 
    border-bottom: 2px solid #e0e0e0; 
    line-height: 1.4;
}
.posts-content h2 a { 
    color: #1e5631 !important; 
    text-decoration: none !important; 
    transition: color 0.2s ease;
}
.posts-content h2 a:hover { 
    color: #d4af37 !important; 
    text-decoration: none !important;
}

.posts-content h3 { font-size: 18px; margin: 25px 0 15px 0; color: #143e23; border-left: 4px solid #1e5631; padding-left: 10px; }

/* Dafar UL/OL Artikel dengan Tanda Petik Dekoratif */
.posts-content ul, .posts-content ol { margin: 25px 0; padding: 20px 20px 20px 45px; border: 1px solid #e8e8e8; background: #fcfcfc; border-radius: 8px; position: relative; }
.posts-content ul::before, .posts-content ol::before { content: "“"; position: absolute; top: 5px; left: 10px; font-size: 40px; color: #d4af37; font-family: Georgia, serif; }
.posts-content li { margin-bottom: 10px; line-height: 1.7em; color: #444; }

/* FIX KONFLIK PLUGIN DAFTAR ISI (TABLE OF CONTENTS / TOC) */
.posts-content #toc_container, 
.posts-content .ez-toc-container, 
.posts-content .lwptoc,
.posts-content .table-of-contents,
.posts-content .toc {
    background: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
}

.posts-content #toc_container ul, .posts-content #toc_container ol,
.posts-content .ez-toc-container ul, .posts-content .ez-toc-container ol,
.posts-content .lwptoc ul, .posts-content .lwptoc ol,
.posts-content .table-of-contents ul, .posts-content .table-of-contents ol,
.posts-content .toc ul, .posts-content .toc ol {
    margin: 10px 0 0 0 !important;
    padding: 0 0 0 20px !important;
    border: none !important;
    background: transparent !important;
}

.posts-content #toc_container ul::before, .posts-content #toc_container ol::before,
.posts-content .ez-toc-container ul::before, .posts-content .ez-toc-container ol::before,
.posts-content .lwptoc ul::before, .posts-content .lwptoc ol::before,
.posts-content .table-of-contents ul::before, .posts-content .table-of-contents ol::before,
.posts-content .toc ul::before, .posts-content .toc ol::before {
    content: none !important; /* MENGHILANGKAN PETIK GANDA DARI TOC */
}

.posts-content #toc_container li,
.posts-content .ez-toc-container li,
.posts-content .lwptoc li,
.posts-content .table-of-contents li {
    margin-bottom: 6px !important;
    font-size: 13.5px !important;
}

.posts-content #toc_container a,
.posts-content .ez-toc-container a,
.posts-content .lwptoc a {
    color: #1e5631 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.posts-content #toc_container a:hover,
.posts-content .ez-toc-container a:hover,
.posts-content .lwptoc a:hover {
    color: #d4af37 !important;
    text-decoration: underline !important;
}

/* STYLING KONTANER IKLAN ADSENSE DI BAWAH JUDUL */
.ad-container-post {
    margin: 20px 0;
    padding: 10px;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 6px;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- 6. BOX KONTEN & JUDUL UTAMA --- */
.post-box-index { background: #ffffff; border: 1px solid #e1e1e1; padding: 25px; margin-bottom: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); overflow: hidden; }
.post-title-container { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.post-title-container h2 { font-size: 24px; font-weight: 700; color: #1e5631; margin: 0; line-height: 1.3; }

.dynamic-h1 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 28px; line-height: 1.2; margin: 30px 0 20px 0; display: block; overflow: hidden; color: #1e5631; border-left: 6px solid #d4af37; padding-left: 15px; }
.dynamic-h1 .icon-box { float: left; margin-right: 15px; margin-top: 5px; font-size: 40px; display: flex; align-items: center; justify-content: center; }
.dynamic-h1 .title-text { font-weight: 700; display: block; }

/* --- 7. SIDEBAR, FOOTER & RESET GLOBAL --- */
#left-content { float: left; width: 550px; background: #fff; border-right: 1px solid #eee; border-top: 1px solid #eee; text-align: left; padding: 15px 20px 20px 20px; box-sizing: border-box; }
#right-content { float: right; width: 230px; border-top: 1px solid #eee; border-left: none; text-align: left; padding: 15px 10px; box-sizing: border-box; overflow: hidden; }

h1, h2 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 26px; margin-top: 15px; color: #1e5631; }
.posts a, .widgets a { color: #1e5631; text-decoration: none; }
.posts a:hover, .widgets a:hover { color: #d4af37; }
.widgets ul { margin: 0px; padding: 0px; list-style: none; border-top: 1px solid #ddd; }
.widgets ul li { color: #2c3e50; padding: 8px 0px; line-height: 1.5em; border-bottom: 1px solid #eee; word-wrap: break-word; overflow-wrap: break-word; overflow: hidden; }

#footer { color: #555; width: 780px; margin: 0px auto; padding: 15px 0px; margin-top: 10px; text-align: center; font: 11px Arial, Helvetica, sans-serif; border-top: 1px solid #e0e0e0; }

/* --- 8. MOBILE RESPONSIVE --- */
@media only screen and (max-width: 768px) { 
  #content { width: 95%; margin: 10px auto; }
  #heading { padding: 12px; gap: 10px; }
  
  .header-top { align-items: center; }
  .mobile-search-btn { display: flex; }
  
  /* Logika Toggle Search ala NU Online */
  #header-search { 
      display: none; 
      width: 100%; 
      margin-top: 10px;
      animation: fadeIn 0.2s ease-in-out;
  }
  
  #header-search.open { 
      display: flex; 
  }
  
  #header-search form { 
      width: 100%; 
      justify-content: center; 
  }
  
  #header-search input[type="text"] { 
      width: 100%; 
  }

  #blog-description { text-align: center; border-left: none; border-top: 2px solid #1e5631; }
  #blog-description p { font-size: 11px; }
  
  #left-content { float: none; width: 100%; border-right: none !important; border-top: 1px solid #ccc; padding: 15px; }
  #right-content { float: none; width: 100%; padding: 15px; border-top: 1px solid #ddd; border-left: none; }
  
  .nav-toggle { display: block; }
  #nav-list { display: none; flex-direction: column; }
  
  .dropdown:hover .dropdown-content { display: none; }
  .dropdown.active .dropdown-content { display: block; }
  .dropdown-content {
      position: relative;
      box-shadow: none;
      border: none;
      border-radius: 0;
      width: 100%;
      background: #143e23;
      padding-left: 20px;
  }
  .dropdown-content a {
      background: #1e5631 !important;
      color: #fff !important;
      border-bottom: 1px solid #143e23 !important;
  }
  .dropdown-content a:hover {
      background: #d4af37 !important;
      color: #1e5631 !important;
  }
  
  .dynamic-h1 { font-size: 22px; padding-left: 10px; }
  .dynamic-h1 .icon-box { font-size: 30px; }
  .post-box-index { padding: 15px; }
  .post-title-container h2 { font-size: 20px; }
  #footer { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}