/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ================= SECTION ================= */
.values-section {

  background: url("../../images/Rectangle 555.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
     padding: 70px;
}

/* ================= GRID ================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  justify-items: center; /* keeps cards centered */
    max-width: 1320px;
  margin: 0 auto;
 
}

/* ================= CARD ================= */
.value-card {
  background: url("../../images/Rectangle 555.png");
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;

  margin-top: -30px;
  max-width: 300px;
  width: 100%;

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Desktop hover ONLY */
@media (hover: hover) and (pointer: fine) {
  .value-card:hover {
    transform: translateY(-40px);
  }
}

/* ================= IMAGE ================= */
.value-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* ================= TITLE ================= */
.value-card h4 {
  font-family: Outfit;
  font-weight: 500;
  font-size: 24px;
  text-align: center;
  color: #ed1c24;
  margin-bottom: 6px;
}

/* ================= TEXT ================= */
.value-card p {
  font-family: Outfit;
  font-weight: 400;
  font-size: 16px;
  color: #544e4e;
  text-align: center;
}

/* ================= LAPTOP ================= */
@media (max-width: 1400px) and (min-width: 1100px) {

  /* Image size reduce */
  .values-grid img {
    width: 240px !important;
  }

  /* Card size reduce */
  .value-card {
    max-width: 260px;
    padding: 14px 14px;
  }

  /* Text scaling (optional but balanced) */
  .value-card h4 {
    font-size: 20px;
  }

  .value-card p {
    font-size: 16px;
  }
}


/* ================= TABLET ================= */
@media (max-width: 1200px) {
.values-section {
    padding: 60px 40px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .value-card {
    margin-top: 0; /* remove overlap on tablet */
  }
}

/* ================= MOBILE ================= */
@media (max-width: 700px) {
  .values-section {
    padding: 20px 35px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    margin-top: 0;
  }

  .value-card img {
    height: auto;
  }
}
