/* ==========================================================================
   JIVANSHA FOUNDATION (जीवनक्षा फाउंडेशन) - OFFICIAL STYLESHEET
   Clean, Modern, Fully Responsive, Accessible Design System
   Brand Colors: Orange (#F28C00), Green (#6FA72C), Earthy Brown (#7A3A20)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette derived directly from official logo */
  --color-orange: #F28C00;
  --color-orange-hover: #D97706;
  --color-orange-light: #FFF5E6;
  --color-orange-glow: rgba(242, 140, 0, 0.2);
  
  --color-green: #6FA72C;
  --color-green-hover: #5A8C21;
  --color-green-light: #F4F9EF;
  --color-green-glow: rgba(111, 167, 44, 0.18);

  --color-brown: #7A3A20;
  --color-brown-light: #F4ECE7;
  
  --color-charcoal: #222222;
  --color-text: #3D3D3D;
  --color-text-muted: #666666;
  --color-border: #E8E8E6;
  --color-border-light: rgba(0, 0, 0, 0.07);

  /* Backgrounds */
  --bg-white: #FFFFFF;
  --bg-cream: #FFF9F0;
  --bg-light-green: #F4F9EF;
  --bg-light-gray: #F7F7F6;
  --bg-dark: #1A1A1A;

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 20px 44px rgba(242, 140, 0, 0.14);

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Accessibility: Skip to Content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-orange);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Focus Visible for Keyboard Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. TYPOGRAPHY & HEADINGS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-charcoal);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw + 0.8rem, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 2.8vw + 0.8rem, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 1.8vw + 0.8rem, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.92rem; }

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4A4A4A;
}

.text-muted {
  color: var(--color-text-muted);
}

.font-serif {
  font-family: var(--font-serif);
}

/* --------------------------------------------------------------------------
   3. LAYOUT & CONTAINERS (MOBILE-FIRST)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 920px;
}

.section {
  padding: 85px 0;
  position: relative;
}

.section-sm {
  padding: 50px 0;
}

.section-lg {
  padding: 110px 0;
}

.bg-white { background-color: var(--bg-white); }
.bg-cream { background-color: var(--bg-cream); }
.bg-light-green { background-color: var(--bg-light-green); }
.bg-light-gray { background-color: var(--bg-light-gray); }
.bg-dark { background-color: var(--bg-dark); color: #FFFFFF; }

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-orange-light);
  color: var(--color-orange);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag.tag-green {
  background: var(--color-green-light);
  color: var(--color-green);
}

.section-title {
  color: var(--color-charcoal);
  margin-bottom: 16px;
}

.section-title span.highlight-orange { color: var(--color-orange); }
.section-title span.highlight-green { color: var(--color-green); }
.section-title span.highlight-brown { color: var(--color-brown); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-green));
  border-radius: 2px;
  margin: 18px auto 0 auto;
}

.section-header.text-left .section-divider {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  touch-action: manipulation;
  min-height: 46px;
}

.btn-primary {
  background: var(--color-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(242, 140, 0, 0.32);
}

.btn-primary:hover {
  background: var(--color-orange-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 140, 0, 0.42);
}

.btn-secondary {
  background: var(--color-green);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(111, 167, 44, 0.28);
}

.btn-secondary:hover {
  background: var(--color-green-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 167, 44, 0.38);
}

.btn-outline-orange {
  background: transparent;
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn-outline-orange:hover {
  background: var(--color-orange);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn-outline-green:hover {
  background: var(--color-green);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.02rem;
  min-height: 52px;
}

/* --------------------------------------------------------------------------
   5. STICKY HEADER & BILINGUAL BRANDING
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 16px;
  flex-wrap: nowrap;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-inner {
  height: 74px;
}

/* Header Brand with New Logo & Bilingual Typography */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 74px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: var(--transition);
  flex-shrink: 0;
}

