/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: "DM Sans", "Inter", sans-serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #faf8f5;
  font-weight: 400;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Poppins", "Cocogoose", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* The Heart Foundation Brand Colors */
:root {
  --yellow: #fdd100;
  --vivid-pink: #9f0047;
  --dark-green: #295b1a;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --soft-yellow: rgba(253, 209, 0, 0.1);
  --soft-pink: rgba(159, 0, 71, 0.1);
  --soft-green: rgba(41, 91, 26, 0.1);
}

/* Show close button only on mobile */
.nav-close { 
  display: none; 
}

/* Navigation */
.navbar {
  background-color: #f9f5d7;
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(249, 245, 215, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.nav-container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10001;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0px;
  z-index: 10001;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  transition: all 0.3s ease;
}

/* Desktop Navigation - Always visible by default */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  text-transform: lowercase;
  transition: all 0.3s ease;
  font-size: 16px;
  position: relative;
  padding: 8px 0;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--yellow);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--yellow);
  outline: none;
}

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

.nav-cta {
  margin-left: 20px;
  font-size: 14px;
  padding: 15px 30px;
  transition: all 0.3s ease;
  background-color: var(--yellow);
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(253, 209, 0, 0.3);
}

.nav-cta:hover,
.nav-cta:focus {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(253, 209, 0, 0.4);
  color: white;
}

/* Mobile Toggle Button */
.mobile-toggle { 
  display: inline-flex; 
  flex-direction: column; 
  gap: 5px; 
  background: transparent; 
  border: 0; 
  cursor: pointer; 
}

.mobile-toggle .hamburger-line { 
  width: 28px; 
  height: 3px; 
  background: #222; 
  display: block; 
  transition: transform 0.3s ease, opacity 0.2s ease; 
}

.mobile-toggle .hamburger-line:nth-child(1) { 
  transform: translateY(0) rotate(0); 
}

.mobile-toggle .hamburger-line:nth-child(2) { 
  opacity: 1; 
}

.mobile-toggle .hamburger-line:nth-child(3) { 
  transform: translateY(0) rotate(0); 
}

.mobile-toggle.active .hamburger-line:nth-child(1) { 
  transform: rotate(45deg) translate(5px, 5px); 
}

.mobile-toggle.active .hamburger-line:nth-child(2) { 
  opacity: 0; 
}

.mobile-toggle.active .hamburger-line:nth-child(3) { 
  transform: rotate(-45deg) translate(6px, -6px); 
}

.logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  transition: transform 0.3s ease;
  box-shadow: none;
  filter: none;
}

.logo-link:hover .logo-img {
  transform: scale(1.1);
}

.logo h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 1px;
  font-family: "Cocogoose", "Poppins", sans-serif;
  text-transform: lowercase;
  display: none; /* Hidden by default */
  margin-left: 45px; /* Move text 45px to the right */
}

/* Donation Modal */
.donation-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

/* Test class to show modal */
.donation-modal.show {
  display: block !important;
}

.donation-modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  overflow: hidden;
}

.donation-modal-header {
  background: linear-gradient(135deg, var(--yellow), #e6c200);
  color: var(--text-dark);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.donation-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.donation-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.donation-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.donation-modal-body {
  padding: 30px;
}

.donation-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.bank-details h3,
.qr-section h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.bank-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--yellow);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 120px;
}

.info-row .value {
  color: var(--text-light);
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.qr-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  border: 2px dashed #dee2e6;
}

.qr-code-placeholder {
  text-align: center;
  color: var(--text-light);
}

.qr-code-placeholder i {
  font-size: 4rem;
  margin-bottom: 15px;
  color: var(--yellow);
}

.qr-code-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.donation-note {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.donation-note p {
  margin: 0;
  color: #856404;
  font-size: 0.9rem;
}

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

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .donation-modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 80vh; /* Reduced to ensure scrolling */
    overflow-y: scroll; /* Changed from auto to scroll */
  }
  
  .donation-modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px); /* Reduced to ensure scrolling */
    overflow-y: scroll; /* Changed from auto to scroll */
  }
  
  .donation-info {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 600px; /* Force content to be taller */
  }
  
  .donation-modal-header {
    padding: 20px;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--yellow), #e6c200);
    z-index: 1;
  }
  
  .donation-modal-header h2 {
    font-size: 1.5rem;
    color: white;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .info-row .label {
    min-width: auto;
  }
  
  /* Enhanced scrollbar styling for mobile */
  .donation-modal-content::-webkit-scrollbar,
  .donation-modal-body::-webkit-scrollbar {
    width: 8px; /* Made slightly wider */
  }
  
  .donation-modal-content::-webkit-scrollbar-track,
  .donation-modal-body::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  .donation-modal-content::-webkit-scrollbar-thumb,
  .donation-modal-body::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 4px;
    border: 1px solid #e6c200;
  }
  
  .donation-modal-content::-webkit-scrollbar-thumb:hover,
  .donation-modal-body::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
  }
  
  /* Firefox scrollbar */
  .donation-modal-content,
  .donation-modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) #e0e0e0;
  }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-pink,
