/* Naye Pankh Foundation - Design System */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b6b;
  --secondary: #1d3557;
  --accent: #f4a261;
  --success: #2a9d8f;
  --warning: #e9c46a;
  --bg: #fafbfc;
  --bg-alt: #f0f2f5;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --border: rgba(0,0,0,0.08);
  --glass: rgba(255,255,255,0.75);
  --glass-border: rgba(255,255,255,0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #1a1a2e;
  --surface: #16213e;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --border: rgba(255,255,255,0.08);
  --glass: rgba(22,33,62,0.85);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* Page Loader */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 1.15rem; color: var(--text);
}
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.25rem;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(230,57,70,0.08);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  box-shadow: 0 4px 15px rgba(230,57,70,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,0.45); color: white !important; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}
.btn-outline:hover { background: var(--primary); color: white !important; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%; background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}
.card-body { padding: 1.5rem; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.testimonial-card { overflow: hidden; }
.card-img-sm { width: 100%; height: 140px; object-fit: cover; }
.program-card .card-img-sm { border-radius: var(--radius) var(--radius) 0 0; margin: -1px -1px 0; width: calc(100% + 2px); }
.program-card { overflow: hidden; padding: 0; }
.program-card .card-body { padding: 1.25rem; }
.hero-story-card { overflow: hidden; padding: 0; }
.hero-story-card .card-body { padding: 1.25rem; }
.home-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.home-photo-grid .gallery-item { aspect-ratio: 1; border-radius: var(--radius); }
.mission-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 360px;
  box-shadow: var(--shadow-lg);
}
.demo-credentials {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.demo-credentials-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.demo-cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--transition);
}
.demo-cred-row:hover { background: var(--surface); }
.demo-cred-row + .demo-cred-row { border-top: 1px solid var(--border); }
.demo-cred-role {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
.demo-cred-email { color: var(--text-muted); font-family: monospace; font-size: 0.72rem; }
.event-card { overflow: hidden; padding: 0; }
.event-card .card-body { padding: 1.25rem; }
.volunteer-highlight-card .vol-photo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 0.75rem;
  border: 3px solid var(--primary);
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(230,57,70,0.75) 0%, rgba(29,53,87,0.65) 100%),
              url('/images/np/hero-volunteers.jpg') center/cover;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 640px; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 480px;
  margin-left: auto;
}
.hero-visual img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.9);
}
.hero-visual img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 330px;
}
[data-theme="dark"] .hero-bg { filter: brightness(0.55); }
[data-theme="dark"] .hero-visual img { border-color: rgba(255,255,255,0.15); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.92); margin-bottom: 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.hero .btn-outline {
  border-color: rgba(255,255,255,0.9);
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}
.hero .btn-outline:hover { background: rgba(255,255,255,0.2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* Program Cards */
.program-card .program-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card { padding: 2rem; position: relative; }
.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem; left: 1.5rem;
  font-family: var(--font-display);
  line-height: 1;
}
.testimonial-text { font-style: italic; margin-bottom: 1.5rem; color: var(--text-muted); }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
[data-theme="dark"] .footer { background: #0a0a14; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin: 1rem 0; opacity: 0.8; font-size: 0.95rem; }
.footer h4 { color: white; margin-bottom: 1.25rem; font-size: 1rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.875rem; opacity: 0.7;
}
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: white;
  font-size: 1.1rem;
}
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }

/* Contact page & light-card social buttons */
.social-links-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.2;
}
.social-btn:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.social-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.social-btn--instagram:hover { border-color: #E1306C; color: #E1306C; }
.social-btn--facebook:hover { border-color: #1877F2; color: #1877F2; }
.social-btn--youtube:hover { border-color: #FF0000; color: #FF0000; }
.social-btn--linkedin:hover { border-color: #0A66C2; color: #0A66C2; }
.social-btn--twitter:hover { border-color: #1DA1F2; color: #1DA1F2; }

.contact-info-list { list-style: none; margin-top: 1rem; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-info-list .contact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-events-grid { display: grid; gap: 1rem; }
.contact-event-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.contact-event-item img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .social-links-card { grid-template-columns: 1fr; }
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 1.25rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.9rem; }

/* Toast */
.toast-container { position: fixed; top: 90px; right: 1rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* Page Header */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(29,53,87,0.05));
  text-align: center;
}
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: white; font-weight: 600; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; padding-top: var(--nav-height); }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky; top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--text);
  margin-bottom: 0.25rem;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(230,57,70,0.1);
  color: var(--primary);
}
.dashboard-main { padding: 2rem; background: var(--bg-alt); }
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.dash-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.dash-card h3 { font-size: 2rem; color: var(--primary); margin-bottom: 0.25rem; }
.dash-card p { color: var(--text-muted); font-size: 0.9rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success { background: rgba(42,157,143,0.15); color: var(--success); }
.badge-warning { background: rgba(233,196,106,0.2); color: #b8860b; }
.badge-danger { background: rgba(230,57,70,0.15); color: var(--primary); }
.badge-info { background: rgba(29,53,87,0.1); color: var(--secondary); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: -2rem; top: 0.25rem;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-5px);
}
.timeline-year { font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question {
  width: 100%; padding: 1.25rem;
  background: var(--surface);
  border: none; text-align: left;
  font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-muted); }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.25rem 1.25rem; }
.faq-item.open .faq-question { color: var(--primary); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-outline { border-color: white; color: white !important; }
.cta-banner .btn-outline:hover { background: white; color: var(--primary) !important; }

/* Impact Calculator */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.impact-item { text-align: center; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius); }
.impact-item strong { display: block; font-size: 1.75rem; color: var(--primary); }

/* Blog */
.blog-card .blog-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.blog-content { max-width: 800px; margin: 0 auto; }
.blog-content img { border-radius: var(--radius-lg); margin: 2rem 0; }
.blog-content p { margin-bottom: 1.25rem; line-height: 1.8; }

/* Responsive */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links a { width: 100%; padding: 0.75rem 1rem; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; margin: 2rem auto 0; }
  .home-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Utility */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
