/* Reusable styles for the palaraxx featured blocks section */

.palaraxx-effect-section {
  width: 100%;
}

.palaraxx-effect-section .pageBlock {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100vw 100vh;
  background-attachment: fixed;
  box-sizing: border-box;
  padding-left: 125px;
  padding-right: 125px;
}

.palaraxx-effect-section .pageBlock h5 {
  position: absolute;
  top: 96px;
  left: 125px;
  margin: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  padding: 10px 48px;
  font-family: "Inter / Medium", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  line-height: 1.2;
}

/* iOS Safari: fixed backgrounds are unreliable, fall back to scroll */
@supports (-webkit-touch-callout: none) {
  .palaraxx-effect-section .pageBlock {
    background-attachment: scroll !important;
  }
}

/* Match Elementor visibility behavior so the two blocks can be reused outside Elementor */
.elementor-hidden-mobile {
  display: block;
}

.elementor-hidden-desktop,
.elementor-hidden-tablet {
  display: none;
}

@media (min-width: 769px) and (max-width: 1023px) {
  .palaraxx-effect-section .pageBlock {
    padding-left: 60px;
    padding-right: 60px;
  }

  .palaraxx-effect-section .pageBlock h5 {
    left: 60px;
  }
}

@media (max-width: 768px) {
  .palaraxx-effect-section .pageBlock {
    min-height: 100vh;
    padding-left: 36px;
    padding-right: 36px;
    background-size: 100vw 100vh;
    background-attachment: fixed;
  }

  .palaraxx-effect-section .pageBlock h5 {
    top: 86px;
    left: 36px;
  }
}

@media (max-width: 767px) {
  .elementor-hidden-mobile {
    display: none;
  }

  .elementor-hidden-desktop.elementor-hidden-tablet {
    display: block;
  }
}

body.lang-ar .palaraxx-effect-section .pageBlock h5 {
  font-size: 16px;
  font-family: "Lateef", sans-serif !important;
}