.btn-instagram,
.nav-cta,
a.btn-primary,
a.btn-secondary,
a.btn-pink,
a.btn-instagram {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--yellow);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 14px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(253, 209, 0, 0.3);
  text-decoration: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(253, 209, 0, 0.4);
  text-decoration: none;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-pink {
  background-color: #246c35; /* dark green background */
  color: var(--white);
  box-shadow: 0 8px 20px rgba(36, 108, 53, 0.3);
  border: 2px solid #246c35;
  text-decoration: none;
}

.btn-pink:hover {
  background-color: #1a5a2a; /* darker green on hover */
  color: var(--white);
  box-shadow: 0 12px 25px rgba(36, 108, 53, 0.4);
  transform: translateY(-3px) scale(1.05);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  padding: 15px 30px;
  border: 2px solid var(--text-dark);
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--text-dark);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background-color: #f9f5d7;
  background-image: radial-gradient(
      circle at 20% 80%,
      var(--soft-yellow) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 20%, var(--soft-pink) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--soft-green) 0%, transparent 50%);
  background-size: 300px 300px, 200px 200px, 250px 250px;
  background-position: 0 0, 100% 0, 50% 100%;
  background-repeat: no-repeat;
  padding: 0;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 50px);
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 100%;
  margin: 200px auto 80px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
  width: 100%;
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.image-container:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.story-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.community-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.hero-content {
  position: relative;
  margin-bottom: 40px;
}

/* Decorative Hearts Throughout Site */
.decorative-heart {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-block;
  margin: 0 8px;
}

.decorative-heart::before,
.decorative-heart::after {
  content: "";
  width: 14px;
  height: 22px;
  position: absolute;
  left: 14px;
  transform: rotate(-45deg);
  border-radius: 14px 14px 0 0;
  transform-origin: 0 100%;
}

.decorative-heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

/* Heart color variations */
.decorative-heart.yellow::before,
.decorative-heart.yellow::after {
  background: var(--yellow);
}

.decorative-heart.pink::before,
.decorative-heart.pink::after {
  background: var(--vivid-pink);
}

.decorative-heart.green::before,
.decorative-heart.green::after {
  background: var(--dark-green);
}

.decorative-heart.white::before,
.decorative-heart.white::after {
  background: #246c35;
}

.decorative-heart.light-yellow::before,
.decorative-heart.light-yellow::after {
  background: #fcee9b;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: "Poppins", "Cocogoose", sans-serif;
  position: relative;
  z-index: 2;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.7;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}

