/* ==========================================================================
   CSS Variables & Theme - Premium NGO Edition
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  /* Colors */
  --color-primary: #125C47;      /* Deep Forest Green */
  --color-primary-light: #248268;
  --color-primary-dark: #0A3A2C;
  --color-accent: #E58D36;       /* Warm Earthy Amber */
  --color-accent-hover: #C57022;
  
  --color-bg: #FDFBF7;           /* Premium Warm White / Cream */
  --color-bg-secondary: #FFFFFF;
  --color-text: #2C3531;         /* Very dark gray */
  --color-text-muted: #5B6B64;
  --color-border: #E8EBE9;
  
  /* Typography */
  --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', serif; /* Elegant serif for headings */
  
  /* Shadows - Premium Soft Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 40px -5px rgba(18, 92, 71, 0.1);
  --shadow-glow: 0 0 25px rgba(229, 141, 54, 0.4);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Spacing */
  --spacing-section: 7rem;
  
  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

.faq-answer p,
.testimonial-text,
.welcome-content p,
.legal-card p,
.mission-card p,
.vision-card p,
.objective-item p,
.activity-card p,
.network-step p,
.contact-info p {
  text-align: justify;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-section) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  font-family: var(--font-main);
  font-weight: 400;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  box-shadow: 0 10px 20px rgba(18, 92, 71, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(18, 92, 71, 0.3);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(229, 141, 54, 0.6);
}

/* ==========================================================================
   Navbar (Glassmorphism)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  max-width: 35%; /* Prevent long names from destroying layout */
  min-width: 0;
}

.logo-text {
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  display: block;
}

html[lang="ta"] .logo-text {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.logo i {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

html[lang="ta"] .nav-links {
  gap: clamp(0.4rem, 0.8vw, 1rem);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 1rem;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[lang="ta"] .nav-link {
  font-size: clamp(0.7rem, 0.9vw, 0.95rem);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.lang-toggle {
  background: rgba(18, 92, 71, 0.05);
  border: 1px solid rgba(18, 92, 71, 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: var(--color-primary);
  color: white;
}

.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-primary);
  background: none;
  border: none;
}

/* ==========================================================================
   Hero Section (Premium)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 7rem;
  padding-bottom: 4rem;
  background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 58, 44, 0.9) 0%, rgba(36, 130, 104, 0.7) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 100%;
}

.hero-badge i {
  color: var(--color-accent);
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Welcome / About Section
   ========================================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.welcome-image {
  position: relative;
}

.welcome-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.welcome-image::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.welcome-content h3 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.welcome-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Vision & Mission (Glass Cards)
   ========================================================================== */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.vm-card {
  background: white;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}

.vm-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-primary);
}

.vm-card.mission::before {
  background: var(--color-accent);
}

.vm-icon {
  width: 70px;
  height: 70px;
  background: rgba(18, 92, 71, 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.vm-card.mission .vm-icon {
  background: rgba(229, 141, 54, 0.1);
  color: var(--color-accent);
}

.vm-card:hover .vm-icon {
  transform: scale(1.1) rotate(5deg);
}

.vm-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

/* Objectives List */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

.objective-item {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.objective-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--color-accent);
}

/* ==========================================================================
   Activities Section
   ========================================================================== */
.activities-section {
  background: linear-gradient(180deg, white 0%, var(--color-bg) 100%);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.activity-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.activity-img-wrapper {
  position: relative;
  overflow: hidden;
}

.activity-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.activity-card:hover .activity-img {
  transform: scale(1.08);
}

.activity-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
}

.activity-content {
  padding: 2rem;
  flex-grow: 1;
}

.activity-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Community Empowerment Network (Matrix)
   ========================================================================== */
.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.network-title-h3 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.network-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.network-step {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.network-step:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
}

.step-number {
  width: 50px;
  height: 50px;
  background: rgba(229, 141, 54, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step-text p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Tree Visualizer */
.network-visual {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.tree-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.tree-node {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(18, 92, 71, 0.3);
  position: relative;
  z-index: 2;
}

.root-node {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  box-shadow: 0 4px 15px rgba(229, 141, 54, 0.4);
}

.root-node::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--color-border);
  z-index: 1;
}

.tree-branches {
  display: flex;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

/* The horizontal connecting line */
.tree-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

.tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tree-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--color-border);
  z-index: 1;
}

.level-1 {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 20px;
}

.level-1::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background: var(--color-border);
  z-index: 1;
}

.sub-branches {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.sub-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

.sub-branches .tree-node {
  width: 20px;
  height: 20px;
  margin-top: 20px;
  background: var(--color-primary-light);
  box-shadow: none;
}

.sub-branches .tree-node::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background: var(--color-border);
  z-index: 1;
}

.tree-caption {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Legal & Compliance (Dark Premium)
   ========================================================================== */
.legal-section {
  background: var(--color-primary-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.legal-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(36,130,104,0.2) 0%, rgba(10,58,44,0) 70%);
  top: -300px;
  right: -200px;
  border-radius: 50%;
}

.legal-section .section-title {
  color: white;
}

.legal-section .section-subtitle {
  color: rgba(255,255,255,0.8);
}

.legal-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.legal-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.legal-certificate img:hover {
  transform: scale(1.02);
}

.legal-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-fast);
}

