/* ==========================================================================
   Core Values Block
   ========================================================================== */

/* --- Section --- */
.cv-section {
  padding: 2.5rem 0;
}

/* --- Header row: title pill + subtitle --- */
.cv-header {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 60px;
  padding: 0 100px;
}

/* --- Title pill (green highlight) --- */
.cv-title-wrap {
  flex-shrink: 0;
}

.cv-title-pill {
  background-color: #b9ff66;
  border-radius: 7px;
  padding: 0 7px;
  display: inline-block;
}

.cv-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0;
}

/* --- Subtitle --- */
.cv-subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  max-width: 298px;
}

/* --- Cards grid --- */
.cv-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0 100px;
}

/* --- Individual card --- */
.cv-card {
  border: 1px solid #000000;
  border-bottom: 6px solid #000000;
  border-radius: 45px;
  padding: 50px;
  box-sizing: border-box;
  min-height: 333px;
  display: flex;
  flex-direction: column;
}

/* --- Card title --- */
.cv-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0 0 30px 0;
}

/* --- Horizontal divider --- */
.cv-card__divider {
  border: none;
  border-top: 1px solid #000000;
  margin: 0 0 30px 0;
}

/* --- Card body: description + optional image side by side --- */
.cv-card__body {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex: 1;
}

/* --- Description text --- */
.cv-card__desc {
  flex: 1;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  min-width: 0;
}

/* --- Image (occupies right portion of card, ~40%) --- */
.cv-card__image {
  flex-shrink: 0;
  width: 40%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cv-card__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .cv-header {
    padding: 0 60px;
  }

  .cv-cards {
    padding: 0 60px;
    gap: 30px;
  }

  .cv-card {
    padding: 40px;
  }
}

@media (max-width: 1023px) {
  .cv-header {
    padding: 0 40px;
  }

  .cv-cards {
    padding: 0 40px;
    gap: 24px;
  }

  .cv-title {
    font-size: 2rem;
  }

  .cv-card {
    padding: 36px;
    border-radius: 35px;
  }
}

@media (max-width: 767px) {
  .cv-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .cv-subtitle {
    max-width: 100%;
    text-align: center;
  }

  /* Single-column card stack on mobile */
  .cv-cards {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 24px;
  }

  .cv-card {
    padding: 32px;
    min-height: 0;
  }

  /* Stack image below text on mobile */
  .cv-card__body {
    flex-direction: column;
    gap: 20px;
  }

  .cv-card__image {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .cv-header {
    padding: 0 16px;
  }

  .cv-cards {
    padding: 0 16px;
  }

  .cv-card {
    padding: 24px;
    border-radius: 28px;
  }

  .cv-title {
    font-size: 1.625rem;
  }

  .cv-card__title {
    font-size: 1.2rem;
  }
}
