/*
 * Visual polish layer for A.maze.S service pages.
 * Load after the theme CSS.
 */

/* Fix:
First content section on service pages kept within the existing design system.
H2 size remains the site's service-section standard; composition improves through width, rhythm, cards and text measure.
*/
.content-area article.service > .title_all_box.style_one {
  max-width: 1040px;
  margin-bottom: 34px;
}

.content-area article.service > .title_all_box.style_one .title_sections .title,
.content-area article.service > .title_all_box.style_one .title_sections h2 {
  max-width: 960px;
}

.content-area article.service > .title_all_box.style_one .title_sections p {
  max-width: 980px;
  line-height: 29px;
}

.content-area article.service > .title_all_box.style_one + .row.no-space {
  align-items: flex-start;
}

.content-area article.service > .title_all_box.style_one + .row.no-space > [class*="col-"]:first-child {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-area article.service > .title_all_box.style_one + .row.no-space .icon_box_all.style_one {
  margin: 0;
  border: 1px solid #e7edf3;
  box-shadow: 0 18px 42px rgba(17, 40, 54, .08);
}

.content-area article.service > .title_all_box.style_one + .row.no-space .icon_box_all.style_one .icon_content p {
  line-height: 26px;
}

.content-area article.service > .title_all_box.style_one + .row.no-space .description_box {
  max-width: 540px;
}

.content-area article.service > .title_all_box.style_one + .row.no-space .description_box h1,
.content-area article.service > .title_all_box.style_one + .row.no-space .description_box h2,
.content-area article.service > .title_all_box.style_one + .row.no-space .description_box h3,
.content-area article.service > .title_all_box.style_one + .row.no-space .description_box h4 {
  margin-bottom: 12px;
  line-height: 32px;
}

.content-area article.service > .title_all_box.style_one + .row.no-space .description_box p {
  margin-bottom: 18px;
  line-height: 27px;
}

.content-area article.service > .title_all_box.style_one + .row.no-space .description_box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1199px) {
  .content-area article.service > .title_all_box.style_one {
    margin-bottom: 30px;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space > [class*="col-"]:first-child {
    gap: 22px;
    margin-bottom: 30px;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space .description_box {
    max-width: 760px;
  }
}

@media (max-width: 430px) {
  .content-area article.service > .title_all_box.style_one {
    margin-bottom: 24px;
  }

  .content-area article.service > .title_all_box.style_one .title_sections .title,
  .content-area article.service > .title_all_box.style_one .title_sections h2 {
    max-width: 100%;
    font-size: 30px;
    line-height: 38px;
  }

  .content-area article.service > .title_all_box.style_one .title_sections p {
    max-width: 100%;
    font-size: 15px;
    line-height: 25px;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space > [class*="col-"]:first-child {
    gap: 20px;
    margin-bottom: 28px;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space .icon_box_all.style_one {
    width: 100%;
    padding: 30px 28px 28px;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space .icon_box_all.style_one .icon_content p {
    font-size: 15px;
    line-height: 25px;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space .description_box {
    max-width: 100%;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space .description_box h1,
  .content-area article.service > .title_all_box.style_one + .row.no-space .description_box h2,
  .content-area article.service > .title_all_box.style_one + .row.no-space .description_box h3,
  .content-area article.service > .title_all_box.style_one + .row.no-space .description_box h4 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 30px;
  }

  .content-area article.service > .title_all_box.style_one + .row.no-space .description_box p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 25px;
  }
}

/* Fix:
Audience cards section uses the existing choose_box pattern, but tightens card shape, icon connection and mobile rhythm.
Scoped to the current service page section structure; no grid, order, text or icon changes.
*/
.row.no-space:nth-child(2) {
  align-items: stretch;
}

.row.no-space:nth-child(2) > [class*="col-"] {
  display: flex;
}

.choose_box.type_one {
  width: 100%;
  margin-top: 34px;
  margin-bottom: 0;
}

.choose_box.type_one .content_box {
  width: 100%;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 40, 54, .08);
}

.choose_box.type_one .image_box {
  width: 92px;
  height: 92px;
  border: 1px solid #edf2f6;
  box-shadow: 0 12px 30px rgba(17, 40, 54, .09);
  transform: translateY(6px);
}

.choose_box.type_one .image_box img.svg_image {
  width: 56px;
  height: 56px;
  margin-top: 17px;
  margin-bottom: 17px;
}

.choose_box.type_one .text_box {
  padding-top: 12px;
}

.choose_box.type_one .text_box p {
  margin-bottom: 0;
  line-height: 26px;
}

@media (max-width: 991px) {
  .row.no-space:nth-child(2) {
    row-gap: 24px;
  }
}

@media (max-width: 430px) {
  .title_all_box.style_six .title_sections .title {
    font-size: 30px;
    line-height: 38px;
  }

  .row.no-space:nth-child(2) {
    row-gap: 20px;
  }

  .choose_box.type_one {
    margin-top: 28px;
  }

  .choose_box.type_one .content_box {
    padding: 28px 24px 26px;
  }

  .choose_box.type_one .image_box {
    width: 84px;
    height: 84px;
    transform: translateY(8px);
  }

  .choose_box.type_one .image_box img.svg_image {
    width: 52px;
    height: 52px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .choose_box.type_one .text_box {
    padding-top: 10px;
  }

  .choose_box.type_one .text_box p {
    font-size: 15px;
    line-height: 25px;
  }
}

/* Fix:
Audience cards composition: the icon and text are rebalanced as one component.
The main issue is not decoration, but the no-image padding that places text too close to the floating icon.
*/
.choose_box.type_one {
  margin-top: 30px;
}

.choose_box.type_one .content_box,
.choose_box.type_one .content_box[no-image] {
  padding: 26px;
  box-shadow: 0 14px 34px rgba(17, 40, 54, .07);
}

.choose_box.type_one .image_box {
  top: -26px;
  left: 26px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(17, 40, 54, .08);
  transform: none;
}

.choose_box.type_one .image_box img.svg_image {
  width: 48px;
  height: 48px;
  margin: auto;
}

.choose_box.type_one .text_box {
  max-width: 205px;
  padding-top: 16px;
}
.choose_box.type_one .text_box h2
{
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.choose_box.type_one .content_box[no-image] .text_box
{
    padding:0;
}
.choose_box.type_one .text_box p {
  max-width: 205px;
  line-height: 26px;
}

.choose_box.type_one:hover .content_box {
  background: #fff;
}

.choose_box.type_one:hover .text_box p {
  color: #4a4e56;
}

@media (max-width: 430px) {
  .row.no-space:nth-child(2) {
    row-gap: 18px;
  }

  .choose_box.type_one {
    margin-top: 24px;
  }

  .choose_box.type_one .content_box,
  .choose_box.type_one .content_box[no-image] {
    padding: 52px 24px 24px;
  }

  .choose_box.type_one .image_box {
    top: -22px;
    left: 24px;
    width: 72px;
    height: 72px;
  }

  .choose_box.type_one .image_box img.svg_image {
    width: 46px;
    height: 46px;
  }

  .choose_box.type_one .text_box {
    max-width: 240px;
    padding-top: 14px;
  }

  .choose_box.type_one .text_box p {
    max-width: 240px;
    font-size: 15px;
    line-height: 24px;
  }
}