/**
 * Layout1 BEM – Global layout and hero slider
 * Block: layout-page, hero, hero__slider, hero__slide, etc.
 * Prevents overflow and ensures Swiper works with multiple slides.
 */

/* ===== Main content: below fixed/absolute header (no overlap) ===== */
.layout-page__main {
  padding-top: 130px;
  min-height: 50vh;
}
@media (min-width: 768px) {
  .layout-page__main {
    padding-top: 140px;
  }
}
@media (min-width: 992px) {
  .layout-page__main {
    padding-top: 150px;
  }
}

/* ===== Section spacing (stable layout) ===== */
.layout-page__main .hero,
.layout-page__main .saf_hero_wrapper {
  margin-top: 0;
  margin-bottom: 0;
}
.layout-page__main .saf_about_wrapper {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.layout-page__main .latest-blog.spad,
.layout-page__main section.spad {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.layout-page__main .women-banner.spad {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.layout-page__main .benefit-main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
/* Module blocks: consistent spacing */
.layout-page__main .row + .row,
.layout-page__main .container .row + .row {
  margin-top: 0;
}
.layout-page__main .module_body_2,
.layout-page__main .module_body_3 {
  margin-bottom: 1.5rem;
}

/* ===== Global layout (no horizontal overflow) ===== */
.layout-page {
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

.layout-page *,
.layout-page *::before,
.layout-page *::after {
  box-sizing: border-box;
}

body.layout-page,
html.layout-page body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== Hero block (BEM: .hero) ===== */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero__slider {
  width: 100%;
  height: 100%;
  /* Critical: give Swiper a height so slides can slide */
  min-height: 220px;
}

.hero__slider .swiper-wrapper {
  align-items: stretch;
}

.hero__slider .swiper-slide {
  height: auto;
  min-height: 220px;
}

.hero__slide {
  width: 100%;
  min-height: 220px;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center;
}

.hero__slide-inner {
  width: 100%;
}

.hero__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero__desc {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero__btn {
  display: inline-block;
}

/* Pagination & nav */
.hero__pagination {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero__next,
.hero__prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  transition: background 0.2s;
}

.hero__next:hover,
.hero__prev:hover {
  background: rgba(0,0,0,0.5);
}

.hero__next {
  right: 1rem;
}

.hero__prev {
  left: 1rem;
}

/* Responsive hero heights (same as legacy saf_hero_*) */
@media (min-width: 576px) {
  .hero__slider { min-height: 320px; }
  .hero__slider .swiper-slide { min-height: 320px; }
  .hero__slide { min-height: 320px; }
}

@media (min-width: 768px) {
  .hero__slider { min-height: 400px; }
  .hero__slider .swiper-slide { min-height: 400px; }
  .hero__slide { min-height: 400px; }
  .hero__title { font-size: 2rem; }
  .hero__desc { font-size: 1.125rem; }
}

@media (min-width: 992px) {
  .hero__slider { min-height: 500px; }
  .hero__slider .swiper-slide { min-height: 500px; }
  .hero__slide { min-height: 500px; }
  .hero__title { font-size: 2.5rem; }
  .hero__desc { font-size: 1.25rem; }
}

@media (min-width: 1200px) {
  .hero__slider { min-height: 560px; }
  .hero__slider .swiper-slide { min-height: 560px; }
  .hero__slide { min-height: 560px; }
}

/* Legacy class compatibility (keep .saf_hero_* working) */
.saf_hero_wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.saf_hero_slider {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.saf_hero_slider .swiper-wrapper {
  align-items: stretch;
}

.saf_hero_slider .swiper-slide {
  height: auto;
  min-height: 220px;
}

.saf_hero_slide {
  width: 100%;
  min-height: 220px;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center;
}

@media (min-width: 576px) {
  .saf_hero_slider,
  .saf_hero_slider .swiper-slide,
  .saf_hero_slide { min-height: 320px; }
}

@media (min-width: 768px) {
  .saf_hero_slider,
  .saf_hero_slider .swiper-slide,
  .saf_hero_slide { min-height: 400px; }
}

@media (min-width: 992px) {
  .saf_hero_slider,
  .saf_hero_slider .swiper-slide,
  .saf_hero_slide { min-height: 500px; }
}

@media (min-width: 1200px) {
  .saf_hero_slider,
  .saf_hero_slider .swiper-slide,
  .saf_hero_slide { min-height: 560px; }
}

/* ===== About section (BEM) ===== */
.about {
  width: 100%;
  overflow: hidden;
}

.about__inner {
  max-width: 100%;
}

.about__title {
  word-wrap: break-word;
}

.about__text {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* ===== Section / container overflow ===== */
.saf_about_wrapper,
.saf_about_wrapper .container,
.latest-blog .container,
.saf_footer_wrapper .container {
  max-width: 100%;
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

.container,
.container-fluid {
  max-width: 100%;
}

/* ===== Footer BEM ===== */
.footer {
  width: 100%;
  overflow: hidden;
}

.footer__row {
  max-width: 100%;
}

.footer__widgets ul {
  list-style: none;
  padding-left: 0;
}

/* ===== Header / nav ===== */
.saf_header_wrapper,
.saf_main_menu {
  max-width: 100%;
}

.saf_nav_items ul {
  flex-wrap: wrap;
  max-width: 100%;
}

/* ===== Utility ===== */
.u-overflow-hidden {
  overflow: hidden;
}

.u-max-width-100 {
  max-width: 100%;
}