.site-header.scrolled .brand-logo {
  height: 58px;
  width: auto;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title-en {
  font-family: var(--font-primary);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

.brand-title-en span {
  color: var(--color-orange);
}

.brand-title-mr {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-green);
  letter-spacing: 0.02em;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--color-charcoal);
  padding: 7px 11px;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition-fast);
  white-space: nowrap; /* Prevents text from breaking onto multiple lines */
  display: inline-block;
}

.nav-link:hover {
  color: var(--color-orange);
  background: var(--color-orange-light);
}

.nav-link.active {
  color: var(--color-orange);
  font-weight: 600;
  background: var(--color-orange-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: var(--color-orange);
  border-radius: 2px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0; /* Prevents CTA button from shrinking or crowding */
}

.mobile-menu-cta, .mobile-menu-contact {
  display: none;
}

/* Accessible Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  padding: 9px;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1002;
  touch-action: manipulation;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. INNER PAGE HERO
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 135px 0 55px 0;
  background: linear-gradient(135deg, #FFF9F0 0%, #FFFFFF 50%, #F4F9EF 100%);
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}

.page-hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(242, 140, 0, 0.05) 0%, transparent 20%),
                    radial-gradient(circle at 90% 80%, rgba(111, 167, 44, 0.05) 0%, transparent 20%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.page-hero-title {
  color: var(--color-charcoal);
  margin-bottom: 14px;
}

.page-hero-desc {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto 20px auto;
  line-height: 1.65;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.breadcrumb-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  color: var(--color-orange);
}

.breadcrumb-nav .sep {
  opacity: 0.4;
}

.breadcrumb-nav .current {
  color: var(--color-orange);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. HOMEPAGE HERO SECTION
   -------------------------------------------------------------------------- */
/* High-Contrast, Crystal-Clear Hero Section */
.home-hero {
  position: relative;
  min-height: auto;
  padding-top: 125px;
  padding-bottom: 70px;
  background: linear-gradient(135deg, #FFFDF8 0%, #FFFFFF 50%, #F5F9F1 100%);
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.home-hero-media {
  position: relative;
  z-index: 2;
}

.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border: 4px solid #FFFFFF;
  background: #FFFFFF;
}

.hero-media-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  filter: none !important;
}

.hero-media-card:hover img {
  transform: scale(1.02);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-left: 4px solid var(--color-orange);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-floating-badge i {
  font-size: 1.5rem;
  color: var(--color-orange);
}

.hero-floating-badge h5 {
  font-size: 0.92rem;
  margin: 0;
  color: var(--color-charcoal);
  font-weight: 700;
}

.hero-floating-badge p {
  font-size: 0.76rem;
  margin: 0;
  color: var(--color-text-muted);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: #FFFFFF;
  border: 1px solid rgba(242, 140, 0, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(242, 140, 0, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 20px;
}

.hero-pill-badge {
  background: var(--color-orange);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-hero-title {
  margin-bottom: 18px;
  line-height: 1.18;
}

.home-hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 30px;
}

.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-stat-item h3 {
  font-size: 1.8rem;
  color: var(--color-orange);
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-stat-item p {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   8. SPLIT LAYOUTS (ABOUT, STORY, FORMS)
   -------------------------------------------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.split-image-wrap {
  position: relative;
}

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

.split-image-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.split-image-main:hover img {
  transform: scale(1.03);
}

.split-badge {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: #FFFFFF;
  padding: 20px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--color-orange);
  max-width: 240px;
}

.split-badge h4 {
  font-size: 1.9rem;
  color: var(--color-orange);
  margin-bottom: 2px;
}

.split-badge p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.35;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green-light);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.feature-text h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. VISION, MISSION, AIM & VALUES
   -------------------------------------------------------------------------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: #FFFFFF;
  padding: 38px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(242, 140, 0, 0.3);
}

.pillar-card.card-orange { border-top: 5px solid var(--color-orange); }
.pillar-card.card-green { border-top: 5px solid var(--color-green); }
.pillar-card.card-brown { border-top: 5px solid var(--color-brown); }

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 22px;
}

.pillar-card.card-orange .pillar-icon { background: var(--color-orange-light); color: var(--color-orange); }
.pillar-card.card-green .pillar-icon { background: var(--color-green-light); color: var(--color-green); }
.pillar-card.card-brown .pillar-icon { background: var(--color-brown-light); color: var(--color-brown); }

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.value-card {
  background: #FFFFFF;
  padding: 26px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.value-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: inline-block;
}

.value-card h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--color-charcoal);
}

