:root {
  --main-color: #27ae60;
  --main-color-dark: #1e8449;
  --secondary-color: #34495e;
  --light-color: #ecf0f1;
  --text-color: #333;
  --subtitle-color: #7f8c8d;
  --background-color: #f9f9f9;
  --card-bg: #ffffff;
  --card-radius: 15px;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --font-family: 'Cairo', sans-serif;
}


body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  direction: rtl;
  text-align: right;
}

/* ----------------------------------------navbar ------------------------------------------------ */
.navbar {
  background-color: var(--background-color);
  padding: 0.2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}


.nav-link {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  transition: 0.3s;
  font-size: 1rem;
}

.nav-link::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(to left, var(--main-color), var(--main-color-dark));
  transition: width 0.4s ease;
  position: absolute;
  bottom: -5px;
  right: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--main-color-dark);
}

.dropdown {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 5px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.dropdown:hover {
  border-color: var(--main-color);
}

.lang-menu {
  min-width: 10rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
}

.lang-menu .dropdown-item {
  font-weight: 500;
  color: var(--text-color);
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-menu .dropdown-item:hover {
  background-color: #f0f5f3;
  color: var(--main-color-dark);
}

.lang-menu .dropdown-item i {
  font-size: 1rem;
}

.active-lang {
  background-color: #e7f6ed;
  color: var(--main-color-dark);
}

.active-lang i {
  display: inline-block;
}

.lang-menu .dropdown-item:not(.active-lang) i {
  display: none;
}

.lang-toggle:focus,
.lang-toggle:active,
.lang-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* دمج media queries وإزالة التكرار */
@media (max-width: 991.98px) {

  .navbar-collapse {
    padding-bottom: 20px;
  }

  .navbar-nav {
    padding: .5rem .5rem;

  }

  .navbar-nav .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
    background-color: #a3d9a5;
  }

  .navbar-nav .nav-link.active {
    background-color: #d4edda;
    color: var(--main-color-dark);
    border-radius: 6px;
  }

  .navbar-nav .nav-link.active:hover {
    background-color: #a3d9a5;
    color: var(--main-color-dark);
  }

  .navbar-nav .nav-link:hover {
    background-color: #d4edda;
    color: var(--main-color-dark);
    border-radius: 6px;
  }

  .dropdown-lang {
    margin-top: 15px;
    width: 100%;

  }

  /* زر اللغة بعرض مثل nav-link */
  .lang-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 6px;
  }

  /* قائمة اللغة تصغر */
  .lang-menu {
    min-width: auto !important;
    width: 100% !important;
    margin-top: 0.5rem;
  }

  .lang-toggle {
    width: 100%;
    /* يأخذ نفس عرض الروابط */
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    /* تأكد أن حجم الخط مناسب */
  }

  .lang-toggle img {
    width: 22px;
    height: 22px;
  }

  .lang-toggle>i {
    margin-inline-start: 0.25rem;
    margin-inline-end: 0;
  }
}

/* مسافة صحيحة بين نص زر اللغة والسهم في زر اللغة */
.lang-toggle>i {
  margin-inline-start: 0.25rem;
  /* ms-1 في RTL تترجم الى margin-left */
  margin-inline-end: 0;
  /* تأكد ما في margin يمين */
}

/* ------------------------------------------------ home ------------------------------------------------*/

.hero-section {
  height: 100vh;
  background: url('../images/banner/banner4.jpeg') no-repeat center center/cover;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.71);
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  letter-spacing: 2px;
}

