/*
 Theme Name: DalilE3lank Charity KW Child
 Theme URI: https://charity.kw.dalil-e3lank.com/
 Description: Child theme لموقع لجنة خيرية  على ثيم
 Author: Ehab Ahmed
 Template: twentytwentyfour
 Text Domain: tt4-dalile3lank-child
*/

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:root {
  --primary: #f58936;
  --primary-soft: #fff4ea;
  --dark: #111827;
  --text-muted: #6b7280;
  --bg-soft: #f3f4f6;
  --border-soft: #e5e7eb;
  --card-bg: #eff1f6;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --container-width: 1100px;
}

:root {
  --wp--preset--font-family--body: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wp--preset--font-family--heading: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  /* font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  background-color: #ffffff;
  color: var(--dark);
  font-size: 15px;          /* تحسين حجم القراءة للديسكتوب */
  line-height: 1.9;         /* سطر مريح مع خط Tajawal */
  margin: 0 0 0.8rem;
   -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
}

.content-body a,
.sidebar-list a,
.post-meta a {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #fff7ed 0, #ffffff 55%, #f9fafb 100%);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.home .site-main {
  max-width: 100%;
  padding-inline: 0;
}
/* إزالة البادنغ والعرض الضيق اللي الثيم بيضيفه حول المحتوى في الهوم */
.home .wp-site-blocks {
  padding-inline: 0;
}

