/* ===== COMMITMENTS SECTION ===== */
.commitments-section {
  background-color: #f9f9f9;
  padding: 96px 0;
}

/* ===== SECTION HEADER ===== */
.commitments-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px auto; /* 64px gap below description */
  display: flex;
  flex-direction: column;
  gap: 8px; /* 8px gap between heading & desc */
}

.commitments-title {
  font-size: 36px;
  line-height: 125%;
  color: #181c20;
  font-weight: 700;
  margin: 0;
}

.commitments-desc {
  font-size: 16px;
  line-height: 150%;
  color: #3e4a3c;
  margin: 0;
}

/* ===== CARDS GRID ===== */
.commitments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 24px;
}

/* ===== SINGLE CARD ===== */
.commitment-card {
  display: flex;
  flex-direction: row;
  background-color: #ebf3ee; /* Card background */
  border-radius: 16px;
  overflow: hidden; /* Clips image to card border radius */
}

/* ===== LEFT: IMAGE ===== */
.commitment-img-wrapper {
  flex-shrink: 0;
  width: 220px; /* Fixed image width */
}

.commitment-img-placeholder {
  width: 100%;
  height: 100%; /* Full height of card */
  min-height: 280px;
  background-color: #a8c5a0; /* Placeholder color */
}

/* Real image styles */
.commitment-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RIGHT: CONTENT ===== */
.commitment-content {
  padding: 64px 32px 64px 32px; /* 64px top/bottom, 32px left/right */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.commitment-heading {
  font-size: 24px;
  line-height: 125%;
  color: #181c20;
  font-weight: 700;
  margin: 0 0 16px 0; /* 16px gap below heading */
}

.commitment-desc {
  font-size: 14px;
  line-height: 150%;
  color: #3e4a3c;
  margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Medium screens — reduce image width and content padding */
@media (max-width: 1100px) {
  .commitment-img-wrapper {
    width: 180px;
  }

  .commitment-content {
    padding: 40px 24px;
  }

  .commitment-heading {
    font-size: 20px;
  }
}

/* Tablet — stack cards vertically */
@media (max-width: 992px) {
  .commitments-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .commitment-img-wrapper {
    width: 200px;
  }

  .commitments-title {
    font-size: 30px;
  }
}

/* Small Tablet — reduce image & padding */
@media (max-width: 768px) {
  .commitments-section {
    padding: 60px 0;
  }

  .commitments-header {
    margin-bottom: 40px;
  }

  .commitment-img-wrapper {
    width: 160px;
  }

  .commitment-img-placeholder {
    min-height: 240px;
  }

  .commitment-content {
    padding: 32px 20px;
  }

  .commitment-heading {
    font-size: 18px;
  }
}

/* Mobile — image on top, content below */
@media (max-width: 576px) {
  .commitments-section {
    padding: 48px 0;
  }

  .commitment-card {
    flex-direction: column; /* Stack image above content */
  }

  .commitment-img-wrapper {
    width: 100%;
  }

  .commitment-img-placeholder {
    min-height: 220px;
    width: 100%;
  }

  .commitment-content {
    padding: 28px 24px;
  }

  .commitments-title {
    font-size: 26px;
  }

  .commitment-heading {
    font-size: 20px;
  }

  .commitment-desc {
    font-size: 14px;
  }
}
