/* ============================================
   مدونة موجود — مقالات طويلة بهوية المنصة
   ============================================ */

.blog-page {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(69, 118, 103, 0.10), transparent 55%),
    radial-gradient(700px 360px at -10% 110%, rgba(185, 138, 83, 0.08), transparent 50%),
    var(--background-color);
}

.blog-page .landing-header {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding-left: max(16px, var(--safe-area-inset-left));
  padding-right: max(16px, var(--safe-area-inset-right));
  box-sizing: border-box;
}

.blog-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.blog-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.blog-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), #b98a53);
  transition: width 0.05s linear;
}

.blog-hero {
  margin: 28px 0 22px;
  text-align: center;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(69, 118, 103, 0.1);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.blog-hero h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
  margin: 0 0 12px;
}

.blog-hero__lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.88;
  line-height: 1.7;
  margin: 0 auto 16px;
  max-width: 640px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  color: var(--text-hint);
  font-size: 13px;
  font-weight: 600;
}

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

.blog-card {
  background: #fff;
  border: 1px solid rgba(69, 118, 103, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(69, 118, 103, 0.06);
  padding: 22px 20px;
  margin-bottom: 16px;
}

.blog-toc {
  padding: 0;
}

.blog-toc__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 12px;
}

.blog-toc ol {
  margin: 0;
  padding: 0 18px 0 0;
  list-style: arabic-indic;
}

.blog-toc li {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.blog-toc a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-toc a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.blog-article {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.9;
}

.blog-article > p {
  margin: 0 0 16px;
}

.blog-article h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 28px 0 12px;
  line-height: 1.45;
  scroll-margin-top: 88px;
}

.blog-article h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 20px 0 8px;
  scroll-margin-top: 88px;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 16px;
  padding: 0 20px 0 0;
}

.blog-article li {
  margin-bottom: 8px;
}

.blog-article a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

.blog-article a:hover {
  text-decoration: underline;
}

.blog-article strong {
  font-weight: 800;
}

.blog-callout {
  background: linear-gradient(135deg, rgba(69, 118, 103, 0.08), rgba(185, 138, 83, 0.08));
  border: 1px solid rgba(69, 118, 103, 0.16);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0;
}

.blog-callout p {
  margin: 0;
  font-weight: 600;
}

.blog-quote {
  margin: 18px 0;
  padding: 14px 16px;
  border-right: 4px solid #b98a53;
  background: #fffdf8;
  border-radius: 12px;
  font-weight: 600;
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(69, 118, 103, 0.12);
}

.blog-article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: #fff;
}

.blog-article th,
.blog-article td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid rgba(69, 118, 103, 0.1);
  font-size: 14px;
  font-weight: 600;
}

.blog-article th {
  background: rgba(69, 118, 103, 0.08);
  color: var(--primary-color);
  font-weight: 800;
}

.blog-article tr:last-child td {
  border-bottom: 0;
}

.blog-direct {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(69, 118, 103, 0.07);
  border: 1px solid rgba(69, 118, 103, 0.14);
  font-weight: 600;
}

.blog-direct strong {
  color: var(--primary-color);
}

.blog-check {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.blog-check li {
  position: relative;
  padding: 8px 12px 8px 8px;
  padding-right: 36px;
  margin-bottom: 8px;
  background: #f7faf9;
  border-radius: 12px;
  border: 1px solid rgba(69, 118, 103, 0.1);
}

.blog-check li::before {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 8px;
  color: var(--primary-color);
  font-weight: 800;
}

.blog-cta--soft {
  margin: 22px 0;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(69, 118, 103, 0.08);
  border: 1px solid rgba(69, 118, 103, 0.16);
  text-align: center;
}

.blog-cta--soft p {
  margin: 0 0 12px;
  font-weight: 600;
}

.blog-cta--soft a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(to bottom right, #8FAEA6, #4D8B7E);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.blog-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hint);
  margin: -8px 0 16px;
}

.blog-cta {
  margin-top: 28px;
  padding: 24px 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #3d6b5c, #457667 45%, #5a8a78);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(69, 118, 103, 0.28);
}

.blog-cta h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.blog-cta p {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.6;
}

.blog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-color);
  font-weight: 800;
  text-decoration: none;
}

.blog-cta__btn:hover {
  filter: brightness(0.98);
}

.blog-related {
  margin-top: 18px;
}

.blog-related h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text-primary);
}

/* فهرس المدونة */
.blog-index-hero {
  margin: 28px 0 22px;
  text-align: center;
}

.blog-index-hero h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.blog-index-hero p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0.9;
}

.blog-feature {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(69, 118, 103, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s;
}

.blog-feature:link,
.blog-feature:visited {
  color: inherit;
}

.blog-feature:hover {
  transform: translateY(-1px);
  border-color: rgba(69, 118, 103, 0.28);
  box-shadow: 0 8px 22px rgba(69, 118, 103, 0.10);
}

.blog-feature__banner {
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #4D8B7E, #457667);
  color: #fff;
}

.blog-feature__banner span {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
}

.blog-feature__banner h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}

.blog-feature__body {
  padding: 16px 18px 18px;
}

.blog-feature__body p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-primary);
}

.blog-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-hint);
  margin-bottom: 12px;
}

.blog-feature__meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(69, 118, 103, 0.08);
  color: var(--primary-color);
}

.blog-feature__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(69, 118, 103, 0.10);
  border: 1.2px solid rgba(69, 118, 103, 0.22);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 800;
}

.blog-empty-note {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hint);
}

.landing-blog-teaser {
  margin: 0;
}

.landing-blog-teaser__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(69, 118, 103, 0.14);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s ease;
}

.landing-blog-teaser__card:link,
.landing-blog-teaser__card:visited {
  color: inherit;
}

.landing-blog-teaser__card:hover {
  border-color: rgba(69, 118, 103, 0.28);
  box-shadow: 0 8px 22px rgba(69, 118, 103, 0.10);
  transform: translateY(-1px);
}

.landing-blog-teaser__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.landing-blog-teaser__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(69, 118, 103, 0.12);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 800;
}

.landing-blog-teaser__time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-hint);
}

.landing-blog-teaser__card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.45;
}

.landing-blog-teaser__card p {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-primary);
  opacity: 0.9;
}

.landing-blog-teaser__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(to bottom right, #8FAEA6, #4D8B7E);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@media (min-width: 768px) {
  .blog-card {
    padding: 28px 28px;
  }

  .blog-article {
    font-size: 16px;
  }
}
