@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'SaudiWeb-Bold';
  src: url('../../fonts/SaudiWeb-Bold.woff') format('woff');
}

@font-face {
  font-family: 'SaudiWeb-Regular';
  src: url('../../fonts/SaudiWeb-Regular.woff') format('woff');
}

/* 
 * Styles specific to the Homepage 2 Hero.
 * The node is wrapped in the .homepage-2-override class from the node template.
 */

/* Hide the original dynamic hero in Homepage 2 */
.homepage-2-override .home-header {
  display: none !important;
}

/* ===========================
   Static Hero Section
   =========================== */
.static-hajj-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  direction: rtl;
  background-color: #f5f6f8;
  /* Soft off-white background matching the design */
}

/* Background image container - placed on the LEFT side only */
.static-hajj-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  /* Only span the left half of the section */
  height: 100%;
  z-index: 1;
}

.static-hajj-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Center the man praying on the left */
  /* Perfect horizontal fade transition from left to right (into transparent/off-white background) */
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0) 100%);
}

/* Content overlay - covers full width */
.static-hajj-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  /* Crucial: force everything inside the overlay to blend with the background, removing all white squares! */
}

/* Top-right: Hayyakum Allah logo */
.static-hajj-hero__top-logo {
  position: absolute;
  top: 3.5rem;
  right: 8%;
  /* In RTL, right is the right side of the screen */
  width: 160px;
  z-index: 3;
}

.static-hajj-hero__top-logo img {
  width: 100%;
  height: auto;
}

/* Middle-right: Title and subtitle */
.static-hajj-hero__text {
  position: absolute;
  top: 52%;
  right: 8%;
  transform: translateY(-50%);
  text-align: right;
  max-width: 850px;
  z-index: 3;
}

.static-hajj-hero__title {
  font-family: 'SaudiWeb-Bold', sans-serif !important;
  font-size: 3.5rem;
  font-weight: normal;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  letter-spacing: -0.5px;
}

.static-hajj-hero__subtitle {
  font-family: 'SaudiWeb-Regular', sans-serif !important;
  font-size: 1.3rem;
  color: #555555;
  margin: 0;
  font-weight: normal;
  line-height: 1.6;
}

/* Bottom-left: Ehsan logo */
.static-hajj-hero__bottom-logo {
  position: absolute;
  bottom: 3.5rem;
  left: 8%;
  /* Left side on top of the Hajj background */
  width: 75px;
  height: 75px;
  z-index: 3;
}

.static-hajj-hero__bottom-logo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

/* Center-bottom: Navigation dots */
.static-hajj-hero__dots {
  position: absolute;
  bottom: 3.5rem;
  right: 52%;
  /* Placed horizontally where the Hajj image transitions to off-white */
  transform: translateX(50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.static-hajj-hero__dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: #d8d8d8;
  display: inline-block;
  transition: all 0.3s ease;
}

.static-hajj-hero__dots .dot.active {
  background-color: #008a4f;
  /* Elegant Saudi green active dot */
  transform: scale(1.1);
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 1400px) {
  .static-hajj-hero__title {
    font-size: 3.2rem;
  }

  .static-hajj-hero__subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 1200px) {
  .static-hajj-hero {
    height: 480px;
  }

  .static-hajj-hero__title {
    font-size: 2.8rem;
  }

  .static-hajj-hero__top-logo {
    width: 130px;
    top: 2.5rem;
  }

  .static-hajj-hero__bottom-logo {
    width: 65px;
    height: 65px;
    bottom: 2.5rem;
  }

  .static-hajj-hero__dots {
    bottom: 2.5rem;
  }
}

@media (max-width: 991px) {
  .static-hajj-hero {
    height: 420px;
  }

  .static-hajj-hero__title {
    font-size: 2.2rem;
  }

  .static-hajj-hero__subtitle {
    font-size: 1.1rem;
  }

  .static-hajj-hero__top-logo {
    width: 110px;
    top: 2rem;
  }

  .static-hajj-hero__bottom-logo {
    width: 55px;
    height: 55px;
    bottom: 2rem;
    left: 5%;
  }

  .static-hajj-hero__dots {
    bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .static-hajj-hero {
    height: auto;
    min-height: 480px;
    display: flex;
    flex-direction: column;
  }

  /* Make image span full width on small screens and stack vertically */
  .static-hajj-hero__bg {
    position: relative;
    width: 100%;
    height: 250px;
  }

  .static-hajj-hero__bg-img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
  }

  .static-hajj-hero__overlay {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
  }

  .static-hajj-hero__top-logo {
    position: static;
    align-self: flex-start;
    margin-bottom: 2rem;
    width: 100px;
  }

  .static-hajj-hero__text {
    position: static;
    transform: none;
    max-width: 100%;
    margin-bottom: 3rem;
  }

  .static-hajj-hero__title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .static-hajj-hero__subtitle {
    font-size: 1rem;
  }

  .static-hajj-hero__bottom-logo {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .static-hajj-hero__dots {
    position: absolute;
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
  }
}

/* Custom Saudi heritage geometric outline divider for key blocks on Homepage-2 */
.homepage-2-override #how_it_works+.section-frame-divider,
.homepage-2-override #platform+.section-frame-divider,
.homepage-2-override #news+.section-frame-divider {
  width: 94%;
  height: 35px;
  /* Elegant Saudi green */
  background-image: url('../../images/Frame-21.png');
  background-repeat: repeat-x;
  background-size: auto 16px;
  background-position: center;
  margin: 1rem auto;
  display: block;
}

.section-frame-divider2 {
  width: 94%;
  height: 35px;
  /* Elegant Saudi green */
  background-image: url('../../images/Frame-21.png');
  background-repeat: repeat-x;
  background-size: auto 16px;
  background-position: center;
  margin: 1rem auto;
  display: block;
}