/* ======================================================================
   banner.css (SHARED)
   - Shared banner slider styles used by multiple pages.
   - DO NOT scope to .list-ads-page or .list-requests-page
   ====================================================================== */

.ad-banner-wrap {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .14);
  background: #fff;
}

.ad-banner-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(255, 122, 24, .20), transparent 55%),
    radial-gradient(900px 240px at 80% 0%, rgba(22, 163, 74, .12), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.ad-banner-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

@media (min-width: 640px) {
  .ad-banner-img { height: 260px; }
}

@media (min-width: 1024px) {
  .ad-banner-img { height: 290px; }
}

.ad-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, .78),
    rgba(17, 24, 39, .20) 55%,
    rgba(17, 24, 39, .06)
  );
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

@media (min-width: 640px) {
  .ad-banner-overlay { padding: 24px; }
}

.ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.ad-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  transition: .2s;
  text-decoration: none;
  white-space: nowrap;
}

/* Uses your global vars defined in page css (:root) */
.ad-cta .btn-primary { background: var(--rukn-orange); color: #fff; }
.ad-cta .btn-primary:hover { background: #e06600; }

.ad-cta .btn-ghost {
  background: #fff;
  color: #111827;
  border: 1px solid rgba(255, 122, 24, .22);
}
.ad-cta .btn-ghost:hover { background: #fff6ef; }

.ad-banner-slides { position: relative; }

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
  transform: scale(1.02);
  display: block;
}

.ad-slide.is-active {
  opacity: 1;
  position: relative;
  transform: scale(1.02);
}

.ad-dots {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .ad-dots { bottom: 16px; }
}

.ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

.ad-dot:hover { transform: scale(1.15); }

.ad-dot.is-active {
  width: 26px;
  background: rgba(255, 255, 255, .92);
}

/* Mobile clamp helpers (your partial uses these IDs optionally) */
@media (max-width: 639px) {
  #bannerTitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #bannerDesc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ad-banner-overlay { padding-bottom: 76px; }
}

/* corner CTA helper */
.ad-cta-corner {
  position: absolute;
  left: 14px;
  bottom: 16px;
  padding: 8px 10px;
  gap: 8px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: calc(100% - 28px);
}

.ad-cta-corner a {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 12px;
}

@media (min-width: 640px) {
  .ad-cta-corner {
    left: 24px;
    bottom: 22px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .ad-cta-corner a {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 14px;
  }
}

/* ======================================================================
   BILLBOARD BANNER (standardized swiper banner — all list pages)
   ====================================================================== */

.pro-shadow {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.10);
}

.billboard-container {
  height: clamp(200px, 26vw, 340px);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #e5e7eb;
}

.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(0,0,0,0.84) 0%,
    rgba(0,0,0,0.58) 34%,
    rgba(0,0,0,0.28) 62%,
    rgba(0,0,0,0.08) 100%
  );
}

.banner-layout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-right: clamp(18px, 5vw, 76px);
  padding-left: clamp(18px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.banner-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-content {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  direction: rtl;
  text-align: right;
  color: #ffffff;
  gap: 14px;
  text-shadow: 0 3px 18px rgba(0,0,0,0.30);
  position: relative;
  z-index: 2;
}

.banner-title {
  width: 100%;
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 3.5rem);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: right;
}

.banner-desc {
  width: 100%;
  max-width: 760px;
  margin: 0;
  font-size: clamp(0.95rem, 1.18vw, 1.12rem);
  line-height: 1.95;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
  text-align: right;
}

.banner-badge-fixed {
  position: absolute;
  top: clamp(18px, 2.4vw, 30px);
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  z-index: 3;
  width: max-content;
  max-width: min(100%, 320px);
}

.banner-badge-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
  background: #fb923c;
  box-shadow: 0 0 0 4px rgba(251,146,60,0.14);
}

.banner-badge-text {
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 900;
  line-height: 1.2;
  color: rgba(255,255,255,0.98);
  white-space: nowrap;
}

.banner-actions-fixed {
  position: absolute;
  left: 0;
  bottom: clamp(20px, 2.5vw, 34px);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  direction: ltr;
  z-index: 3;
}

.banner-btn {
  border: none;
  cursor: pointer;
  min-height: 56px;
  padding: 1rem 1.95rem;
  border-radius: 999px;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  font-weight: 900;
  font-family: inherit;
  transition: all 0.28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}
.banner-btn:hover { transform: translateY(-2px); }

.banner-btn-primary {
  background: linear-gradient(135deg, #ff8a1d, #ff6b00);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255,122,24,0.30);
}
.banner-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.banner-btn-white {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(255,255,255,0.18);
}
.banner-btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 12px 28px rgba(34,197,94,0.22);
}
.banner-btn-blue {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29,78,216,0.22);
}

.billboardSwiper .swiper-pagination { bottom: 14px !important; }
.billboardSwiper .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.76) !important;
  opacity: 1;
  transition: 0.25s ease;
}
.billboardSwiper .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: #ff7a18 !important;
}

@media (max-width: 991px) {
  .billboard-container {
    height: clamp(280px, 55vw, 420px);
    border-radius: 24px;
  }
  .banner-layout { padding-right: 22px; padding-left: 22px; }
  .banner-title { font-size: clamp(1.35rem, 4vw, 2.2rem); }
  .banner-desc { font-size: 0.95rem; line-height: 1.75; }
}

@media (max-width: 768px) {
  .billboard-container { height: 340px; border-radius: 18px; }
  .banner-overlay {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.28) 25%,
      rgba(0,0,0,0.45) 55%,
      rgba(0,0,0,0.75) 100%
    );
  }
  .banner-layout { padding: 14px; align-items: stretch; }
  .banner-badge-fixed {
    position: absolute; top: 12px; right: 0;
    padding: 0.42rem 0.8rem; gap: 6px; max-width: 80%;
  }
  .banner-badge-dot { width: 7px; height: 7px; min-width: 7px; }
  .banner-badge-text { font-size: 10px; font-weight: 800; white-space: nowrap; }
  .banner-content {
    position: absolute; top: 52%; right: 0;
    transform: translateY(-50%);
    width: 100%; max-width: 88%; height: auto;
    gap: 8px; justify-content: center; align-items: flex-end;
  }
  .banner-title { font-size: 1.15rem; line-height: 1.45; margin: 0; }
  .banner-desc {
    font-size: 0.74rem; line-height: 1.7; margin: 0;
    color: rgba(255,255,255,0.94);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .banner-actions-fixed {
    position: absolute; left: 0; bottom: 18px;
    width: auto; justify-content: flex-start; gap: 8px;
  }
  .banner-btn { min-height: 38px; padding: 0.65rem 1rem; font-size: 0.78rem; }
  .billboardSwiper .swiper-pagination { bottom: 8px !important; }
  .billboardSwiper .swiper-pagination-bullet { width: 6px; height: 6px; }
  .billboardSwiper .swiper-pagination-bullet-active { width: 16px; }
}
