/* ============================================================
   SECTION 1 — Photos Slider → static banner design
   ============================================================ */

/* Strip all spacing from the section and every wrapper the theme injects */
/* NOTE: .swiper-slide is intentionally excluded — the active slide needs a negative margin-top */
.s-block--photos-slider,
.s-block--photos-slider>*,
.s-block--photos-slider salla-slider,
.s-block--photos-slider .swiper,
.s-block--photos-slider .s-slider-container,
.s-block--photos-slider .swiper-wrapper,
.s-block--photos-slider .rounded-md {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Slides: zero padding/left/right but allow vertical margin override below */
.s-block--photos-slider .swiper-slide {
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Kill any right-side bleed specifically */
.s-block--photos-slider {
  width: 100% !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
}

/* The theme wraps slides in a rounded-md image class — flatten it */
.s-block--photos-slider img.rounded-md,
.s-block--photos-slider .swiper-slide img {
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Kill border-radius only on the hero slide — leave logo slide curve intact */
salla-slider.photos-slider .swiper-slide-active,
.s-block--photos-slider .swiper-slide-active {
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hide controls */
.s-block--photos-slider .s-slider-block__title,
.s-block--photos-slider .s-slider-nav-arrow,
.s-block--photos-slider .swiper-pagination,
.s-block--photos-slider .swiper-notification {
  display: none !important;
}

/* Let the overlap render through Swiper's default overflow:hidden */
.s-block--photos-slider .swiper {
  overflow: visible !important;
}

/* Column layout, no carousel transform */
.s-block--photos-slider .swiper-wrapper {
  transform: none !important;
  transition: none !important;
  will-change: unset !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  overflow: visible !important;
}

/* Both slides full-width */
.s-block--photos-slider .swiper-slide {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  flex-shrink: 0;
}

/* ── Logo slide (slide-next) — same as .banner__logo ── */
.s-block--photos-slider .swiper-slide-next {
  order: 1;
  position: relative;
  z-index: 2;
  background: #c85d2a;
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 22px 0 52px;
  height: auto !important;
  max-height: none;
  overflow: visible;
  border-radius: 0 0 55% 55% / 0 0 36px 36px !important;
}

.s-block--photos-slider .swiper-slide-next>a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  line-height: 0;
}

.s-block--photos-slider .swiper-slide-next img {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: screen;
}

/* ── Hero slide (slide-active) — same as .banner__image ── */
.s-block--photos-slider .swiper-slide-active {
  order: 2;
  position: relative;
  z-index: 1;
  /* pull the hero image up behind the full bottom curve of the logo strip */
  margin-top: -55px !important;
}

.s-block--photos-slider .swiper-slide-active>a {
  display: block;
  width: 100%;
  line-height: 0;
}

.s-block--photos-slider .swiper-slide-active img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0 !important;
}

/* ── Tablet ── */
@media (max-width: 768px) {
  .s-block--photos-slider .swiper-slide-next {
    padding: 14px 0 32px;
    border-radius: 0 0 50% 50% / 0 0 16px 16px;
  }

  .s-block--photos-slider .swiper-slide-next img {
    width: 120px;
  }

  .s-block--photos-slider .swiper-slide-active {
    margin-top: -30px !important;
  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .s-block--photos-slider .swiper-slide-next {
    padding: 12px 0 22px;
    border-radius: 0 0 40% 40% / 0 0 10px 10px;
  }

  .s-block--photos-slider .swiper-slide-next img {
    width: 100px;
  }

  .s-block--photos-slider .swiper-slide-active {
    margin-top: -30px !important;
  }
}


/* ============================================================
   SECTIONS 2 & 4 — Features redesign
   ============================================================ */

/* ── Orange dividers between sections ── */
.s-block--features,
.s-block--full-banner {
  border-top: 3px solid #c85d2a;
}

/* Remove divider between section 4 (uses) and section 5 (second banner) */
/* Section 5 — white background */
#section-uses+.s-block--full-banner {
  border-top: none !important;
  background: #ffffff !important;
}

/* ============================================================
   SECTION 3 & 5 — Full banner
   ============================================================ */

.s-block--full-banner,
.s-block--full-banner * {
  margin: 0 !important;
  padding: 0 !important;
}

.s-block--full-banner .full-banner-entry {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  position: static !important;
  background: none !important;
  line-height: 0;
}

/* Real img — full width, natural height */
.s-block--full-banner .full-banner-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover;
  margin: 0 !important;
  padding: 0 !important;
}

/* Kill overlay and all other theme children */
.s-block--full-banner .overlay,
.s-block--full-banner .flex {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Remove the rotated decorative shape the theme adds via pseudo-elements */
.s-block--full-banner::before,
.s-block--full-banner::after,
.s-block--full-bg::before,
.s-block--full-bg::after,
.s-block--full-banner *::before,
.s-block--full-banner *::after {
  display: none !important;
  content: none !important;
}

/* ── Shared section wrapper — kill all theme/container spacing ── */
.s-block--features,
.s-block--features.container {
  margin: 0 !important;
  padding: 48px 0 0 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  text-align: center;
  direction: rtl;
  box-sizing: border-box;
}

/* ── Section header ── */
.features-header {
  margin-bottom: 28px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title */
.features-title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  color: #3b1a0e;
  margin: 0 0 14px;
  line-height: 1.3;
}

/* Subtitle sitting between two horizontal lines ——— text ——— */
.features-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(14px, 2vw, 16px);
  color: #000000;
  margin: 0 auto;
  font-weight: 400;
  white-space: nowrap;
  width: auto;
}

.features-subtitle::before,
.features-subtitle::after {
  content: '';
  flex: 0 0 44px;
  height: 2px;
  background: #c85d2a;
}

/* ── Grid — forced single row with flexbox (never wraps) ── */
.features-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding: 16px 30px 24px;
}