/* Image fallback styling */
.image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--yellow), var(--vivid-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.fallback-content {
  text-align: center;
  color: white;
}

.fallback-icon {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  font-family: "Cocogoose", sans-serif;
}

.fallback-content p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Card image fallback specific styling */
.card-image .image-fallback {
  border-radius: 15px;
}

.card-image .fallback-icon {
  font-size: 1.8rem;
}

.card-image .fallback-content p {
  font-size: 0.9rem;
}

/* Scrolling Text Strip */
.scrolling-strip {
  background-color: #fcee9b;
  height: 50px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.scrolling-strip-green {
  background-color: #246c35;
}

.scrolling-content {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: scrollText 30s linear infinite;
}

.scrolling-text {
  font-family: "Cocogoose", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #246c35;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.scrolling-text-yellow {
  color: #fcee9b;
}

@keyframes scrollText {
  0% {
    transform: translateX(-66.67%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Mission Section */
.mission-section {
  /* tweakable colors approximating the reference image */
  --c0: #f5d469; /* center yellow */
  --c1: #f7de8a;
  --c2: #faeab7;
  --c3: #fff3d6;
  --c4: #fff9ee; /* outer off-white */

  background: radial-gradient(
    ellipse 400px 200px at 50% 50%,
    var(--c0) 0%,
    var(--c1) 32%,
    var(--c2) 58%,
    var(--c3) 78%,
    var(--c4) 100%
  );
  background-attachment: scroll;
  background-repeat: no-repeat;
  padding: 20px 0;
  position: relative;
  min-height: 240px;
}

.mission-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.mission-content {
  background-color: transparent;
  color: var(--text-dark);
  padding: 0;
  border-radius: 0;
  position: relative;
  text-align: center;
}

.mission-title {
  font-size: 2rem;
  color: var(--vivid-pink);
  margin-bottom: 20px;
  line-height: 1.3;
  font-family: "Poppins", "Cocogoose", sans-serif;
  font-weight: 600;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

.mission-description {
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 30px;
  line-height: 1.4;
  font-weight: 400;
  font-family: "Poppins", "Cocogoose", sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-style: italic;
}

.mission-byline {
  font-size: 1.2rem;
  color: #000000;
  font-weight: 500;
  font-family: "Poppins", "Cocogoose", sans-serif;
  text-align: right;
  margin-top: 0;
  margin-bottom: 40px;
  font-style: normal;
  letter-spacing: 0.5px;
}

.highlight-circle {
  position: relative;
  display: inline-block;
}

.highlight-circle::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -4px;
  right: -4px;
  bottom: -2px;
  border: 2px solid var(--vivid-pink);
  border-radius: 20px;
  z-index: -1;
}

.highlight-underline {
  position: relative;
}

/* Art for Heart Section */
.art-for-heart-section {
  /* Similar gradient background to mission section */
  --c0: #f5d469; /* center yellow */
  --c1: #f7de8a;
  --c2: #faeab7;
  --c3: #fff3d6;
  --c4: #fff9ee; /* outer off-white */

  background: radial-gradient(
    ellipse 400px 200px at 50% 50%,
    var(--c0) 0%,
    var(--c1) 32%,
    var(--c2) 58%,
    var(--c3) 78%,
    var(--c4) 100%
  );
  background-attachment: scroll;
  background-repeat: no-repeat;
  padding: 60px 0;
  position: relative;
  min-height: 400px;
}

.art-for-heart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.art-for-heart-content {
  background-color: transparent;
  color: var(--text-dark);
  padding: 0;
  border-radius: 0;
  position: relative;
}

.art-for-heart-title {
  font-size: 2.2rem;
  color: var(--vivid-pink);
  margin-bottom: 20px;
  line-height: 1.3;
  font-family: "Poppins", "Cocogoose", sans-serif;
  font-weight: 600;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

.art-for-heart-description {
  font-size: 1.8rem;
  color: #000000;
  margin-bottom: 30px;
  line-height: 1.4;
  font-weight: 400;
  font-family: "Poppins", "Cocogoose", sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-style: italic;
}

.art-for-heart-gallery {
  position: relative;
}

.art-mosaic {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.art-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: white;
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.art-card-large {
  width: 100%;
  height: 300px;
}

.art-cards-small {
  display: flex;
  gap: 20px;
}

.art-card-small {
  flex: 1;
  height: 140px;
}

.art-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.art-card:hover .art-image {
  transform: scale(1.05);
}

/* Doodle decorations */
.art-doodle {
  position: absolute;
  font-size: 1.5rem;
  color: var(--yellow);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.art-doodle-star {
  top: 20px;
  right: 20px;
  animation-delay: 0s;
}

.art-doodle-circle {
  bottom: 20px;
  left: 20px;
  animation-delay: 1s;
}

.art-doodle-squiggle {
  top: 15px;
  right: 15px;
  animation-delay: 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Responsive Design for Art for Heart Section */
@media (max-width: 768px) {
  .art-for-heart-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .art-for-heart-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .art-for-heart-description {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .art-cards-small {
    display: none;
  }

  .art-card-small {
    height: 120px;
  }

  .art-card-large {
    height: 250px;
  }
}

.highlight-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--vivid-pink);
  border-radius: 1px;
}

.mission-content .btn-secondary {
  background-color: var(--vivid-pink);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.mission-content .btn-secondary:hover {
  background-color: #8a003f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(159, 0, 71, 0.3);
}

.mission-image {
  position: relative;
}

/* About Us Section */
.about-us-section {
  background-color: #f9f5d7; /* same as header */
  padding: 60px 0;
  position: relative;
  overflow: hidden; /* changed to hidden to ensure no decorations show */
}

.about-us-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-us-content {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.about-us-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #246c35; /* dark green for contrast */
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: "Poppins", "Cocogoose", sans-serif;
  position: relative;
  z-index: 2;
  letter-spacing: -0.03em;
}

.about-us-description {
  font-size: 1.15rem;
  color: #246c35; /* dark green for contrast */
  margin-bottom: 30px;
  line-height: 1.7;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}

.about-us-visual {
  text-align: center;
}

/* Thematic Section */
.thematic-section {
  background-color: #f9f5d7;
  padding: 40px 0;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: "Poppins", "Cocogoose", sans-serif;
  position: relative;
  z-index: 2;
  letter-spacing: -0.03em;
}

.section-title.pink {
  color: var(--vivid-pink);
}

.thematic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.thematic-card {
  background-color: white;
  padding: 40px 30px;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  border-top: 4px solid var(--yellow);
  position: relative;
  overflow: visible;
}

.card-heart-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.heart-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.heart-circle::before {
  content: "";
  width: 24px;
  height: 24px;
  background-color: white;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E")
    no-repeat center;
  mask-size: contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E")
    no-repeat center;
  -webkit-mask-size: contain;
}

.heart-circle.yellow {
  background-color: var(--yellow);
  box-shadow: 0 4px 15px rgba(253, 209, 0, 0.3);
}

.heart-circle.pink {
  background-color: var(--vivid-pink);
  box-shadow: 0 4px 15px rgba(159, 0, 71, 0.3);
}

.heart-circle.green {
  background-color: var(--dark-green);
  box-shadow: 0 4px 15px rgba(41, 91, 26, 0.3);
}

.thematic-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.4s ease;
  opacity: 0;
}

.thematic-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.thematic-card:hover::before {
  opacity: 1;
  transform: rotate(45deg) scale(1.1);
}

/* Different colored borders and backgrounds for each card */
.thematic-card:nth-child(1) {
  background-color: rgba(253, 209, 0, 0.15);
  border-top-color: var(--yellow);
  border-left: 4px solid var(--yellow);
}

.thematic-card:nth-child(2) {
  background-color: rgba(159, 0, 71, 0.15);
  border-top-color: var(--vivid-pink);
  border-left: 4px solid var(--vivid-pink);
}

.thematic-card:nth-child(3) {
  background-color: rgba(41, 91, 26, 0.15);
  border-top-color: var(--dark-green);
  border-left: 4px solid var(--dark-green);
}

.card-image {
  font-size: 3rem;
  color: var(--yellow);
  margin-bottom: 20px;
}

/* Different colors for card images based on theme */
.thematic-card:nth-child(1) .card-image {
  color: var(--yellow);
}

.thematic-card:nth-child(2) .card-image {
  color: var(--vivid-pink);
}

.thematic-card:nth-child(3) .card-image {
  color: var(--dark-green);
}

.thematic-card h4 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
  font-family: "Poppins", "Cocogoose", sans-serif;
  letter-spacing: -0.01em;
}

.card-quote {
  font-style: italic;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-family: "DM Sans", sans-serif;
}

/* Different quote colors for each card */
.thematic-card:nth-child(1) .card-quote {
  color: var(--yellow);
}

.thematic-card:nth-child(2) .card-quote {
  color: var(--vivid-pink);
}

.thematic-card:nth-child(3) .card-quote {
  color: var(--dark-green);
}

.card-description {
  color: var(--text-light);
  line-height: 1.7;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
}

/* Section shell */
.impact {
  position: relative;
  background-color: #f7e27d; /* yellow base */
  padding: 8rem 1.25rem; /* vertical breathing room */
  display: grid;
  place-items: center;
  overflow: hidden;

  /* repeating hearts pattern */
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'>\
    <path d='M30 52 L10 32 C4 26 4 16 10 10 C16 4 26 4 32 10 L30 12 L28 10 C34 4 44 4 50 10 C56 16 56 26 50 32 L30 52 Z' fill='%23f7e27d'/>\
  </svg>");
  background-size: 200px 200px;
}

/* Impact card */
.impact-card {
  --card-bg: #fffbea; /* soft cream */
  --shadow: #f2c109; /* warm yellow offset */
  --green: #186b36;

  position: relative;
  z-index: 1;
  background: var(--card-bg);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  box-shadow: 18px 18px 0 var(--shadow); /* yellow cutout shadow */
  text-align: center;
  max-width: min(720px, 92vw);
}

/* Typography */
.impact-card h2 {
  margin: 0 0 0.25rem 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--green);
  font-weight: 800;
}

.impact-card h3 {
  margin: 0.25rem 0 0.5rem 0;
  font-size: clamp(1.375rem, 3.6vw, 2.25rem);
  line-height: 1.2;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.impact-card p {
  margin: 0.25rem 0 0 0;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--green);
  opacity: 0.9;
}

/* Partnerships Section */
.partnerships-section {
  background-color: #f9f5d7; /* same as header */
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.partnerships-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partnerships-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-family: "DM Sans", sans-serif;
}

.partnerships-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.partnership-logo {
  background-color: #fffbea; /* soft cream like impact card */
  padding: 2rem;
  border-radius: 28px;
  box-shadow: 4px 4px 0 #f2c109; /* further reduced yellow shadow offset */
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: min(250px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1; /* make cards square */
  display: flex;
  align-items: center;
  justify-content: center;
}

.partnership-logo:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #f2c109; /* further reduced shadow on hover */
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 140px;
}

.partner-logo-img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partnership-logo:hover .partner-logo-img {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background-color: var(--dark-green);
  color: white;
  padding: 60px 0 20px;
}

/* Prevent phone numbers from being styled as links on mobile */
.footer p {
  color: white !important;
}

.footer p a {
  color: white !important;
  text-decoration: none;
}

/* Prevent mobile devices from styling phone numbers as links */
.footer p {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Force white color for all footer text */
.footer p,
.footer p * {
  color: white !important;
}

/* Specific styling for phone numbers to prevent mobile link styling */
.phone-number {
  color: white !important;
  text-decoration: none !important;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.phone-number:hover,
.phone-number:focus,
.phone-number:active {
  color: white !important;
  text-decoration: none !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
  font-family: "Cocogoose", "Poppins", sans-serif;
}

.footer-section p {
  margin-bottom: 10px;
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

/* Mobile Styles */
@media (max-width: 767px) {
  /* Prevent horizontal overflow on mobile */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100vw;
    background-color: #f9f5d7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-container {
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  /* Logo adjustments for mobile */
  .logo {
    flex-shrink: 0;
  }

  .logo-img {
    width: 70px;
    height: 70px;
    box-shadow: none;
    filter: none;
  }

  /* Mobile Navigation - Full Screen Slide */
  .mobile-toggle {
    display: inline-flex;
    position: relative;
    z-index: 100000;
    flex-shrink: 0;
  }

  /* Hide desktop nav on mobile */
  .desktop-nav {
    display: none;
  }

  /* ---- Mobile header grid ---- */
  .navbar .nav-container {
    display: grid;
    grid-template-columns: 60px 1fr 90px;   /* hamburger | logo | donate */
    grid-template-areas: "hamb logo donate";
    align-items: center;
    gap: 8px;
  }

  /* Place items into the grid areas */
  #mobileToggle { grid-area: hamb; justify-self: start; }
  .logo        { grid-area: logo; justify-self: center; }
  .donate-mobile { grid-area: donate; justify-self: end; }

  /* Hide the text in mobile version */
  .logo h1 { display: none; }

  /* Simple hamburger button without circle */
  #mobileToggle {
    display: inline-flex; 
    flex-direction: column; 
    gap: 5px; 
    background: transparent; 
    border: 0; 
    cursor: pointer; 
    padding: 0;
  }
  /* Make the hamburger lines yellow */
  #mobileToggle .hamburger-line { background: var(--yellow); }
  
  /* Mobile donate pill */
  .donate-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    font-size: 8px;
    line-height: 1;
    white-space: nowrap;
    width: fit-content;
  }

  /* Specific styling for nav-cta donate-mobile button */
  .nav-cta.donate-mobile {
    padding: 12px 15px;
    width: 90px;
    height: 44px;
  }

  /* Mobile menu - consolidated styles */
  #navMenu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #f9f5d7;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99999;
    padding: 20px;
    box-sizing: border-box;
  }

  #navMenu.active { 
    transform: translateX(0); 
  }

  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    #navMenu { 
      transition: none; 
    }
  }

  /* Prevent body scroll when mobile menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* Close button inside mobile menu */
  .nav-close {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 300;
    line-height: 1;
  }

  .nav-close:hover {
    background-color: rgba(253, 209, 0, 0.2);
    transform: scale(1.1);
  }

  .nav-link {
    font-size: 20px;
    font-weight: 600;
    padding: 12px 20px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    text-transform: lowercase;
    min-width: 180px;
  }

  .nav-link:hover,
  .nav-link:focus {
    background-color: rgba(253, 209, 0, 0.2);
    color: var(--text-dark);
    transform: translateY(-3px);
  }

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

  .nav-cta {
    margin: 10px 0 0 0;
    font-size: 16px;
    padding: 14px 28px;
    text-align: center;
    border-radius: 30px;
    background-color: var(--yellow);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(253, 209, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 180px;
  }

  /* Override for mobile donate button specifically */
  .nav-cta.donate-mobile {
    min-width: 90px;
    width: 90px;
    height: 44px;
    padding: 12px 15px;
    font-size: 14px;
  }

  .nav-cta:hover,
  .nav-cta:focus {
    background-color: #e6c200;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(253, 209, 0, 0.4);
  }

  /* Ensure navbar stays fixed when scrolled on mobile */
  .navbar.scrolled {
    background-color: rgba(249, 245, 215, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }

  .hero-container {
    margin: 100px auto 20px auto;
    padding: 0 15px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    border: none;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero {
    padding: 40px 0 60px 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-img {
    object-position: center 70%;
  }

  /* Remove borders from hero elements on mobile */
  .image-container {
    border: none;
    box-shadow: none;
  }

  .hero-content {
    border: none;
  }

  .mission-description {
    font-size: 1.4rem;
    line-height: 1.8;
  }

  .thematic-grid {
    gap: 35px;
    margin-top: 40px;
  }

  .impact {
    background-size: 120px 120px;
  }

  /* Fix scrolling strip on mobile */
  .scrolling-strip {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .scrolling-content {
    gap: 20px;
  }

  .scrolling-text {
    font-size: 0.9rem;
  }

  /* Mobile scrollbar adjustments */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-thumb {
    border-width: 1px;
  }
}

/* Responsive Design - Desktop */
@media (min-width: 768px) {
  /* Hide mobile toggle on desktop */
  .mobile-toggle {
    display: none;
  }

  /* Show desktop nav menu normally on desktop */
  .desktop-nav {
    display: flex;
  }



  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 40px;
    gap: 0;
  }

  .hero {
    padding: 40px 0 80px 0;
  }

  .hero-container {
    max-width: 1200px;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .mission-section {
    /* tweakable colors approximating the reference image */
    --c0: #f5d469; /* center yellow */
    --c1: #f7de8a;
    --c2: #faeab7;
    --c3: #fff3d6;
    --c4: #fff9ee; /* outer off-white */

    background: radial-gradient(
      ellipse 600px 300px at 50% 50%,
      var(--c0) 0%,
      var(--c1) 32%,
      var(--c2) 58%,
      var(--c3) 78%,
      var(--c4) 100%
    );
    background-attachment: scroll;
    background-repeat: no-repeat;
    padding: 80px 0 40px 0;
    min-height: 380px;
  }

  .mission-container {
    max-width: 800px;
  }

  .about-us-container {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .about-us-content {
    order: 1;
  }

  .about-us-visual {
    order: 2;
  }

  .mission-title {
    font-size: 3rem;
    margin-bottom: 30px;
  }

  .thematic-section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 3rem;
    margin-bottom: 60px;
  }

  .thematic-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
  }

  .partnerships-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-width: 500px;
  }

  .partnership-logo {
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 3px 3px 0 #f2c109;
    max-width: min(200px, 100%);
  }

  .partnership-logo:hover {
    box-shadow: 4px 4px 0 #f2c109;
  }

  .partnership-logo {
    padding: 20px 15px;
  }

  .logo-container {
    height: 100px;
  }

  .partner-logo-img {
    max-height: 60px;
  }

  .hero-img,
  .story-img,
  .community-img {
    height: 400px;
  }

  .card-img {
    height: 200px;
  }

  /* Adjust food and nutrition image to show more top part on mobile */
  .thematic-card:first-child .card-img {
    object-position: center 15%;
  }

  .scrolling-strip {
    height: 40px;
  }

  .scrolling-text {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

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

  .mission-title {
    font-size: 3.5rem;
  }

  .partnerships-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 900px;
  }

  .partnership-logo {
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 5px 5px 0 #f2c109;
    max-width: min(280px, 100%);
  }

  .partnership-logo:hover {
    box-shadow: 7px 7px 0 #f2c109;
  }

  .impact {
    background-size: 250px 250px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Ensure fade-in animation works with thematic cards */
.thematic-card.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.thematic-card.fade-in.visible {
  opacity: 1;
  transform: translateY(0) !important;
}

/* Adjust hover effects to work with fade-in */
.thematic-card.fade-in.visible:hover {
  transform: translateY(-15px) scale(1.02) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.thematic-card.fade-in.visible:hover::before {
  opacity: 1 !important;
  transform: rotate(45deg) scale(1.1) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f9f5d7 0%, #fcee9b 50%, #f9f5d7 100%);
  border-radius: 10px;
  border: 1px solid rgba(253, 209, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--yellow) 0%, #e6c200 100%);
  border-radius: 10px;
  border: 2px solid #f9f5d7;
  box-shadow: 0 2px 8px rgba(253, 209, 0, 0.3);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e6c200 0%, #d4a935 100%);
  box-shadow: 0 4px 12px rgba(253, 209, 0, 0.5);
  transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #d4a935 0%, #c19a2a 100%);
  box-shadow: 0 2px 6px rgba(253, 209, 0, 0.4);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) #f9f5d7;
}

/* Custom scrollbar for specific sections */
.hero::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(249, 245, 215, 0.8) 0%,
    rgba(252, 238, 155, 0.8) 50%,
    rgba(249, 245, 215, 0.8) 100%
  );
}

.mission-section::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(245, 212, 105, 0.3) 0%,
    rgba(247, 222, 138, 0.3) 50%,
    rgba(245, 212, 105, 0.3) 100%
  );
}

/* Smooth scrolling behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Account for fixed navbar */
}

/* Donate Section */
.donate-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f9f5d7 0%, #fcee9b 100%);
  position: relative;
  overflow: hidden;
}

.donate-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.donate-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.donate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.donate-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--yellow);
}

