/* ====== Reset بسيط ====== */
@import url("https://fonts.googleapis.com/css2?family=Beiruti:wght@200..900&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

/* ====== متغيرات ألوان (اختياري) ====== */
:root {
  --dark: #222;
}

/* ====== أساس الصفحة (ديسكتوب) ====== */
body {
  font-family: "Beiruti", sans-serif;
  font-size: 18px; /* أساس عام */
  color: var(--dark);
  max-width: 1100px; /* العرض المطلوب */
  margin: 0 auto; /* توسيط المحتوى */
  padding: 0 32px; /* حواف يمين/يسار */
  line-height: 1.4; /* أساس مريح */
}
#header {
  background: url("../images/bg-header-desktop.png") no-repeat center
    center/cover;
}
h2 {
  font-size: 35px;
}
h1 {
  font-size: 50px;
}
p {
  color: var(--darkbla);
  line-height: 1.4;
}
#header .header-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
  min-height: 70vh;
  display: flex;
  direction: rtl;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}
#section-1 .row img {
  margin-right: 4rem;
  transform: translateX(-30px);
}
#section-1 {
  margin-top: 0; /* تقدر تعدل الرقم حسب ما يناسبك */
}
/* صور مرنة */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* عناوين */
h1,
h2,
h3 {
  margin: 0 0 12px;
  text-align: center;
}

/* فقرات (ديسكتوب) – تبقي 30px كما طلبت */
p {
  font-size: 36px;
  line-height: 1.4; /* تقليل المسافة بين الأسطر */
  margin: 8px 0; /* تقليل المسافة بين الفقرات */
  text-align: center;
}

/* أقسام عامة (اختياري لتنظيم الهوامش العمودية) */
section {
  margin: 16px 0;
}
/* -------- ترتيب الصورة والنصوص -------- */
.row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-block: 40px;
}

.img-box img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.text-box {
  max-width: 500px;
}

.item {
  margin-bottom: 16px;
}

.item h3 {
  font-size: 26px;
  margin: 0 0 6px;
}

.item p {
  font-size: 26px;
  line-height: 1.6;
}

#footer {
  direction: rtl;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 60px;
  padding: 45px 0 35px;
  color: #222;
  font-size: 18px;
}

#footer .footer-logo img {
  height: 85px; /* كان صغير، الآن أوضح */
  width: auto;
  margin: 0 auto 18px;
  display: block;
}

#footer .footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}
#footer .footer-links a {
  color: #222;
  text-decoration: none;
  font-size: 20px; /* أكبر للوضوح */
  font-weight: 500;
}
#footer .footer-links a:hover {
  text-decoration: underline;
}

#footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 15px;
}
#footer .footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 19px;
  line-height: 1;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#footer .footer-social a svg {
  width: 22px;
  height: 22px;
}

#footer .footer-social a.wa {
  background: #25d366;
}
#footer .footer-social a.mail {
  background: #4a4a4a;
}

#footer .footer-social a:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

#footer .copy {
  margin: 25px 0 0;
  font-size: 17px;
  color: #555;
}
/* Footer */
#footer {
  text-align: center;
  padding: 40px 20px;
}

#footer .logo-footer img {
  width: 120px;
  margin-bottom: 15px;
}

#footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}

#footer .footer-links a {
  text-decoration: none;
  color: var(--dark-grayish-blue);
  font-size: 18px;
}

#footer .footer-social {
  margin: 15px 0;
}

#footer .btn-social {
  display: inline-block;
  margin: 0 8px;
  padding: 8px 20px;
  background: #eee;
  border-radius: 20px;
  font-size: 16px;
  text-decoration: none;
  color: #444;
}

#footer .copy {
  margin-top: 20px;
  font-size: 15px;
  color: #555;
}
#footer {
  text-align: center;
  padding: 20px 0 10px;
  margin-top: 30px;
}

#footer .logo-footer img {
  width: 140px; /* تكبير الشعار */
  margin-bottom: 10px;
}

