/* إعداد الخط من مسارك المحلي */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* تنسيق قسم "عن الموقع" - النسخة الاحترافية المربوطة بالـ Root */
.about-section-modern {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
  font-family: "Cairo", var(--font-arabic), sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

/* البانر */
.banner-wrapper {
  position: relative;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #ffffff;
  text-align: center;
}

.overlay-text h1 {
  font-size: 1.7rem;
  margin: 0;
}

.sub-title {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* صندوق التعريف */
.intro-box {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
  border-right: 5px solid var(--color-teal);
  transition: background 0.3s;
}

.intro-box p {
  font-size: 1.2rem;
  margin: 0;
}

.intro-box a {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: bold;
}

/* شبكة الكروت (5 كروت) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  background: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(13, 148, 136, 0.1);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-teal-light);
  box-shadow: var(--shadow-card);
}

.f-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-item h3 {
  color: var(--color-teal);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* قصة الموقع */
.story-card {
  background: var(--color-bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
  border: 1px solid rgba(13, 148, 136, 0.05);
}

.story-card h2 {
  color: var(--color-teal-dark);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.5rem;
  background: #c7d3cf;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.story-card p {
  font-size: 1.1rem;
  color: var(--color-text);
}

.story-card a {
  color: var(--color-gold);
  font-weight: bold;
}

/* زر المشاركة */
.cta-wrapper {
  text-align: center;
}
.prayer{
  grid-column: span 2;
  border-right: 5px solid var(--color-teal);
}
.btn-premium {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
  color: #ffffff;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
}

.btn-premium:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-card);
}

/* تعديلات الموبايل */
@media (max-width: 600px) {
  .banner-wrapper { height: 250px; }
  .overlay-text h1 { font-size: 1.5rem; }
  .intro-box { padding: 1.5rem; }
}
/* حاوية قسم التواصل */
.contact {
  background: var(--color-bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-top: 3rem;
  border: 1px dashed var(--color-teal-light); /* إطار مقطع ليعطي إيحاء بالتطوير المستمر */
  position: relative;
  overflow: hidden;
}

/* النص التوضيحي */
.contact-hint {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}

/* تنسيق الروابط والأزرار داخل التواصل */
.contact a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px;
  transition: transform 0.3s ease;
}

/* زر الإيميل (مبني على btn-primary بتاعك) */
.contact .btn-primary {
  padding: 0.8rem 2rem;
  font-family: "Cairo", sans-serif;
  font-size: 1.05rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* زر الواتساب - تنسيق خاص احترافي */
.contact a[href*="whatsapp"] {
  background: #25d366; /* لون واتساب الرسمي */
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* تأثير الـ Hover */
.contact a:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

/* أيقونات Boxicons (لو مستخدمها) */
.contact i {
  font-size: 1.4rem;
}

/* تعديل بسيط للـ Dark Mode */
[data-theme="dark"] .contact {
  border-color: var(--color-bg-soft);
  background: var(--color-bg-card);
}

/* للموبايل */
@media (max-width: 600px) {
  .contact {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  .contact a {
    display: flex; /* يخلي الأزرار تحت بعض في الموبايل */
    width: 100%;
    margin: 10px 0;
  }
  .contact .btn-primary, .contact a[href*="whatsapp"] {
    width: 100%;
  }
}