/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap'); */
body {
  margin: 0;
  /* لإزالة أي هوامش افتراضية للمتصفح */
  padding: 0;
  /* لإزالة أي حشوات افتراضية */
  background-color: #ffffff;
  /*  <<<< هذا هو المهم: اجعل الخلفية بيضاء */
  font-family: 'Poppins', sans-serif;
  /* كما هو موجود لديك */
  /* أي أنماط أخرى عامة للـ body */
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #153422;
  /* Your dark green */
  /* padding: 80px 5vw; ORIGINAL */
  padding: 80px 5vw 100px 5vw;
  /* MODIFIED: Added 100px bottom padding for overlap */
  position: relative;
  /* overflow: hidden;  REMOVED for feature box overlap if they were children, but they are outside now */
  min-height: 700px;
  /* This is quite tall, ensures space */
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0;
  margin-top: -20px; /* <-- أضف هذا السطر لرفعه للأعلى */
}

.hero-content {
  max-width: 600px;
  color: #fff;
  margin-left: -20px;
  /* Your style */
  margin-top: -140px;
  /* Your style - this pulls content up significantly */
  position: relative;
  /* Ensure it's above anything else if needed */
  z-index: 2;
  margin-bottom: 0;
}

.hero-subtitle {
  color: #fa7d22;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #ffffff;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 18px;
  /* Your original radius for hero buttons */
  padding: 1rem 2rem;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(250, 125, 34, 0.08);
}

.hero-btn i {
  margin-right: 8px;
  /* أو 0.5em أو أي قيمة مناسبة */
}

.hero-btn.orange {
  background: #fa7d22;
  color: #fff;
  margin-left: -190px;
  /* Your style */
}

.hero-btn.orange:hover {
  background: #e96c0a;
}

.hero-btn.white {
  background: #fff;
  color: #222;
  border: 2px solid #fff;
}

.hero-btn.white:hover {
  background: #f3f7f5;
  color: #fa7d22;
  border-color: #fa7d22;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
  /* This creates the curve effect */
  border-radius: 0 0 0 220px;
  /* Your curve */
  z-index: 1;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  animation: slideZoom 15s infinite;
  /* Your animation */
}

.slide.active {
  /* Ensure active slide is visible if JS handles this */
  opacity: 1;
  /* If JS handles active, animation might need to be only on .slide or .slide.active */
}

/* Animation delays for CSS-only slider */
.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 5s;
}

.slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes slideZoom {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }

  5%,
  30% {
    opacity: 1;
    transform: scale(1);
  }

  /* Visible and scaled to 1 */
  35%,
  100% {
    opacity: 0;
    transform: scale(1.05);
  }

  /* Fading out */
}

.hero-video-btn {
  position: absolute;
  top: 95%;
  /* Your style */
  left: 95%;
  /* Your style */
  transform: translate(-50%, -50%);
  background: #fa7d22;
  width: 150px;
  /* Your style - quite large */
  height: 150px;
  /* Your style */
  display: flex;
  border-top-left-radius: 15px;
  /* Your style */
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
  z-index: 5;
  /* Above slider images */
  text-decoration: none;
}

.hero-video-btn:focus {
  outline: none;
}

/* Remove blue focus outline */


.hero-video-btn i {
  color: #e6e3e1;
  font-size: 2.5rem;
  margin-top: -50px;
  /* Your style */
  margin-left: -30px;
  /* Your style */
}

.animate-fadein {
  opacity: 0;
  transform: translateY(40px);
  animation: fadein-up 1s forwards;
}

@keyframes fadein-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-image-in {
  opacity: 0;
  transform: translateX(50px);
  animation: image-in 1.2s forwards;
}

@keyframes image-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* --- NEW CSS FOR FEATURE BOXES --- */
.hero-features-floating {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 5vw;
  margin-top: -125px;
  position: relative;
  z-index: 20;
  max-width: 900px;
  margin-left: -50px;
  margin-bottom: 0;
}

.feature-box-item {
  /* Using a new class name to avoid conflicts */
  /* background-color: #ddd; */
  /* Fallback */
  color: #fff;
  padding: 35px 30px;
  border-radius: 20px;
  /* Rounded corners as per your image */
  flex: 1;
  /* Each box takes equal space if container is flex */
  max-width: 320px;
  /* Max width per box */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  /* Subtle shadow */


}

