/* =============================================================
   Wasa Featured Block – CSS
   ============================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Amiri:wght@400;700&display=swap');

/* ── Root wrapper ── */
.wasa-featured-block {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
}

/* ── Outer grid (slider | cards) ── */
.wfb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  padding: 1.5rem 0;
}
@media (min-width: 992px) {
  .wfb-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================================
   SLIDER
   ============================================================= */
.wfb-slider {
  position: relative;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
}
@media (min-width: 576px) {
  .wfb-slider { height: 400px; }
}
@media (min-width: 992px) {
  .wfb-slider { height: 520px; }
}

/* slides */
.wfb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
  z-index: 0;
}
.wfb-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}
.wfb-slide.leaving {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity .5s ease, transform .5s ease;
  z-index: 0;
  pointer-events: none;
}

.wfb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.5);
}

/* gradient overlay */
.wfb-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.3) 50%, transparent);
}

/* slide text */
.wfb-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
}
@media (min-width: 640px) {
  .wfb-slide-content { padding: 2.5rem; }
}

.wfb-tag {
  display: inline-block;
  padding: .4rem 1.2rem;
  background: rgba(201,168,76,.9);
  color: #000;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.wfb-slide-title {
  font-family: 'Amiri', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
  color: #ffffff;
  max-width: 40rem;
}
@media (min-width: 640px) {
  .wfb-slide-title { font-size: 2.25rem; }
}
@media (min-width: 992px) {
  .wfb-slide-title { font-size: 2.5rem; }
}

.wfb-slide-source {
  font-size: .875rem;
  opacity: .8;
}

.wfb-slide-summary {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 36rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* arrows */
.wfb-slider:hover .wfb-arrow { opacity: 1; }

.wfb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  transition: opacity .3s, background .2s;
}
.wfb-arrow:hover { background: rgba(255,255,255,.25); }
.wfb-arrow-next  { right: 1rem; }
.wfb-arrow-prev  { left: 1rem; }

/* dots */
.wfb-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 20;
}

.wfb-dot {
  height: .5rem;
  width: .5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,.4);
  transition: width .5s, background .5s;
}
.wfb-dot.active {
  width: 2rem;
  background: #C9A84C;
}

/* =============================================================
   CARDS GRID (2×2)
   ============================================================= */
.wfb-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .75rem;
  height: 320px;
}
@media (min-width: 576px) {
  .wfb-cards-grid { height: 400px; }
}
@media (min-width: 992px) {
  .wfb-cards-grid { height: 520px; }
}

/* Card base */
.wfb-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

/* Card colour variants */
.wfb-card--blue   { background: linear-gradient(135deg, #1a3a5c, #0f2440); }
.wfb-card--brown  { background: linear-gradient(135deg, #3a1a0f, #5c2a10); }
.wfb-card--green  { background: linear-gradient(135deg, #1a2a1a, #0f1f0f); }
.wfb-card--purple { background: linear-gradient(135deg, #2a1a3a, #1a0f2a); }

/* Card header */
.wfb-card-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.wfb-card-accent {
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  border-radius: 9999px;
}

.wfb-card-title {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  font-family: 'Cairo', sans-serif;
}

.wfb-card-more {
  margin-right: auto;  /* pushes to left in RTL */
    font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.wfb-card-more:hover { color: rgba(255,255,255,.7); }

/* Ticker wrapper */
.wfb-ticker-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  padding: .5rem 0;
}

.wfb-ticker {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: none !important;
}

/* Ticker item (link) */
.wfb-ticker-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  border-radius: .5rem;
  margin: 0 .25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.wfb-ticker-item:hover { background: rgba(255,255,255,.05); }
.wfb-ticker-item:hover .wfb-item-title { color: #fcd34d; }

/* Avatars */
.wfb-avatar { flex-shrink: 0; object-fit: cover; }

.wfb-avatar--round {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
}

.wfb-avatar--gold {
  border: 2px solid #C9A84C !important;
}

.wfb-avatar--rect {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: .375rem;
  border: 1px solid rgba(255,255,255,.2);
}

.wfb-avatar--mag {
  width: 3.5rem;
  height: 5rem;
  border-radius: .375rem;
  border: 1px solid rgba(255,255,255,.1);
}

.wfb-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.1);
}

/* Item text */
.wfb-item-title {
color: #fff;
}
.wfb-item-title--sm {     font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.wfb-item-sub {
    color: rgba(255, 255, 255, .6);
    font-size: 10px;
}

/* Download button */
.wfb-download-btn {
  display: inline-block;
  margin-top: .5rem;
  padding: .125rem .5rem;
  background: #C9A84C;
  color: #000;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
}

/* Bottom fade */
.wfb-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
  pointer-events: none;
}
