/* ----------------------------------------
   General Wrapper Styles
---------------------------------------- */

.wrapper {
  position: relative;
  padding: 6em 0 9em 0; /* Space for the title */
  background-color: inherit; /* Inherits parent background */
}

.wrapper .title {
  position: absolute;
  top: -3.5em;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 0.9em;
  width: 25em;
  height: 3.25em;
  line-height: 3.25em;
  background: #333;
  color: #fff;
  z-index: 10;
}

/* Decorative Elements for the Title */
.wrapper .title:before,
.wrapper .title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 10px;
  height: 10px;
  background: #333;
  transform: rotate(45deg);
}

.wrapper .title:before {
  left: -5px;
}

.wrapper .title:after {
  right: -5px;
}

/* Wrapper Style 1 */
.wrapper.style1 {
  background: #f3f3f3 url("images/binding-dark.png");
  color: #484d55;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  padding: 4em 2em 6em;
  flex-flow: column;
}

.wrapper.style1 .image-container {
  flex: 1;
  max-width: 50%;
  text-align: center;
}

.wrapper.style1 .image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.wrapper.style1 .text-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
}

.wrapper.style1 .text-content h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #333;
}

.wrapper.style1 .text-content p {
  line-height: 1.6;
  color: #666;
}

/* Wrapper Style 2 (Features Section) */
.wrapper.style2 {
  background: #282b34 url("images/asfalt-light.png");
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 4em 2em 6em;
  margin: 0 auto;
}

.wrapper.style2 .title {
  position: absolute;
  top: -3em;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 1em;
  background: inherit;
  color: #fff;
  z-index: 10;
}

.wrapper.style2 .title:before,
.wrapper.style2 .title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 10px;
  height: 10px;
  background: #282b34;
  transform: rotate(45deg);
}

.wrapper.style2 .title:before {
  left: -5px;
}

.wrapper.style2 .title:after {
  right: -5px;
}

.wrapper.style2 .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.wrapper.style2 .container .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;
}

/* Responsive Adjustments */

/* Small Screens (max-width: 768px) */
@media screen and (max-width: 768px) {
  .wrapper.style1 {
    flex-wrap: wrap;
    padding: 2em 1em 4em;
  }

  .wrapper.style1 .image-container,
  .wrapper.style1 .text-content {
    max-width: 100%;
    padding: 0;
  }

  .wrapper.style1 .text-content {
    margin-top: 2em;
  }

  .wrapper.style2 {
    padding: 3em 1.5em 4em;
  }

  .wrapper.style2 .title {
    font-size: 0.9em;
    top: -2.5em;
  }
}

/* Large Screens (min-width: 1440px) */
@media screen and (min-width: 1440px) {
  .wrapper.style2 {
    padding: 3em 3em 6em;
  }

  .wrapper.style2 .title {
    font-size: 1.5em;
    top: -3em;
  }

  .wrapper.style2 .container header h2 {
    font-size: 1.7em;
  }

  .wrapper.style2 .container header p {
    font-size: 1.1em;
  }
}

/* 4K Ultra HD Screens (min-width: 2560px) */
@media screen and (min-width: 2560px) {
  .wrapper.style2 {
    padding: 4em 4em 6em;
  }

  .wrapper.style2 .title {
    font-size: 2em;
    top: -3em;
  }
}
