/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a6b;
  --primary-light: #2a5298;
  --accent: #e8a317;
  --accent-light: #f5c542;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --text-dark: #222222;
  --text-muted: #555555;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.nav-brand-text {
  color: var(--white);
}

.nav-brand-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-brand-text span {
  font-size: 0.75rem;
  color: var(--accent-light);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-links a {
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  display: block;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--accent);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(232, 163, 23, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 30px;
  border: 4px solid var(--accent);
  box-shadow: 0 0 30px rgba(232, 163, 23, 0.3);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--accent-light);
  margin-bottom: 15px;
  font-weight: 500;
}

.hero .pillars {
  font-size: 1rem;
  letter-spacing: 3px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-cta {
  display: inline-flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-block;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(232, 163, 23, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== Banner ===== */
.banner-section {
  padding: 0;
  background: var(--light-bg);
}

.banner-img {
  width: 100%;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Leadership ===== */
.leadership-section {
  background: var(--white);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.leader-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.leader-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.leader-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.leader-role {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 4px;
}

.leader-card p:last-child {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Section Common ===== */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== About Preview ===== */
.about-preview {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* ===== Services / Activities ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Stats ===== */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stat-item p {
  font-size: 1rem;
  margin-top: 5px;
  opacity: 0.9;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 58, 107, 0.85));
  padding: 20px 15px 15px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

/* Gallery page full */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* ===== Donate Section ===== */
.donate-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2647 100%);
  color: var(--white);
}

.donate-section .section-title h2 {
  color: var(--white);
}

.donate-section .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

.donate-section .underline {
  background: var(--accent);
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.donate-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 35px;
  backdrop-filter: blur(10px);
}

.donate-info h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.donate-info p {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.donate-info .detail-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.donate-info .detail-label {
  font-weight: 700;
  color: var(--accent-light);
  min-width: 140px;
}

.donate-methods {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 35px;
  backdrop-filter: blur(10px);
}

.donate-methods h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.upi-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.upi-box h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.upi-id {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--light-bg);
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 35px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail h4 {
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-detail p,
.contact-detail a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ===== Footer ===== */
.footer {
  background: #0d1b33;
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-about img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--accent-light);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  color: var(--white);
  font-size: 1.1rem;
  text-align: center;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.show {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--accent-light);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 50px 0 40px;
  text-align: center;
}

.page-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.05rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .donate-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .nav-brand-text h1 {
    font-size: 1.1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero .pillars {
    letter-spacing: 1px;
    font-size: 0.85rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .donate-info .detail-row {
    flex-direction: column;
    gap: 2px;
  }

  .donate-info .detail-label {
    min-width: unset;
  }

  .donate-info,
  .donate-methods {
    padding: 20px;
  }

  .contact-info-card {
    padding: 20px;
  }

  .upi-id {
    font-size: 1rem;
    padding: 10px 15px;
  }
}
