/* ========================================
   HEART OF CARE FOUNDATION - MAIN STYLESHEET
   Modern, Responsive Design for Nonprofit Website
   ======================================== */

/* ========================================
   CSS VARIABLES & ROOT STYLES
   ======================================== */
:root {
  /* Color Palette */
  --primary-color: #C1502E;
  --secondary-color: #F39C12;
  --accent-color: #27AE60;
  --background-color: #FAF3E0;
  --text-color: #2C3E50;
  --white: #FFFFFF;
  --light-gray: #ECF0F1;
  --medium-gray: #BDC3C7;
  --dark-gray: #7F8C8D;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-headings: 'Georgia', 'Times New Roman', serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition-normal);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title h2 {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.bg-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.bg-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.bg-light {
  background-color: var(--light-gray);
}

.bg-white {
  background-color: var(--white);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #A03D22;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #D68910;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #229954;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 150px;
  width: auto;
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--background-color);
}

.nav-donate-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.nav-donate-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(193, 80, 46, 0.8), rgba(243, 156, 18, 0.7));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--spacing-md);
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-lg) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   CARDS
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
}

.card-footer {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--background-color);
  border-top: 1px solid var(--light-gray);
}

/* ========================================
   PROGRAM SECTIONS
   ======================================== */

/* Our Story Layout */
.story-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--spacing-lg);
  align-items: start;
  margin-bottom: var(--spacing-lg);
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.story-image::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 3px solid var(--secondary-color);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.story-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.story-text p {
  margin-bottom: 1rem;
}

.story-text p:first-child::first-letter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  float: left;
  line-height: 1;
  margin-right: 0.4rem;
  margin-top: 0.1rem;
}

.story-continuation {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--light-gray);
}

.story-continuation p {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
  }
  
  .story-image img {
    height: 250px;
  }
  
  .story-image::after {
    display: none;
  }
  
  .story-text p:first-child::first-letter {
    font-size: 2.5rem;
  }
}

.program-item {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  align-items: center;
}

.program-item:nth-child(even) {
  flex-direction: row-reverse;
}

.program-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.program-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.program-image:hover img {
  transform: scale(1.05);
}

.program-content {
  flex: 1;
}

.program-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
}

.program-list {
  list-style: none;
  margin-top: var(--spacing-sm);
}

.program-list li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
}

.program-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.team-member {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  background-color: var(--light-gray);
}

.team-info {
  padding: var(--spacing-md);
}

.team-name {
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.team-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.team-age {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.team-bio {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background-color: var(--white);
  color: var(--text-color);
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: var(--spacing-md);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 20px;
  border-radius: var(--radius-md);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ========================================
   DONATION TIERS
   ======================================== */
.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.donation-tier {
  background-color: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.donation-tier:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.donation-tier.active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.donation-tier.active .tier-amount,
.donation-tier.active .tier-impact {
  color: var(--white);
}

.donation-tier.active .btn {
  background-color: var(--white);
  color: var(--primary-color);
}

.donation-tier.featured {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, var(--white) 0%, var(--background-color) 100%);
}

.donation-tier.featured.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.tier-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.tier-impact {
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  min-height: 60px;
}

/* News Article Responsive Layout */
.news-article {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .news-article {
    grid-template-columns: 1fr;
  }
  
  .news-article img {
    height: 200px !important;
  }
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #E74C3C;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  display: none;
}

.form-error.active {
  display: block;
}

.form-success {
  background-color: #D5F4E6;
  color: var(--accent-color);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  display: none;
}

.form-success.active {
  display: block;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-carousel {
  max-width: 900px;
  margin: var(--spacing-lg) auto;
  position: relative;
}

.testimonial-slide {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.testimonial-role {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.testimonial-dot.active {
  background-color: var(--primary-color);
}

/* ========================================
   IMPACT METRICS
   ======================================== */
.impact-metrics {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-xl) 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.metric-item {
  text-align: center;
}

.metric-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.metric-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========================================
   URGENT APPEAL
   ======================================== */
.urgent-appeal {
  background-color: var(--white);
  border: 3px solid var(--secondary-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-lg);
}

.urgent-appeal h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.progress-bar {
  background-color: var(--light-gray);
  height: 30px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: var(--spacing-md) 0;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  transition: width var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xl) 0;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.newsletter-btn {
  padding: 14px 30px;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

.newsletter-btn:hover {
  background-color: var(--accent-color);
}

/* ========================================
   CONTACT INFO
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.contact-info-card {
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.map-container {
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ========================================
   SOCIAL MEDIA
   ======================================== */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin: var(--spacing-md) 0;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: var(--light-gray);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--medium-gray);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* ========================================
   COOKIE CONSENT
   ======================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-color);
  color: var(--white);
  padding: var(--spacing-md);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.cookie-text {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--light-gray);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
  animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and below */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.35rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .logo img {
    height: 110px;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg) var(--spacing-md);
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .nav-donate-btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-align: center;
    display: block;
  }
  
  .hero {
    height: 500px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .program-item,
  .program-item:nth-child(even) {
    flex-direction: column;
  }
  
  .program-image img {
    height: 300px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .donation-tiers {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .lightbox-nav {
    font-size: 30px;
    padding: 15px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

/* Mobile devices */
@media (max-width: 480px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .logo img {
    height: 45px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .cookie-consent,
  .hamburger,
  .nav-donate-btn {
    display: none;
  }
  
  body {
    background-color: var(--white);
  }
  
  a {
    color: var(--text-color);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Improved card hover transitions */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Better loading animation */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
