/* =============================================
   WARN Nepal – Main Stylesheet
   ============================================= */

/* --- CSS Variables --- */
:root {
  --primary:       #c0392b;   /* Deep red – strength & courage */
  --primary-dark:  #962d22;
  --primary-light: #e74c3c;
  --accent:        #e67e22;   /* Warm amber */
  --dark:          #1a1a2e;
  --text:          #333333;
  --text-light:    #666666;
  --text-muted:    #999999;
  --bg:            #ffffff;
  --bg-alt:        #f8f5f2;
  --bg-dark:       #1a1a2e;
  --border:        #e0ddd8;
  --shadow:        0 2px 16px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.12);
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.3s ease;
  --nav-height:    68px;
  --font-body:     'Inter', 'Noto Sans Devanagari', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
textarea { resize: vertical; }

/* --- Utility --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(192, 57, 43, 0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-header p {
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }


/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(26, 26, 46, 0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-link.active { color: #f4c5c0; }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}
.lang-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { color: #fff; }
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}
.lang-divider {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   HERO  – FULL WIDTH with background image
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  /* Landing photo + dark fallback if the file is missing */
  background-color: #1a1a2e;
  background-image: url('../images/landing/landing.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark overlay — always present so text is readable over any photo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 25, 0.82) 0%,
    rgba(10, 10, 25, 0.60) 55%,
    rgba(10, 10, 25, 0.30) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* When a real landing photo is loaded, slightly lighten the gradient
   so the image shows through more on the right side */
.hero.has-bg-image::after {
  background: linear-gradient(
    to right,
    rgba(10, 10, 25, 0.78) 0%,
    rgba(10, 10, 25, 0.50) 50%,
    rgba(10, 10, 25, 0.18) 100%
  );
}

/* Text content sits above the overlay */
.hero-text-col {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.hero-text-inner {
  max-width: 640px;
  padding: 0 1.5rem;
}

.hero-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.14;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-title span { color: var(--primary-light); }
.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Logo image inside navbar */
.logo-img-wrap { display: flex; align-items: center; }
.logo-img {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 4px;
}


/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--primary);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 0.75rem; }
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.3rem;
  font-weight: 500;
}


/* =============================================
   ABOUT SNAPSHOT
   ============================================= */
.about-section { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--bg-alt), #ede8e3);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 0.75rem;
  border: 2px dashed var(--border);
}
.about-img-placeholder i { font-size: 3rem; color: var(--primary); opacity: 0.4; }
.about-img-placeholder p { font-size: 0.9rem; font-weight: 500; }
.about-real-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}
.about-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.about-text p {
  color: var(--text-light);
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}
.about-text .section-tag { margin-bottom: 0.6rem; }


/* =============================================
   GALLERY PREVIEW STRIP  (index.html)
   ============================================= */
.gallery-preview-section { background: var(--bg-alt); }

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.gp-item {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.gp-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gp-item:hover img { transform: scale(1.04); }
.gp-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 1.5rem 0.75rem 0.65rem;
  text-align: center;
}
.gp-placeholder {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f0ebe7, #e8e1dc);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 2px dashed var(--border);
}
.gp-placeholder i { font-size: 2rem; opacity: 0.4; }

.gallery-preview-cta {
  text-align: center;
  margin-top: 0.5rem;
}


/* =============================================
   PURPOSE
   ============================================= */
