/* تنسيق أساسي للصفحة */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  direction: rtl;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;  /* لتوسيط المحتوى أفقياً */
  align-items: start;       /* لتوسيط رأسيًا: استخدم center إن أردت */
}

/* حاوية لكل المحتوى */
.container {
  max-width: 700px;
  width: 90%;
  background-color: #fff;
  padding: 30px;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* تنسيق النص */
h1, h2 {
  text-align: center;
  color: #005ba1;
}

ul {
  padding: 20px;
  list-style: disc;
  background-color: #f1f1f1;
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, textarea, select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  width: 100%;
}

button {
  background-color: #005ba1;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #003d73;
}

/* تنسيق الروابط */
nav {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav a {
  text-decoration: none;
  color: #005ba1;
  font-size: 16px;
}

nav a:hover {
  text-decoration: underline;
}

.service-box {
  background-color: #f1f1f1;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.service-box:hover {
  transform: scale(1.02);
  background-color: #e9f5ff;
}

.service-box h3 {
  margin-bottom: 10px;
  color: #005ba1;
}

.service-box p {
  font-size: 16px;
  line-height: 1.6;
}

#testimonial-box {
  text-align: center;
  font-style: italic;
  transition: opacity 0.5s ease-in-out;
}

#testimonial-text {
  font-size: 18px;
  line-height: 1.6;
}

/* 🎯 تحسين التجاوب مع الجوال */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin-top: 20px;
  }

  nav a {
    font-size: 14px;
  }

  h1, h2 {
    font-size: 20px;
  }

  input, textarea, select {
    font-size: 14px;
  }

  button {
    font-size: 15px;
    padding: 10px;
  }

  .service-box {
    padding: 15px;
  }

  #testimonial-text {
    font-size: 16px;
  }
}
