/* ==========================================================
   RAD HERO SLIDER V4 CSS
   فقط ظاهر کلی اینجا تعریف شده.
   چیدمان هر اسلاید از داخل style همان article تنظیم می‌شود.
   ========================================================== */

.rad-home-hero-v4,
.rad-home-hero-v4 * {
  box-sizing: border-box;
}

.rad-home-hero-v4 {
  --rad-red: #e11220;
  --rad-white: #ffffff;
  --rad-muted: rgba(255,255,255,.72);
  --rad-duration: 6800ms;

  position: relative;
  width: 100%;
  min-height: clamp(680px, 88vh, 940px);
  overflow: hidden;
  isolation: isolate;
  direction: rtl;
  color: var(--rad-white);
  background: #050505;
  font-family: inherit;
  touch-action: pan-y;
}

/* Slide base */
.rad-home-hero-v4 .rad-hero-track,
.rad-home-hero-v4 .rad-hero-slide {
  position: absolute;
  inset: 0;
}

.rad-home-hero-v4 .rad-hero-slide {
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  transition:
    opacity 620ms ease,
    visibility 620ms ease,
    transform 1100ms cubic-bezier(.18,.8,.25,1);
}

.rad-home-hero-v4 .rad-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* Images */
.rad-home-hero-v4 .rad-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  background: #050505;
}

/* Default overlay */
.rad-home-hero-v4 .rad-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 44%, rgba(225,18,32,.14), transparent 30%),
    linear-gradient(90deg,
      rgba(0,0,0,.90) 0%,
      rgba(0,0,0,.56) 34%,
      rgba(0,0,0,.16) 66%,
      rgba(0,0,0,.06) 100%);
}

/* Center overlay for slide 06 */
.rad-home-hero-v4 .rad-hero-overlay-center {
  background:
    radial-gradient(circle at 50% 48%, rgba(225,18,32,.16), transparent 34%),
    linear-gradient(90deg,
      rgba(0,0,0,.64) 0%,
      rgba(0,0,0,.44) 24%,
      rgba(0,0,0,.36) 50%,
      rgba(0,0,0,.44) 76%,
      rgba(0,0,0,.64) 100%),
    linear-gradient(180deg,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,.20) 42%,
      rgba(0,0,0,.50) 100%);
}

/* ==========================================================
   Content layout
   مقدارها از style داخل هر اسلاید خوانده می‌شوند.
   ========================================================== */

.rad-home-hero-v4 .rad-hero-content {
  position: relative;
  z-index: 3;

  width: var(--content-width-desktop, min(610px,44vw));
  margin-right: var(--content-margin-right, clamp(28px,7vw,118px));
  margin-left: var(--content-margin-left, auto);
  padding-block: clamp(110px, 14vh, 172px) 154px;

  text-align: var(--content-text-align, right);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 620ms ease 140ms,
    transform 620ms cubic-bezier(.18,.8,.25,1) 140ms;
}

.rad-home-hero-v4 .rad-hero-slide.is-active .rad-hero-content {
  opacity: 1;
  transform: translateY(0);
}

/* Typography */
.rad-home-hero-v4 .rad-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: var(--content-justify, flex-start);
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255,255,255,.68);
  font-size: clamp(10px, .78vw, 13px);
  font-weight: 700;
  letter-spacing:0;
  direction: ltr;
  text-transform: uppercase;
}

.rad-home-hero-v4 .rad-hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--rad-red);
  box-shadow: 0 0 18px rgba(225,18,32,.72);
}

.rad-home-hero-v4 h1,
.rad-home-hero-v4 h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 4.9vw, 82px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing:0;
  text-wrap: balance;
}

.rad-home-hero-v4 p {
  max-width: 680px;
  margin: var(--paragraph-margin, 22px 0 0);
  color: var(--rad-muted);
  font-size: clamp(15.5px, 1.26vw, 21px);
  line-height: 2;
  font-weight: 400;
}

/* Tags */
.rad-home-hero-v4 .rad-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--content-justify, flex-start);
  gap: 9px;
  margin-top: 25px;
}

.rad-home-hero-v4 .rad-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.045);
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Buttons */
.rad-home-hero-v4 .rad-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--content-justify, flex-start);
  gap: 12px;
  margin-top: 32px;
}

.rad-home-hero-v4 .rad-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 52px;
  padding: 13px 26px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  transition:
    transform 200ms ease,
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.rad-home-hero-v4 .rad-hero-btn:hover {
  transform: translateY(-2px);
}

.rad-home-hero-v4 .rad-hero-btn.is-primary {
  color: #fff !important;
  background: var(--rad-red);
  border: 1px solid var(--rad-red);
  box-shadow: 0 16px 34px rgba(225,18,32,.26);
}

.rad-home-hero-v4 .rad-hero-btn.is-primary:hover {
  background: #ff1c2d;
  border-color: #ff1c2d;
}

.rad-home-hero-v4 .rad-hero-btn.is-outline {
  color: #fff !important;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.36);
}

.rad-home-hero-v4 .rad-hero-btn.is-outline:hover {
  color: #050505 !important;
  background: #fff;
  border-color: #fff;
}

/* Progress */
.rad-home-hero-v4 .rad-hero-progress {
  position: absolute;
  z-index: 7;
  left: clamp(18px, 5vw, 80px);
  right: clamp(18px, 5vw, 80px);
  bottom: 104px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  height: 3px;
}

.rad-home-hero-v4 .rad-hero-progress button {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  cursor: pointer;
}