.purpose-section { background: var(--bg); }
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.purpose-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1.5px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.purpose-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.purpose-card.featured {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.purpose-card.featured h3,
.purpose-card.featured p { color: rgba(255,255,255,0.9); }
.purpose-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: rgba(192, 57, 43, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.purpose-card.featured .purpose-icon {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}
.purpose-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.purpose-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Focus Areas */
.focus-areas { text-align: center; }
.focus-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.75rem;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.focus-item {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.focus-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.focus-item i {
  font-size: 1.6rem;
  color: var(--primary);
}
.focus-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}


/* =============================================
   TEAM
   ============================================= */
.team-section { background: var(--bg-alt); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.team-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}
.team-info { flex: 1; }
.team-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.team-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(192,57,43,0.08);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.team-biodata {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(192,57,43,0.08);
  border: 1.5px solid rgba(192,57,43,0.25);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.team-biodata:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.team-biodata.is-missing {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.volunteer-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.volunteer-cta p {
  font-size: 1.1rem;
  font-weight: 600;
}
.volunteer-cta .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  white-space: nowrap;
}


/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-grid--info-only {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1.5px solid var(--border);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-error {
  display: block;
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 0.3rem;
  min-height: 1rem;
}
.form-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-success.visible { display: block; }

/* Contact Info */
.contact-info-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.contact-info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-details li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-details i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}
.contact-details strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.2rem;
}
.contact-details p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.contact-details a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.contact-details a:hover { color: var(--accent); }

.social-links { margin-top: 1.75rem; }
.social-links h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}
.social-icons { display: flex; gap: 0.6rem; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.social-icon:hover {
  background: var(--primary);
  color: #fff;
}

/* Map */
.map-placeholder {
  background: linear-gradient(135deg, #e8f4fd, #d6eaf8);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  border: 2px dashed #a9cce3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.map-placeholder i { font-size: 2.5rem; color: #2980b9; opacity: 0.5; }
.map-placeholder p { font-size: 0.95rem; color: #2980b9; font-weight: 600; }
.map-placeholder .btn-outline {
  border-color: #2980b9;
  color: #2980b9;
}
.map-placeholder .btn-outline:hover {
  background: #2980b9;
  color: #fff;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 300px;
}
.footer-links h4,
.footer-contact h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}
.footer-contact i { color: var(--primary-light); font-size: 0.8rem; width: 1rem; text-align: center; }
.footer-contact a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}


/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(192,57,43,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
}


/* =============================================
   TEAM PHOTO SUPPORT
   When JS finds images/team/<name>.*, it replaces
   the icon with a real <img> inside .team-avatar
   ============================================= */
.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
  overflow: hidden;   /* clips the photo to the circle */
  flex-shrink: 0;
}
/* When a real photo is loaded */
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
}
/* Hide the icon once a photo loads */
.team-avatar.has-photo i { display: none; }


/* =============================================
   GALLERY PAGE  (gallery.html)
   ============================================= */

/* body.gallery-page — makes navbar static (not fixed)
   so it doesn't overlap the page-hero */
body.gallery-page #navbar {
  position: relative;
  top: auto;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

/* Page hero banner */
.page-hero {
  background: var(--dark);
  padding: 3rem 0 2.25rem;
  border-bottom: 3px solid var(--primary);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.65rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 0.6rem; }
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.page-hero > .container > p {
  color: rgba(255,255,255,0.58);
  font-size: 1rem;
}


/* =============================================
   SLIDESHOW
   ============================================= */
.slideshow-section {
  background: #0a0a0a;
  position: relative;
}
.slideshow-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  user-select: none;
}
.slideshow-track {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 620px;
  min-height: 280px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full image, no cropping */
  display: block;
}
/* Placeholder shown while JS loads images */
.slide-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
  width: 100%;
  height: 100%;
}
.slide-img-placeholder i { font-size: 3.5rem; }
.slide-img-placeholder p { max-width: 340px; line-height: 1.6; }
.slide-img-placeholder strong { color: rgba(255,255,255,0.5); }

/* Caption bar at bottom of slideshow */
.slide-caption-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  padding: 3rem 5rem 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}
.slide-caption-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.slide-counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 500;
}

/* Prev / Next arrow buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.slide-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.slide-prev { left: 1.25rem; }
.slide-next { right: 1.25rem; }

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}
.slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.slide-dot.active {
  background: #fff;
  transform: scale(1.4);
}
.slide-dot:hover { background: rgba(255,255,255,0.65); }


/* =============================================
   GALLERY FULL GRID  (gallery.html)
   ============================================= */
.gallery-full-section {
  background: var(--bg-alt);
  padding: 60px 0 80px;
}
.gallery-grid-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.gallery-grid-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
}
.gallery-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.gf-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gf-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.gf-item:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.gf-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gf-item:hover img { transform: scale(1.05); }
.gf-caption {
  padding: 0.65rem 1rem 0.75rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  line-height: 1.3;
}

/* Placeholder tiles (shown before JS resolves or when no images exist) */
.gf-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f0ebe6, #e6ddd8);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
}
.gf-placeholder i { font-size: 2rem; opacity: 0.35; }
.gf-placeholder.no-images {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  padding: 3.5rem 2rem;
  gap: 1rem;
  font-size: 0.95rem;
}
.gf-placeholder.no-images i { font-size: 3rem; opacity: 0.3; }
.gf-placeholder.no-images strong { color: var(--text-light); }


/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 2000;
}
.lightbox-backdrop.active { display: block; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lightbox[hidden] { display: none; }
.lightbox:not([hidden]) { pointer-events: auto; }

.lightbox-img-wrap {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 56px rgba(0,0,0,0.7);
  display: block;
}
.lightbox-close {
  position: fixed;
  top: 1rem; right: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 2002;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.15);
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--primary); border-color: var(--primary); }

.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 2002;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: background var(--transition);
}
.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(0,0,0,0.55);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2002;
  letter-spacing: 0.02em;
}