.value-card p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. ACTIVITIES GRID & CARDS
   -------------------------------------------------------------------------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(242, 140, 0, 0.3);
}

.activity-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #FAFAFA;
}

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

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

.activity-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--color-orange);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.activity-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-body h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.activity-card:hover .activity-body h3 {
  color: var(--color-orange);
}

.activity-body p {
  font-size: 0.91rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.activity-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-orange);
  transition: var(--transition-fast);
}

.activity-link:hover {
  color: var(--color-orange-hover);
  gap: 12px;
}

/* --------------------------------------------------------------------------
   11. IMPACT COUNTER SECTION
   -------------------------------------------------------------------------- */
.impact-section {
  background: linear-gradient(135deg, #7A3A20 0%, #5E2B16 100%);
  color: #FFFFFF;
  position: relative;
  padding: 85px 0;
  overflow: hidden;
}

.impact-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.06;
  background-image: radial-gradient(#FFFFFF 1px, transparent 1px);
  background-size: 24px 24px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.impact-metric-box {
  padding: 24px 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.impact-metric-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-orange);
}

.impact-icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
  display: inline-block;
}

.impact-number {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1.1;
  margin-bottom: 4px;
}

.impact-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   12. PRESIDENT & LEADERSHIP FEATURE SECTION
   -------------------------------------------------------------------------- */
.president-feature {
  background: var(--bg-cream);
  border: 1px solid rgba(242, 140, 0, 0.14);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 55px;
  position: relative;
  overflow: hidden;
}

.president-feature::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 35px;
  font-family: var(--font-serif);
  font-size: 150px;
  line-height: 1;
  color: var(--color-orange);
  opacity: 0.12;
  pointer-events: none;
}

.president-split {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 40px;
  align-items: center;
}

.president-photo-wrap {
  text-align: center;
}

.president-photo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px auto;
  border: 5px solid #FFFFFF;
  box-shadow: var(--shadow-lg);
}

.president-photo-wrap h4 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.president-photo-wrap .designation {
  font-size: 0.9rem;
  color: var(--color-orange);
  font-weight: 600;
}

.president-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 22px;
  font-style: italic;
}

.president-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   13. GOVERNING BODY LEADERSHIP CARDS
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(242, 140, 0, 0.3);
}

.member-photo-box {
  position: relative;
  height: 300px;
  background: #F4ECE7;
  overflow: hidden;
}

.member-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.member-card:hover .member-photo-box img {
  transform: scale(1.05);
}

.member-role-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(34, 34, 34, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border-left: 3px solid var(--color-orange);
}

