@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

    .icaur-widget-hero {
      --accent: #E86D26;
      --text: #ffffff;
      --muted: #ffffff;
      --progress-track: rgb(255, 255, 255);
      --progress-fill: #E86D26;

      position: relative;
      height: 100vh;
      overflow: hidden;
      isolation: isolate;
      font-family: 'Montserrat';
      color: var(--text);
      background: #0f131d;
    }

    .icaur-widget-hero *,
    .icaur-widget-hero *::before,
    .icaur-widget-hero *::after {
      box-sizing: border-box;
    }

    .icaur-widget-hero .slides {
      position: absolute;
      inset: 0;
      z-index: 0;
    }

    .icaur-widget-hero .slide {
      position: absolute;
      inset: 0;
      background: var(--bg) center center / cover no-repeat;
      opacity: 0;
      transform: scale(1.02);
      transition: opacity var(--icaur-fade, 850ms) ease, transform var(--icaur-fade, 850ms) ease;
      z-index: 0;
    }

    .icaur-widget-hero .slide::after {
      pointer-events: none;
      content: '';
      position: absolute;
      inset: 0;
      /* background: linear-gradient(
        90deg,
        rgba(15, 19, 29, 0.82) 0%,
        rgba(15, 19, 29, 0.7) 32%,
        rgba(15, 19, 29, 0.25) 65%,
        rgba(15, 19, 29, 0) 90%
      ); */
    }

    .icaur-widget-hero .slide.active {
      opacity: 1;
      transform: scale(1);
      z-index: 2;
    }

    .icaur-widget-hero .slide .overlay {
    position: absolute;
    z-index: 3;
    }

    .icaur-widget-hero .overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      gap: 26px;
      padding: 120px 7px 120px 90px;
      max-width: 520px;
      z-index: 1;
      direction: ltr;
      text-align: left;
    }

    .icaur-widget-hero .mark {
      width: 305px;
      height: 42px;
    }

    .icaur-widget-hero .overlay p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
      width:max-content;
      max-width: 50ch;
    }

    .icaur-widget-hero .ctas {
      display: flex;
      gap: 14px;
      flex-wrap: nowrap;
    }

    .icaur-widget-hero .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px;
      width: 220px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      border-radius: 6px;
      border: 2px solid var(--accent);
      transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
      z-index: 3;
    }

    .icaur-widget-hero .btn.primary {
      background: var(--accent);
      color: var(--text);
    }

    .icaur-widget-hero .btn.ghost {
      background: transparent;
      color: var(--accent);
      border-color: var(--accent);
    }

    .icaur-widget-hero .btn:hover {
      transform: translateY(-1px);
      opacity: 0.9;
    }

    .icaur-widget-hero .progress-dots {
      position: absolute;
      right: 44px;
      bottom: 34px;
      display: flex;
      gap: 10px;
      z-index: 2;
    }

    .icaur-widget-hero .dot {
      width: 15px;
      height: 4px;
      border-radius: 999px;
      background: var(--progress-track);
      overflow: hidden;
      padding: 0;
      border: none;
      cursor: pointer;
      position: relative;
      transition:
        width 0.25s ease,
        height 0.25s ease,
        border-radius 0.25s ease,
        transform 0.25s ease;
    }

    .icaur-widget-hero .dot.active {
      width: 30px;
      transform: scale(1.02);
    }

    .icaur-widget-hero .dot .fill {
      position: absolute;
      inset: 0;
      width: 100%;
      background: var(--progress-fill);
      border-radius: inherit;
      transform-origin: left center;
      transform: scaleX(0);
      will-change: transform;
    }

    @keyframes icaur-hero-fill {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }

    .icaur-widget-hero .nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.35);
      color: var(--text);
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      font-size: 26px;
      line-height: 1;
      z-index: 2;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .icaur-widget-hero .nav:hover {
      background: rgba(0, 0, 0, 0.5);
      transform: translateY(-50%) scale(1.02);
    }

    .icaur-widget-hero .nav.prev {
      left: 22px;
    }

    .icaur-widget-hero .nav.next {
      right: 22px;
    }

    @media (max-width: 900px) {
      .icaur-widget-hero .overlay {
        padding: 100px 32px;
        max-width: 100%;
      }

      .icaur-widget-hero .mark {
        width: 200px;
        height: 25px;
      }

      .icaur-widget-hero .progress-dots {
        right: 24px;
        bottom: 26px;
      }
        .icaur-widget-hero .overlay p {width: auto;}
    }


    /* عکس پیش‌فرض (دسکتاپ) */
  .icaur-widget-hero .slide {
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center center;   /* یا top center اگر لازم بود */
    background-repeat: no-repeat;
  }

  /* عکس مخصوص موبایل */
  @media (max-width: 900px) {
    .icaur-widget-hero .slide {
      background-image: var(--bg-mobile) !important;
      background-position: center center;   /* روی موبایل معمولاً center center یا top center بهتره */
    }
  }
  /* ==================================================
    NEW MOBILE HERO LAYOUT
    ================================================== */
  @media (max-width: 640px) {

      /* ارتفاع کلی اسلایدر */
      .icaur-widget-hero {
          width: 100%;
          height: 90vh;
      }

    

      /* قرارگیری دقیق تصویر در مرکز */
      .icaur-widget-hero .slide {
          background-image: var(--bg-mobile) !important;
          background-size: cover !important;
          background-position: bottom center  !important;
          background-repeat: no-repeat !important;
      }

      /*
      * لایه رنگی بالای تصویر:
      * از رنگ قهوه‌ای شروع می‌شود و بعد از محدوده
      * متن و دکمه‌ها به‌تدریج شفاف می‌شود.
      */


      /* قرارگیری محتوا در بالای عکس */
      .icaur-widget-hero .slide .overlay,
      .icaur-widget-hero .overlay {
          position: absolute;
          inset: 0;
          z-index: 3;

          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: center;

          width: 100%;
          max-width: none;
          height: 100%;

          padding: 28px 20px 70px;
          gap: 12px;

          direction: ltr;
          text-align: center;
          margin-top: 30px;
      }

      /* لوگو */
      .icaur-widget-hero .mark {
          display: block;
          width: 140px;
          max-width: 45%;
          height: auto;
          object-fit: contain;
      }

      /* متن */
      .icaur-widget-hero .overlay p {
          width: 100%;
          max-width: 340px;
          margin: 0;

          font-size: 13px;
          line-height: 1.55;
          color: #ffffff;
      }

      /* دکمه‌ها بعد از متن و زیر یکدیگر */
      .icaur-widget-hero .ctas {
          display: flex;
          flex-direction: column;
          align-items: center;

          width: 100%;
          gap: 8px;
          margin-top: 2px;
      }

      .icaur-widget-hero .btn {
          width: 180px;
          min-height: 40px;
          padding: 9px 14px;

          font-size: 12px;
          line-height: 1.2;
      }

      /* محل نقاط اسلایدر */
      .icaur-widget-hero .progress-dots {
          right: 50%;
          bottom: 18px;
          transform: translateX(50%);
          z-index: 4;
      }

      .icaur-widget-hero .nav {
          display: none;
      }
  }
  /* Optional black logo and text on mobile */
  @media (max-width: 640px) {

      /* متن مشکی */
      .icaur-widget-hero .slide.is-mobile-dark .overlay p {
          color: #000000 !important;
      }

      /* لوگوی مشکی */
      .icaur-widget-hero .slide.is-mobile-dark .mark {
          filter: brightness(0) !important;
      }

  }
