:root {
    --green: #1e8a3a;   /* أخضر وطني */
    --red: #cf2a25;     /* أحمر وطني */
    --white: #ffffff;   /* نص أبيض وخلفية البطاقات */
    --accent: #4db6ac;  /* لون عصري فاتح */
    --muted: #6b7280;   /* نص ثانوي */
    --card: #ffffff;    /* خلفية البطاقات */
    --bg: #e5e5e5;      /* خلفية رمادية عامة */
}

body {
    background: var(--bg); /* لون الخلفية الرمادي */
    color: #0b1220;
    margin: 0;
}

/* Reset و خط عام */
* {
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: var(--bg);
    color: #0b1220;
    margin: 0;
}

#mainNavbar {
  background: rgba(255, 255, 255, 0); /* شفافة بالكامل */
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.3s ease;
  z-index: 9999; /* فوق كل العناصر */
}

/* عند التمرير */
#mainNavbar.scrolled {
  background: linear-gradient(135deg, #a2a387, #c8c6aa);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* روابط Navbar */
.nav-link {
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #d1ecf1 !important;
}
.nav-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition: 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover .nav-underline {
  width: 50%;
}

/* زر التسجيل */
.btn-light:hover {
  background: #f8f9fa !important;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

/* شعار البرنامج */
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--green), #2fb86a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 110vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.caption {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.caption h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}

.caption p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.caption .buttons .btn {
    margin: 0 8px;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.caption .btn-success {
    background-color: #1da462;
    border: none;
}

.caption .btn-success:hover {
    background-color: #159c5a;
}

.caption .btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-slide {
        height: 75vh;
    }

    .caption h1 {
        font-size: 1.6rem;
    }

    .caption p {
        font-size: 1rem;
    }
}

.buttons .btn {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  margin: 0.3rem;
  transition: all 0.3s ease;
}

.btn-success {
  background: #11d14b;
  border: none;
}
.btn-success:hover {
  background: #007030;
  transform: scale(1.05);
}

.btn-outline-light:hover {
  background: #fff;
  color: #11d14b;
  transform: scale(1.05);
}

/* === Responsive === */
@media (max-width: 992px) {
  .caption h1 {
    font-size: 2.2rem;
  }
  .caption p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-slider, .hero-slide {
    height: 80vh;
  }
  .caption h1 {
    font-size: 1.8rem;
  }
  .caption p {
    font-size: 0.95rem;
  }
  .buttons .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.6rem;
  }
}

@media (max-width: 480px) {
  .caption h1 {
    font-size: 1.5rem;
  }
  .caption p {
    font-size: 0.85rem;
  }
}

.btn-primary-grad {
  background: #11d14b;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: 0.3s;
}

.btn-primary-grad:hover {
  opacity: 0.85;
}

.btn-outline-ghost {
  color: #11d14b;
  border: 2px solid #fff;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  background: transparent;
  transition: 0.3s;
}

.btn-outline-ghost:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .display-3 {
    font-size: 2rem;
  }
  .lead {
    font-size: 1rem;
  }
  .btn-lg {
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
  }
}


.btn-primary-grad {
  background: #11d14b;
  color: #11d14b;
  border: none;
  transition: 0.3s;
}

.btn-primary-grad:hover {
  opacity: 0.85;
}

.btn-outline-ghost {
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
  transition: 0.3s;
}

.btn-outline-ghost:hover {
  background: rgba(255,255,255,0.1);
}

.btn-primary-grad {
    background: linear-gradient(90deg, var(--green), var(--accent));
    border: none;
    color: #11d14b;
}

.btn-primary-grad:hover {
    background: linear-gradient(90deg, #2fb86a, #3fcab3);
}

.btn-outline-ghost {
    border: 1px solid rgba(11,17,20,0.06);
    background: transparent;
}

.btn-gradient {
  background: linear-gradient(90deg, #1cc88a, #4e73df);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(28, 200, 138, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn-gradient:hover,
.btn-gradient:focus {
  background: linear-gradient(90deg, #17a673, #3b5ccf);
  box-shadow: 0 8px 20px rgba(28, 200, 138, 0.7);
  transform: translateY(-2px);
  outline: none;
}

.btn-gradient:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(28, 200, 138, 0.4);
}

#initiative .about-text p {
  color: #555;
  line-height: 1.8;
  text-align: justify; /* ✅ النص مبرّر */
  margin-bottom: 1.2rem;
}

#initiative .info-card {
  border-radius: 15px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}
#initiative .info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background-color: #fff;
}
#initiative .icon i {
  transition: all 0.3s ease;
}
#initiative .info-card:hover .icon i {
  transform: scale(1.1);
}
#initiative .btn-success {
  background-color: #1da462;
  border: none;
}
#initiative .btn-success:hover {
  background-color: #159d56;
}

/* Responsive */
@media (max-width: 768px) {
  #initiative {
    text-align: center;
  }
  #initiative .about-text {
    padding: 0 10px;
  }
}
#detailed-objectives .card {
  border-radius: 15px;
  transition: all 0.3s ease;
  background-color: #fff;
}

#detailed-objectives .hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

#detailed-objectives .icon i {
  transition: transform 0.3s ease;
}

#detailed-objectives .hover-card:hover .icon i {
  transform: scale(1.2);
}
#participation .participation-card {
  border-radius: 15px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

#participation .hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

#participation .icon i {
  transition: transform 0.3s ease;
}

#participation .hover-card:hover .icon i {
  transform: scale(1.2);
}
.footer {
  background: linear-gradient(135deg, #a2a387, #c8c6aa);
  font-family: "Tajawal", sans-serif;
  direction: rtl;
  text-align: right;
}

.text-gold {
  color: #FFD700 !important;
}

.footer-link {
  color: #f1f1f1;
  text-decoration: none;
  margin-bottom: 6px;
  display: inline-block;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.social-icon {
  display: inline-block;
  margin-left: 10px;
  font-size: 1.4rem;
  color: #f1f1f1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  color: #fff;
  transform: scale(1.2);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* استجابة السلايدر */
@media(min-width:992px){
    .carousel-item {
        min-height: 72vh;
    }
}

.contact-header .icon {
  font-size: 2.2rem;
  background: #11d14b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.contact-header .title {
  font-weight: 800;
  font-size: 1.8rem;
  background: #11d14b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #6c757d;
}

.carousel-item {
  background-size: contain;     /* تُظهر الصورة كاملة */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;       /* لون خلفي لتغطية الفراغ */
  height: 100vh;                /* غطاء كامل للشاشة */
}

/* تأثير دخول أنيق عند التمرير */
.contact-header {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.contact-header.visible {
  opacity: 1;
  transform: translateY(0);
}
.contact-section {
  background: #f8f9fc;
  position: relative;
}

.contact-card {
  background: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

/* تدرج لوني للزر */
.btn-primary-grad {
  background: #11d14b;
  color: #11d14b;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary-grad:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* تحسين الحقول */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  transition: all 0.2s;
}
.form-control:focus {
  border-color: #1cc88a;
  box-shadow: 0 0 0 0.2rem rgba(28, 200, 138, 0.25);
}

  .download-card {
    transition: all 0.3s ease;
  }
  .download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .btn-gradient {
    background: #11d14b;
    color: #fff;
    transition: all 0.3s ease;
  }
  .btn-gradient:hover {
    background:#11d14b;
    color: #11d14b;
  }

  .transition {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
  }
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