.hero-description {
  font-size: 1.8rem;
  line-height: 2.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.hero-content p {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-content a {
  font-size: 1.2rem;
}

.btn-light {
  background-color: #fff;
  color: #333;
  border: none;
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: #222;
}

.btn-primary-custom {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.btn-primary-custom:hover {
  background-color: var(--main-color-dark);
  color: #fff;
  animation: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.5rem;
    /* تصغير العنوان */
    letter-spacing: 1px;
  }

  .hero-description {
    font-size: 1rem;
    /* تصغير الوصف */
    line-height: 1.8rem;
    max-width: 90%;
    /* ضبط العرض */
  }

  .hero-content p {
    font-size: 1rem;
    /* تصغير الفقرة */
    max-width: 90%;
  }

  .hero-content a {
    font-size: 1rem;
    /* تصغير حجم الزر */
    padding: 0.5rem 1.5rem;
    /* ضبط البادينج */
  }
}

/* Animation library (animate.css) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');


/* -----------------------------------------initiatives------------------------------------------------------------- */
.initiatives-section {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
}

.initiatives-section .section-title {
  font-weight: 900;
  font-size: 3rem;
  color: var(--secondary-color);
}

.initiative-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: 0.3s;
}

.initiative-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--main-color);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 0.6rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--subtitle-color);
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* عدد الأسطر اللي بدك تعرضها */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.progress-wrapper {
  border: 3px solid var(--secondary-color);
  border-radius: 12px;
  padding: 0.4rem;
  margin-bottom: 1rem;
}

.progress {
  height: 18px;
  background-color: var(--light-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  color: #fff;
  line-height: 18px;
}

.btn-primary {
  background-color: var(--main-color);
  border: none;
  font-weight: 600;
  transition: 0.3s;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: var(--main-color-dark);
}

.card-title i {
  color: var(--main-color);
  margin-left: 8px;
  font-size: 1.1rem;
}




/* =========================================================appeal-car====================================== */
.appeal-card {
  background-color: var(--card-bg);
  border: 2px solid var(--main-color);
  box-shadow: 0 4px 12px var(--shadow-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 0px;
  ;
}

/* الخط المتحرك */
.appeal-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 3px;
  width: 0;
  background: var(--secondary-color);
  transition: width 0.3s ease;
  border-bottom-left-radius: 3px;
}

.appeal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px var(--shadow-hover);
}

/* لما يصير هوفر يكبر الخط */
.appeal-card:hover::after {
  width: 100%;
}

.appeal-media img,
.appeal-media video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.appeal-content {
  padding: 20px;
  text-align: right;
  direction: rtl;
}

.appeal-title {
  color: var(--main-color);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.appeal-description {
  color: var(--text-color);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* الدفع */
.donation-icons {
  display: flex;
  gap: 12px;
}

.donation-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--secondary-color);
  color: white;
  border-radius: 8px;
  font-size: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.donation-icons a:hover {
  background: var(--main-color-dark);
}

/* تخصيص ألوان الأزرار */
.donation-icons .paypal {
  background: #003087;
}

.donation-icons .usdt {
  background: #26a17b;
}

.donation-icons .revolut {
  background: #3f9cf3;
}







.appeal-card.ended {
  opacity: 0.7;
  /* pointer-events: none; */
  box-shadow: none;
  border-color: #ccc;
}

.appeal-card.ended:hover {
  transform: none;
  box-shadow: none;
}

.appeal-card.ended .appeal-content {
  color: #888;
}

.appeal-card.ended .appeal-title {
  color: #666;
}

.appeal-card.ended .donation-icons {
  display: none;
}


.appeal-amount {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #333;
}

.appeal-amount strong {
  color: var(--secondary-color);
}

.appeal-amount span {
  font-weight: bold;
  margin-right: 5px;
}


/* ===================================================================achievements-section  */
.achievements-section .section-title {
  color: var(--secondary-color);
}

.achievement-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: 0 10px 20px var(--shadow-color);
  cursor: pointer;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الصورة تحت */
.achievement-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  z-index: 1;
}

/* الطبقة الداكنة */
.achievement-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(52, 73, 94, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  /* خليها ظاهرة دايمًا */
  z-index: 2;
  transition: background 0.4s ease;
}

/* الأيقونة والنص */
.overlay i {
  font-size: 60px;
  color: var(--light-color);
  animation: pulse 2s infinite;
  margin-bottom: 12px;
}

.hint-text {
  color: var(--light-color);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  animation: pulse 2s infinite;
  user-select: none;
}