@media (min-width: 901px) {
  .icaur-widget-hero {
    width: 100%;
    height: 100vh;
    min-height: 0;
    max-height: none;
  }

  .icaur-widget-hero .slide {
    background-size: cover;
    transform: none;
  }

  .icaur-widget-hero .slides > .slide.is-desktop-contained {
    overflow: hidden;
    background-image: none;
  }

  .icaur-widget-hero .slides > .slide.is-desktop-contained::before,
  .icaur-widget-hero .slides > .slide.is-desktop-contained::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--bg-desktop) center / cover no-repeat;
  }

  .icaur-widget-hero .slides > .slide.is-desktop-contained::before {
    inset: -28px;
    background-size: cover;
    filter: blur(24px) brightness(.65);
  }
}
.icaur-widget-hero .slide {
  background-position: var(--focus-desktop, center center) !important;
}

.icaur-widget-hero .slide::after {
  box-shadow: inset 0 0 0 100vmax var(--icaur-image-tint, transparent);
}

.icaur-widget-hero .overlay p {
  color: var(--muted);
}

.icaur-widget-hero .nav {
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  color: var(--icaur-arrow-color, #fff);
}

.icaur-widget-hero .progress-dots {
  z-index: 5;
}

@media (max-width: 900px) {
  .icaur-widget-hero .slide {
    background-position: var(--focus-mobile, center center) !important;
  }
}

@media (max-width: 640px) {
  .icaur-widget-hero .slide.is-mobile-contained {
    background-size: contain !important;
  }

  .icaur-widget-hero .nav.prev { left: 8px; }
  .icaur-widget-hero .nav.next { right: 8px; }
  .icaur-widget-hero .nav { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .icaur-widget-hero .slide,
  .icaur-widget-hero .dot {
    transition: none;
  }
}