/* ═══════════════════════════════════════════════════════════
   RMM.CSS — Regional & Military Collaboration Wing
   NDMA Pakistan | Bootstrap 5.3.x companion stylesheet
═══════════════════════════════════════════════════════════ */

:root {
  --rmm-green:        #026902;
  --rmm-green-dark:   #014f01;
  --rmm-green-light:  #038a03;
  --rmm-accent:       #f5a623;
  --rmm-bg:           #0d1a0d;
  --rmm-card-bg:      rgba(255,255,255,.04);
  --rmm-border:       rgba(255,255,255,.09);
  --rmm-text:         rgba(255,255,255,.88);
  --rmm-text-muted:   rgba(255,255,255,.5);
  --rmm-radius:       12px;
  --rmm-shadow:       0 8px 32px rgba(0,0,0,.35);
}

/* ── PAGE BASE ───────────────────────────────────────────── */
.rmm-page {
  background: var(--rmm-bg);
  color: var(--rmm-text);
  overflow-x: hidden;
}

/* ── HERO TITLE ──────────────────────────────────────────── */
.rmm-hero__title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.4px;
  margin-bottom: 18px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.rmm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 7px;
  transition: all .22s;
  cursor: pointer;
  border: none;
}
.rmm-btn--primary {
  background: var(--rmm-green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(2,105,2,.35);
}
.rmm-btn--primary:hover {
  background: var(--rmm-green-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2,105,2,.45);
}
.rmm-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.rmm-btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  transform: translateY(-2px);
}

/* ── EYEBROW ─────────────────────────────────────────────── */
.rmm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rmm-accent);
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════
   OVERVIEW SECTION
══════════════════════════════════════════════════════════ */
.rmm-about {
  background:
    linear-gradient(rgba(15,31,15,.93), rgba(15,31,15,.93)),
    url('../img/hero.png') center/cover fixed;
}

.rmm-about__img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.rmm-about__img-wrap img {
  width: 100%;
  border-radius: var(--rmm-radius);
  object-fit: contain;
  max-height: 500px;
}

.rmm-about__badge {
  position: absolute;
  bottom: -18px;
  right: 20px;
  background: var(--rmm-green);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--rmm-shadow);
}
.rmm-about__badge i { font-size: 18px; color: var(--rmm-accent); }

.rmm-about__title {
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.3px;
  margin-bottom: 14px;
}

.rmm-about__intro {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.85;
  margin-bottom: 24px;
}

/* ── PILLARS ─────────────────────────────────────────────── */
.rmm-pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--rmm-radius);
  border: 1px solid rgba(255,255,255,.07);
  background: var(--rmm-card-bg);
  margin-bottom: 10px;
  transition: border-color .2s, background .2s;
}
.rmm-pillar:hover {
  border-color: rgba(2,105,2,.4);
  background: rgba(2,105,2,.08);
}

.rmm-pillar__icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: rgba(2,105,2,.25);
  border: 1px solid rgba(2,105,2,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #5ccc5c;
  flex-shrink: 0;
}

.rmm-pillar__name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}

