/* Basic Reset & Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #495057;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  /* color: #1E2022; */
  margin-top: 0;
  margin-bottom: 0.75em;
  line-height: 1.25;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Services Section Specific Styles */
.services-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  /* Allow columns to wrap on smaller screens if needed */
  align-items: flex-start;
  /* Align items to the top */
  justify-content: space-between;
  /* This creates space between the two columns */
  gap: 30px;
  /* Gap between title column and description column */
  margin-bottom: 50px;
  /* <<<<<<< Space below the header, before cards */
}

.header-text-column {
  flex: 1 1 50%;
  /* Takes up roughly half the width, can grow/shrink */
  max-width: 55%;
  /* Optional: prevent it from getting too wide */
  /* No negative margins here */
}

.header-description-column {
  flex: 1 1 40%;
  /* Takes up a portion, allowing for gap */
  max-width: 45%;
  /* Optional */
  /* No negative margins here */
  padding-top: 5px;
  /* Slight adjustment to align text baseline if titles are multi-line */
}

.services-pre-heading {
  color: #2E7D32;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0;
  color: #1E2022;
  font-family: 'Outfit', sans-serif;
  line-height: 1.22;
}

.section-description {
  color: #555D66;
  font-size: 1.05rem;
  line-height: 1.7;
  /* max-width: 520px; /* This can be 100% of its column if preferred */
  font-family: 'Inter', sans-serif;
  margin-top: 0;
  /* Remove top margin if padding-top on parent handles alignment */
}


/* Services Cards Row */
.services-cards-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 35px;
  margin-top: 0;
  margin-left: 0;
  justify-content: center;
}

.service-card {
  flex-shrink: 0;
  width: 370px;
  max-width: 100%;
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(44, 62, 80, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* ... (باقي أنماط البطاقات والـ CTA كما هي من الكود السابق الذي قدمته لك،
      مع التأكد من عدم وجود هوامش علوية كبيرة على البطاقات نفسها) ... */

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.12);
}

.service-card .image-container {
  position: relative;
  width: 100%;
  height: 220px;
}

.service-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card .icon-box {
  position: absolute;
  left: 20px;
  bottom: -28px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.service-card.card-waste-collection .icon-box {
  background-color: #2E7D32;
}

.service-card.card-recycling .icon-box {
  background-color: #2E7D32;
}

.service-card.card-ewaste .icon-box {
  background-color: #2E7D32;
}

.service-card .content-box {
  padding: 40px 25px 25px 25px;
  border-radius: 0 0 18px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card .content-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-top: 0;
  margin-bottom: 12px;
}

.service-card .content-box p {
  font-size: 1.0rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  margin-bottom: 0;
  flex-grow: 1;
}

/* .service-card.card-waste-collection .content-box {
  background-color: #176A3A;
}

.service-card.card-waste-collection .content-box h3,
.service-card.card-waste-collection .content-box p {
  color: #fff;
} */

.service-card.card-recycling .content-box,
.service-card.card-ewaste .content-box {
  background-color: #fff;
}

.service-card.card-recycling .content-box h3,
.service-card.card-recycling .content-box p,
.service-card.card-ewaste .content-box h3,
.service-card.card-ewaste .content-box p {
  color: #1E2022;
}

.section-cta-breno {
  margin-top: 50px;
  text-align: center;
  font-size: 1.1rem;
}

.section-cta-breno .cta-text-green {
  color: #2E7D32;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.section-cta-breno .cta-text-orange {
  color: #F47C35;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-cta-breno .cta-text-orange:hover {
  color: #e06a2c;
}

.anim-fade-in-up {
  opacity: 0;
  transform: translateY(25px);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, visibility 0s 0.6s;
}

.anim-fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s !important;
}

/* Hover: خلي كل الكروت تاخد نفس ستايل الأخضر زي الكارت الأول */
.service-card:hover .content-box {
  background-color: #176A3A;
}

.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}

.service-card:hover .icon-box {
  background-color: #14562f;
  color: #fff;
}

.service-card .content-box {
  background-color: #ffffff;
  color: #1E2022;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .content-box {
  background-color: #176A3A;
  color: #fff;
}

.service-card:hover .content-box h3,
.service-card:hover .content-box p {
  color: #fff;
}

.service-card:hover .icon-box {
  background-color: #14562f;
  color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    /* Reduce gap when stacked */
    margin-bottom: 40px;
  }

  .header-text-column,
  .header-description-column {
    flex-basis: 100%;
    max-width: 100%;
    text-align: center;
  }

  .section-description {
    max-width: 600px;
    margin-top: 10px;
    /* Adjust margin for stacked layout */
    margin-left: auto;
    margin-right: auto;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .services-cards-row {
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
  }

  .service-card {
    width: 90%;
    max-width: 400px;
  }
}

@media (max-width: 767px) {
  .services-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .services-cards-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-left: 0;
  }

  .service-card {
    width: 100%;
    max-width: 370px;
  }

  .service-card .content-box h3 {
    font-size: 1.25rem;
  }

  .service-card .content-box p {
    font-size: 0.95rem;
  }

  .section-cta-breno {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {

  /* Adjust breakpoint if needed, e.g., 768px */
  .services-section {
    padding: 60px 0;
    /* Adjust padding for mobile */
  }

  .section-header {
    /* Styles for header text on mobile - already handled by 991px breakpoint */
    margin-bottom: 30px;
    /* Space between header and first card */
  }

  .section-title {
    font-size: 2rem;
    /* Slightly smaller title for mobile */
  }

  .section-description {
    font-size: 0.95rem;
  }


  .services-cards-row {
    display: flex;
    flex-direction: column;
    /* Stack cards vertically */
    align-items: center;
    /* Center cards horizontally if they don't take full width */
    gap: 25px;
    /* Vertical gap between cards */
    margin-left: 0;
    /* Reset any desktop-specific margin */
    flex-wrap: nowrap;
    /* Ensure they don't try to wrap when stacked */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
  }

  .service-card {
    width: 100%;
    /* Make cards take full width of their container */
    max-width: 400px;
    /* Optional: Set a max-width for cards on mobile */
    /* This helps prevent them from becoming too wide on larger "mobile" screens */
    flex-shrink: 1;
    /* Default, allows shrinking if container is smaller than max-width */
    margin-left: auto;
    /* Center card if max-width is applied and container is wider */
    margin-right: auto;
    /* Center card if max-width is applied and container is wider */
  }

  .service-card .image-container {
    height: 200px;
    /* Adjust image height for mobile if needed */
  }


  .service-card .content-box {
    padding: 35px 20px 20px 20px;
    /* Adjust padding for mobile */
  }

  .service-card .content-box h3 {
    font-size: 1.3rem;
    /* Adjust heading size in card */
  }

  .service-card .content-box p {
    font-size: 0.95rem;
    /* Adjust paragraph size in card */
  }

  .section-cta-breno {
    margin-top: 40px;
    /* Adjust spacing for CTA */
    font-size: 1rem;
  }
}