/* بنر الصفحة الرئيسية — كل الأنماط محصورة تحت .dh-hero لتجنب التعارض مع Bootstrap والثيم. */
.dh-hero{
  --dh-art-ratio:3.2031;
  --dh-art-w:max(100cqw, calc(var(--dh-art-ratio) * 100cqh));
  --dh-text-edge:calc(max(664px, 50cqw + 4px) + 40px);
  --dh-badge-left:max(var(--dh-text-edge), calc(100cqw - var(--dh-art-w) * .5));
  position:relative;overflow:hidden;background:#0b1427;width:100%;
  height:max(620px, calc(100vw / 3.45));container-type:size;
  font-family:'Tajawal',system-ui,sans-serif;color:#fff;text-align:center
}
.dh-hero *,.dh-hero *::before,.dh-hero *::after{box-sizing:border-box}
.dh-hero [hidden]{display:none!important}

.dh-hero__bg{
  position:absolute;top:50%;transform:translateY(-50%);
  left:max(calc(100cqw - var(--dh-art-w)), calc(var(--dh-text-edge) - var(--dh-art-w) * .5));
  width:var(--dh-art-w);aspect-ratio:var(--dh-art-ratio);
  background:var(--dh-bg) center/100% 100% no-repeat
}
.dh-hero__shade{position:absolute;inset:0;background:linear-gradient(to right, rgba(11,20,39,.85) 0%, rgba(11,20,39,.55) 55%, rgba(11,20,39,0) 80%);opacity:max(0, min(1, calc((1400px - 100cqw) / 400px)))}

.dh-hero__badge{
  position:absolute;left:var(--dh-badge-left);top:max(40px, 7cqh);z-index:1;
  width:max(0px, min(calc(var(--dh-art-w) * .11), calc(100cqw - var(--dh-badge-left) - 24px)));
  aspect-ratio:201.92/193.33;transform:rotate(-4deg);container-type:inline-size;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.35))
}
.dh-hero__badge svg{position:absolute;inset:0;width:100%;height:100%}
.dh-hero__badge-text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;line-height:1.05;padding:8%}
.dh-hero__badge-title{font-weight:900;font-size:27cqw}
.dh-hero__badge-sub{font-weight:700;font-size:11cqw;margin-top:4%;max-width:68%;text-wrap:balance}

.dh-hero__inner{position:relative;max-width:1320px;margin:0 auto;height:100%;padding:40px 24px;display:flex;justify-content:flex-end;align-items:center}
.dh-hero__content{width:min(640px,100%);display:flex;flex-direction:column;align-items:center;gap:28px}
.dh-hero__title{margin:0;display:flex;flex-direction:column;align-items:center;gap:10px;font-family:inherit;font-weight:900;font-size:clamp(40px,4.6vw,76px);line-height:1.15;color:#fff}
.dh-hero__title span{background:#3b7ff2;border-radius:10px;padding:10px 22px 12px;line-height:1.3}
.dh-hero__title.is-plain{gap:0;line-height:1.2}
.dh-hero__title.is-plain span{background:none;padding:0}
.dh-hero__title.is-plain span:last-child:not(:first-child){color:#6fa3ff}
.dh-hero__subtitle{margin:0;max-width:520px;font-size:clamp(17px,1.5vw,24px);line-height:1.75;color:#e6ecf7;font-weight:500;white-space:pre-line;text-wrap:pretty}

.dh-hero__countdown{display:flex;align-items:flex-start;gap:clamp(8px,1.2vw,20px);font-weight:800;font-variant-numeric:tabular-nums}
.dh-hero__cd-unit{display:flex;flex-direction:column;align-items:center;gap:6px}
.dh-hero__cd-val{font-size:clamp(48px,5.4vw,88px);line-height:1;letter-spacing:1px}
.dh-hero__cd-sep{font-size:clamp(40px,4.4vw,72px);line-height:1;opacity:.9}
.dh-hero__cd-label{font-size:15px;font-weight:500;color:#b9c6de}
.dh-hero__countdown.no-labels .dh-hero__cd-label{display:none}

.dh-hero__actions{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;margin-top:4px}
.dh-hero__btn{min-width:220px;height:58px;padding:0 28px;border-radius:10px;color:#fff;display:flex;align-items:center;justify-content:center;gap:12px;font-size:20px;font-weight:500;text-decoration:none;transition:background-color .2s}
.dh-hero__btn:hover,.dh-hero__btn:focus{color:#fff;text-decoration:none}
.dh-hero__btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.dh-hero__btn--outline{border:2px solid #ff4f1a;background:rgba(11,20,39,.35)}
.dh-hero__btn--outline:hover{background:rgba(255,79,26,.15)}
.dh-hero__btn--primary{background:#ff4f1a}
.dh-hero__btn--primary:hover{background:#e8410f}
.dh-hero__btn svg{flex:none}

/* الجوال والأجهزة اللوحية: ارتفاع حسب المحتوى، والخلفية تغطي البنر كاملًا (صورة الجوال إن وُجدت). */
@media (max-width:991.98px){
  .dh-hero{height:auto;container-type:normal}
  .dh-hero__bg{inset:0;transform:none;width:auto;aspect-ratio:auto;background:var(--dh-bg) right center/cover no-repeat}
  .dh-hero--mobile-bg .dh-hero__bg{background-image:var(--dh-bg-mobile);background-position:center}
  .dh-hero__shade{opacity:1;background:rgba(11,20,39,.62)}
  .dh-hero--mobile-bg .dh-hero__shade{background:linear-gradient(to bottom, rgba(11,20,39,.15) 0%, rgba(11,20,39,.7) 55%)}
  .dh-hero__badge{left:16px;top:16px;width:104px;container-type:inline-size}
  .dh-hero__inner{height:auto;min-height:560px;padding:48px 16px 40px;justify-content:center}
  .dh-hero__badge:not([hidden]) ~ .dh-hero__inner{padding-top:136px}
  .dh-hero__content{gap:22px}
  .dh-hero__title span{padding:8px 16px 10px}
  .dh-hero__actions{gap:12px;width:100%}
  .dh-hero__btn{min-width:0;flex:1 1 220px;height:52px;font-size:18px}
}
@media (prefers-reduced-motion:reduce){.dh-hero__btn{transition:none}}