#footer .footer-links a {
  font-size: 20px; /* تكبير الروابط */
}

#footer .copy {
  font-size: 16px;
  margin-top: 10px;
}
/*Main Start*/
/* تنسيق الصفحات الداخلية */
.page main {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

/* تنسيق العنوان داخل الصفحات الداخلية */
.page h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

/* تنسيق الفقرة */
.page p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

/* رابط العودة */
.page a {
  display: inline-block;
  margin-top: 25px;
  text-decoration: none;
  font-size: 16px;
  color: #0066cc;
}

.page a:hover {
  text-decoration: underline;
}
/* ===== About page: certificate image ===== */
.page .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.certificate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 10px auto 40; /* ← هذا هو السطر اللي بنعدله */
  text-align: center;
}

.certificate-box img {
  width: 100%;
  max-width: 900px; /* بدل 400 أو 520 */
  height: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  margin-top: 40px; /* رفع بسيط لأعلى */
}

.certificate-box figcaption {
  font-size: 0.95rem;
  color: #6b7280; /* رمادي لطيف */
}
footer a {
  text-decoration: none; /* منع الخط تماماً */
}

footer a:hover,
footer a:focus {
  text-decoration: none; /* حتى عند المرور أو الضغط */
}

/* لو تبغى الصورة أصغر على الشاشات الصغيرة */
@media (max-width: 768px) {
  .certificate-box {
    gap: 12px;
    margin: 16px auto 36px;
  }
  .certificate-box img {
    max-width: 420px;
  }
}

/*Main End*/
/* موبايل */
@media (max-width: 768px) {
  #footer {
    padding: 35px 0 28px;
    font-size: 16px;
  }

  #footer .footer-logo img {
    height: 75px;
    margin-bottom: 16px;
  }

  #footer .footer-links a {
    font-size: 18px;
  }

  #footer .footer-social a {
    font-size: 17px;
    padding: 8px 14px;
    gap: 8px;
  }

  #footer .footer-social a svg {
    width: 19px;
    height: 19px;
  }

  #footer .copy {
    margin-top: 18px;
    font-size: 15px;
  }
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}
.footer-links a {
  text-decoration: none;
  opacity: 0.9;
}
.footer-links a:hover {
  opacity: 1;
}
footer {
  background-color: #eef3f9; /* أزرق باهت */
}
/* ===== Privacy page ===== */
.policy {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}
.policy h1 {
  font-size: 34px;
  margin: 0 0 16px;
}
.policy h2 {
  font-size: 22px;
  margin: 24px 0 12px;
}
.policy p {
  margin: 0 0 12px;
}
.policy ul {
  margin: 0 0 12px;
  padding: 0 18px;
}
.policy .muted {
  color: #6b7280;
} /* رمادي لطيف */
.policy .small {
  font-size: 0.9rem;
}
.policy .back {
  text-decoration: underline;
}

.policy .toc {
  margin: 16px 0 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}
