/* Homepage-specific overrides live here. */
.padding-section-large {
  padding-top: 4rem;
}

.steps-content .handwritten-reveal {
  margin: 20px 0 30px 0 !important;
}

.padding-xhuge {
  padding-top: 4rem;
}
/* Testimonials slider tweaks (all viewports) */
.testimonials-cards-holder-main {
  overflow: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  touch-action: pan-x;
  gap: 1.25rem;
}

.testimonials-wrapper-main {
  overflow-x: hidden;
}

.testimonials-cards-holder-main .testimonials-collection-item {
  scroll-snap-align: start;
}

.testimonials-cards-holder .testimonial-card {
  padding: 1.25rem 1.25rem 1.5rem;
}

.testimonials-heading {
  font-size: 1.8rem;
  line-height: 1.25;
}

/* Page 3: thinner carousel card border */
.swiper-slide-item.carousel-card {
  border-width: 1px;
}

/* Page 1: cards section background and spacing (all screens) */
.main-wrapper > .section.bg-white-grey:not(.overflow-clip):not(.is-relative):not(.background-color-white) {
  background-color: #ffffff;
}

.main-wrapper > .section.bg-white-grey:not(.overflow-clip):not(.is-relative):not(.background-color-white) .padding-section-large {
  padding-top: 13rem;
}

@media screen and (min-width: 992px) {
  .main-wrapper > .section.bg-white-grey:not(.overflow-clip):not(.is-relative):not(.background-color-white) .padding-section-large {
    padding-top: 4rem !important;
  }
}

.main-wrapper > .section.bg-white-grey:not(.overflow-clip):not(.is-relative):not(.background-color-white) .feature-card {
  background-color: #f6f7f8;
}

/* Page 2: "Skicka present" button color */
.btn-light-blue-Skicka-present {
  background-color: #a7d5ff !important;
  color: #000000 !important;
}

/* Page 6: CTA section background and secondary button */
.main-wrapper .section.background-color-cream {
  background-color: #ffffff;
}

.main-wrapper .section.background-color-cream .button.is-transparent-dark {
  background-color: #f6f7f8;
}

/* Footer tweaks for homepage layout */
@media screen and (min-width: 480px) {
  .footer-card_email {
    justify-content: flex-end;
  }

  .footer-card_email .footer_content-wrapper {
    margin-left: auto;
  }

  .footer-card-bottom .footer_small-text {
    white-space: nowrap;
  }
}

@media screen and (max-width: 767px) {
  .testimonials-wrapper-main {
    overflow-x: visible;
    min-height: 0;
    height: auto;
    margin-bottom: 3rem;
  }
  /* Add breathing room after the first section on mobile */
  .main-wrapper > section:first-child {
    padding-bottom: 3rem;
  }

  /* Place the image above the text/pills on mobile */
  .industry-card.cc-home {
    grid-template-columns: 1fr;
  }

  .heading-style-h5.is-larger-mobile {
    font-size: 1.35rem;
  }
  .text-size-large {
    font-size: 1.15rem;
  }

  .industry-card.cc-home .industry-card-image {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .industry-card.cc-home .feature-content-wrapper {
    grid-row: 2;
  }

  /* Two buttons per row on mobile, capped at four items */
  .industry-card.cc-home .pills-wrapper.align-left {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    justify-items: stretch;
  }

  .industry-card.cc-home .pills-wrapper.align-left .button {
    width: 100%;
    text-align: center;
  }

  /* In the “Enkelt att ge & roligt att få” feature triples, put images above text and tighten spacing */
  .features-wrapper .split-content-features {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* tighter spacing between image/text blocks */
    margin-bottom: 1.25rem;
  }

  /* Override default large gaps between feature rows */
  .features-wrapper {
    grid-row-gap: 1.5rem;
  }

  .cards-group .feature-card {
    padding: 1.25rem 1.25rem 1.5rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .cards-group .feature-card .button {
    padding: 1.05rem 1.35rem !important;
    font-size: 1.1rem !important;
  }

  .features-wrapper .feature-img-wrapper {
    order: 1;
    width: 100%;
  }

  .features-wrapper .feature-content-wrapper {
    order: 2;
    width: 100%;
  }

  /* Soften top padding on the grey/white section for mobile */
  .section.background-color-white.bg-white-grey {
    padding-top: 0;
  }

  /* Testimonials: tighter spacing, smaller header, fewer logos */
  .testimonials-heading {
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem;
  }

  .testimonials-cards-holder-main {
    gap: 1rem;
    padding-inline: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-cards-holder {
    gap: 1rem;
    padding-inline: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-cards-holder .testimonial-card {
    padding: 1.1rem 1rem 1.25rem;
    width: 18.5rem;
    min-width: 18.5rem;
  }

  .testimonial-logos > *:nth-child(n+4) {
    display: none !important;
  }

  .step-item-wrapper p {
    margin-bottom: 1rem !important;
  }
}
