/* ═══════════════════════════════════════════════════════════
   RF.CSS — Risk Finance Wing
   NDMA Pakistan
═══════════════════════════════════════════════════════════ */

:root {
  --rfw-overlay:      rgba(5,12,28,.80);
  --rfw-accent:       #c9a227;
  --rfw-card-bg:      rgba(255,255,255,.05);
  --rfw-border:       rgba(255,255,255,.10);
  --rfw-muted:        rgba(255,255,255,.52);
  --rfw-radius:       12px;
}

/* ── PAGE BASE ─────────────────────────────────────────── */
.rfw-page {
  position: relative;
  background-image: url('../img/hero.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow: hidden;
}

.rfw-page__overlay {
  position: absolute;
  inset: 0;
  background: var(--rfw-overlay);
  z-index: 0;
}

.rfw-page__content {
  position: relative;
  z-index: 1;
  padding-top: 28px;
}

/* ── MAIN IMAGE WRAP ───────────────────────────────────── */
.rfw-main-img-wrap {
  overflow: hidden;
  border-radius: var(--rfw-radius);
  border: 1px solid rgba(201,162,39,.22);
}

.rfw-main-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ── INLINE IMAGE SLIDER ───────────────────────────────── */
.rfw-inline-swiper {
  overflow: hidden;
  height: 200px;
  border-radius: var(--rfw-radius);
  border: 1px solid var(--rfw-border);
}

.rfw-inline-swiper .swiper-slide {
  width: 100% !important;
  height: 200px;
}

.rfw-slide-link {
  display: block;
  overflow: hidden;
  position: relative;
  height: 200px;
  cursor: zoom-in;
}

.rfw-slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.rfw-slide-link:hover img { transform: scale(1.06); }

.rfw-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity .3s, background .3s;
}

.rfw-slide-link:hover .rfw-slide-overlay {
  opacity: 1;
  background: rgba(26,63,122,.45);
}

.rfw-inline-swiper .swiper-pagination { bottom: 6px; }

.rfw-inline-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: .5;
}

.rfw-inline-swiper .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* ── SUMMARY BOX ───────────────────────────────────────── */
.rfw-summary {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201,162,39,.25);
  border-radius: var(--rfw-radius);
  padding: 20px;
  flex: 1;
}

.rfw-summary__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rfw-accent);
  margin-bottom: 10px;
}

.rfw-summary__title {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.rfw-summary__text {
  font-size: 0.83rem;
  color: var(--rfw-muted);
  line-height: 1.78;
  margin: 0;
}

.rfw-summary__text strong {
  color: rgba(255,255,255,.78);
}