/* =============================================
   RESPONSIVE  –  consolidated
   ============================================= */

/* ≤ 1024px  Tablet landscape */
@media (max-width: 1024px) {
  .focus-grid        { grid-template-columns: repeat(3, 1fr); }
  .purpose-grid      { grid-template-columns: repeat(2, 1fr); }   /* was 3-col, now 2 at tablet */
  .team-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .footer-brand      { grid-column: 1 / -1; }
  .gallery-full-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-preview-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ≤ 768px  Tablet portrait / large mobile */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  /* Mobile nav drawer */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(26,26,46,0.98);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; font-size: 1rem; }
  .hamburger { display: flex; }

  /* gallery-page nav is static, so drawer must still scroll with page */
  body.gallery-page .nav-links {
    position: absolute;
    top: var(--nav-height);
  }

  /* Sections */
  .section { padding: 56px 0; }
  .about-grid        { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid      { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .purpose-grid      { grid-template-columns: 1fr; }
  .focus-grid        { grid-template-columns: repeat(2, 1fr); }
  .team-grid         { grid-template-columns: 1fr 1fr; }
  .footer-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand      { grid-column: auto; }
  .volunteer-cta     { flex-direction: column; text-align: center; }
  .contact-form-wrap { padding: 1.75rem; }

  /* Gallery preview strip */
  .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }

  /* Gallery page grid */
  .gallery-full-grid { grid-template-columns: repeat(2, 1fr); }

  /* Slideshow */
  .slideshow-track    { height: 55vw; max-height: 380px; }
  .slide-caption-bar  { padding: 2.5rem 4rem 0.85rem; }
  .slide-caption-text { font-size: 0.9rem; }
  .slide-btn          { width: 38px; height: 38px; font-size: 0.85rem; }

  /* Lightbox nav on mobile — smaller, closer to edges */
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-nav  { width: 40px; height: 40px; }
  .lightbox-caption { font-size: 0.8rem; padding: 0.4rem 1rem; white-space: normal; text-align: center; max-width: 80vw; }
}

/* ≤ 480px  Mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-cta   { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .logo-sub   { display: none; }

  .team-grid            { grid-template-columns: 1fr; }
  .stats-grid           { grid-template-columns: repeat(2, 1fr); }
  .focus-grid           { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-full-grid    { grid-template-columns: repeat(2, 1fr); }

  .slideshow-track { height: 60vw; }
  .slide-caption-bar { padding: 2rem 3rem 0.75rem; }
  .slide-btn { width: 34px; height: 34px; font-size: 0.8rem; }
}

/* ≤ 380px  Small phones — single column for gallery */
@media (max-width: 380px) {
  .gallery-preview-grid { grid-template-columns: 1fr; }
  .gallery-full-grid    { grid-template-columns: 1fr; }
}


/* =============================================
   NEPALI FONT
   ============================================= */
.lang-np {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}


/* =============================================
   FADE-UP ANIMATION
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* index.html stagger */
.purpose-grid .purpose-card:nth-child(1), .stats-grid .stat-item:nth-child(1),
.team-grid .team-card:nth-child(1),        .focus-grid .focus-item:nth-child(1) { transition-delay: 0.05s; }
.purpose-grid .purpose-card:nth-child(2), .stats-grid .stat-item:nth-child(2),
.team-grid .team-card:nth-child(2),        .focus-grid .focus-item:nth-child(2) { transition-delay: 0.12s; }
.purpose-grid .purpose-card:nth-child(3), .stats-grid .stat-item:nth-child(3),
.team-grid .team-card:nth-child(3),        .focus-grid .focus-item:nth-child(3) { transition-delay: 0.19s; }
.team-grid .team-card:nth-child(4),        .focus-grid .focus-item:nth-child(4),
.stats-grid .stat-item:nth-child(4)                                              { transition-delay: 0.26s; }
.focus-grid .focus-item:nth-child(5) { transition-delay: 0.33s; }
.focus-grid .focus-item:nth-child(6) { transition-delay: 0.40s; }

/* gallery page stagger */
.gf-item:nth-child(1) { transition-delay: 0.04s; }
.gf-item:nth-child(2) { transition-delay: 0.10s; }
.gf-item:nth-child(3) { transition-delay: 0.16s; }
.gf-item:nth-child(4) { transition-delay: 0.22s; }
.gf-item:nth-child(5) { transition-delay: 0.28s; }
.gf-item:nth-child(6) { transition-delay: 0.34s; }
.gf-item:nth-child(7) { transition-delay: 0.40s; }
.gf-item:nth-child(8) { transition-delay: 0.46s; }