.policy .toc .h5 {
  font-size: 18px;
  margin: 0 0 8px;
}
.policy .toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 14px;
  padding: 0;
  list-style: none;
}
.policy .toc a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
  padding-bottom: 2px;
}
.policy .note {
  background: rgba(255, 235, 130, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
}
footer a {
  text-decoration: none !important;
}

footer a:focus,
footer a:active,
footer a:hover {
  text-decoration: none !important;
}
/* ===== Buttons (global) ===== */
.btn {
  display: block; /* يجعلها تأخذ صف كامل */
  width: 100%; /* Full width */
  text-align: center;
  padding: 14px 18px; /* هدف لمسي مريح (>44px ارتفاع) */
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  user-select: none;
  transition: transform 0.06s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* اللون الأساسي – واتساب */
.btn-primary {
  background: #22c55e; /* أخضر واضح */
  color: #fff;
}
.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* اللون الثانوي – البريد */
.btn-secondary {
  background: #111827; /* رمادي غامق عالي التباين */
  color: #fff;
}
.btn-secondary:hover {
  background: #0b1220;
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0);
}

/* حاوية الأزرار في صفحة الاتصال */
.btns {
  display: grid;
  grid-template-columns: 1fr; /* زرّان تحت بعض */
  gap: 12px;
  margin-top: 18px;
  max-width: 560px; /* عرض مريح على الديسكتوب */
  margin-inline: auto; /* توسيط الحاوية */
}

/* إمكانية ترك مسافات حول الأيقونات لو أضفت لاحقًا */
.btn > i {
  margin-inline-end: 8px;
}

/* تحسين الوصول */
.btn:focus-visible {
  outline: 3px solid #93c5fd; /* حلقة تركيز واضحة */
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .policy {
    padding: 18px;
  }
  .policy h1 {
    font-size: 28px;
  }
  .policy h2 {
    font-size: 20px;
  }
}

/* موبايل: تباعد خفيف */
@media (max-width: 768px) {
  #footer {
    padding: 22px 0 18px;
  }
  #footer .footer-links a {
    font-size: 16px;
  }
}

/* -------- للجوال -------- */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }

  .text-box {
    max-width: 100%;
    text-align: center;
    padding-inline: 12px;
  }

  .img-box img {
    max-width: 300px;
  }
}

/* ====== موبايل (≤ 768px) ====== */
@media (max-width: 768px) {
  body {
    padding: 0 16px; /* حواف أقل للموبايل */
    line-height: 1.6; /* مريح على الشاشات الصغيرة */
  }

  h1 {
    font-size: 28px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }

  /* فقرات (موبايل) */
  p {
    font-size: 18px; /* مريح للقراءة */
    line-height: 1.6; /* مساحة تنفس بسيطة */
    margin: 6px 0;
  }

  section {
    margin: 12px 0;
  }
}
/* ===== Footer: logo centered ===== */
#footer .footer-logo,
#footer .logo-footer {
  text-align: center;
  margin-bottom: 14px;
}
#footer .footer-logo img,
#footer .logo-footer img {
  display: inline-block;
  max-height: 90px; /* كبّر/صغّر حسب رغبتك */
  height: auto;
}

/* ===== Footer: actions/buttons clearer ===== */
#footer .footer-social,
#footer .footer-actions,
#footer .btns {
  display: grid;
  grid-template-columns: 1fr; /* زرّين تحت بعض (مريح للموبايل) */
  gap: 12px;
  max-width: 520px; /* عرض مناسب للديسكتوب */
  margin: 10px auto 14px; /* توسيط داخل الفوتر */
}

/* شكل الأزرار */
#footer .footer-social a,
#footer .footer-actions a,
#footer .btns .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  border: 0;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.06s ease, background-color 0.2s ease,
    opacity 0.2s ease;
}

/* ألوان واضحة */
#footer .footer-social a.wa,
#footer .btns .btn-primary {
  background: #22c55e; /* واتساب أخضر واضح */
  color: #fff;
}
#footer .footer-social a.mail,
#footer .btns .btn-secondary {
  background: #111827; /* رمادي غامق عالي التباين */
  color: #fff;
}

#footer .footer-social a:hover,
#footer .footer-actions a:hover,
#footer .btns .btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

/* الروابط السفلية إن وُجدت */
#footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0;
}
#footer .footer-links a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}
#footer .footer-links a:hover {
  text-decoration: underline;
}

/* خلفية خفيفة للفوتر لزيادة التباين */
#footer {
  background: #f5f7fa;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 26px 0 18px;
}

/* ديسكتوب: خياريًا نخلي الزرين جنب بعض */
@media (min-width: 992px) {
  #footer .footer-social,
  #footer .footer-actions,
  #footer .btns {
    grid-template-columns: 1fr 1fr; /* زرّين جنب بعض */
  }
}
#footer {
  background: #f1f1f1; /* أو لون يناسب التصميم */
  padding: 30px 0;
  text-align: center;
}