.home main.site-main.wp-block-group {
  max-width: 100%;
  padding-inline: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
@media (max-width: 720px) {
  .site-header {
    position: inherit;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #fed7aa 35%, #f97316 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(248, 113, 22, 0.45);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 700;
  font-size: 22px;
  color: var(--dark);
 line-height: 1.3;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
  line-height: 1.3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-brand {
  padding-inline: 16px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
@media (max-width: 720px) {
  .header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .header-actions {
    /* margin-inline: auto; */
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(248, 113, 22, 0.35);
}

.btn-primary:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(248, 113, 22, 0.3);
}

.btn-ghost:hover {
  background: #fff7ed;
  border-color: var(--primary);
}

.btn-outline {
  background: #ffffff;
  color: var(--dark);
  border-color: var(--border-soft);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff7ed;
}

/* Hero */
.hero {
  padding: 32px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: #c05621;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.hero-title {
  font-size: clamp(23px, 23px, 23px);
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--dark);
  font-weight: 600;
}

.hero-subtitle {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 540px;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-bullet {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Search / donation card */
.search-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.search-header {
  margin-bottom: 12px;
}

.search-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.search-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.form-control {
  width: 100%;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
  outline: none;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(248, 113, 22, 0.35);
  background-color: #ffffff;
}

.search-btn {
  padding-inline: 16px;
  font-weight: 600;
}

.search-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Hero side card */
.hero-visual {
  position: relative;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.32);
  margin-top: 12px;
}

.hero-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.hero-card-text {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.mini-stat {
  flex: 1 1 90px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 8px 9px;
  border: 1px solid #e5e7eb;
}

.mini-stat-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.mini-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.hero-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hero-tag {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
}

/* Section */
.section {
  padding: 12px 0 32px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.section-link {
  font-size: 13px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Donations (services) cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s.ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
  border-color: var(--primary);
}

.service-image-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.service-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.service-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.service-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.service-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.service-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #4b5563;
}

.services-grid.latest-posts-grid {
  align-items: stretch;
}

.services-grid.latest-posts-grid .service-card {
  display: flex;
  flex-direction: column;
}

/* Programs / categories */
.categories-section {
  background: var(--bg-soft);
  border-radius: 22px;
  padding: 20px 18px 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 8px;
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.categories-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.categories-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 10px 10px 12px;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.category-thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.category-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.thumb-height210 {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.thumb-height210 img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 960px) {
  .thumb-height210 img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
}

@media (max-width: 720px) {
  .thumb-height210 img {
    width: 100%;
    height: 90px;
    object-fit: cover;
  }
}

/* عنوان البرنامج */
.category-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* اللينك داخل العنوان */
.category-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

/* تغيير لون العنوان عند الهوفر على الكارد أو اللينك */
.category-card:hover .category-name,
.category-card-link:hover {
  color: var(--primary);
}

/* وصف مختصر */
.category-count {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
      line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
 /* word-break: break-all; */
}

/* 🔹 استجابة للجوال: 2 أعمدة ثم عمود واحد */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.why-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 8px;
}

.why-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
}

.why-text {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Content sections (محتوى نصّي تحت الصفحة) */
.section-content {
  padding: 10px 0 30px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr);
  gap: 22px;
}

.content-layout1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.content-layout4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.content-main {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px 18px 22px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.content-main-header {
  margin-bottom: 12px;
}

.content-main-header .section-title {
  margin-bottom: 4px;
}

.content-main-header .section-subtitle {
  max-width: none;
}

.content-section {
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  margin-top: 12px;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
 /* word-break: break-all; */
}

.content-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 4px;
}

.content-heading {
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--dark);
}

.content-body p {
  color: #4b5563;
  margin: 0 0 8px;
}

.content-body p + p {
  margin-top: 2px;
}

.content-keywords {
  font-size: 12px;
  color: var(--text-muted);
}

.content-list {
  margin: 0;
  padding-right: 18px;
  list-style: none;
}

.content-list li {
  position: relative;
  padding-right: 16px;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}

.content-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 11px;
  color: var(--primary);
}

/* Aside cards */
.content-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: linear-gradient(135deg, #fff7ed, #fefce8);
  border-radius: 18px;
  padding: 14px 14px 15px;
  border: 1px solid rgba(248, 113, 22, 0.35);
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #4b5563;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.info-list-ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: info-counter;
  padding-right: 18px;
}

.info-list-ol li {
  counter-increment: info-counter;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

/* الرقم اللي هيطلع أوتوماتيك */
.info-list-ol li::before {
  content: counter(info-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .content-layout1 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .content-main {
    padding-inline: 12px;
  }
}

.content-layout2 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr);
  gap: 22px;
}

@media (max-width: 960px) {
  .content-layout2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */
.copyright {
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  width: 100%;
  margin-top: 10px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 16px 0 20px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-visual {
    order: 2;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 20px;
  }

  .search-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-btn {
    width: 100%;
  }

  .services-grid {
   
   grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .categories-section {
    padding-inline: 12px;
  }
}

/* Page hero (عنوان الصفحة + وصف) */
.page-hero {
  padding: 18px 0 22px;
}

.page-hero-inner {
  background: var(--primary-soft);
  border-radius: 20px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(248, 113, 22, 0.15);
}

.page-breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.page-breadcrumb a {
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  opacity: 0.6;
}

.dalil-breadcrumb-item {
  display: inline-block;
}

#dalil-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  direction: rtl;
  text-align: right;
}

.page-title {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--dark);
}

.page-lead {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 720px;
}

/* العمود الجانبي */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 14px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.sidebar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.sidebar-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
}

.sidebar-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.sidebar-label {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-value a {
  font-weight: 600;
}

.sidebar-note {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sidebar-actions .btn {
  font-size: 12px;
  padding-block: 7px;
}

/* Responsive */
@media (max-width: 720px) {
  .page-hero-inner {
    border-radius: 16px;
    padding-inline: 12px;
  }

  .page-title {
    font-size: 20px;
  }

  .content-main {
    padding-inline: 12px;
  }
}

/* =====================================================
   Archive (Category) Page Layout
   ===================================================== */

.archive-page {
  background: radial-gradient(circle at top left, #fff7ed 0, #ffffff 55%, #f9fafb 100%);
  padding-bottom: 32px;
}

.archive-hero {
  padding: 28px 0 18px;
}

.archive-hero-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft, #fff4ea);
  color: #c05621;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.archive-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #f58936);
}

.archive-title {
  font-size: clamp(26px, 4vw, 30px);
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--dark, #111827);
  font-weight: 800;
}

.archive-subtitle {
  margin: 0 0 8px;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
  max-width: 640px;
}

.archive-meta {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.archive-meta strong {
  font-weight: 600;
  color: var(--dark, #111827);
}

.archive-search-box {
  margin-top: 14px;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid var(--border-soft, #e5e7eb);
  padding: 8px 10px;
  max-width: 520px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.archive-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-search-form .form-control {
  flex: 1 1 auto;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
}

.archive-search-form .form-control:focus {
  border-color: var(--primary, #f58936);
  background: #f9fafb;
}

.archive-search-form .btn {
  padding-inline: 14px;
  font-size: 13px;
}

/* Posts grid */
.archive-posts-section {
  padding: 10px 0 24px;
}

.archive-posts-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

@media (max-width: 960px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .archive-hero-inner,
  .archive-posts-inner,
  .archive-tags-inner {
    padding-inline: 12px;
  }
  .posts-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  /*  grid-template-columns: minmax(0, 1fr); */
  }
}

.post-card {
  background: #ffffff;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-soft, #e5e7eb);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15, 23, 42, 0.06));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  border-color: var(--primary, #f58936);
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card-thumb {
  position: relative;
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-category {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.post-card-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.post-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--dark, #111827);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.post-card-meta {
  font-size: 11px;
  color: var(--text-muted, #6b7280);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.post-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #9ca3af;
  display: inline-block;
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-muted, #4b5563);
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted, #6b7280);
}

.post-card-more {
  font-weight: 600;
  color: var(--primary, #f58936);
}

.post-card-more:hover {
  text-decoration: underline;
}

.archive-empty {
  margin-top: 18px;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-soft, #e5e7eb);
  background: #f9fafb;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  margin-bottom: 20px;
}

/* Pagination */
.archive-pagination {
  margin-top: 24px;
  text-align: center;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0 3px;
  border-radius: 999px;
  border: 1px solid var(--border-soft, #e5e7eb);
  font-size: 13px;
  padding: 0 8px;
}

.archive-pagination .page-numbers.current {
  background: var(--primary, #f58936);
  border-color: var(--primary, #f58936);
  color: #ffffff;
  font-weight: 600;
}

.archive-pagination .page-numbers:hover:not(.current) {
  border-color: var(--primary, #f58936);
  background: #fff7ed;
  color: var(--primary, #f58936);
}

/* Tags section */
.archive-tags-section {
  padding: 8px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
}

.archive-tags-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

.archive-tags-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.archive-tags-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--dark, #111827);
}

.archive-tags-subtitle {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  margin: 2px 0 0;
  max-width: 480px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags-cloud a {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  transition: all 0.15s ease;
  text-decoration: none;
}

.tags-cloud a:hover {
  border-color: var(--primary, #f58936);
  background: #fff7ed;
  color: #9a3412;
}

.tags-cloud a.is-current-tag {
  background: var(--primary-soft, #fff4ea);
  border-color: var(--primary, #f58936);
  color: #9a3412;
  font-weight: 600;
}

/* ===========================
   Typography – body & paragraphs
   =========================== */

/* الفقرة الافتراضية في أي مكان */
p {
  font-size: 15px;         /* متناسق مع body */
  line-height: 1.9;
  color: #4b5563;
  margin: 0 0 0.8rem;
}

/* فقرات داخل بلوك المحتوى الأساسي للصفحات */
.content-body p {
  font-size: 15px;
  line-height: 1.9;
}

/* ===========================
   Single Post – Meta & Sidebar posts
   =========================== */

/* سطر البيانات تحت عنوان المقال */
.post-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.post-meta .meta-item {
  display: inline-flex;
  align-items: center;
}

.post-meta .meta-item strong {
  font-weight: 600;
  color: var(--dark);
}

.post-meta .meta-separator {
  opacity: 0.6;
}

/* قائمة "مقالات أخرى قد تهمك" في السايدبار */
.sidebar-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.sidebar-posts li {
  margin-bottom: 4px;
}

.sidebar-post-link {
  text-decoration: none;
  color: #4b5563;
}

.sidebar-post-link:hover {
  color: var(--primary);
}

/* أزرار صغيرة في السايدبار */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.content-aside-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.content-aside-grid textarea {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .content-aside-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===========================
   Post Tags – وسوم المقال
   =========================== */

.post-tags {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-tags .content-keywords {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
  background: #fff7ed;   /* قريب من ألوان hero-tag في التصميم */
  color: #9a3412 !important;
}

.post-tag:hover {
  background: #fed7aa;
}

/* ===== Sticky sidebar داخل صفحة المقال ===== */

/* نخلي الجريد يشد العناصر من فوق عشان الـ sticky يشتغل صح */
.single-post .section.section-content .content-layout2,
.page-template-page-dalil-default .section.section-content .content-layout2 {
  align-items: flex-start;
}

/* السايدبار الثابت */
.single-post .content-sidebar,
.page-template-page-dalil-default .content-sidebar {
  position: sticky;
  top: 110px; /* عدّلها حسب ارتفاع الهيدر عندك */
}

/* على الموبايل نخليه عادي مش sticky عشان التجربة تكون مريحة */
@media (max-width: 991.98px) {
  .single-post .section.section-content .content-layout2,
  .page-template-page-dalil-default .section.section-content .content-layout2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-post .content-sidebar,
  .page-template-page-dalil-default .content-sidebar {
    position: static;
    margin-top: 20px;
  }
}

/* ضبط كل الصور + الكابتشن داخل محتوى المقال */
.content-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* إلغاء الـ width الثابتة اللي بيحطها ووردبريس على الكابتشن */
.content-body figure.wp-caption {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: auto;
  margin-left: auto;
}

/* الصورة نفسها جوا الكابتشن تملى عرض المحتوى بدون تمدد غريب */
.content-body figure.wp-caption img {
  width: 100% !important;
  height: auto;
  display: block;
}

/* الكابتشن (النص تحت الصورة) */
.content-body .wp-caption-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

.post-thumb img {
  margin: 0 auto;
  margin-bottom: 20px;
}

.content-master-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 4px;
}

.content-master-section {
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  margin-top: 12px;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ==========================
   Blog Page – layout & cards
   ========================== */

/* جريد صفحة البلوج: مقالات + سايدبار */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: flex-start;
}

.blog-main,
.blog-sidebar {
  min-width: 0;
}

/* صورة المقال داخل كارت البلوج (مختلفة عن post-card-thumb) */
.post-image-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.post-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.post-card:hover .post-image {
  transform: scale(1.06);
}

/* شارة التصنيف فوق الصورة */
.post-category-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(17, 24, 39, 0.82);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

/* جسم الكارت في البلوج */
.post-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--dark);
}

.post-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* النقطة الصغيرة في سطر الميتا */
.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #9ca3af;
}

/* ==========================
   Blog Pagination (paginate_links type=list)
   ========================== */

.blog-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.blog-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-pagination a.page-numbers,
.blog-pagination span.page-numbers {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #374151;
}

.blog-pagination a.page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff7ed;
}

.blog-pagination span.page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(248, 113, 22, 0.35);
  cursor: default;
}

/* ==========================
   Tag cloud – سحابة وسوم البلوج (السايدبار)
   ========================== */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag-cloud a {
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  transition: all 0.15s ease;
  text-decoration: none;
}

.tag-cloud a:hover {
  border-color: var(--primary);
  background: #fff7ed;
  color: #9a3412;
}

/* ==========================
   Blog Search grid override
   ========================== */

/* اسم الكلاس ده مبني على Template Name: DalilE3lank Blog Page */
.page-template-dalile3lank-blog-page .search-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) auto;
}

/* ==========================
   Responsive – Blog layout
   ========================== */

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .blog-sidebar .sidebar-card {
    padding-inline: 10px;
  }
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===========================
   Heading H1 (main page titles)
   =========================== */
h1 {
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  color: #111827;
}

/* ===========================
   Headings H2–H6
   =========================== */

h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 8px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

/* مسافات مريحة داخل محتوى المقال / الصفحات */
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  line-height: 1.6;
  margin-top: 14px;
  margin-bottom: 6px;
}

/* H2 – عنوان رئيسي داخل المحتوى */
h2 {
  font-size: 19px;
}

/* H3 – عنوان فرعي */
h3 {
  font-size: 17px;
}

/* H4 – عنوان أصغر */
h4 {
  font-size: 16px;
}

/* H5 – عناوين خفيفة / ملاحظات */
h5 {
  font-size: 15px;
}

/* H6 – لابيل أو عنوان مساعد */
h6 {
  font-size: 14px;
}

/* تقليل فراغ + ضبط أحجام النص في الموبايل */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.85;
  }

  p {
    font-size: 14px;
    line-height: 1.85;
  }

  .content-body p {
    font-size: 14px;
    line-height: 1.9;
  }

  h1 {
    font-size: 20px;
  }

  .content-body h2,
  .content-body h3,
  .content-body h4,
  .content-body h5,
  .content-body h6 {
    margin-top: 10px;
    margin-bottom: 4px;
  }
}

/* ==========================
   Responsive
   ========================== */

@media (max-width: 960px) {
 .post-card-thumb img {
  
  height: 150px;
   
}
.post-excerpt {
   
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}
.post-meta {
  
  line-height: 1.35;
}
.service-desc {
   
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}
}
/* ========================== */
@media (max-width: 720px) {
 .post-card-thumb img {
   
  height: 150px;
  
}
.post-excerpt {
   
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}.post-meta {
  
  line-height: 1.35;
}
.service-desc {
   
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}
}

.wp-caption {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 20px !important;
   margin-top: 20px !important;
}
img {
  
  height: auto;
}
