/*
Theme Name: Hanabilah Islamic Modern
Theme URI: https://hanabilah.id
Author: Hanabilah Digital Team
Author URI: https://hanabilah.id
Description: Tema WordPress minimalis, modern, dan bernuansa Islami elegan. Dirancang khusus untuk media dakwah, kajian fiqih, aqidah, dan khazanah keislaman dengan performa tinggi, struktur SEO optimal (JSON-LD Schema, OpenGraph, semantic HTML5), tipografi Arab Amiri yang indah, serta tata letak responsif yang nyaman dibaca.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hanabilah-islamic
Tags: islamic, minimalist, modern, clean, blog, news, responsive, custom-colors, custom-menu, featured-images, seo-ready
*/

:root {
  --primary: #0F3D2E;
  --primary-dark: #0A281E;
  --primary-light: #16533F;
  --primary-subtle: #E8F3EE;
  --gold: #C59B27;
  --gold-light: #DFBE5D;
  --gold-subtle: #FDF8EC;
  --gold-dark: #987515;
  --bg-page: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3F1EA;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-light: #E8E5DC;
  --border-subtle: #F0EDE4;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 61, 46, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 61, 46, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 61, 46, 0.12);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", "Scheherazade New", serif;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOPBAR & BISMILLAH
   ========================================================================== */
.site-topbar {
  background-color: var(--primary-dark);
  color: #E2E8F0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(197, 155, 39, 0.25);
  padding: 6px 0;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-bismillah {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  direction: rtl;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #CBD5E1;
}

.topbar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text .site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.brand-text .site-title a {
  color: var(--primary);
}

.brand-text .site-title a:hover {
  color: var(--gold);
}

.brand-text .site-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-menu > li.menu-item-has-children > a {
  padding-right: 14px;
}

.nav-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-menu > li.menu-item-has-children:hover > a::after,
.nav-menu > li.menu-item-has-children.is-active > a::after,
.nav-menu > li.menu-item-has-children.is-open > a::after {
  transform: rotate(-135deg);
  margin-top: 3px;
  opacity: 1;
  color: var(--gold);
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

/* ==========================================================================
   DROPDOWN SUB-MENU (DESKTOP)
   ========================================================================== */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 12px 28px rgba(15, 61, 46, 0.12), 0 3px 8px rgba(0, 0, 0, 0.05);
  padding: 8px 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  z-index: 1050;
  pointer-events: none;
}

/* Hover bridge: allows continuous mouse movement into the submenu */
.nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu,
.nav-menu > li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu .sub-menu li {
  list-style: none;
  margin: 3px 0;
}

.nav-menu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-menu .sub-menu li a::before {
  content: "•";
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-menu .sub-menu li a:hover,
.nav-menu .sub-menu li.current-menu-item a {
  color: var(--primary);
  background-color: var(--primary-subtle);
  padding-left: 18px;
}

.nav-menu .sub-menu li a:hover::before {
  opacity: 1;
  transform: scale(1.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle-btn {
  background: none;
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--primary);
  background-color: var(--gold-subtle);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
}

/* ==========================================================================
   HERO / BANNER SECTION
   ========================================================================== */
.hero-islamic {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, var(--primary-light) 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px 0;
  border-bottom: 3px solid var(--gold);
}

.hero-islamic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(197, 155, 39, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 155, 39, 0.18);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.hero-desc {
  font-size: 1.0625rem;
  color: #D1E5DE;
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-quote-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 190, 93, 0.25);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-top: 24px;
  text-align: center;
}

.hero-arabic-verse {
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  color: var(--gold-light);
  direction: rtl;
  line-height: 1.8;
  margin-bottom: 8px;
}

.hero-verse-meaning {
  font-size: 0.9375rem;
  color: #E2E8F0;
  font-style: italic;
  line-height: 1.5;
}

.hero-verse-source {
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==========================================================================
   MAIN CONTENT & LAYOUT
   ========================================================================== */
.site-main {
  flex: 1;
  padding: 48px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.layout-single-column {
  max-width: 820px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-subtle);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--gold);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  color: var(--gold);
}

/* Article Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.article-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.article-thumb-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--primary-subtle);
  overflow: hidden;
}

.article-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-link img {
  transform: scale(1.04);
}

.article-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-block;
  background-color: var(--primary-subtle);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.category-badge:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.article-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text-main);
}

.article-title a {
  color: var(--text-main);
}

.article-title a:hover {
  color: var(--primary);
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.read-more-link {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
}

.read-more-link:hover {
  color: var(--gold);
}

/* ==========================================================================
   SINGLE POST CONTENT
   ========================================================================== */
.post-header {
  margin-bottom: 32px;
  text-align: left;
}

.post-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.post-breadcrumbs a {
  color: var(--text-muted);
}

.post-breadcrumbs a:hover {
  color: var(--primary);
}

.post-breadcrumbs .separator {
  color: var(--text-light);
}

.post-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.author-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.post-featured-media {
  margin: 30px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Rich Islamic Article Styling */
.entry-content {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 38px 42px;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #2D3748;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border-subtle);
}

.entry-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 24px;
}

.entry-content li {
  margin-bottom: 0.5em;
}

/* Specialized Islamic Blocks */
.quran-box {
  background: linear-gradient(to right, #F9F7EF, #FBF9F2);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.quran-arabic {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
  color: var(--primary-dark);
  direction: rtl;
  text-align: right;
  line-height: 2.2;
  margin-bottom: 12px;
}

.quran-translation {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 8px;
}

.quran-source {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: right;
  letter-spacing: 0.3px;
}

.hadits-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 26px 0;
}

.hadits-arabic {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--primary);
  direction: rtl;
  text-align: right;
  line-height: 2;
  margin-bottom: 10px;
}

.hadits-translation {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.6;
}

.hadits-source {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 6px;
}

.faedah-box, .ulama-quote {
  background: #FFFDF9;
  border: 1px solid #EFE4CA;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
}

.faedah-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

blockquote {
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  background-color: var(--bg-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  margin: 24px 0;
  color: #334155;
}

/* Share & Post Tags */
.post-tags-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-badge {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tag-badge:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 24px;
}

.widget-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--primary);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--gold);
}

