/* 
   ==========================================================================
   JANNAH NEWS & MAGAZINE MODERN STYLE THEME - MAIN STYLESHEET
   ========================================================================== 
*/

/* Core CSS Reset & Base Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette - Jannah Inspired */
  --primary-rgb: 13, 124, 95;      /* #0D7C5F Emerald Green */
  --primary: rgb(var(--primary-rgb));
  --primary-dark: #064E3B;
  --primary-light: #EBF7F4;
  --accent: #D4A843;                /* Jannah Gold */
  --accent-rgb: 212, 168, 67;
  --bg-light: #F4F5F7;
  --bg-white: #FFFFFF;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --border-color: #E5E7EB;
  
  /* Layout Shadows & Radii */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --radius: 4px;
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Amiri', serif;
}

body.dark-mode {
  --primary-rgb: 16, 185, 129;     /* Emerald lighter */
  --primary: rgb(var(--primary-rgb));
  --primary-dark: #064E3B;
  --primary-light: #122C23;
  --accent: #FBBF24;
  --accent-rgb: 251, 191, 36;
  --bg-light: #0B0F19;
  --bg-white: #111827;
  --text-dark: #F3F4F6;
  --text-muted: #9CA3AF;
  --border-color: #1F2937;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 
   ==========================================================================
   1. JANNAH TOP NAV BAR
   ========================================================================== 
*/
.jannah-top-bar {
  background-color: #111827; /* Dark black bar */
  color: #9CA3AF;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 3px solid var(--primary);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-date i {
  margin-right: 5px;
}

.top-bar-socials a {
  color: #9CA3AF;
  margin-left: 12px;
  font-size: 0.9rem;
}

.top-bar-socials a:hover {
  color: #FFFFFF;
}

.top-bar-mode-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 5px;
  transition: color 0.2s ease;
}

.top-bar-mode-btn:hover {
  color: #FFFFFF;
}

/* 
   ==========================================================================
   2. MIDDLE LOGO AREA
   ========================================================================== 
*/
.jannah-logo-area {
  background-color: var(--bg-white);
  padding: 25px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo-area-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding .site-title a {
  display: flex;
  flex-direction: column;
}

.site-branding .site-title-arabic {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: var(--primary);
  line-height: 1;
  font-weight: normal;
}

.site-branding .site-title-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.header-ad-banner {
  max-width: 728px;
  width: 100%;
}

.header-banner-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* 
   ==========================================================================
   3. STICKY MAIN NAVIGATION
   ========================================================================== 
*/
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px; /* Slimmer Jannah style navbar */
}

/* Main Navigation Menu */
.menu-primary-container-desktop ul {
  display: flex;
  list-style: none;
}

.menu-primary-container-desktop li {
  position: relative;
}

.menu-primary-container-desktop a {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
  padding: 15px 18px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-primary-container-desktop a:hover,
.menu-primary-container-desktop .current-menu-item > a {
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

/* Menu Dropdowns */
.menu-primary-container-desktop li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  padding: 10px 0;
  min-width: 200px;
  display: none;
}

.menu-primary-container-desktop li:hover > ul {
  display: block;
}

.menu-primary-container-desktop li ul li {
  display: block;
}

.menu-primary-container-desktop li ul a {
  padding: 10px 20px;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.menu-primary-container-desktop li ul a:hover {
  background-color: var(--bg-light);
}

/* Nav Actions */
.header-action-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 15px;
  transition: color 0.2s ease;
}

.header-action-btn:hover {
  color: var(--primary);
}

/* Header Slide Search */
.header-search-bar {
  display: none;
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--primary);
  padding: 15px 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  box-shadow: var(--shadow-md);
}

.header-search-bar.active {
  display: block;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-form .search-field {
  width: 100%;
  padding: 10px 50px 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--bg-light);
  color: var(--text-dark);
  outline: none;
}

.search-form .search-submit {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* 
   ==========================================================================
   4. JANNAH NEWS TICKER
   ========================================================================== 
*/
.breaking-news-ticker-bar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  height: 44px;
}

.ticker-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.ticker-label {
  display: flex;
  align-items: center;
  background-color: #E03E2D; /* Red hot color */
  color: #FFFFFF;
  padding: 0 16px;
  height: 100%;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  position: relative;
  white-space: nowrap;
}

.ticker-pulse {
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.ticker-content-wrapper {
  flex-grow: 1;
  overflow: hidden;
  height: 100%;
  margin: 0 15px;
  position: relative;
}

.ticker-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-post-item {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.ticker-post-item.active {
  display: block;
}

.ticker-post-time {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.75rem;
}

.ticker-nav-buttons {
  display: flex;
  gap: 2px;
}

.ticker-nav-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 0.75rem;
}

.ticker-nav-btn:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 
   ==========================================================================
   5. JANNAH FEATURED GRID
   ========================================================================== 
*/
.jannah-hero-grid-section {
  padding-top: 25px;
}

.jannah-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px; /* Tight Jannah-style spacing */
  background-color: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-grid-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.hero-grid-main {
  aspect-ratio: auto;
  height: 520px;
}

.hero-grid-side-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 520px;
}

