/* ----------------------------------------
   Features Section Styles
---------------------------------------- */

/* Feature Boxes */
.wrapper.style2 .feature-box {
  flex: 1 1 calc(50% - 2em);
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2em;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrapper.style2 .feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.wrapper.style2 .feature-box h3 {
  font-size: 1.5em;
  color: #e97770;
  margin-bottom: 0.5em;
}

.wrapper.style2 .feature-box p {
  font-size: 1em;
  color: #000;
  line-height: 1.6;
}

/* H2 Section Below Feature Boxes */
.wrapper.style2 h2 {
  text-align: center;
  padding: 1em; /* Padding around the H2 text */
  font-size: 1.5em; /* Scalable font size */
  color: #fff; /* Text color */
  line-height: 1.4; /* Adjust line height for readability */
}

/* Buttons */
.wrapper.style2 .actions {
  text-align: center;
  margin-top: 1em;
}

.wrapper.style2 .actions .button {
  display: inline-block;
  padding: 0.8em 2em;
  text-transform: uppercase;
  font-weight: 700;
  background: #e97770;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wrapper.style2 .actions .button:hover {
  background: #555;
}

/* Responsive Adjustments */

/* Screens 426px and smaller */
@media screen and (max-width: 426px) {
  .wrapper.style2 {
    padding: 3em 1em; /* Adjust padding for smaller screens */
  }

  .wrapper.style2 .container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align each feature box */
  }

  .wrapper.style2 .feature-box {
    flex: 1 1 100%; /* Full-width boxes */
    margin-bottom: 1.5em; /* Add spacing between boxes */
  }

  .wrapper.style2 .title {
    font-size: 0.7em; /* Smaller title font size */
    top: -2.5em; /* Adjust positioning */
  }

  .wrapper.style2 .feature-box h3 {
    font-size: 1.2em; /* Scale heading size */
  }

  .wrapper.style2 .feature-box p {
    font-size: 0.9em; /* Scale paragraph size */
  }

  .wrapper.style2 h2 {
    font-size: clamp(1em, 2vw, 1.5em); /* Smaller H2 text size */
  }

  .wrapper.style2 .actions .button {
    padding: 0.6em 1em; /* Smaller button padding */
  }
}

/* Screens 427px to 768px */
@media screen and (min-width: 427px) and (max-width: 768px) {
  .wrapper.style2 {
    padding: 4em 2em; /* Adjust padding */
  }

  .wrapper.style2 .container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align each feature box */
  }

  .wrapper.style2 .feature-box {
    flex: 1 1 calc(100% - 2em); /* Stack boxes vertically */
    margin-bottom: 1.5em; /* Add spacing between boxes */
  }

  .wrapper.style2 .title {
    font-size: 1em; /* Medium title size */
    top: -3em; /* Adjust positioning */
  }

  .wrapper.style2 .feature-box h3 {
    font-size: 1.4em; /* Medium heading size */
  }

  .wrapper.style2 .feature-box p {
    font-size: 1em; /* Medium paragraph size */
  }

  .wrapper.style2 h2 {
    font-size: clamp(1.2em, 2.2vw, 1.8em); /* Medium H2 text size */
  }

  .wrapper.style2 .actions .button {
    padding: 0.6em 1.5em; /* Adjust button padding */
  }
}

/* Screens 1440px and wider */
@media screen and (min-width: 1440px) {
  .wrapper.style2 {
    padding: 6em 3em; /* Larger padding for wide screens */
  }

  .wrapper.style2 .feature-box {
    padding: 3em; /* Larger box padding */
  }

  .wrapper.style2 .title {
    font-size: 1.7em; /* Larger title size */
  }

  .wrapper.style2 .feature-box h3 {
    font-size: 1.8em; /* Larger heading size */
  }

  .wrapper.style2 .feature-box p {
    font-size: 1.2em; /* Larger paragraph size */
  }

  .wrapper.style2 h2 {
    font-size: clamp(1.5em, 2.8vw, 2em); /* Larger H2 text size */
  }
}

/* Screens 2560px and wider */
@media screen and (min-width: 2560px) {
  .wrapper.style2 {
    padding: 8em 4em; /* Extra padding for ultra-large screens */
  }

  .wrapper.style2 .feature-box {
    padding: 4em; /* Extra box padding */
  }

  .wrapper.style2 .title {
    font-size: 2.5em; /* Extra large title size */
    top: -3em;
  }

  .wrapper.style2 .feature-box h3 {
    font-size: 2em; /* Extra large heading size */
  }

  .wrapper.style2 .feature-box p {
    font-size: 1.3em; /* Extra large paragraph size */
    line-height: 1.8; /* Improve readability */
  }

  .wrapper.style2 h2 {
    font-size: clamp(1.8em, 3vw, 2.5em); /* Extra large H2 text size */
  }
}
