.elementor-widget-atlas_random_hero,
.elementor-widget-atlas_random_hero_variant {
  width: 100%;
}

.atlas-random-hero {
  --arh-hero-height: 540px;
  --arh-hero-height-tablet: 470px;
  --arh-hero-height-mobile: 306px;
  --arh-hero-radius: 24px;
  --arh-hero-radius-tablet: 20px;
  --arh-hero-radius-mobile: 18px;
  --arh-content-x: 63%;
  --arh-content-x-tablet: 65%;
  --arh-content-x-mobile: 68%;
  --arh-content-y: 49%;
  --arh-content-y-tablet: 47%;
  --arh-content-y-mobile: 44%;
  --arh-content-width: 58%;
  --arh-content-width-tablet: 64%;
  --arh-content-width-mobile: 60%;
  --arh-title-color: #f8f8f6;
  --arh-title-size: 142px;
  --arh-title-size-tablet: 104px;
  --arh-title-size-mobile: 68px;
  --arh-title-family: "Modam", "IRANSansX", Tahoma, sans-serif;
  --arh-title-weight: 900;
  --arh-title-line-height: 0.92em;
  --arh-title-letter-spacing: -0.055em;
  --arh-kicker-color: #86a7f7;
  --arh-kicker-size: 12px;
  --arh-kicker-size-tablet: 11px;
  --arh-kicker-size-mobile: 9px;
  --arh-kicker-family: Arial, sans-serif;
  --arh-kicker-weight: 800;
  --arh-kicker-line-height: 1.4em;
  --arh-kicker-letter-spacing: 0.22em;
  --arh-subtitle-color: #99acd3;
  --arh-subtitle-size: 17px;
  --arh-subtitle-size-tablet: 14px;
  --arh-subtitle-size-mobile: 10px;
  --arh-subtitle-family: "Modam", "IRANSansX", Tahoma, sans-serif;
  --arh-subtitle-weight: 400;
  --arh-subtitle-line-height: 1.9em;
  --arh-subtitle-letter-spacing: 0.02em;
  --arh-background-color: #0d1b38;
  --arh-overlay-color: rgba(7, 20, 44, 0.78);
  --arh-decoration-color: #7fa1f4;
  --arh-decoration-opacity: 0.85;
  --arh-x-offset: 0px;
  --arh-x-offset-tablet: 0px;
  --arh-x-offset-mobile: 0px;
  --arh-y-offset: 0px;
  --arh-y-offset-tablet: 0px;
  --arh-y-offset-mobile: 0px;
  --arh-cta-background: rgba(81, 113, 183, 0.34);
  --arh-cta-color: #fff;
  --arh-cta-border: rgba(255, 255, 255, 0.18);
  --arh-cta-radius: 12px;
  --arh-cta-size: 12px;
  --arh-cta-family: "Modam", "IRANSansX", Tahoma, sans-serif;
  --arh-cta-weight: 800;
  width: 100%;
  min-height: var(--arh-hero-height);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(112, 145, 226, 0.12);
  border-radius: var(--arh-hero-radius);
  background-color: var(--arh-background-color);
  color: #fff;
  box-shadow: 0 24px 60px rgba(20, 39, 77, 0.13);
  font-family: "Modam", "IRANSansX", Tahoma, sans-serif;
  direction: rtl;
}

.atlas-random-hero .arh-background,
.atlas-random-hero .arh-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atlas-random-hero .arh-background {
  z-index: -3;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.015);
  transition: opacity 0.35s ease, transform 0.7s ease;
}

.atlas-random-hero .arh-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 43, 91, 0.38), var(--arh-overlay-color) 62%),
    linear-gradient(180deg, rgba(34, 72, 146, 0.1), transparent 72%);
}

.atlas-random-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(135, 164, 232, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 164, 232, 0.2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 5%, #000 55%, transparent 100%);
  pointer-events: none;
}

