/* ==========================================================================
   KARUNA SHAKTI FOUNDATION - WHITE THEME DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.94);
  
  --primary-brand: #d97706; /* Saffron Gold */
  --primary-dark: #b45309;
  --accent-orange: #ea580c; /* Terracotta Orange */
  --accent-navy: #0f172a;   /* Deep Slate Navy */
  --accent-emerald: #16a34a;/* Emerald Green */
  --accent-sky: #0284c7;    /* Sky Blue */

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #ffffff;

  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 5px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 35px rgba(15, 23, 42, 0.12), 0 6px 12px rgba(15, 23, 42, 0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary-brand);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

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

/* Typography Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary-color { color: var(--primary-brand); }
.text-orange { color: var(--accent-orange); }
.text-muted { color: var(--text-muted); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--primary-brand);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--accent-navy);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-brand), var(--accent-orange));
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
  color: var(--text-light);
}

.btn-secondary {
  background-color: var(--accent-navy);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #1e293b;
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--accent-navy);
}

.btn-outline:hover {
  border-color: var(--primary-brand);
  color: var(--primary-brand);
  background-color: rgba(217, 119, 6, 0.05);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* Topbar Header */
.topbar {
  background-color: var(--accent-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-info a {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-info a:hover {
  color: var(--primary-brand);
}

.topbar-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-badge {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Navigation Bar */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-navy);
  padding: 0.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

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

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

/* Nav Dropdown Menu */
.nav-item-dropdown {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 0.25rem);
  left: 0;
  width: 220px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1200;
  pointer-events: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.nav-item-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown-item a:hover {
  background-color: var(--bg-surface);
  color: var(--primary-brand);
  padding-left: 1.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-navy);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  color: var(--primary-brand);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-highlight-item i {
  color: var(--accent-emerald);
}

.hero-media-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-badge-floating {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-subtle);
  max-width: 280px;
}

.hero-badge-floating i {
  font-size: 2rem;
  color: var(--primary-brand);
}

.hero-badge-floating div p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-badge-floating div h4 {
  font-size: 1.1rem;
  color: var(--accent-navy);
}

/* Impact Metrics Counters */
.impact-section {
  padding: 4rem 0;
  background-color: var(--bg-card);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-brand);
}

.impact-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem auto;
  border-radius: var(--radius-full);
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--primary-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.impact-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-navy);
  margin-bottom: 0.25rem;
}

.impact-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Mission & Who We Are Section */
.mission-section {
  padding: 6rem 0;
  background-color: var(--bg-body);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-media {
  position: relative;
}

.mission-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);

}

.mission-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-brand);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* Initiatives & Gallery Cards */
.initiatives-section {
  padding: 6rem 0;
  background-color: var(--bg-surface);
}

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

.initiative-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.initiative-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

.initiative-card:hover .initiative-thumb img {
  transform: scale(1.05);
}

.initiative-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.initiative-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.initiative-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.initiative-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Resources & Publications Hub */
.resources-section {
  padding: 6rem 0;
  background-color: var(--bg-body);
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab.active, .filter-tab:hover {
  background-color: var(--accent-navy);
  color: var(--text-light);
  border-color: var(--accent-navy);
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.resource-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-brand);
}

.resource-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.resource-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.resource-meta-info {
  flex: 1;
  min-width: 0;
}

.resource-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-navy);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.resource-submeta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.resource-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--primary-brand);
  background-color: rgba(217, 119, 6, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.resource-action {
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .resource-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }
  .resource-action {
    width: 100%;
  }
  .resource-action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Team Grid & 1:1 Cards */
.team-section {
  padding: 6rem 0;
  background-color: var(--bg-surface);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

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

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

.team-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 119, 6, 0.3);
}

/* Enforcing strict 1:1 ratio image avatar container */
.team-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-avatar img {
  transform: scale(1.06);
}

.team-avatar-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 4px;
}

.team-avatar-badge.badge-saffron {
  background: rgba(217, 119, 6, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.team-avatar-badge.badge-navy {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
}

.team-avatar-badge.badge-emerald {
  background: rgba(22, 163, 74, 0.9);
  color: #ffffff;
}

.team-avatar-badge.badge-orange {
  background: rgba(234, 88, 12, 0.9);
  color: #ffffff;
}

.team-info {
  padding: 1.35rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.team-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.team-info .team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-brand);
  margin-bottom: 0.4rem;
}

.team-info .team-qual {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.team-info .team-bio-snippet {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.team-tag-pill {
  font-size: 0.72rem;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-weight: 500;
}

.team-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-team-bio {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--accent-navy);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-team-bio:hover {
  background: var(--primary-brand);
  color: #ffffff;
  border-color: var(--primary-brand);
}

/* Modal CSS */
.team-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.team-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.team-modal-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-modal-backdrop.active .team-modal-container {
  transform: translateY(0) scale(1);
}

.team-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--accent-navy);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.team-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.team-modal-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
}

@media (max-width: 768px) {
  .team-modal-body {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.team-modal-avatar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-modal-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-modal-meta-box {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.team-modal-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.team-modal-meta-row:last-child {
  border-bottom: none;
}

.team-modal-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.team-modal-meta-val {
  color: var(--text-primary);
  font-weight: 600;
}

.team-modal-content-wrapper h3 {
  font-size: 1.6rem;
  color: var(--accent-navy);
  margin-bottom: 0.25rem;
}

.team-modal-role-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-brand);
  background: rgba(217, 119, 6, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.team-modal-bio-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.team-modal-bio-text p {
  margin-bottom: 0.85rem;
}

.team-modal-bio-text p:last-child {
  margin-bottom: 0;
}

/* Form Styles */
.form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-brand);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background-color: var(--accent-navy);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
  max-width: 380px;
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-error { border-left: 4px solid #ef4444; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.site-footer {
  background-color: var(--accent-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem 0;
}

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

.footer-brand img {
  height: 48px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-column h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-brand);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-brand);
  padding-left: 0.25rem;
}

.footer-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-contact-info i {
  color: var(--primary-brand);
  margin-top: 0.2rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .impact-grid, .initiatives-grid, .resources-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active { left: 0; }
  .mobile-toggle { display: block; }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    width: 100%;
    padding-left: 1rem;
    display: none;
  }

  .nav-item-dropdown.active .dropdown-menu { display: block; }

  .impact-grid, .initiatives-grid, .resources-grid, .team-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title { font-size: 2rem; }
  .hero-content h1 { font-size: 2.25rem; }
}