.hero-grid-sub {
  flex-grow: 1;
  height: calc(50% - 2px);
}

.hero-card-link-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.hero-card-link-wrapper:hover .hero-card-bg {
  transform: scale(1.06);
}

.hero-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}

.hero-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  z-index: 5;
  color: #FFFFFF;
}

.hero-grid-sub .hero-card-info {
  padding: 15px;
}

.hero-category-badge {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  text-transform: uppercase;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.hero-card-title {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  color: #FFFFFF;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-card-title.sub-title {
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
}

.hero-card-meta {
  display: flex;
  gap: 15px;
  font-size: 0.75rem;
  opacity: 0.85;
}

.hero-card-meta i {
  color: var(--accent);
}

/* 
   ==========================================================================
   6. MAGAZINE BLOCKS & CATEGORIES
   ========================================================================== 
*/
.jannah-block {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: var(--radius);
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}

.block-header {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.block-title {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
}

.title-accent-bar {
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  bottom: -2px;
  left: 0;
}

.title-accent-bar.orange { background-color: #E07A2F; }
.title-accent-bar.primary { background-color: var(--primary); }

/* Block Layout 1: Columns (Left Featured + Right List) */
.block-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.magazine-main-article .magazine-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 15px;
}

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

.magazine-main-article:hover .magazine-thumb img {
  transform: scale(1.04);
}

.magazine-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.magazine-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.magazine-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.magazine-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Right list */
.magazine-list-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.magazine-list-item {
  display: flex;
  gap: 15px;
  align-items: center;
}

.list-item-thumb {
  width: 100px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--border-color);
}

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

.magazine-list-item:hover .list-item-thumb img {
  transform: scale(1.05);
}

.list-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.list-item-title {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

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

/* Block Layout 2: Cards Grid */
.magazine-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.magazine-grid-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}

.card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

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

/* Block Layout 3: Row Feed */
.magazine-list-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-article-row {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.feed-article-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-thumb {
  width: 180px;
  aspect-ratio: 16/10;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-title {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.feed-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.feed-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 
   ==========================================================================
   7. SIDEBAR WIDGETS
   ========================================================================== 
*/
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

/* Tabbed widget inside sidebar */
.tabbed-widget-container {
  display: flex;
  flex-direction: column;
}

.tab-navs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.tab-nav-btn {
  flex-grow: 1;
  background: none;
  border: none;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 2px solid transparent;
}

.tab-nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 
   ==========================================================================
   8. FOOTER WIDGETS
   ========================================================================== 
*/
.site-footer {
  background-color: #111827;
  color: #9CA3AF;
  border-top: 4px solid var(--primary);
}

.footer-widgets {
  padding: 60px 0 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h3, .footer-column h4, .footer-widget-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.8rem !important;
  color: var(--accent) !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin-bottom: 15px !important;
}

.footer-social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.05);
  color: #9CA3AF;
  margin-right: 8px;
  transition: all 0.2s ease;
}

.footer-social-links a:hover {
  background-color: var(--primary);
  color: #fff;
}

.footer-bottom {
  background-color: #0B0F19;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* 
   ==========================================================================
   9. MOBILE & SINGLE POST BANNER FALLBACKS
   ========================================================================== 
*/
.site-content {
  padding-top: 30px;
  padding-bottom: 60px;
}

.content-area-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

/* Single Post layout */
.single-article-card {
  background-color: var(--bg-white);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.single-post-breadcrumbs {
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.single-post-entry-header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.single-post-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 15px 0;
  color: var(--text-dark);
}

.single-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.single-post-meta-row a {
  color: var(--text-muted);
}

.single-post-meta-row a:hover {
  color: var(--primary);
}

.single-post-meta-row span i {
  color: var(--accent);
  margin-right: 4px;
}

.post-featured-image {
  margin: 25px 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.single-post-entry-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

.single-post-entry-content p {
  margin: 0 0 1.5rem 0;
  text-align: justify;
}

.single-post-entry-content h2,
.single-post-entry-content h3,
.single-post-entry-content h4,
.single-post-entry-content h5,
.single-post-entry-content h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.4;
  margin: 35px 0 15px 0;
}

.single-post-entry-content h2 { font-size: 1.6rem; }
.single-post-entry-content h3 { font-size: 1.4rem; }
.single-post-entry-content h4 { font-size: 1.2rem; }

/* Lists indentation and styling */
.single-post-entry-content ul,
.single-post-entry-content ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.single-post-entry-content li {
  margin-bottom: 10px;
  line-height: 1.65;
  padding-left: 5px;
}

.single-post-entry-content ul {
  list-style-type: disc;
}

.single-post-entry-content ol {
  list-style-type: decimal;
}

.single-post-entry-content li strong {
  color: var(--text-dark);
}

.single-post-entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 25px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Kajian Row List (5 articles list) */
.kajian-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kajian-row-item {
  display: flex;
  gap: 20px;
  background-color: var(--bg-white);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kajian-row-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kajian-thumb {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
}

.kajian-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-thumbnail-box {
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}

.kajian-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  flex-grow: 1;
}

.kajian-cat-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.kajian-title {
  font-size: 1.15rem;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.kajian-title a {
  color: var(--text-dark);
}

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

.kajian-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  line-height: 1.5;
}

.kajian-readmore {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kajian-readmore:hover {
  color: var(--accent);
}

/* Category Blocks Grid */
.category-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.cat-block {
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
}

.cat-block.emerald {
  border-top-color: #10B981;
}

.cat-block.gold {
  border-top-color: #FBBF24;
}

.cat-block.blue {
  border-top-color: #3B82F6;
}

.cat-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-block.emerald .cat-block-title i {
  color: #10B981;
}

.cat-block.gold .cat-block-title i {
  color: #FBBF24;
}

.cat-block.blue .cat-block-title i {
  color: #3B82F6;
}

.cat-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.cat-post-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 65px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cat-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-thumbnail-box-xs {
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.cat-post-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  flex-grow: 1;
}

.cat-post-title {
  font-size: 0.88rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.cat-post-title a {
  color: var(--text-dark);
}

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

.cat-post-excerpt {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.cat-post-readmore {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

.cat-post-readmore:hover {
  color: var(--accent);
}

/* Homepage Middle Banner Widget Area styling */
.home-mid-banner-container {
  margin: 35px 0;
  width: 100%;
}

.home-mid-banner-fallback {
  background: linear-gradient(45deg, var(--primary-light), var(--bg-white));
  border: 1px dashed rgba(var(--primary-rgb), 0.3);
  padding: 25px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .home-mid-banner-fallback {
  background: linear-gradient(45deg, #122C23, #111827);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.mid-banner-accent {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

body.dark-mode .mid-banner-accent {
  color: #10B981;
}

/* Ensure widgets inside the mid banner are styled well */
.home-mid-banner-widget {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-mid-banner-widget img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Related Posts on Single Page */
.related-posts-section {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.related-posts-header-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.related-posts-header-title .title-accent-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--primary);
  border-radius: 2px;
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-post-row-item {
  display: flex;
  gap: 15px;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 10px;
  align-items: center;
}

.related-post-row-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-white);
}

.related-post-row-thumb {
  flex-shrink: 0;
  width: 90px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}

.related-post-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.related-post-row-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.related-post-row-title a {
  color: var(--text-dark);
}

.related-post-row-title a:hover {
  color: var(--primary);
}

.related-post-row-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Author Box Styling */
.author-box {
  display: flex;
  gap: 25px;
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.author-avatar {
  flex-shrink: 0;
}

.author-avatar img {
  border-radius: 50%;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.author-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.author-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.author-link:hover {
  color: var(--accent);
}

/* Comments Area Styling */
.comments-area {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 25px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
}

.comment-list li.comment {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin: 0;
}

.comment-list li.comment:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-body {
  display: flex;
  gap: 15px;
}

.comment-meta {
  flex-shrink: 0;
}

.comment-meta img.avatar {
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.comment-content {
  flex-grow: 1;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.comment-metadata {
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-metadata a {
  color: var(--text-muted);
}

.comment-author cite.fn {
  font-weight: 700;
  font-style: normal;
  color: var(--text-dark);
  margin-right: 10px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  outline: none;
  background-color: var(--bg-white);
}

.submit-btn-comment {
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.submit-btn-comment:hover {
  background-color: var(--primary-dark);
}

.submit-btn-comment:active {
  transform: scale(0.98);
}

/* Category Archive Pages (Halaman Kategori & Semua Arsip) */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.post-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-items: flex-start;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card-thumbnail {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.04);
}

.post-card-category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--primary);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.post-card-category-badge a {
  color: #FFFFFF !important;
}

.post-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.post-card-meta i {
  color: var(--accent);
  margin-right: 3px;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--text-dark);
}

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

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}

.post-card-footer {
  margin-top: 4px;
}

.post-card-readmore-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.post-card-readmore-btn:hover {
  color: var(--accent);
}
