/* ===============================
   HOW IT WORKS - POST-ITS
=============================== */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ===============================
   TITLE WITH ICON
=============================== */

/* Wrapper around icon + title to center it and manage spacing */
.hw-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center; /* center horizontally */
  gap: 12px; /* space between icon and text */
  margin: 50px 0 30px; /* breathing space above and below */
}

/* Steps Icon Next to Title */
.hw-title-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Title Text */
.hw-title {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700; /* Bold */
  color: #2d2d62;
  text-align: center;
  margin: 0; /* controlled by wrapper */
}

/* ===============================
   POST-ITS GRID
=============================== */

/* GRID: 3 columns desktop, 2 tablet, 1 mobile */
.postits-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 80px;
  justify-content: center;
}

/* POST-IT FLEXBOX */
.postit {
  --bg: url('image/postit-default.png');
  background-image: var(--bg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding: 90px 28px 28px 28px;
  box-sizing: border-box;
  margin: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  filter: drop-shadow(-6px 8px 10px rgba(0,0,0,0.3));
}

/* Hover zoom effect with stronger shadow */
.postit:hover {
  transform: scale(1.05);
  filter: drop-shadow(-10px 12px 14px rgba(0,0,0,0.35));
}

/* INNER WRAPPER */
.postit-inner {
  width: 90%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: inherit;
  position: relative;
}

/* ICON */
.postit-icon {
  width: 65px;
  height: 65px;
  object-fit: contain;
  position: relative;
  top: 10px; /* moves icon down without pushing text */
  margin: 0 auto 12px auto;
}

/* STEP LABEL */
.step-label {
  margin-top: 6px;
  font-weight: 700;
  font-size: 17px;
  color: inherit;
}

/* HEADING */
.postit-heading {
  font-size: 17px;
  margin: 4px 0;
  font-weight: 600;
  color: inherit;
}

/* PARAGRAPH */
.postit-text {
  font-size: 15px;
  line-height: 1.5;
  color: inherit;
  text-align: left;
}


.howitworks-postits {
  padding: 48px 18px 48px 18px; /* top, right, bottom, left */
  font-family: Inter, system-ui, sans-serif;
  background: none;
  margin-top: 80px; /* add extra space above the section */
}

/* ===============================
   RESPONSIVE BREAKPOINTS
=============================== */
@media (max-width: 1300px) {
  .postits-grid {
    grid-template-columns: repeat(2, max-content);
    gap: 40px;
    justify-content: center;
  }

  .hw-title {
    font-size: 35px;
  }
}

@media (max-width: 820px) {
  .postits-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .postit {
    min-height: 360px;
    min-width: auto;
    padding: 70px 16px 16px 16px;
  }

  .postit-icon {
    width: 55px;
    height: 55px;
    top: 8px;
  }

  .postit-heading {
    font-size: 16px;
  }

  .postit-text {
    font-size: 14px;
  }

  .step-label {
    font-size: 15px;
  }

  /* Adjust title wrapper & icon size on mobile */
  .hw-title-wrapper {
    gap: 8px;
  }

  .hw-title-icon {
    width: 30px;
    height: 30px;
  }

  .hw-title {
    font-size: 25px;
  }
}