/* Search widget */
.search-form-islamic {
  display: flex;
  position: relative;
}

.search-input-field {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
  background: var(--bg-page);
}

.search-input-field:focus {
  border-color: var(--primary);
  background: #FFFFFF;
}

.search-submit-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}

.search-submit-btn:hover {
  color: var(--primary);
}

/* Recent Posts Widget */
.widget-recent-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.recent-post-num {
  width: 24px;
  height: 24px;
  background: var(--gold-subtle);
  color: var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.recent-post-info a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: block;
}

.recent-post-info a:hover {
  color: var(--primary);
}

.recent-post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Categories List */
.widget-categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-categories-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-main);
  background: var(--bg-page);
  font-weight: 600;
}

.widget-categories-list li a:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Hadits Of The Day Widget */
.widget-wisdom-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--gold);
}

.wisdom-title {
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.wisdom-arabic {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  direction: rtl;
  line-height: 1.8;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.wisdom-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #E2E8F0;
  font-style: italic;
}

.wisdom-narrator {
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-top: 8px;
  font-weight: 600;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pagination-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
}

.pagination-links .page-numbers.current {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.pagination-links .page-numbers:hover:not(.current) {
  border-color: var(--gold);
  color: var(--primary);
  background: var(--gold-subtle);
}

/* ==========================================================================
   COMMENTS SECTION
   ========================================================================== */
.comments-section {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 36px 40px;
  margin-top: 36px;
}

.comments-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.comment-item {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.comment-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author-box img {
  border-radius: 50%;
}

.comment-author-name {
  font-weight: 700;
  color: var(--text-main);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-content {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #CBD5E1;
  margin-top: auto;
  border-top: 3px solid var(--gold);
}

.footer-top {
  padding: 56px 0 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col-about .footer-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-col-about .footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94A3B8;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.875rem;
  color: #CBD5E1;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links li a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.8125rem;
  color: #94A3B8;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-closing-dua {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: var(--gold-light);
  direction: rtl;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--gold);
    padding: 16px 20px 24px 20px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 1000;
  }

  .site-nav.is-open {
    display: block;
    animation: slideDownMobile 0.25s ease-out;
  }

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

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    height: auto;
  }

  .nav-menu > li {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
  }

  .nav-menu > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
  }

  /* Mobile submenu styling */
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--gold);
    background: var(--bg-page);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 4px 0 10px 16px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: auto;
  }

  .nav-menu .sub-menu li {
    margin: 0;
  }

  .nav-menu .sub-menu li a {
    padding: 9px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
  }

  .entry-content {
    padding: 24px 20px;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .topbar-content {
    justify-content: center;
    text-align: center;
  }
}
