/* ═══════════════════════════════════════════════════════════
   NR.CSS — National Resource Wing
   NDMA Pakistan | Bootstrap 5.3.x companion stylesheet
═══════════════════════════════════════════════════════════ */

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

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

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.nr-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nr-hero__bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.nr-hero__overlay {
  position: absolute;
  inset: 0;
  background: #000000b8;
  z-index: 1;
}

.nr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--nr-accent);
  margin-bottom: 14px;
}

.nr-hero__title {
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.4px;
  margin-bottom: 18px;
}

.nr-hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.nr-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;
}
.nr-btn--primary {
  background: var(--nr-green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(2,105,2,.35);
}
.nr-btn--primary:hover {
  background: var(--nr-green-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2,105,2,.45);
}
.nr-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.nr-btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   FEATURES STRIP
══════════════════════════════════════════════════════════ */
.nr-strip {
  background:
    linear-gradient(rgba(8,54,14,.88), rgba(8,54,14,.88)),
    url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1600&q=80') center/cover no-repeat;
  padding: 0;
  border-top: 3px solid var(--nr-green);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nr-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;
}
.nr-strip__item:last-child { border-right: none; }
.nr-strip__item:hover { background: rgba(255,255,255,.04); }

.nr-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;
}
.nr-strip__item:hover .nr-strip__icon {
  background: rgba(2,105,2,.55);
  transform: scale(1.07);
}

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

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

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

/* ══════════════════════════════════════════════════════════
   OVERVIEW SECTION
══════════════════════════════════════════════════════════ */
.nr-about {
  background:
    linear-gradient(rgba(15,31,15,.93), rgba(15,31,15,.93)),
    url('https://images.unsplash.com/photo-1497366412874-3415097a27e7?w=1600&q=80') center/cover fixed;
}

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

.nr-about__badge {
  position: absolute;
  bottom: -18px;
  right: 20px;
  background: var(--nr-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(--nr-shadow);
}
.nr-about__badge i { font-size: 18px; color: var(--nr-accent); }

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

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

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

.nr-pillar__icon {
  width: 42px; height: 42px;
  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: 19px;
  color: #5ccc5c;
  flex-shrink: 0;
}

.nr-pillar__name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.nr-pillar__desc {
  font-size: 13px;
  color: var(--nr-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   STRATEGIC VISION
══════════════════════════════════════════════════════════ */
.nr-vision {
  background:
    linear-gradient(rgba(1,30,1,.95), rgba(1,30,1,.95)),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80') center/cover fixed;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

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

.nr-vision__title {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.nr-vision__text {
  font-size: 15px;
  color: rgba(255,255,255,.68);
  line-height: 1.85;
}

.nr-vision__divider {
  width: 1px;
  background: rgba(255,255,255,.1);
  align-self: stretch;
}

.nr-vision__scope-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--nr-accent);
  margin-bottom: 18px;
}

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

/* ══════════════════════════════════════════════════════════
   CORE FUNCTIONS
══════════════════════════════════════════════════════════ */
.nr-functions {
  background:
    linear-gradient(rgba(10,21,10,.94), rgba(10,21,10,.94)),
    url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1600&q=80') center/cover fixed;
}

.nr-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;
}

.nr-section-sub {
  font-size: 15px;
  color: var(--nr-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.nr-func-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(2,105,2,.25);
  border: 1px solid rgba(2,105,2,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #7de67d;
  margin-bottom: 16px;
  transition: background .2s, transform .2s;
}
.nr-func-card:hover .nr-func-card__icon {
  background: rgba(2,105,2,.45);
  transform: scale(1.08);
}

.nr-func-card__title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.nr-func-card__desc {
  font-size: 13px;
  color: var(--nr-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════ */
.nr-gallery {
  background:
    linear-gradient(rgba(10,21,10,.93), rgba(10,21,10,.93)),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80') center/cover fixed;
}

.nr-gallery__item {
  position: relative;
  border-radius: var(--nr-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;
}
.nr-gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(0,0,0,.5);
  border-color: rgba(2,105,2,.5);
}

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

.nr-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;
}
.nr-gallery__item:hover .nr-gallery__overlay {
  opacity: 1;
  background: rgba(1,60,1,.35);
}

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

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

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

.nr-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;
  z-index: 2;
}
.nr-lightbox__close:hover { background: var(--nr-green); }

.nr-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;
}
.nr-lightbox__nav:hover { background: var(--nr-green); }
.nr-lightbox__nav--prev { left: -56px; }
.nr-lightbox__nav--next { right: -56px; }

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

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

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