.donate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.donate-card h4 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.donate-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.donate-card .btn-primary {
  width: 100%;
  margin-top: 1rem;
}

/* Awards Section */
.awards-section {
  background-color: #f9f5d7;
  background-image: radial-gradient(
      circle at 20% 80%,
      var(--soft-yellow) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 20%, var(--soft-pink) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--soft-green) 0%, transparent 50%);
  background-size: 300px 300px, 200px 200px, 250px 250px;
  background-position: 0 0, 100% 0, 50% 100%;
  background-repeat: no-repeat;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.awards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.awards-subtitle {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 4rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.award-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.award-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.award-image {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--soft-yellow), var(--soft-pink));
}

.award-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: white;
}

.award-item:hover .award-img {
  transform: scale(1.05);
}

.award-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--soft-yellow), var(--soft-pink));
}

.award-fallback .fallback-content {
  text-align: center;
  color: var(--text-dark);
}

.award-fallback .fallback-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.award-content {
  padding: 2rem;
  text-align: left;
}

.award-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.award-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Recent Activity Section - Instagram Grid */
.recent-activity-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.recent-activity-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="instagram-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23fdd100" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23instagram-pattern)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.recent-activity-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.recent-activity-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.recent-activity-section .section-title {
  text-align: center;
}

.instagram-grid-container {
  position: relative;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 3px solid var(--yellow);
  max-width: 600px;
  margin: 0 auto;
}