.rmm-pillar__desc {
  font-size: 12.5px;
  color: var(--rmm-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   FEATURES STRIP
══════════════════════════════════════════════════════════ */
.rmm-strip {
  background:
    linear-gradient(rgba(8,54,14,.88), rgba(8,54,14,.88)),
    url('../img/hero.png') center/cover no-repeat;
  padding: 0;
  border-top: 3px solid var(--rmm-green);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.rmm-strip__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.rmm-strip__item:last-child { border-right: none; }
.rmm-strip__item:hover { background: rgba(255,255,255,.04); }

.rmm-strip__icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(2,105,2,.35);
  border: 2px solid rgba(2,105,2,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #a8e6a8;
  margin-bottom: 14px;
  transition: background .2s, transform .2s;
}
.rmm-strip__item:hover .rmm-strip__icon {
  background: rgba(2,105,2,.55);
  transform: scale(1.07);
}

.rmm-strip__name {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.rmm-strip__desc {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .rmm-strip__item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    align-items: center;
    text-align: center;
  }
  .rmm-strip__item:last-child { border-bottom: none; }
}

/* ══════════════════════════════════════════════════════════
   SYNERGY SECTION
══════════════════════════════════════════════════════════ */
.rmm-synergy {
  background:
    linear-gradient(rgba(10,21,10,.94), rgba(10,21,10,.94)),
    url('../img/hero.png') center/cover fixed;
  border-top: 1px solid rgba(255,255,255,.06);
}

.rmm-section-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.3px;
  margin-bottom: 12px;
}

.rmm-synergy-card {
  padding: 2rem 1.75rem;
  border-radius: var(--rmm-radius);
  background: var(--rmm-card-bg);
  border: 1px solid rgba(255,255,255,.08);
  height: 100%;
  transition: border-color .25s, background .25s, transform .25s;
}
.rmm-synergy-card:hover {
  border-color: rgba(2,105,2,.45);
  background: rgba(2,105,2,.08);
  transform: translateY(-4px);
}

.rmm-synergy-card__icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(2,105,2,.25);
  border: 1px solid rgba(2,105,2,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: #7de67d;
  margin-bottom: 20px;
  transition: background .2s;
}
.rmm-synergy-card:hover .rmm-synergy-card__icon { background: rgba(2,105,2,.45); }

.rmm-synergy-card__title {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.rmm-synergy-card__desc {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.85;
  margin-bottom: 20px;
}

.rmm-synergy-card__list {
  list-style: none;
  padding: 0; margin: 0;
}
.rmm-synergy-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.06);
  line-height: 1.5;
}
.rmm-synergy-card__list li:last-child { border-bottom: none; }
.rmm-synergy-card__list li i {
  color: #5ccc5c;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CISE PUBLICATIONS
══════════════════════════════════════════════════════════ */
.rmm-pubs {
  background:
    linear-gradient(rgba(8,54,14,.92), rgba(8,54,14,.92)),
    url('../img/hero.png') center/cover no-repeat;
  border-top: 1px solid rgba(255,255,255,.06);
}

.rmm-pub-card {
  border-radius: var(--rmm-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, border-color .25s;
}
.rmm-pub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  border-color: rgba(2,105,2,.5);
}

.rmm-pub-card__img-wrap {
  position: relative;
  overflow: hidden;
  /* aspect-ratio: 3/4; */
}
.rmm-pub-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .3s, transform .3s;
}
.rmm-pub-card:hover .rmm-pub-card__img-wrap img {
  filter: brightness(.75);
  transform: scale(1.03);
}

.rmm-pub-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(2,105,2,.2);
  border-top: 1px solid rgba(2,105,2,.3);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.rmm-pub-card__label i {
  color: var(--rmm-accent);
  font-size: 16px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════ */
.rmm-gallery {
  background:
    linear-gradient(rgba(8,54,14,.9), rgba(8,54,14,.9)),
    url('../img/hero.png') center/cover no-repeat;
  border-top: 1px solid rgba(255,255,255,.06);
}

.rmm-gallery__item {
  position: relative;
  border-radius: var(--rmm-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 5/3;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s;
}
.rmm-gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  border-color: rgba(2,105,2,.5);
}

.rmm-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter .3s;
}
.rmm-gallery__item:hover img { filter: brightness(.75); }

.rmm-gallery__overlay {
  position: absolute; inset: 0;
  background: rgba(2,105,2,0);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: #fff;
  opacity: 0;
  transition: opacity .25s, background .25s;
}
.rmm-gallery__item:hover .rmm-gallery__overlay {
  opacity: 1;
  background: rgba(1,60,1,.35);
}

/* ══════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════ */
.rmm-lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rmm-lightbox.is-open { display: flex; }

.rmm-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: rmmFadeIn .22s ease;
}
@keyframes rmmFadeIn { from { opacity:0; } to { opacity:1; } }

.rmm-lightbox__modal {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  animation: rmmSlideUp .28s cubic-bezier(.34,1.56,.64,1);
}
@keyframes rmmSlideUp {
  from { transform: translateY(24px) scale(.96); opacity:0; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}

.rmm-lightbox__close {
  position: absolute;
  top: -44px; right: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  transition: background .2s;
}
.rmm-lightbox__close:hover { background: var(--rmm-green); }

.rmm-lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: background .2s;
  z-index: 2;
}
.rmm-lightbox__nav:hover { background: var(--rmm-green); }
.rmm-lightbox__nav--prev { left: -56px; }
.rmm-lightbox__nav--next { right: -56px; }

.rmm-lightbox__img-wrap {
  border-radius: var(--rmm-radius);
  overflow: hidden;
  background: #000;
  line-height: 0;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.rmm-lightbox__img-wrap img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.rmm-lightbox__caption {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}

@media (max-width: 768px) {
  .rmm-lightbox__nav--prev { left: 4px; }
  .rmm-lightbox__nav--next { right: 4px; }
  .rmm-lightbox__close { top: -44px; }
}