/* عند الهور */
.achievement-card:hover img {
  filter: blur(3px) brightness(0.8);
  transform: scale(1.05);
}

.achievement-card:hover .overlay {
  background: rgba(52, 73, 94, 0.7);
}

.achievement-card:hover i {
  color: var(--main-color);
  transform: scale(1.3);
  animation: none;
}

/* نبض للفت الانتباه */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}
.achievement-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}


/* ====================================================goals============== */


/* سكشن كامل مع صورة خلفية داكنة */
.goals-section {
  position: relative;
  background-color: var(--secondary-color);
  min-height: 600px;
  padding: 60px 20px;
  overflow: hidden;
  color: var(--light-color);
  font-family: var(--font-family);
}

/* لير الستارة */
.curtain {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--background-color) 0%, var(--background-color) 100%);
  animation: curtainOpen 2.2s ease forwards;
  z-index: 1;
}

/* تحريك الستارة (تنزلق لليسار حتى تختفي) */
@keyframes curtainOpen {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* المحتوى فوق الستارة */
.goals-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
  text-align: center;
}

/* عنوان القسم */
.section-title {
  font-size: 3rem;
  margin-bottom: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
  color: var(--background-color);
}

/* شبكة الأهداف */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 10px;
}

/* بطاقة الهدف */
.goal-card {
  background: var(--background-color);
  padding: 25px 30px;
  /* border-radius: var(--card-radius); */
  box-shadow: 0 8px 18px var(--shadow-color);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
  cursor: default;
  color: var(--light-color);
  text-align: right;
  direction: rtl;
}

/* عناوين داخل الكارت */
.goal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--secondary-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* نص الهدف */
.goal-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--secondary-color);
}

/* حركة عند الهوفر */
.goal-card:hover {
  transform: translateY(-8px);
  /* box-shadow: 0 16px 30px rgba(255, 255, 255, 0.8); */
  border-bottom: 2px solid var(--background-color);
  background: var(--secondary-color);
  color: var(--secondary-color);
}

.goal-card:hover h3,
.goal-card:hover p {
  color: var(--background-color);
}
/* ==================================================================================volunteers */


/* الكارد */
.card.volunteer-card {
  position: relative;
  border-top: 5px solid var(--secondary-color); /* هنا البوردر العلوي */
  border-bottom: 3px solid var(--secondary-color);
  transition: all 0.4s ease;
  overflow: hidden;
  min-height: 340px;
  color: var(--secondary-color); /* لون النص السكندري افتراضياً */
}


/* صورة متطوعة */
.card.volunteer-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 1.5rem auto 0;
  display: block;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px var(--secondary-color); /* بوردر حول الصورة 2px */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  /* المسافة بين البوردر والصورة 2px */
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* عند التحويم على الكارد */
.card.volunteer-card:hover {
  color: var(--background-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-hover);
}

/* عند التحويم على الصورة - تغيير البوردر الى أبيض */
.card.volunteer-card:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px #fff;
}

/* اللاير الشفاف الذي يغطي الكارد */
.card.volunteer-card .overlay {
  position: absolute;
  inset: 0; /* top:0; left:0; right:0; bottom:0; */
  background-color: var(--secondary-color);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* اظهار اللاير والايقونات عند الهوفر */
.card.volunteer-card:hover .overlay {
  opacity: 0.85;
}


/* الأيقونات مخفية افتراضياً */
.card.volunteer-card .social-icons {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

/* اظهار الايقونات عند الهوفر */
.card.volunteer-card:hover .social-icons {
  opacity: 1;
}

/* أزرار الأيقونات */
.card.volunteer-card .social-icons .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* تأثير التحويم على الأزرار */
.card.volunteer-card .social-icons .btn:hover {
  background-color: #fff;
  color: #000;
}

.card.volunteer-card .card-title,
.card.volunteer-card .card-text {
  transition: color 0.4s ease;
  position: relative;  /* مهم */
  z-index: 2;          /* أكبر من z-index اللاير (1) */
}

.card.volunteer-card:hover .card-title,
.card.volunteer-card:hover .card-text {
  color: #ffffff !important;
  z-index: 9999;       /* أعلى */
}


/* الخط التحتي للبطاقة */
.card.volunteer-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.4s ease;
  transform: translateX(-50%);
}

.card.volunteer-card:hover::after {
  width: 100%;
}


/* =======================================================contact
 */
.contact-section {
  background: var(--background-color);
  color: var(--text-color);
}

.contact-section .section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15);
  color: var(--secondary-color);
}