.instagram-feed {
  position: relative;
  min-height: 500px;
}

.instagram-feed iframe {
  border: none;
  width: 100%;
  height: 500px;
  background: white;
}

.instagram-fallback {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-placeholder {
  max-width: 300px;
}

.instagram-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.instagram-placeholder h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.instagram-placeholder p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-family: "Inter", sans-serif;
}

.btn-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(220, 39, 67, 0.4);
  color: white;
  text-decoration: none;
}

.btn-instagram i {
  font-size: 1.2rem;
}

/* Responsive Design for Donate Section */
@media (max-width: 768px) {
  .donate-section {
    padding: 4rem 1rem;
  }

  .donate-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .donate-card {
    padding: 2rem;
  }

  .donate-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

/* Responsive Design for Awards Section */
@media (max-width: 768px) {
  .awards-section {
    padding: 4rem 1rem;
  }

  .awards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .award-item {
    max-width: 100%;
    margin: 0 auto;
  }

  .award-image {
    height: 300px;
  }

  .award-content {
    padding: 1.5rem;
  }

  .award-title {
    font-size: 1.2rem;
  }

  .award-description {
    font-size: 0.95rem;
  }
}

/* Responsive Design for Instagram Section */
@media (max-width: 768px) {
  .recent-activity-section {
    padding: 4rem 1rem;
  }

  .instagram-feed iframe {
    height: 450px;
  }

  .instagram-fallback {
    padding: 2.5rem 1rem;
    min-height: 450px;
  }

  .instagram-icon {
    font-size: 3rem;
  }

  .instagram-placeholder h4 {
    font-size: 1.5rem;
  }

  .instagram-placeholder p {
    font-size: 1rem;
  }

  .btn-instagram {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Initiatives Page Styles */
.initiatives-hero {
  background: linear-gradient(135deg, #f9f5d7 0%, #fcee9b 100%);
  padding: 8rem 2rem 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.initiatives-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="%23fdd100" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.initiatives-hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.initiatives-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-family: "Poppins", "Cocogoose", sans-serif;
}

.initiatives-hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.initiative-category {
  padding: 6rem 2rem;
  background: white;
}

.initiative-category:nth-child(even) {
  background: #faf8f5;
}

.initiative-category-container {
  max-width: 1200px;
  margin: 0 auto;
}

.category-header {
  text-align: center;
  margin-bottom: 4rem;
}

.category-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-family: "Poppins", "Cocogoose", sans-serif;
}

.category-description {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.initiative-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--yellow);
}

/* Food & Nutrition section cards - Yellow border */
.initiative-category:has(.heart-circle.yellow) .initiative-card {
  border-top: 4px solid var(--yellow);
}

/* Education section cards - Vivid Pink border */
.initiative-category:has(.heart-circle.pink) .initiative-card {
  border-top: 4px solid var(--vivid-pink);
}

/* Environment section cards - Green border */
.initiative-category:has(.heart-circle.green) .initiative-card {
  border-top: 4px solid var(--dark-green);
}

.initiative-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.initiative-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.initiative-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

/* Specific positioning for certain initiatives */
/* Food & Nutrition section - Milk Distribution (1st card) */
.initiative-category:nth-of-type(2) .initiative-card:nth-child(1) .initiative-img {
  object-position: top;
}

/* Food & Nutrition section - Mango Shake Distribution (4th card) */
.initiative-category:nth-of-type(2) .initiative-card:nth-child(4) .initiative-img {
  object-position: top;
}

/* Food & Nutrition section - Orphanage Support (6th card) */
.initiative-category:nth-of-type(2) .initiative-card:nth-child(6) .initiative-img {
  object-position: top;
}

/* Other Initiatives section - Medicine Distribution (4th card) */
.initiative-category:nth-of-type(5) .initiative-card:nth-child(4) .initiative-img {
  object-position: top;
}

/* Food & Nutrition card on index page */
.thematic-card:first-child .card-img {
  object-position: top;
}

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

.initiative-content {
  padding: 2rem;
}

.initiative-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-family: "Poppins", "Cocogoose", sans-serif;
}

.initiative-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

.initiatives-cta {
  background: linear-gradient(135deg, var(--yellow) 0%, #e6c200 100%);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.initiatives-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.initiatives-cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  font-family: "Poppins", "Cocogoose", sans-serif;
}

.cta-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.6;
}

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

.cta-buttons .btn-primary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cta-buttons .btn-primary:hover {
  background-color: white;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cta-buttons .btn-secondary:hover {
  background-color: white;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design for Initiatives Page */
@media (max-width: 768px) {
  .initiatives-hero {
    padding: 6rem 1rem 3rem 1rem;
  }

  .initiatives-hero-title {
    font-size: 2.5rem;
  }

  .initiatives-hero-subtitle {
    font-size: 1.1rem;
  }

  .initiative-category {
    padding: 4rem 1rem;
  }

  .category-title {
    font-size: 2rem;
  }

  .category-description {
    font-size: 1.1rem;
  }

  .initiatives-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .initiative-content {
    padding: 1.5rem;
  }

  .initiative-title {
    font-size: 1.3rem;
  }

  .initiatives-cta {
    padding: 4rem 1rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .initiatives-hero-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.8rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }
}

/* Ensure desktop styles work properly */
@media (min-width: 768px) {
  .logo {
    gap: -10px;
  }
  
  .logo h1 {
    display: block; /* Show on desktop */
  }
}

/* Hide the mobile donate pill on desktop */
@media (min-width: 769px) {
  .donate-mobile { display: none; }
}

@media (max-width: 480px) {
  .instagram-feed iframe {
    height: 350px;
  }

  .instagram-fallback {
    min-height: 350px;
  }

  .instagram-icon {
    font-size: 2.5rem;
  }

  .instagram-placeholder h4 {
    font-size: 1.3rem;
  }
}
