
.qs-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto;
  margin-bottom: 60px !important;
  display: flex;
  align-items: center;
  gap: 80px;
  font-family: inherit;
  box-sizing: border-box;
  padding: 0 20px;
}

/* --- CARD LAYOUT MODE --- */
/* Automatically applies padding and rounded corners when a background color is selected */
.qs-wrapper.qs-is-card {
  background-color: var(--qs-card-bg);
  border-radius: 12px;
  padding: 60px 80px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

/* Left Side: Text & Questions */
.qs-left {
  flex: 1;
  width: 50%;
}

.qs-main-headline {
  color: var(--qs-head-color);
  font-size: var(--qs-head-size);
  font-weight: var(--qs-head-weight);
  line-height: 1.3;
  margin-bottom: 40px;
  margin-top: 0;
}

.qs-questions-list {
  display: flex;
  flex-direction: column;
}

/* Individual Question Item */
.qs-question-item {
  border-bottom: 1px solid var(--qs-divider);
  padding: 20px 0;
}

.qs-question-item:first-child {
  padding-top: 0;
}

/* Colored Cards question style */
.qs-wrapper.qs-style-colored-cards .qs-questions-list {
  gap: 22px;
}

.qs-wrapper.qs-style-colored-cards .qs-question-item {
  padding: 20px 22px;
  border-bottom: 0;
  border-left: 4px solid #ff4b2b;
  border-radius: 12px;
  background-color: #fff9f7;
}

.qs-wrapper.qs-style-colored-cards .qs-question-item:nth-child(3n + 2) {
  border-left-color: #ffbd4a;
  background-color: #fffdf8;
}

.qs-wrapper.qs-style-colored-cards .qs-question-item:nth-child(3n + 3) {
  border-left-color: #3c8798;
  background-color: #f8fbfc;
}

.qs-q-eyebrow {
  color: var(--qs-eye-color);
  font-size: var(--qs-eye-size);
  font-weight: var(--qs-eye-weight);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.qs-q-text {
  color: var(--qs-q-color);
  font-size: var(--qs-q-size);
  font-weight: var(--qs-q-weight);
  line-height: 1.4;
  margin: 0;
}

/* Right Side: Image Container */
.qs-right {
  flex: 1;
  width: 50%;
  position: relative;
}

/* The Bottom-Right Offset Square */
.qs-right .qs-shape {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 140px;
  height: 140px;
  background-color: var(--qs-shape);
  border-radius: 12px;
  z-index: 1;
}

/* The Image Box */
.qs-right .qs-image-wrap {
  position: relative;
  width: 100%;
  background-color: #dfdfdf;
  border-radius: 12px;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.qs-right .qs-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qs-wrapper .qs-left.col.has-animation,
.qs-wrapper .qs-right.col.has-animation {
  float: none !important;
  display: block !important;
  visibility: visible;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* 1. Small Laptops & Tablets (901px - 1100px) */
@media (max-width: 1100px) {
  .qs-wrapper {
    gap: 40px;
  }
  
  .qs-wrapper.qs-is-card {
    padding: 50px 40px;
  }

  .qs-right .qs-shape {
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
  }
}

/* 2. Mobile & Small Tablets (Below 900px) */
@media (max-width: 900px) {
  .stop-slop {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }
  .qs-wrapper {
    flex-direction: column;
    gap: 50px;
    margin: 40px auto;
    margin-bottom: 60px !important;
  }

  /* Keep the card padding tight on phones */
  .qs-wrapper.qs-is-card {
    padding: 40px 25px !important;
  }

  .qs-left,
  .qs-right {
    width: 100%;
  }
  .qs-main-headline {
    font-size: calc(var(--qs-head-size) * 0.85) !important;
    line-height: 1.2 !important;
    margin-bottom: 30px;
  }

  .qs-q-text {
    font-size: calc(var(--qs-q-size) * 0.9) !important;
  }

  .qs-question-item {
    padding: 15px 0;
  }

  .qs-wrapper.qs-style-colored-cards .qs-question-item {
    padding: 18px 20px;
  }

  .qs-right {
    width: 90%;
    margin-right: auto;
    margin-left: 0;
  }
  
  .qs-right .qs-shape {
    right: -20px;
    bottom: -20px;
    width: 90px;
    height: 90px;
    border-radius: 8px;
  }

  .qs-wrapper .qs-left.col.has-animation,
  .qs-wrapper .qs-right.col.has-animation {
    width: 100% !important;
    margin: 0 !important;
  }
}