/* =======================
   مشروع – الصفحة كاملة
======================= */

.project-page {
  padding: 30px 0;
  direction: rtl;
}

/* ===== رأس الصفحة ===== */
.project-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #04525a, #469e8d);
  padding: 25px;
  border-radius: 22px;
  color: white;
  margin-bottom: 30px;
}

.project-header .head-img-container img {
  width: 70px;
  height: 70px;
}

.project-header-content {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 2;
}

/* ===== المحتوى الرئيسي: يسار + يمين ===== */
.project-content {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

/* =======================
   الكارت اليساري (التبرع)
======================= */
.donation-card-container {
  flex: 1;
}

.donation-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  border: 1px solid #e3ebf2;
}

.hadith-text {
  background: #f3faf8;
  border-right: 4px solid #469e8d;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  color: #04525a;
  margin-bottom: 20px;
}

/* مبالغ التبرع */
.donation-amounts {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.amount-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: white;
}

.amount-btn.green { background: #469e8d; }
.amount-btn.blue { background: #04525a; }
.amount-btn.secondary { background: #faa440; }

/* مبلغ مخصص */
.custom-amount {
  position: relative;
  margin-bottom: 20px;
}

.amount-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #cfd8df;
}

.currency {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-weight: 700;
}

/* خيار الإهداء */
.gift-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fbfc;
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid #e1e8ee;
}

.gift-text {
  flex: 1;
  font-size: 0.9rem;
}

.gift-checkbox {
  width: 18px;
  height: 18px;
}

/* ================================
   كارت الإهداء (يظهر عند التفعيل)
================================ */
.gift-container {
  background: #ffffff;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e2eaf1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.gift-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #04525a;
  border-right: 4px solid #469e8d;
  padding-right: 8px;
  margin-bottom: 16px;
}

.donation-amount-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.donation-amount-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  color: white;
}

.donation-amount-btn.blue { background: #04525a; }
.donation-amount-btn.secondary { background: #faa440; }
.donation-amount-btn.green { background: #469e8d; }
.donation-amount-btn.accent { background: #e45a34; }

/* بطاقة الإهداء */
.gift-cards-container {
  margin: 15px 0;
}

.gift-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gift-card-label img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: 0.2s;
}

.gift-card-input:checked + .gift-card-label img {
  border-color: #469e8d;
}

/* زر إضافة إهداء */
.gift-btn {
  margin-top: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #469e8d;
  border: none;
  font-size: 0.9rem;
}

/* زر اتمام الطلب */
.checkout-container {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.checkout-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: #04525a;
  color: white;
  border: none;
}

.cart-icon-btn {
  width: 50px;
  border-radius: 12px;
  background: #469e8d;
  border: none;
  color: white;
}

/* =======================
   قسم الإحصائيات اليسار
======================= */
.statistics-section {
  margin-top: 22px;
  background: #ffffff;
  border-radius: 20px;
  padding: 15px;
  border: 1px solid #e3ebf2;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #eaf6f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04525a;
  font-size: 1.2rem;
}

.stat-title {
  font-size: 0.9rem;
  font-weight: 600;
}

/* =======================
   كارت المشروع يمين
======================= */
.project-card-container {
  width: 420px;
}

.project-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2ebf2;
}

.project-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #04525a;
}

.project-image img {
  width: 100%;
  border-radius: 16px;
  margin: 15px 0;
}

/* progress */
.custom-card-progress {
  height: 10px;
  border-radius: 8px;
}

.custom-card-progress-bar {
  background: #469e8d;
}

/* =======================
   ريسبونسيف
======================= */
@media (max-width: 991px) {
  .project-content {
    flex-direction: column;
  }
  .project-card-container {
    width: 100%;
  }
}