.atlas-random-hero .arh-decoration {
  width: clamp(340px, 44vw, 560px);
  aspect-ratio: 1.25;
  position: absolute;
  z-index: -1;
  left: clamp(-95px, -5vw, -38px);
  top: 51%;
  border: 1px solid rgba(123, 158, 238, 0.22);
  border: 1px solid color-mix(in srgb, var(--arh-decoration-color) 28%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(76, 117, 214, 0.22), transparent 68%);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--arh-decoration-color) 22%, transparent), transparent 68%);
  box-shadow: 0 0 70px rgba(65, 104, 196, 0.14), inset 0 0 90px rgba(65, 104, 196, 0.1);
  box-shadow: 0 0 70px color-mix(in srgb, var(--arh-decoration-color) 14%, transparent), inset 0 0 90px color-mix(in srgb, var(--arh-decoration-color) 10%, transparent);
  opacity: var(--arh-decoration-opacity);
  transform: translateY(-50%) rotate(-11deg);
  pointer-events: none;
}

.atlas-random-hero .arh-decoration i {
  width: 11px;
  height: 11px;
  position: absolute;
  border-radius: 50%;
  background: var(--arh-decoration-color);
  box-shadow: 0 0 18px rgba(127, 161, 244, 0.72);
  box-shadow: 0 0 18px color-mix(in srgb, var(--arh-decoration-color) 72%, transparent);
}

.atlas-random-hero .arh-decoration i:nth-child(1) { left: 20%; top: 31%; }
.atlas-random-hero .arh-decoration i:nth-child(2) { left: 10%; top: 58%; }
.atlas-random-hero .arh-decoration i:nth-child(3) { left: 56%; top: 77%; }
.atlas-random-hero .arh-decoration i:nth-child(4) { left: 73%; top: 29%; }

.atlas-random-hero .arh-content {
  width: var(--arh-content-width);
  position: absolute;
  z-index: 2;
  left: var(--arh-content-x);
  top: var(--arh-content-y);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  text-align: right;
  transform: translate(-50%, -50%);
}

.atlas-random-hero.is-align-left .arh-content { align-items: flex-end; text-align: left; }
.atlas-random-hero.is-align-center .arh-content { align-items: center; text-align: center; }
.atlas-random-hero.is-align-right .arh-content { align-items: flex-start; text-align: right; }

.atlas-random-hero .arh-kicker {
  display: block;
  margin: 0 0 18px;
  color: var(--arh-kicker-color);
  font-family: var(--arh-kicker-family);
  font-size: var(--arh-kicker-size);
  font-weight: var(--arh-kicker-weight);
  line-height: var(--arh-kicker-line-height);
  letter-spacing: var(--arh-kicker-letter-spacing);
  direction: ltr;
}