.member-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-body h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.member-body .affiliation {
  font-size: 0.84rem;
  color: var(--color-brown);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.member-body p.bio-excerpt {
  font-size: 0.89rem;
  color: var(--color-text-muted);
  line-height: 1.58;
  margin-bottom: 18px;
  flex-grow: 1;
}

.member-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

/* NSS Volunteer Feature Banner */
.nss-banner {
  background: linear-gradient(135deg, #F4F9EF 0%, #FFFFFF 100%);
  border: 2px dashed rgba(111, 167, 44, 0.35);
  border-radius: var(--radius-lg);
  padding: 42px;
  margin-top: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.nss-banner-info h3 {
  font-size: 1.65rem;
  color: var(--color-green);
  margin-bottom: 10px;
}

.nss-banner-info p {
  color: var(--color-text-muted);
  max-width: 600px;
  font-size: 0.98rem;
}

.nss-stats-group {
  display: flex;
  gap: 20px;
}

.nss-stat {
  text-align: center;
  background: #FFFFFF;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.nss-stat h4 {
  font-size: 1.55rem;
  color: var(--color-green);
  margin-bottom: 2px;
}

.nss-stat span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. EVENTS & TIMELINE
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.filter-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.filter-btn.active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(242, 140, 0, 0.28);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(242, 140, 0, 0.3);
}

.event-header-box {
  position: relative;
  height: 200px;
  background: #222222;
  overflow: hidden;
}

.event-header-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-header-box img {
  transform: scale(1.08);
}

.event-date-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.event-date-pill .day {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
}

.event-date-pill .month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.event-year-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(34, 34, 34, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.event-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-body h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.event-meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.event-meta-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-body p {
  font-size: 0.89rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   15. GALLERY & LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  height: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #F7F7F6;
  touch-action: manipulation;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(34, 34, 34, 0.88) 0%, rgba(34, 34, 34, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

.gallery-overlay .cat-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-orange);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.gallery-overlay h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.gallery-overlay .view-zoom {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-img {
  max-height: 75vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 500;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.lightbox-btn:hover {
  background: var(--color-orange);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  color: #FFFFFF;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.lightbox-close:hover {
  color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   16. MODALS (FOR LEADERSHIP MESSAGES)
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-cream);
}

.modal-header h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--color-orange);
  font-weight: 600;
}

.modal-close-btn {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-charcoal);
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.modal-close-btn:hover {
  background: var(--color-orange);
  color: #FFFFFF;
  border-color: var(--color-orange);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  line-height: 1.75;
  color: #444444;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-footer {
  padding: 14px 28px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #FDFDFD;
}

/* --------------------------------------------------------------------------
   17. FORMS (VOLUNTEER, DONATE, CONTACT, NEWSLETTER)
   -------------------------------------------------------------------------- */
.form-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 8px;
}

.form-label .required {
  color: #E53E3E;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--color-charcoal);
  min-height: 48px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px var(--color-orange-glow);
  outline: none;
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Donation Amount Chips */
.amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.amount-chip-btn {
  padding: 12px;
  text-align: center;
  border: 1.5px solid var(--color-border);
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-charcoal);
  cursor: pointer;
  min-height: 46px;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.amount-chip-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.amount-chip-btn.active {
  border-color: var(--color-orange);
  background: var(--color-orange-light);
  color: var(--color-orange);
}

/* Form Alert State */
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-alert.success {
  display: block;
  background: var(--color-green-light);
  color: #2E6018;
  border: 1px solid rgba(111, 167, 44, 0.3);
}

.form-alert.error {
  display: block;
  background: #FFF5F5;
  color: #C53030;
  border: 1px solid #FEB2B2;
}

/* --------------------------------------------------------------------------
   18. CONTACT PAGE SPECIFICS
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-cream);
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 140, 0, 0.15);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-method-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--color-orange);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-method-text p, .contact-method-text a {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-method-text a:hover {
  color: var(--color-orange);
}

.map-container {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 45px;
  border: 1px solid var(--color-border-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #1C1B1A;
  color: #FFFFFF;
  padding-top: 75px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 42px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand-wrap {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-brand-logo {
  height: 92px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin-bottom: 22px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--color-orange);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.12rem;
  color: #FFFFFF;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--color-orange);
  border-radius: 2px;
}

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

.footer-links-list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
  transition: var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--color-orange);
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact-item a:hover {
  color: var(--color-orange);
}

/* Newsletter in Footer */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 16px;
  color: #FFFFFF;
}

.newsletter-input:focus {
  border-color: var(--color-orange);
  outline: none;
}

.newsletter-btn {
  background: var(--color-orange);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--color-orange-hover);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(242, 140, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-orange-hover);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   20. ANIMATIONS & SCROLL OBSERVER
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
/* 1200px Breakpoint */
@media (max-width: 1200px) {
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-link {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

/* 1140px Breakpoint (Tablet Landscape / Laptops with smaller viewport) */
@media (min-width: 1141px) and (max-width: 1260px) {
  .nav-link {
    padding: 6px 9px;
    font-size: 0.83rem;
  }
  .header-brand {
    gap: 8px;
  }
  .brand-title-en {
    font-size: 0.96rem;
  }
  .brand-logo {
    height: 62px;
    width: auto;
  }
}

@media (max-width: 1140px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 40px 20px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-link.active::after {
    display: none;
  }

  .header-cta-group .btn {
    display: none;
  }

  .mobile-menu-cta, .mobile-menu-contact {
    display: block;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-image-main img {
    height: 380px;
  }

  .cards-grid-3, .activities-grid, .team-grid, .events-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .president-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .president-quote {
    text-align: left;
  }

  .nss-banner {
    flex-direction: column;
    text-align: center;
  }

  .nss-stats-group {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

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

/* 768px Breakpoint (Tablet Portrait / Large Phones) */
@media (max-width: 768px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 55px 0;
  }

  .home-hero {
    padding-top: 105px;
    padding-bottom: 50px;
  }
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-media-card img {
    height: 320px;
  }

  .home-hero-desc {
    font-size: 1.05rem;
  }

  .cards-grid-3, .activities-grid, .team-grid, .events-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .form-row-2 {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .president-feature {
    padding: 30px 20px;
  }

  .president-photo {
    width: 180px;
    height: 180px;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .split-image-main img {
    height: 280px;
  }

  .split-badge {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* 576px Breakpoint (Mobile Phones) */
@media (max-width: 576px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    height: 72px;
  }

  .brand-logo {
    height: 56px;
    width: auto;
  }

  .brand-title-en {
    font-size: 0.98rem;
  }

  .brand-title-mr {
    font-size: 0.72rem;
  }

  .nav-menu {
    top: 72px;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
  }

  .home-hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .home-hero-cta .btn {
    width: 100%;
  }

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

  .hero-stat-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nss-stats-group {
    flex-direction: column;
    width: 100%;
  }

  .form-card {
    padding: 24px 16px;
  }

  .contact-info-card {
    padding: 24px 16px;
  }

  .pillar-card {
    padding: 26px 18px;
  }

  .member-body {
    padding: 18px;
  }

  .event-body {
    padding: 18px;
  }

  .activity-body {
    padding: 18px;
  }

  .nss-banner {
    padding: 24px 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* 375px & Below (Ultra-Compact Mobile Phones) */
@media (max-width: 375px) {
  .brand-title-en {
    font-size: 0.88rem;
  }
  .brand-title-mr {
    font-size: 0.68rem;
  }
  .brand-logo {
    height: 48px;
    width: auto;
  }
  .hero-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
  .hero-stats-banner {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   CERTIFICATES & ACCREDITATION STYLES
   -------------------------------------------------------------------------- */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 36px;
}

.certificate-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.certificate-preview-wrap {
  position: relative;
  background: #f8fafc;
  padding: 24px 24px 0 24px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.certificate-preview-img {
  max-width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform var(--transition-normal);
}

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

.certificate-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.certificate-badge.badge-niti {
  background: var(--color-orange);
}

.certificate-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.certificate-authority {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-orange);
  margin-bottom: 6px;
}

.certificate-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
}

.certificate-reg-number {
  display: inline-block;
  background: var(--bg-cream);
  border: 1px dashed var(--color-orange);
  color: var(--color-charcoal);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.certificate-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.certificate-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.certificate-actions .btn {
  flex: 1;
  justify-content: center;
}