.legal-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
}

.legal-icon {
  font-size: 3.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.legal-card h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.legal-card p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
}

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

.info-content h4 {
  font-family: var(--font-main);
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

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

.contact-form {
  background: white;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--color-primary-dark);
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  background: var(--color-bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(18, 92, 71, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #061A14;
  color: white;
  padding: 6rem 0 2rem;
}

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

.footer-about .logo {
  color: white;
}

.footer-about p {
  color: #8A9C96;
  margin-top: 1.5rem;
  max-width: 350px;
  font-size: 1.05rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: #8A9C96;
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #5B6B64;
  font-size: 1rem;
}

/* ==========================================================================
   Donation Modal
   ========================================================================== */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--color-bg);
  padding: 3rem 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 800px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--color-border);
}

.close-btn {
  color: var(--color-text-muted);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.close-btn:hover {
  color: var(--color-accent);
}

.account-section h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.account-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
}

.account-table tr:last-child td {
  border-bottom: none;
}

.account-table td:first-child {
  font-weight: 600;
  color: var(--color-primary-dark);
  width: 40%;
  background-color: rgba(18, 92, 71, 0.02);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for grids */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Mobile Responsive - Premium Enhancements for Tamil & Desktop Fit
   ========================================================================== */
.mobile-only-donate {
  display: none; /* Hidden on desktop */
}

@media (max-width: 1350px) {
  html {
    font-size: 15px; /* Slightly scale down base size */
  }
  
  .logo {
    max-width: 80%; /* Allow full name to show on mobile */
  }
  
  .welcome-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .welcome-image img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
  }
  
  .activity-grid, .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }

  /* Move hamburger menu to 1150px because Tamil words in nav are long */
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%; /* Slide from right */
    width: 80%;
    max-width: 400px;
    height: calc(100vh - 70px);
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start; /* Fixes huge top gap inherited from desktop flex-end */
    padding: 1.5rem 2.5rem;
    margin: 0; /* Fixes huge top gap from default ul margin */
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    align-items: flex-start;
    gap: 0; /* Remove generic flex gap to use padding and spacing */
    z-index: 1000; /* Fix text showing through from hero */
    overflow-y: auto; /* Allow scrolling if content is too tall */
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    display: block;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(18, 92, 71, 0.08);
  }
  
  .nav-link::after {
    display: none; /* Disable desktop hover line on mobile drawer */
  }
  
  .nav-links .lang-toggle {
    margin-top: 1.5rem;
    width: auto;
    display: inline-flex;
  }

  .mobile-only-donate {
    display: block;
    margin-top: 2rem;
    width: 100%;
  }

  .mobile-only-donate .btn {
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
  }
  
  .nav-actions {
    display: none; /* Hide desktop donate button on mobile width */
  }
  
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .vm-card {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }

  .section {
    padding: 4.5rem 0;
  }
  
  .vm-grid, .activity-grid, .legal-wrapper, .legal-cards, .network-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .welcome-content h3 {
    font-size: 2rem;
  }

  .network-title-h3 {
    font-size: 1.8rem;
  }

  .vm-card h3 {
    font-size: 1.6rem;
  }
  
  .network-visual {
    padding: 2.5rem 1.5rem;
  }
  
  /* Tree Diagram Fully Mobile-Optimized Grid Node Sizes (No Overflow) */
  .tree-diagram {
    min-width: unset;
    margin: 0 auto;
    width: 100%;
  }

  .tree-branches {
    gap: 1rem;
  }

  .root-node {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .root-node::after {
    bottom: -20px;
    height: 20px;
  }

  .tree-branch::before {
    height: 20px;
  }

  .level-1 {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .level-1::after {
    bottom: -15px;
    height: 15px;
  }

  .sub-branches {
    gap: 0.3rem;
  }

  .sub-branches::before {
    left: 4px;
    right: 4px;
  }

  .sub-branches .tree-node {
    width: 16px;
    height: 16px;
    margin-top: 15px;
  }

  .sub-branches .tree-node::before {
    top: -15px;
    height: 15px;
  }
  
  .contact-form {
    padding: 2rem;
  }

  /* Welcome image decoration adjustment */
  .welcome-image::after {
    top: -10px;
    left: -10px;
  }

  /* Modal Mobile Fixes */
  .modal-content {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  .account-table td {
    display: block;
    width: 100% !important;
  }

  .account-table td:first-child {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }

  .account-table td:last-child {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }

  .welcome-content h3 {
    font-size: 1.6rem;
  }

  .network-title-h3 {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .vm-card {
    padding: 1.5rem;
  }

  /* Super compact gaps for extremely narrow screens */
  .tree-branches {
    gap: 0.6rem;
  }

  .sub-branches {
    gap: 0.2rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 360px) {
  .tree-diagram {
    transform: scale(0.9);
    transform-origin: center top;
  }
}

/* ==========================================================================
   Impact Stats Strip
   ========================================================================== */
.stats-strip {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 4rem 0;
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-accent);
  line-height: 1;
}

.stat-suffix {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-item:nth-child(3) {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-item {
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0.5rem;
  }
  .stat-item:nth-child(2n) {
    border-right: none;
  }
  .stat-number { font-size: 2.2rem; }
  .stat-suffix { font-size: 2rem; }
}

/* ==========================================================================
   Donation Impact Section
   ========================================================================== */
.donation-impact-section {
  background: var(--color-bg);
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.impact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 2px solid var(--color-border);
  position: relative;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.impact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.impact-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(229,141,54,0.15);
}

.impact-card.featured:hover {
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(229,141,54,0.2);
}

.impact-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.impact-amount {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.impact-card.featured .impact-amount {
  color: var(--color-accent);
}

.impact-icon {
  width: 64px;
  height: 64px;
  background: rgba(18,92,71,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-primary);
}

.impact-card.featured .impact-icon {
  background: rgba(229,141,54,0.1);
  color: var(--color-accent);
}

.impact-card h4 {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
}

.impact-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.tax-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(18,92,71,0.04), rgba(18,92,71,0.08));
  border: 1px solid rgba(18,92,71,0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.tax-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.tax-badge i {
  font-size: 1.8rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .impact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .impact-cards {
    grid-template-columns: 1fr;
  }
  .tax-badge-row {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
  background: linear-gradient(180deg, white 0%, var(--color-bg) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote {
  font-size: 2rem;
  color: var(--color-accent);
  opacity: 0.6;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: 1rem;
  font-family: var(--font-main);
}

.testimonial-author span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Modal Tax Note
   ========================================================================== */
.modal-tax-note {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(18,92,71,0.06);
  border: 1px solid rgba(18,92,71,0.15);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.modal-tax-note i {
  color: var(--color-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition-fast);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 30px rgba(37,211,102,0.55);
  color: white;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.7rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ==========================================================================
   UPI Section (inside modal)
   ========================================================================== */
.upi-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.upi-divider {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.upi-divider::before,
.upi-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.upi-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.upi-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.upi-app-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.upi-app {
  font-size: 1.6rem;
  color: var(--color-primary);
}

.upi-app-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.upi-id-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(18,92,71,0.05);
  border: 2px dashed rgba(18,92,71,0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.upi-id-box span:first-child {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.upi-id-box strong {
  font-size: 1.2rem;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.upi-copy-btn {
  background: none;
  border: 1px solid var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.upi-copy-btn:hover {
  background: var(--color-primary);
  color: white;
}

.upi-copied-msg {
  font-size: 0.85rem;
  font-weight: 700;
  color: #16a34a;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.upi-copied-msg.visible {
  opacity: 1;
}

.upi-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--color-bg);
}

.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item.open {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease;
  padding: 0 2rem;
}

.faq-item.open .faq-answer {
  max-height: 3000px;
  padding: 0 2rem 1.5rem;
}

.faq-answer p {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* ==========================================================================
   Scroll Button (Down/Up)
   ========================================================================== */
.scroll-btn {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 998;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(18,92,71,0.3);
}

.scroll-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(18,92,71,0.4);
}

@media (max-width: 480px) {
  .scroll-btn {
    bottom: 5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
