
:root {
  --brand: #2c5f2d;
  --accent: #d4993a;
  --accent-bright: #e8b923;
  --text: #2d3436;
  --bg: #ffffff;
  --light-bg: #fef9f3;
  --border: #e8dcc8;
  --shadow: 0 4px 15px rgba(44, 95, 45, 0.12);
  --earth-brown: #8B6F47;
  --clay-red: #C9714F;
  --vibrant-green: #45a049;
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fef9f3 0%, #f5f0e8 100%);
  line-height: 1.6;
}

/* Header & Navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, #2c5f2d 0%, #1f4620 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(44, 95, 45, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--accent-bright);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.site-header .brand:hover {
  opacity: 0.9;
}

.site-header .logo {
  width: 70px;
  height: 70px;
  animation: pulse 2s ease-in-out infinite;
  object-fit: contain;
}

.site-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 3px solid #fff;
}

nav a.donate {
  color: #fff;
  padding: 8px 12px;
}

/* Main Container */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(44, 95, 45, 0.85) 0%, rgba(212, 153, 58, 0.8) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><defs><linearGradient id="skyGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%2387CEEB;stop-opacity:1" /><stop offset="100%" style="stop-color:%23E0F6FF;stop-opacity:1" /></linearGradient></defs><rect width="1000" height="600" fill="url(%23skyGrad)"/><ellipse cx="800" cy="100" rx="80" ry="60" fill="%23FFD700" opacity="0.8"/><path d="M50 450 L150 350 L250 450 Z" fill="%238B6F47" opacity="0.7"/><path d="M300 480 L350 400 L400 480 Z" fill="%236B5344" opacity="0.6"/><path d="M600 500 L700 300 L800 500 Z" fill="%23654321" opacity="0.7"/><rect x="400" y="420" width="80" height="150" fill="%238B6F47"/><path d="M400 420 L440 350 L480 420 Z" fill="%23654321"/><rect x="450" y="200" width="60" height="200" fill="%234a9d6f" opacity="0.6"/><rect x="530" y="150" width="70" height="250" fill="%234a9d6f" opacity="0.7"/><rect x="620" y="180" width="50" height="220" fill="%234a9d6f" opacity="0.6"/></svg>');
  background-size: cover;
  background-position: center;
  padding: 80px 36px;
  border-radius: 0;
  border: none;
  margin: -40px -24px 40px -24px;
  animation: slideIn 0.6s ease-out;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.hero h2 {
  font-size: 40px;
  color: #fff;
  margin-top: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

.hero p {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
}

/* Buttons */
.btn-primary, .btn {
  display: inline-block;
  background: linear-gradient(135deg, #45a049 0%, #2c5f2d 100%);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(44, 95, 45, 0.4);
  background: linear-gradient(135deg, #52c964 0%, #357a3f 100%);
}

.btn-primary:active, .btn:active {
  transform: translateY(-1px);
}

/* Sections */
section {
  margin-bottom: 48px;
  animation: fadeIn 0.6s ease-out;
}

section h2 {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 24px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

section h3 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 16px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

section ul {
  margin: 0;
  padding-left: 24px;
}

section li {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid-3 li {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}

.grid-3 li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(10, 160, 110, 0.2);
}

.grid-3 li strong {
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

/* Image Placeholders */
.image-section {
  margin: 32px 0;
}

.image-container {
  background: linear-gradient(135deg, rgba(139, 111, 71, 0.08) 0%, rgba(160, 102, 74, 0.08) 100%);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 2px dashed var(--border);
}

.image-container img,
.image-container svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Components */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card:hover {
  box-shadow: 0 8px 20px rgba(10, 160, 110, 0.15);
}

/* Forms */
form {
  max-width: 500px;
  margin: 24px 0;
}

form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  color: var(--brand);
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 160, 110, 0.1);
}

button {
  cursor: pointer;
}

/* Alerts */
.alert {
  background: #fff3cd;
  color: #7a5a00;
  padding: 12px 16px;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  margin: 16px 0;
}

.success {
  background: #e6fffb;
  color: #03543f;
  padding: 12px 16px;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  margin: 16px 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f7f7f7 0%, #fafafa 100%);
  border-top: 2px solid var(--border);
  margin-top: 60px;
  color: #666;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--brand);
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  nav {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  .site-header h1 {
    font-size: 20px;
  }

  .hero {
    padding: 32px 24px;
  }

  .hero h2 {
    font-size: 24px;
  }

  section h2 {
    font-size: 22px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 24px 16px;
  }
}

/* Community Stories Section */
.community-section {
  margin-bottom: 48px;
}

.community-section h3 {
  text-align: center;
  font-size: 28px;
  color: var(--brand);
  margin-bottom: 36px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.story-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: slideIn 0.6s ease-out;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(44, 95, 45, 0.2);
}

.story-image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image.healthcare {
  background: linear-gradient(135deg, #90EE90 0%, #45a049 100%);
}

.story-image.rehab {
  background: linear-gradient(135deg, #FFD700 0%, #d4993a 100%);
}

.story-image.community {
  background: linear-gradient(135deg, #F4A460 0%, #CD853F 100%);
}

.story-card h4 {
  color: var(--brand);
  font-size: 18px;
  padding: 20px 20px 8px;
  margin: 0;
}

.story-card p {
  color: #666;
  font-size: 14px;
  padding: 0 20px 20px;
  margin: 0;
  line-height: 1.6;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 18px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Focus Section */
.focus-section {
  margin-bottom: 48px;
}

.focus-card {
  background: linear-gradient(135deg, #fff9f0 0%, #f0f9ff 100%) !important;
  border-left: 4px solid var(--accent) !important;
  position: relative;
}

.focus-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
}

.focus-card strong {
  color: var(--brand);
  font-size: 16px;
}

.focus-card p {
  color: #666;
  font-size: 14px;
  margin: 8px 0 0 0;
  line-height: 1.6;
}

/* Impact Section */
.impact-section {
  background: linear-gradient(135deg, rgba(45, 160, 85, 0.1) 0%, rgba(212, 153, 58, 0.08) 100%);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 48px;
  border: 3px solid var(--accent-bright);
  box-shadow: 0 6px 20px rgba(44, 95, 45, 0.1);
}

.impact-section h3 {
  text-align: center;
  color: var(--brand);
  font-size: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.stat-card {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(44, 95, 45, 0.1);
  transition: all 0.3s ease;
  border-top: 5px solid var(--accent-bright);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(44, 95, 45, 0.15);
  border-top-color: var(--brand);
}

.stat-card h4 {
  font-size: 36px;
  color: var(--accent);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.stat-card p {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* Why Section */
.why-section {
  margin-bottom: 48px;
}

.feature-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent);
}

.feature-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(10, 160, 110, 0.12);
}

.feature-item strong {
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.feature-item::after {
  content: '';
  display: block;
  clear: both;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #2c5f2d 0%, #45a049 50%, #d4993a 100%);
  color: #fff;
  text-align: center;
  padding: 50px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(44, 95, 45, 0.3);
  margin-top: 40px;
}

.cta-section h3 {
  color: #fff;
  font-size: 28px;
  margin-top: 0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  margin-bottom: 24px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary {
  background: #fff;
  color: #2c5f2d;
  font-weight: 700;
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px);
  color: #1f4620;
}

/* Background Image Overlays for Different Pages */
.page-background {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.page-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 95, 45, 0.55);
  z-index: 0;
}

.page-background > * {
  position: relative;
  z-index: 1;
}

/* Background Image Overlays for Different Pages */
.page-background {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

.page-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 95, 45, 0.75);
  z-index: 0;
}

.page-background > * {
  position: relative;
  z-index: 1;
}

/* Home/Index page - elderly care background */
.page-elderly {
  background-image: url('assets/images/elderly-care.jpeg');
}

/* About page - village fields background */
.page-village {
  background-image: url('assets/images/village-fields.jpeg');
}

/* Activities/Objectives page - healthcare background */
.page-healthcare {
  background-image: url('assets/images/healthcare-visit.jpg');
}

/* Trustees page - elderly care background */
.page-trustees {
  background-image: url('assets/images/elderly-care.jpeg');
}

/* Contact page - no background, use side image layout */
.page-contact {
  background-image: none;
  background: linear-gradient(135deg, #fef9f3 0%, #f5f0e8 100%);
}

.page-contact::before {
  display: none;
}

/* Donate page - healthcare kids background */
.page-donate {
  background-image: url('assets/images/healthcare-kids.jpeg');
}

/* Objectives page - paddy fields background */
.page-objectives {
  background-image: url('assets/images/paddy fields.jpeg');
}

/* Enhanced Hero with background images */
.hero-with-bg {
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.hero-text-overlay {
  background: rgba(44, 95, 45, 0.6);
  padding: 40px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.hero-text-overlay h2 {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-text-overlay p {
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Section - Side Image Layout (Home page) */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: transparent;
  padding: 0;
  margin-bottom: 48px;
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(44, 95, 45, 0.1);
  animation: slideIn 0.6s ease-out;
}

.hero-content h2 {
  color: var(--brand);
  font-weight: 700;
  font-size: 28px;
  margin-top: 0;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
}

.hero-content p {
  color: var(--text);
  line-height: 1.8;
  margin: 16px 0;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--accent-bright);
  font-weight: 600;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(44, 95, 45, 0.15);
  animation: slideIn 0.6s ease-out 0.2s backwards;
  max-height: 400px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section - Side Image Layout */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(44, 95, 45, 0.1);
  animation: slideIn 0.6s ease-out;
}

.contact-content h2 {
  color: var(--brand);
  font-size: 28px;
  margin-top: 0;
}

.contact-info {
  margin-top: 24px;
}

.contact-info h3 {
  color: var(--accent-bright);
  font-size: 18px;
}

.contact-info p {
  color: var(--text);
  line-height: 1.8;
  margin: 16px 0;
}

.contact-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(44, 95, 45, 0.15);
  animation: slideIn 0.6s ease-out 0.2s backwards;
  max-height: 400px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrollable-section {
  max-height: 400px;
  overflow-y: auto;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  margin: 20px 0;
}

/* Objectives Section with Side Image */
.objectives-section {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: flex-start;
  background: transparent;
  padding: 0;
  margin-bottom: 48px;
}

.objectives-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(44, 95, 45, 0.1);
  animation: slideIn 0.6s ease-out;
}

.objectives-content h2 {
  color: var(--brand);
  font-weight: 700;
  font-size: 28px;
  margin-top: 0;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
}

.objectives-content h3 {
  color: var(--brand);
  font-weight: 700;
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 16px;
}

.objectives-content p {
  color: var(--text);
  line-height: 1.8;
}

/* Horizontal Scrollable Container with Width Constraint */
.objectives-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 20px 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.objectives-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.objectives-scroll-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.objectives-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.objectives-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

.objectives-scroll {
  display: inline-flex;
  gap: 20px;
  padding: 10px 0;
  scroll-behavior: smooth;
  min-width: max-content;
}

/* Objective Cards */
.objective-card {
  flex: 0 0 280px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(44, 95, 45, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(44, 95, 45, 0.15);
  border-color: var(--accent);
}

.obj-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
}

.objective-card h4 {
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
  margin: 8px 0;
}

.objective-card p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Objectives Image */
.objectives-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(44, 95, 45, 0.15);
  animation: slideIn 0.6s ease-out 0.2s backwards;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.objectives-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Responsive Objectives Section */
@media (max-width: 1024px) {
  .objectives-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .objectives-image {
    position: static;
    max-height: 300px;
  }
  
  .objectives-image img {
    height: 300px;
  }
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Contact Section and Hero Section */
@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  
  .contact-image {
    max-height: 300px;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-image {
    max-height: 300px;
  }
}