.contact-card {
  background: var(--secondary-color);
  transition: all 0.4s ease;
  border-radius: var(--card-radius);
  box-shadow: 0 8px 18px var(--shadow-color);
  color: var(--background-color);
}

.contact-card:hover {
  background: var(--secondary-color);
  color: var(--light-color);
  transform: translateY(-5px);
  box-shadow: 0 16px 30px var(--shadow-hover);
}

.contact-card i {
  color: var(--background-color);
  transition: color 0.3s ease;
}

.contact-card:hover i {
  color: var(--light-color);
}

.contact-form textarea::placeholder,
.contact-form input::placeholder {
  color: var(--subtitle-color);
}

.contact-form textarea,
.contact-form input {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  border: 1px solid var(--shadow-color);
}

.contact-form button {
  background: var(--secondary-color);
  border: none;
  padding: 12px 50px;
  font-weight: 700;
  color: var(--light-color);
  transition: background 0.3s ease;
  border: 2px solid var(--secondary-color);

}

.contact-form button:hover {
  background: var(--background-color);
  border: 2px solid var(--secondary-color);
}


/* --------------------------------------------------main-footer---------------------------------------------- */
/* ====== الفوتر ====== */
.main-footer {
  background-color: var(--secondary-color);
  color: var(--light-color);
  font-family: var(--font-family);
}

/* اللوجو */
.footer-logo {
  width: 180px;
}

/* العناوين */
.footer-title {
  font-size: 20px;
  color: var(--light-color);
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* القوائم */
.footer-links,
.donation-methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* عناصر القوائم */
.footer-links li,
.donation-methods li {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--light-color);
  cursor: pointer;
  font-weight: 500;
}

/* روابط القوائم */
.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  display: block;
  position: relative;
  padding: 8px 0;
  font-size: 17px;
  transition: color 0.3s ease;
}

/* الأيقونات داخل الروابط */
.footer-links a i {
  color: white;
  min-width: 18px;
  font-size: 20px;
  margin-left: 8px;
}

/* الخط تحت الروابط */
.footer-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* active link */
.footer-links li.active-link a::after {
  width: 100%;
  left: 0;
  transform: none;
}

/* hover */
.footer-links a:hover {
  color: var(--light-color);
}

.footer-links a:hover::after {
  width: 100%;
  left: 0;
  transform: none;
}

/* قائمة طرق التبرع */
.donation-methods li i {
  color: white;
  margin-left: 8px;
  font-size: 20px;
}

/* قسم تابعنا - عمودي */
.social-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* عنصر تواصل */
.social-item {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  font-size: 18px;
  cursor: pointer;
  color: var(--light-color);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.social-item i {
  font-size: 22px;
  min-width: 24px;
  color: white;
  order: 2;
}

.social-item.site-location {
  font-size: 20px;
  font-weight: 600;
  cursor: default;
  padding-left: 0;
  gap: 8px;
}

/* أيقونات التواصل الاجتماعي */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--background-color);
  color: var(--secondary-color);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--background-color);
  transform: scale(1.1);
  box-shadow: 0 4px 12px currentColor;
  background-color: var(--secondary-color);
}

