/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  color: #333;
  font-family: "Merriweather", serif;
}

/* -------- SECTION -------- */
.offerings-section {
  text-align: center;
  position: relative;
  padding: 0 0 60px;
}

/* -------- IMAGE + HEADING -------- */
.offerings-image {
  background: url("https://theciomogul.com/wp-content/uploads/2025/10/pexels-jep-gambardella-7689881.jpg")
    center/cover no-repeat;
  height: 40vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end; /* move heading slightly lower */
  justify-content: center;
  color: #fff;
  z-index: 1;
  margin-bottom: -100px;
  padding-bottom: 80px; /* control heading vertical placement */
}

/* Dark overlay */
.offerings-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* Heading */
.section-title {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}

/* -------- FLEX WRAP GRID -------- */
.offerings-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

/* -------- CARD -------- */
.offering-card-about {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 20px;
  width: 420px;
  min-height: 280px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* -------- ICON -------- */
.icons-offering {
  background-color: #ff4d4d;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Title */
.offering-card-about h3 {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 20px;
}

/* Line */
.line {
  width: 50px;
  height: 2px;
  background: #ff4d4d;
  margin: 0 auto 15px auto;
  transition: width 0.3s ease;
}

.offering-card-about:hover .line {
  width: 70px;
}

/* Text */
.offering-card-about p {
  font-family: "Merriweather", serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  text-align: center;
  overflow: visible;
  display: block;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1200px) {
  .offering-card-about {
    width: 400px;
    min-height: 320px;
  }
}
/* ------- TABLET VIEW -------- */ */
@media (max-width: 1024px) {
  .offerings-image {
    height: 35vh;
    display: flex;
    align-items: center; /* centers heading vertically */
    justify-content: center;
    margin-bottom: -120px; /* pulls cards upward to overlap image */
  }

  .section-title {
    margin: 0;
    padding-bottom: 10px; /* small gap below heading */
  }

  .offerings-grid {
    margin-top: 10px; /* only 10px gap from heading */
  }

  .offering-card-about {
    width: 360px;
    min-height: 320px;
  }
}

/* -------- MOBILE VIEW -------- */
@media (max-width: 768px) {
  .offerings-image {
    height: 30vh;
    align-items: center; /* keep heading near center */
    justify-content: center;
    margin-bottom: -130px; /* move cards upward to overlap slightly */
  }

  .section-title {
    font-size: 2rem;
    margin: 0;
    padding-bottom: 10px; /* 10px gap below heading */
  }

  .offerings-grid {
    margin-top: 10px;
  }

  .offering-card-about {
    width: 90%;
    margin: 0 auto;
    height: auto;
    min-height: auto;
    padding: 25px 20px;
  }

  .offering-card-about p {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
  }
}

/* -------- SMALL MOBILE -------- */
@media (max-width: 600px) {
  .offerings-image {
    height: 28vh;
    margin-bottom: -120px; /* same overlap */
  }

  .section-title {
    font-size: 1.8rem;
    margin: 0;
    padding-bottom: 10px;
  }

  .offerings-grid {
    margin-top: 0px;
  }
}