/* 1. بطاقة البيانات للمقال والصفحة */
.af-data-card {
  background: var(--af-white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--af-shadow);
  border: 1px solid var(--af-border);
  margin: 1.5rem 0 2rem;
}
.af-dc-header { margin-bottom: 1.25rem; }
.af-dc-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--af-primary);
  margin-bottom: 0.5rem;
}
.af-dc-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--af-bg);
  color: var(--af-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}
.af-dc-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 680px) {
  .af-dc-media-grid { grid-template-columns: 1fr 1fr; }
}
.af-dc-featured {
  border-radius: 12px;
  overflow: hidden;
  background: var(--af-bg);
  aspect-ratio: 16/10;
}
.af-dc-featured img { width: 100%; height: 100%; object-fit: cover; }
.af-dc-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--af-secondary);
  aspect-ratio: 16/10;
}
.af-dc-slides {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}
.af-dc-slide { min-width: 100%; height: 100%; }
.af-dc-slide img { width: 100%; height: 100%; object-fit: cover; }
.af-dc-desc {
  color: var(--af-text);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.af-dc-features { list-style: none; margin-bottom: 1.5rem; }
.af-dc-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--af-primary);
  margin-bottom: 0.4rem;
}
.af-dc-features li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6, 118, 82, 0.12);
  color: var(--af-secondary);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.af-dc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.af-dc-actions .btn {
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  min-width: 200px;
}

/* 2. جدول المحتويات المدمج (H2 Only TOC) */
.af-toc {
  background: var(--af-white);
  border: 1px solid var(--af-border);
  border-right: 4px solid var(--af-secondary);
  border-radius: 10px;
  padding: 1.15rem 1.4rem;
  margin: 1.5rem 0;
}
.af-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 800;
  color: var(--af-primary);
  font-size: 1.05rem;
}
.af-toc-list {
  margin-top: 0.85rem;
  padding-right: 1.25rem;
  list-style: decimal;
}
.af-toc-list.is-collapsed { display: none; }
.af-toc-list li { margin-bottom: 0.4rem; }
.af-toc-list a { color: var(--af-text); font-weight: 600; font-size: 0.95rem; }
.af-toc-list a:hover { color: var(--af-secondary); }

/* 3. قالب صفحة الخدمة الفردية */
.srv-hero {
  position: relative;
  background: var(--af-primary);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 16px 16px;
}
.srv-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.srv-hero-pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 51, 101, 0.94) 0%, rgba(6, 118, 82, 0.85) 100%);
}
.srv-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem 2rem;
  width: 100%;
}
.srv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--af-bg);
  color: var(--af-primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.srv-hero-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  color: var(--af-white);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.srv-hero-place { color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; font-weight: 500; }

.srv-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}
@media (min-width: 820px) {
  .srv-main-grid { grid-template-columns: 1fr 310px; }
  .srv-sidebar { position: sticky; top: 90px; }
}

.srv-content-card {
  background: var(--af-white);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.75rem;
}
.section-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--af-secondary);
  margin-bottom: 0.5rem;
  display: block;
}
.entry-content h2 {
  font-size: 1.45rem;
  color: var(--af-primary);
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--af-bg);
}
.entry-content h3 { font-size: 1.2rem; color: var(--af-secondary); margin: 1.35rem 0 0.5rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin: 0.75rem 1.5rem 1.25rem 0; }

/* Slider */
.af-slider-wrap { margin-top: 1.5rem; }
.af-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--af-primary);
}
.af-slides { display: flex; transition: transform 0.4s ease; height: 100%; }
.af-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.af-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: rgba(18, 51, 101, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
}
.slider-btn.prev { right: 12px; }
.slider-btn.next { left: 12px; }
.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.75rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--af-border); cursor: pointer; transition: 0.2s; }
.dot.active { background: var(--af-secondary); width: 22px; border-radius: 4px; }

/* Sidebar Cards */
.cta-card, .meta-card {
  background: var(--af-white);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}
.cta-card h4 { font-size: 0.9rem; color: var(--af-primary); font-weight: 800; margin-bottom: 1rem; }
.meta-row { display: flex; align-items: center; gap: 12px; padding: 0.65rem 0; border-bottom: 1px solid var(--af-bg); }
.meta-row:last-child { border-bottom: none; }
.meta-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--af-bg);
  color: var(--af-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.meta-label { font-size: 0.78rem; color: var(--af-muted); }
.meta-val { font-size: 0.92rem; font-weight: 700; color: var(--af-text); }

/* Related & Blog Grid */
.related-section { padding: 2rem 0; }
.related-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.35rem; }
.service-card {
  background: var(--af-white);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); }
.sc-thumb { height: 185px; background: var(--af-primary); position: relative; overflow: hidden; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sc-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--af-secondary);
  color: var(--af-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 2;
}
.sc-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.sc-meta { font-size: 0.8rem; color: var(--af-muted); margin-bottom: 0.35rem; }
.sc-name { font-size: 1.12rem; font-weight: 800; color: var(--af-primary); margin-bottom: 0.45rem; line-height: 1.4; }
.sc-place { font-size: 0.85rem; color: var(--af-muted); margin-bottom: 0.75rem; }
.sc-link { font-size: 0.88rem; font-weight: 700; color: var(--af-secondary); margin-top: auto; }

/* 4. أقسام الصفحة الرئيسية */
.fp-section { padding: 4rem 0; }
.fp-section-alt { background: var(--af-white); }
.fp-sec-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.fp-sec-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); color: var(--af-primary); font-weight: 800; margin-bottom: 0.5rem; }
.fp-sec-head p { color: var(--af-muted); font-size: 1rem; }

.fp-hero {
  background: linear-gradient(135deg, var(--af-primary) 0%, #0d254a 65%, var(--af-secondary) 140%);
  color: var(--af-white);
  padding: 4.5rem 0;
}
.fp-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .fp-hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.fp-hero h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.25; margin: 0.75rem 0 1rem; }
.fp-hero p { font-size: 1.08rem; color: rgba(255,255,255,0.9); margin-bottom: 1.75rem; }
.fp-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.fp-hero-box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 16px; padding: 1.75rem; }
.fp-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.stat-box { background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 10px; text-align: center; }
.stat-box strong { display: block; font-size: 1.5rem; color: var(--af-bg); }
.stat-box span { font-size: 0.85rem; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.why-grid, .steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--af-white); border: 1px solid var(--af-border); border-radius: var(--af-radius); padding: 1.5rem; }
.fp-section-alt .feature-card { background: var(--af-bg); }
.step-num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--af-secondary); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 0.85rem; }

.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.city-card { background: var(--af-white); border: 1px solid var(--af-border); border-radius: 10px; padding: 1.1rem; text-align: center; font-weight: 800; color: var(--af-primary); display: block; }
.city-card:hover { background: var(--af-secondary); color: var(--af-white); border-color: var(--af-secondary); }

/* FAQ Accordion */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--af-white); border: 1px solid var(--af-border); border-radius: 10px; margin-bottom: 0.85rem; overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.35rem; font-weight: 800; color: var(--af-primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--af-secondary); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.35rem 1.15rem; color: var(--af-text); border-top: 1px solid var(--af-bg); padding-top: 0.85rem; }

/* Contact Box */
.contact-banner {
  background: var(--af-secondary);
  color: var(--af-white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
