/* ==============================
   Hero Section
   ============================== */
.hero-section {
  position: relative;
  width: 95%;
  max-width: 1200px;
  margin: 20px auto 10px auto; /* فوق 20px، تحت 10px */
  overflow: hidden;
}

.hero-img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

/* البطاقة فوق الصورة */
.about-card {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: rgba(32, 31, 31, 0.5);
  border-radius: 10px;
  padding: 1vw;
  text-align: center;
  max-width: 90%;
  font-size: 1.7vw; 
  direction: rtl; /* من اليمين إلى اليسار */
  unicode-bidi: embed; /* لضمان عرض النص العربي بشكل صحيح */
  font-family: 'Cairo', 'Amiri', 'Tajawal', sans-serif; /* خط عربي جميل */
}

/* ==============================
   Page Wrapper
   ============================== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
   background-color: #32353a;
  color: #fff7e6;
  overflow-x: hidden;
}

/* ==============================
   Contact Section
   ============================== */
.contact-section {
  padding: 20px 20px; /* تقليل المسافة العمودية داخل البطاقة */
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-wrapper {
  display: flex;
  gap: 40px;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
}

/* ==============================
   Cards
   ============================== */
.card {
  background-color: #c18a32;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-height: 350px;
  max-width: 480px;
  flex-wrap: wrap;          /* يسمح بالنزول للسطر */
  justify-content: center;
  direction: rtl; /* من اليمين إلى اليسار */
  unicode-bidi: embed; /* لضمان عرض النص العربي بشكل صحيح */
  font-family: 'Cairo', 'Amiri', 'Tajawal', sans-serif; /* خط عربي جميل */
}

/* ==============================
   Contact Form
   ============================== */
.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.contact-form input[type="email"] {
  width: 80%;
  max-width: 380px;
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  text-align: center;
}

.contact-form textarea {
  width: 100%;
  max-width: 380px;
  height: 100px;
  resize: horizontal;   /* توسعة عرض فقط */
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.contact-form button {
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  background-color: #32353a;
  color: #fff7e6;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.contact-form button:hover {
  transform: scale(1.05);
  background-color: #ffd77a;
  color: #000;
}

/* ==============================
   Social Icons
   ============================== */
.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-social .social {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* سطرين */
  gap: 15px;
}

.contact-social .social a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #444;
  color: #fff7e6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, background 0.3s;
}

.contact-social .social a i {
  font-size: 1.4rem;
  line-height: 1;
  display: block;
}

.contact-social .social a:hover {
  transform: translateY(-4px) scale(1.1);
  background: #f9daa9;
  color: #000;
}

.contact-social h3 {
    font-size: 1.5rem;
    margin-bottom: 30px; /* زيادة المسافة العمودية تحت العنوان */
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  /* بطاقة الفورم تبقى مرتبة */
  .contact-form {
    padding: 25px;
  }
  .contact-wrapper {
    width: 100%;
  }

  /* بطاقة السوشيال ترجع على قد المحتوى */
  .contact-social {
    min-height: auto;
    padding: 25px 20px;
  }

  .contact-social .social {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .contact-social .social a {
    width: 42px;
    height: 42px;
  }

  .contact-social .social a i {
    font-size: 1.2rem;
  }
  .contact-form, .contact-social {
    margin: 0 15px; /* ترك مسافة على الجوانب */
  }
}