.feature-box-item.green {
  background-color: #2c7509;
  /* Green from your image */
  /* margin-left: -50px; */
  margin-left: -50px;
}

.feature-box-item.orange {
  background-color: #F27427;
  /* Orange from your image (same as primary) */

}

.feature-box-item h3 {
  font-size: 24px;
  /* Adjust as needed */
  font-weight: 700;
  /* Bold */
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
}

.feature-box-item p {
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
  opacity: 0.95;
  /* Make text slightly less bright than pure white */
}

.feature-box-item .read-more-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-box-item .read-more-link i {
  transition: transform 0.2s ease-out;
}

.feature-box-item .read-more-link:hover i {
  transform: translateX(4px);
  /* Move arrow on hover */
}

/* --- END OF NEW CSS FOR FEATURE BOXES --- */


/* Responsive Adjustments (Your Existing) */
/* ... Your existing CSS above ... */

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding: 60px 20px 40px 20px;
    /* Top, L/R, Bottom */
    min-height: auto;
    text-align: center;
    background: #1A2E26;
    /* Dark green from the second image */
    /* If you have a grain texture:
    background-image: url('your-grain-texture.png');
    background-color: #1A2E26;
    */
    margin-bottom: 0;
        /* Ensure no extra margin from desktop styles */
  }

  .hero-content {
    max-width: 100%;
    margin-left: 0;
    margin-top: 0;
    /* Reset desktop negative margins */
    margin-bottom: 30px;
    /* Add space below text before buttons */
    padding-bottom: 0;
    /* Remove any specific padding from desktop if needed */
    color: #fff;
    /* Default text color for content if not overridden */
    z-index: 2;
    /* Keep it above any potential background elements */
  }

  .hero-subtitle {
    font-size: 16px;
    /* Smaller for mobile */
    font-weight: 700;
    color: #fa7d22;
    /* Orange color as in both designs */
    margin-bottom: 8px;
  }

  .hero-title {
    /*
      NOTE: The actual text "Let's Build a Greener Future!"
      must be changed in your HTML or via JavaScript.
      This CSS will style the existing <h1>.
    */
    font-size: 36px;
    /* Larger, prominent title for mobile */
    font-weight: 900;
    /* Very bold */
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
    /* White title text */
  }

  .hero-desc {
    /*
      NOTE: The actual paragraph text
      must be changed in your HTML or via JavaScript.
      This CSS will style the existing <p>.
    */
    font-size: 15px;
    line-height: 1.6;
    color: #cccccc;
    /* Light grey for description, not pure white */
    margin-bottom: 24px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Makes child buttons take full width of this container */
    gap: 12px;
    /* Space between stacked buttons */
    width: 100%;
    /* Make button container full width relative to hero-content */
    max-width: 350px;
    /* Optional: constrain button width on mobile */
    margin-left: auto;
    /* Center the button group */
    margin-right: auto;
    /* Center the button group */
  }

  .hero-btn {
    width: 100%;
    /* Make buttons take full width of .hero-buttons container */
    justify-content: center;
    /* Center text inside button */
    padding: 14px 20px;
    /* Adjust padding for mobile buttons */
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    /* Slightly less rounded for mobile */
    text-align: center;
  }

  .hero-btn.orange {
    margin-left: 0;
    /* Reset desktop-specific margin */
    background: #fa7d22;
    color: #fff;
  }

  .hero-btn.orange:hover {
    background: #e96c0a;
  }

  .hero-btn.white {
    background: #fff;
    color: #1A2E26;
    /* Dark text for white button */
    border: none;
    /* Remove border or set to transparent for the mobile look */
  }

  .hero-btn.white:hover {
    background: #f0f0f0;
    /* Slightly off-white hover */
    color: #fa7d22;
  }

  .hero-btn i {
    margin-right: 8px;
  }

  /* Hide elements not present in the target mobile design */
  .hero-image {
    display: none;
  }

  .hero-video-btn {
    display: none;
  }

  .hero-features-floating {
    display: none;
  }
}