/* ── Individual item — equal width, never shrinks below zero ── */
.s-block--features .s-block--features__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  background-color: transparent !important;
}

/* ── Icon circle ── */
.s-block--features .feature-icon {
  width: clamp(64px, 13vw, 120px);
  height: clamp(64px, 13vw, 120px);
  border-radius: 50%;
  background: #f5ede5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s-block--features .feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Item label ── */
.s-block--features .s-block--features__item h3 {
  font-size: clamp(10px, 1.8vw, 14px);
  font-weight: 700;
  color: #3b1a0e;
  margin: 0;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

/* ── Section 2 (لماذا تختار) — white background ── */
#section-why {
  background: #ffffff;
}

/* ── Section 4 (إستخدامات) — white background ── */
#section-uses {
  background: #ffffff;
}

#section-uses .features-grid {
  gap: clamp(6px, 3vw, 24px) !important;
  padding-left: 12px;
  padding-right: 12px;
}

#section-uses .s-block--features__item {
  padding: 0 !important;
}

#section-uses .feature-icon {
  width: clamp(60px, 12vw, 100px);
  height: clamp(60px, 12vw, 100px);
  border-radius: 16px;
}


/* ── Items: unclickable and unhoverable ── */
#section-why .s-block--features__item,
#section-uses .s-block--features__item,
#section-why .s-block--features__item *,
#section-uses .s-block--features__item * {
  pointer-events: none !important;
  cursor: default !important;
  user-select: none !important;
}

/* ── Mobile — keep single row, just tighten spacing ── */
@media (max-width: 768px) {

  .s-block--features,
  .s-block--features.container {
    padding: 28px 0 0 0 !important;
  }
}


/* ============================================================
   DECORATIVE PATTERN OVERLAY — all 5 sections
   ============================================================ */

/* Pattern wrapper — covers the full section, sits behind content */
.section-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* no overflow:hidden — allows stars near top/bottom edges to render fully */
    overflow: visible;
    /* smooth fade: fully visible at left edge, gone by 55% */
    -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, transparent 55%);
    mask-image: linear-gradient(to right, black 0%, black 20%, transparent 55%);
}

/* Individual star images */
.section-pattern img {
    position: absolute;
    object-fit: contain;
    display: block;
    /* tint to warm orange matching brand */
    filter: sepia(60%) saturate(180%) hue-rotate(340deg) brightness(0.9);
}

/* Ensure every direct content child of a patterned section sits above the overlay */
.s-block--photos-slider > *:not(.section-pattern),
#section-why > *:not(.section-pattern),
#section-uses > *:not(.section-pattern),
.s-block--full-banner > *:not(.section-pattern) {
    position: relative;
    z-index: 1;
}