/* ============================================================
   تسهيل للخدمات التعليمية | Tasheel — ورقة الأنماط الرئيسية
   الألوان الأساسية:
     الأزرق الأساسي:  #004AAD
     الأزرق الداكن:   #003380
     الكريمي:         #FAF6EE
     النص الداكن:     #1c2430
   ============================================================ */

:root {
  --blue: #004AAD;
  --blue-dark: #003380;
  --blue-light: #e8f0fb;
  --cream: #FAF6EE;
  --ink: #1c2430;
  --muted: #5b6675;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 40, 100, 0.10);
  --whatsapp: #25D366;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-size: 17px;
}

[dir="rtl"] body,
body[dir="rtl"] {
  font-family: "Segoe UI", Tahoma, "Traditional Arabic", Arial, sans-serif;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- تبديل اللغة: إظهار لغة واحدة فقط ---------- */
html[lang="ar"] .lang-en { display: none !important; }
html[lang="en"] .lang-ar { display: none !important; }

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #e6e9ef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 120px; display: block; }
.brand:hover { text-decoration: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { background: var(--blue-light); text-decoration: none; color: var(--blue); }
.main-nav a.active { color: var(--blue); background: var(--blue-light); }

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

.lang-switch {
  border: 1.5px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-switch:hover { background: var(--blue); color: var(--white); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(0,74,173,.35); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb85a; color: #fff; }
.btn-light { background: var(--white); color: var(--blue); }

/* ---------- قسم البطل (Hero) ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 60%, #1a66cc 100%);
  color: var(--white);
  padding: 72px 0 80px;
  text-align: center;
}
.hero .hero-logo {
  width: 200px;
  margin: 0 auto 18px;
  display: block;
}
.hero h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 14px; line-height: 1.4; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 28px;
  color: #dce9fb;
}
.hero .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- الأقسام العامة ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--cream); }
.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- بطاقات ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid #e8ecf3;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .icon { color: var(--blue); line-height: 1; }
.card .icon svg { width: 36px; height: 36px; }
.card h3 { font-size: 1.15rem; color: var(--blue-dark); }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card a.card-link { font-weight: 700; font-size: 15px; }

.section.alt .card { border-color: #efe6d2; }

/* ---------- صفحة الخدمات ---------- */
.service-block {
  background: var(--white);
  border: 1px solid #e8ecf3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  margin-bottom: 30px;
}
.service-block h2 { color: var(--blue-dark); font-size: 1.5rem; margin-bottom: 6px; }
.service-block .service-icon { color: var(--blue); margin-bottom: 8px; }
.service-block .service-icon svg { width: 42px; height: 42px; }
.service-block ul { padding-inline-start: 22px; color: var(--muted); margin: 10px 0 16px; }
.service-block ul li { margin-bottom: 6px; }

/* ---------- المدونة ---------- */
.post-card h3 { font-size: 1.2rem; }
.post-meta { color: var(--muted); font-size: 13.5px; }

article.post {
  max-width: 760px;
  margin: 0 auto;
}
article.post h1 { color: var(--blue-dark); font-size: 1.8rem; margin-bottom: 8px; line-height: 1.5; }
article.post h2 { color: var(--blue-dark); font-size: 1.3rem; margin: 28px 0 10px; }
article.post p { margin-bottom: 14px; color: #33404f; }
article.post ul, article.post ol { padding-inline-start: 24px; margin-bottom: 14px; color: #33404f; }
article.post ul li, article.post ol li { margin-bottom: 6px; }

/* ---------- نموذج التواصل ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: var(--cream);
  border: 1px solid #efe6d2;
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { color: var(--blue-dark); margin-bottom: 12px; }
.contact-methods { list-style: none; }
.contact-methods li { margin-bottom: 14px; font-size: 15.5px; }
.contact-methods .label { font-weight: 700; color: var(--ink); display: block; }

form.wa-form { display: flex; flex-direction: column; gap: 14px; }
form.wa-form label { font-weight: 700; font-size: 14.5px; }
form.wa-form input,
form.wa-form select,
form.wa-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d5dbe5;
  border-radius: 10px;
  font: inherit;
  background: var(--white);
}
form.wa-form textarea { min-height: 120px; resize: vertical; }
form.wa-form input:focus,
form.wa-form select:focus,
form.wa-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,74,173,.12);
}

/* ---------- شريط CTA ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--blue-dark), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 54px 0;
}
.cta-band h2 { font-size: 1.7rem; margin-bottom: 10px; }
.cta-band p { color: #dce9fb; margin-bottom: 22px; }

/* ---------- التذييل ---------- */
.site-footer {
  background: #0e1622;
  color: #c3ccd9;
  padding: 44px 0 20px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-bottom: 26px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { color: var(--white); margin-bottom: 10px; font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #c3ccd9; }
.site-footer a:hover { color: var(--white); }
.site-footer .footer-logo { width: 110px; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid #26303f;
  padding-top: 16px;
  text-align: center;
  color: #8a94a3;
  font-size: 13px;
}

/* ---------- زر واتساب العائم ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float:hover { text-decoration: none; transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- أدوات مساعدة ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 28px; }

/* ---------- الجوال أولاً ---------- */
@media (max-width: 640px) {
  .hero { padding: 52px 0 56px; }
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 46px 0; }
  .section-title { font-size: 1.5rem; }
  .header-inner { justify-content: center; }
  .main-nav ul { justify-content: center; }
}