/* الفقرة الأخيرة */
.main-footer .container>div.text-center {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 767px) {
  /* ترتيب الأعمدة في الفوتر عمودياً */
  .main-footer .container .row {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* مسافة بين الأعمدة */
  }

  /* ضبط كل عمود */
  .main-footer .container .row > div.col-md-3 {
    width: 100% !important; /* يأخذ عرض كامل */
    border-bottom: 2px solid rgba(255, 255, 255, 0.3); /* فاصل واضح */
    padding-bottom: 1.5rem;
    text-align: center; /* توسيط النصوص داخل العمود */
  }

  /* إزالة الفاصل عن آخر عمود */
  .main-footer .container .row > div.col-md-3:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* تعديل العناوين */
  .footer-title {
    font-size: 18px;
    margin-bottom: 1rem;
    text-align: center;
  }

  /* توسيط اللوجو */
  .footer-logo {
    display: block;
    margin: 0 auto 1rem auto;
    height: 180px; /* ارتفاع الصورة */
    width: auto;
  }

  /* القوائم وتوابعها */
  .footer-links,
  .donation-methods,
  .social-vertical {
    padding: 0;
    margin: 0 auto;
    display: inline-block; /* لجعل القائمة بعرض محتواها */
    text-align: center;
  }

  /* روابط القوائم */
  .footer-links li,
  .donation-methods li {
    font-size: 16px;
  }

  /* أيقونات التواصل */
  .social-icons {
    justify-content: center !important;
    margin-top: 1rem;
  }

  /* عناصر التواصل الاجتماعي */
  .social-item {
    justify-content: center !important;
    flex-direction: row;
    gap: 8px;
  }

  .social-item i {
    order: 0;
  }
}



.section-divider {
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #ccc;
  z-index: 1;
}

.section-divider i {
  background: #fff;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.more-btn-wrapper {
  display: flex;
  margin-top: 20px;
}

/* ضبط مكان الزر حسب اللغة */
html[lang="ar"] .more-btn-wrapper {
  justify-content: flex-end;
}

html[lang="en"] .more-btn-wrapper {
  justify-content: flex-start;
}

/* تنسيق الزر */
.more-btn {
  font-weight: bold;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  color: var(--secondary-color); /* استخدام اللون الثانوي */
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* حركة زر نبض خفيف */
.more-btn:hover {
  color: white;
  background-color: var(--secondary-color);
  animation: pulse 1.5s infinite;
}

/* أيقونة السهم تغير اتجاهها حسب اللغة */
html[lang="ar"] .more-btn i {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

html[lang="en"] .more-btn i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* أنيميشن نبض */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(85, 85, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 15px 15px rgba(85, 85, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(85, 85, 255, 0);
  }
}
/* ================================================================================================================== */

.details-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  display: flex;
  flex-wrap: wrap;
}

.details-img {
  flex: 1 1 300px;
  object-fit: cover;
  width: 100%;
  max-height: 400px;
}

.details-content {
  flex: 1 1 300px;
  padding: 2rem;
}

.details-content h2 {
  color: var(--main-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--subtitle-color);
  margin-bottom: 1rem;
}

.progress {
  background: var(--light-color);
  border-radius: 50px;
  overflow: hidden;
}

.progress-bar {
  background: var(--main-color);
  color: #fff;
  padding: 0.3rem;
  text-align: center;
  transition: width 0.6s ease;
}

.donate-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.donate-btn {
  border: 2px solid var(--secondary-color);
  background: transparent;
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.donate-btn:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* مودال */
.modal {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #ffffff, #f5f7fa);
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-30px);}
  to   { opacity: 1; transform: translateY(0);}
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.modal-header i {
  color: #26a17b;
  font-size: 2rem;
}

.modal-header h3 {
  flex: 1;
  text-align: center;
  font-size: 1.5rem;
  margin: 0;
  color: #333;
}

.close {
  cursor: pointer;
  font-size: 1.5rem;
  color: #999;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-item {
  display: flex;
  flex-direction: column;
}

.modal-item label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #444;
}

.modal-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f1f1;
  border-radius: 10px;
  padding: 0.7rem 1rem;
}

.modal-item-content span {
  word-break: break-all;
  color: #222;
}

.copy-btn {
  background: #26a17b;
  border: none;
  color: white;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: #1f8e68;
}