.rad-home-hero-v4 .rad-hero-progress i {
  position: absolute;
  inset: 0;
  display: block;
  width: 0%;
  border-radius: inherit;
  background: rgba(255,255,255,.92);
  transform-origin: right center;
}

.rad-home-hero-v4 .rad-hero-progress button.is-done i {
  width: 100%;
}

.rad-home-hero-v4 .rad-hero-progress button.is-active i {
  width: 100%;
  animation: radHeroFill var(--rad-duration) linear forwards;
}

.rad-home-hero-v4.is-paused .rad-hero-progress button.is-active i {
  animation-play-state: paused;
}

@keyframes radHeroFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Trust Bar */
.rad-home-hero-v4 .rad-hero-trustbar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 6;
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.52);
}

.rad-home-hero-v4 .rad-hero-trustbar div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 15px clamp(12px, 2vw, 30px);
  border-inline-start: 1px solid rgba(255,255,255,.10);
  text-align: center;
}

.rad-home-hero-v4 .rad-hero-trustbar div:last-child {
  border-inline-start: 0;
}

.rad-home-hero-v4 .rad-hero-trustbar strong {
  color: #fff;
  font-size: clamp(12px, .9vw, 15px);
  font-weight: 850;
  line-height: 1.4;
}

.rad-home-hero-v4 .rad-hero-trustbar span {
  color: rgba(255,255,255,.56);
  font-size: clamp(10.5px, .78vw, 12.5px);
  line-height: 1.5;
}

/* Tablet */
@media (max-width: 1024px) {
  .rad-home-hero-v4 {
    min-height: 780px;
  }

  .rad-home-hero-v4 .rad-hero-img {
    object-position: var(--pos-mobile, center center);
  }

  .rad-home-hero-v4 .rad-hero-overlay,
  .rad-home-hero-v4 .rad-hero-overlay-center {
    background:
      linear-gradient(180deg,
        rgba(0,0,0,.08) 0%,
        rgba(0,0,0,.22) 36%,
        rgba(0,0,0,.72) 68%,
        rgba(0,0,0,.94) 100%);
  }

  .rad-home-hero-v4 .rad-hero-content {
    width: var(--content-width-tablet, min(680px, calc(100% - 42px)));
    margin-right: var(--content-margin-right-tablet, auto);
    margin-left: var(--content-margin-left-tablet, auto);
    align-self: end;
    padding: 0 0 176px;
    text-align: var(--content-text-align-tablet, center);
  }

  .rad-home-hero-v4 p {
    margin: var(--paragraph-margin-tablet, 15px auto 0);
  }

  .rad-home-hero-v4 .rad-hero-kicker,
  .rad-home-hero-v4 .rad-hero-tags,
  .rad-home-hero-v4 .rad-hero-actions {
    justify-content: var(--content-justify-tablet, center);
  }

  .rad-home-hero-v4 .rad-hero-progress {
    bottom: 130px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .rad-home-hero-v4 {
    min-height: 760px;
  }

  .rad-home-hero-v4 .rad-hero-content {
    width: var(--content-width-mobile, min(100% - 32px, 540px));
    padding-bottom: 196px;
    text-align: var(--content-text-align-mobile, center);
  }

  .rad-home-hero-v4 .rad-hero-kicker {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing:0;
  }

  .rad-home-hero-v4 h1,
  .rad-home-hero-v4 h2 {
    font-size: clamp(34px, 10vw, 50px);
    line-height: 1.16;
  }

  .rad-home-hero-v4 p {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.92;
  }

  .rad-home-hero-v4 .rad-hero-kicker,
  .rad-home-hero-v4 .rad-hero-tags,
  .rad-home-hero-v4 .rad-hero-actions {
    justify-content: var(--content-justify-mobile, center);
  }

  .rad-home-hero-v4 .rad-hero-tags {
    margin-top: 17px;
    gap: 7px;
  }

  .rad-home-hero-v4 .rad-hero-tags span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11.3px;
  }

  .rad-home-hero-v4 .rad-hero-actions {
    margin-top: 22px;
    gap: 9px;
  }

  .rad-home-hero-v4 .rad-hero-btn {
    flex: 1 1 130px;
    min-width: 0;
    min-height: 47px;
    padding: 12px 13px;
    font-size: 13px;
  }

  .rad-home-hero-v4 .rad-hero-progress {
    left: 16px;
    right: 16px;
    bottom: 139px;
    gap: 5px;
    height: 2px;
  }

  .rad-home-hero-v4 .rad-hero-progress button {
    height: 2px;
  }

  .rad-home-hero-v4 .rad-hero-trustbar {
    min-height: 116px;
    grid-template-columns: repeat(2, 1fr);
  }

  .rad-home-hero-v4 .rad-hero-trustbar div {
    padding: 10px 8px;
  }

  .rad-home-hero-v4 .rad-hero-trustbar strong {
    font-size: 11.5px;
  }

  .rad-home-hero-v4 .rad-hero-trustbar span {
    font-size: 10px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .rad-home-hero-v4 {
    min-height: 720px;
  }

  .rad-home-hero-v4 .rad-hero-content {
    padding-bottom: 190px;
  }

  .rad-home-hero-v4 h1,
  .rad-home-hero-v4 h2 {
    font-size: 34px;
  }

  .rad-home-hero-v4 p {
    font-size: 13.3px;
  }

  .rad-home-hero-v4 .rad-hero-tags span:nth-child(3) {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .rad-home-hero-v4 .rad-hero-slide,
  .rad-home-hero-v4 .rad-hero-content,
  .rad-home-hero-v4 .rad-hero-btn,
  .rad-home-hero-v4 .rad-hero-progress i {
    transition: none !important;
    animation: none !important;
  }
}