.atlas-random-hero .arh-title {
  max-width: 100%;
  margin: 0;
  color: var(--arh-title-color);
  font-family: var(--arh-title-family);
  font-size: var(--arh-title-size);
  font-weight: var(--arh-title-weight);
  line-height: var(--arh-title-line-height);
  letter-spacing: var(--arh-title-letter-spacing);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.atlas-random-hero .arh-subtitle {
  max-width: 100%;
  margin: 22px 0 0;
  color: var(--arh-subtitle-color);
  font-family: var(--arh-subtitle-family);
  font-size: var(--arh-subtitle-size);
  font-weight: var(--arh-subtitle-weight);
  line-height: var(--arh-subtitle-line-height);
  letter-spacing: var(--arh-subtitle-letter-spacing);
}

.atlas-random-hero .arh-subtitle[hidden] { display: none; }

.atlas-random-hero .arh-cta {
  --arh-translate-x: 0;
  --arh-translate-y: 0;
  min-width: 190px;
  min-height: 58px;
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 12px 10px 17px;
  border: 1px solid var(--arh-cta-border);
  border-radius: var(--arh-cta-radius);
  background: var(--arh-cta-background);
  color: var(--arh-cta-color);
  box-shadow: 0 12px 28px rgba(3, 12, 31, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transform: translate(var(--arh-translate-x), var(--arh-translate-y));
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.atlas-random-hero .arh-cta:hover,
.atlas-random-hero .arh-cta:focus-visible {
  border-color: color-mix(in srgb, var(--arh-cta-border) 65%, #fff);
  background: color-mix(in srgb, var(--arh-cta-background) 78%, #6588df);
  color: var(--arh-cta-color);
  box-shadow: 0 16px 34px rgba(3, 12, 31, 0.28);
}

.atlas-random-hero .arh-cta:focus-visible {
  outline: 3px solid rgba(132, 165, 245, 0.48);
  outline-offset: 3px;
}

.atlas-random-hero .arh-cta-copy { display: block; text-align: right; }

.atlas-random-hero .arh-cta-copy strong {
  color: var(--arh-cta-color);
  font-family: var(--arh-cta-family);
  font-size: var(--arh-cta-size);
  font-weight: var(--arh-cta-weight);
}

.atlas-random-hero .arh-cta-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border: 1px solid color-mix(in srgb, var(--arh-cta-color) 28%, transparent);
  border-radius: 9px;
  color: var(--arh-cta-color);
}

.atlas-random-hero .arh-cta-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.atlas-random-hero.is-h-left .arh-cta { left: calc(32px + var(--arh-x-offset)); right: auto; }
.atlas-random-hero.is-h-center .arh-cta { --arh-translate-x: -50%; left: calc(50% + var(--arh-x-offset)); right: auto; }
.atlas-random-hero.is-h-right .arh-cta { right: calc(32px + var(--arh-x-offset)); left: auto; }
.atlas-random-hero.is-v-top .arh-cta { top: calc(32px + var(--arh-y-offset)); bottom: auto; }
.atlas-random-hero.is-v-middle .arh-cta { --arh-translate-y: -50%; top: calc(50% + var(--arh-y-offset)); bottom: auto; }
.atlas-random-hero.is-v-bottom .arh-cta { bottom: calc(32px + var(--arh-y-offset)); top: auto; }

.atlas-random-hero-empty {
  padding: 18px 20px;
  border: 1px dashed #aeb9cc;
  border-radius: 12px;
  background: #f3f6fa;
  color: #536078;
  font: 500 13px/1.9 "Modam", Tahoma, sans-serif;
  direction: rtl;
}

@media (max-width: 1024px) {
  .atlas-random-hero {
    min-height: var(--arh-hero-height-tablet);
    border-radius: var(--arh-hero-radius-tablet);
  }

  .atlas-random-hero .arh-content {
    width: var(--arh-content-width-tablet);
    left: var(--arh-content-x-tablet);
    top: var(--arh-content-y-tablet);
  }

  .atlas-random-hero.is-align-tablet-left .arh-content { align-items: flex-end; text-align: left; }
  .atlas-random-hero.is-align-tablet-center .arh-content { align-items: center; text-align: center; }
  .atlas-random-hero.is-align-tablet-right .arh-content { align-items: flex-start; text-align: right; }

  .atlas-random-hero .arh-title { font-size: var(--arh-title-size-tablet); }
  .atlas-random-hero .arh-kicker { font-size: var(--arh-kicker-size-tablet); }
  .atlas-random-hero .arh-subtitle { font-size: var(--arh-subtitle-size-tablet); }

  .atlas-random-hero .arh-cta { --arh-translate-x: 0; --arh-translate-y: 0; }
  .atlas-random-hero.is-h-tablet-left .arh-cta { left: calc(26px + var(--arh-x-offset-tablet)); right: auto; }
  .atlas-random-hero.is-h-tablet-center .arh-cta { --arh-translate-x: -50%; left: calc(50% + var(--arh-x-offset-tablet)); right: auto; }
  .atlas-random-hero.is-h-tablet-right .arh-cta { right: calc(26px + var(--arh-x-offset-tablet)); left: auto; }
  .atlas-random-hero.is-v-tablet-top .arh-cta { top: calc(26px + var(--arh-y-offset-tablet)); bottom: auto; }
  .atlas-random-hero.is-v-tablet-middle .arh-cta { --arh-translate-y: -50%; top: calc(50% + var(--arh-y-offset-tablet)); bottom: auto; }
  .atlas-random-hero.is-v-tablet-bottom .arh-cta { bottom: calc(26px + var(--arh-y-offset-tablet)); top: auto; }
}

@media (max-width: 767px) {
  .atlas-random-hero {
    min-height: var(--arh-hero-height-mobile);
    border-radius: var(--arh-hero-radius-mobile);
  }

  .atlas-random-hero .arh-overlay {
    background: linear-gradient(90deg, rgba(20, 51, 108, 0.38), var(--arh-overlay-color) 68%);
  }

  .atlas-random-hero::after { background-size: 44px 44px; }

  .atlas-random-hero .arh-decoration {
    width: 280px;
    left: -108px;
    top: 53%;
  }

  .atlas-random-hero .arh-decoration i {
    width: 9px;
    height: 9px;
  }

  .atlas-random-hero .arh-content {
    width: var(--arh-content-width-mobile);
    left: var(--arh-content-x-mobile);
    top: var(--arh-content-y-mobile);
  }

  .atlas-random-hero.is-align-mobile-left .arh-content { align-items: flex-end; text-align: left; }
  .atlas-random-hero.is-align-mobile-center .arh-content { align-items: center; text-align: center; }
  .atlas-random-hero.is-align-mobile-right .arh-content { align-items: flex-start; text-align: right; }

  .atlas-random-hero .arh-title { font-size: min(var(--arh-title-size-mobile), 15vw); }
  .atlas-random-hero .arh-kicker {
    margin-bottom: 12px;
    font-size: var(--arh-kicker-size-mobile);
  }
  .atlas-random-hero .arh-subtitle {
    margin-top: 8px;
    font-size: var(--arh-subtitle-size-mobile);
  }

  .atlas-random-hero .arh-cta {
    --arh-translate-x: 0;
    --arh-translate-y: 0;
    min-width: 168px;
    min-height: 48px;
    padding: 7px 8px 7px 13px;
  }

  .atlas-random-hero.is-h-mobile-left .arh-cta { left: calc(20px + var(--arh-x-offset-mobile)); right: auto; }
  .atlas-random-hero.is-h-mobile-center .arh-cta { --arh-translate-x: -50%; left: calc(50% + var(--arh-x-offset-mobile)); right: auto; }
  .atlas-random-hero.is-h-mobile-right .arh-cta { right: calc(20px + var(--arh-x-offset-mobile)); left: auto; }
  .atlas-random-hero.is-v-mobile-top .arh-cta { top: calc(20px + var(--arh-y-offset-mobile)); bottom: auto; }
  .atlas-random-hero.is-v-mobile-middle .arh-cta { --arh-translate-y: -50%; top: calc(50% + var(--arh-y-offset-mobile)); bottom: auto; }
  .atlas-random-hero.is-v-mobile-bottom .arh-cta { bottom: calc(20px + var(--arh-y-offset-mobile)); top: auto; }

  .atlas-random-hero.is-mobile-icon-only .arh-cta,
  .arh-mobile-mode-icon .atlas-random-hero .arh-cta {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    justify-content: center;
    padding: 6px;
  }

  .atlas-random-hero.is-mobile-icon-only .arh-cta-copy,
  .arh-mobile-mode-icon .atlas-random-hero .arh-cta-copy { display: none; }

  .arh-mobile-mode-full .atlas-random-hero .arh-cta {
    width: auto;
    min-width: 168px;
    height: auto;
    min-height: 48px;
    justify-content: space-between;
    padding: 7px 8px 7px 13px;
  }

  .arh-mobile-mode-full .atlas-random-hero .arh-cta-copy { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-random-hero *,
  .atlas-random-hero *::before,
  .atlas-random-hero *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
