/* ============================================================
   CAEP — Centre for Agroecological Promotion
   Brand Colors: Green (#2d6a2d) + Blue (#1a5276)
   Fonts: Merriweather (headings) + Inter (body)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700;900&display=swap');

:root {
  --green-primary: #2d6a2d;
  --green-secondary: #4a9c4a;
  --green-light: #6fc06f;
  --green-pale: #e8f5e8;
  --blue-primary: #1a5276;
  --blue-secondary: #2e86c1;
  --blue-light: #d6eaf8;
  --blue-pale: #eaf2f8;
  --grey-dark: #2c2c2c;
  --grey-medium: #666;
  --grey-light: #f0f2f0;
  --grey-border: #dee2e6;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --nav-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.7;
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--grey-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--grey-medium); }

a { color: var(--green-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-secondary); }

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

ul { list-style: none; }

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

.section { padding: 80px 0; }
.section-alt { background: var(--grey-light); }
.section-green { background: var(--green-pale); }
.section-blue { background: var(--blue-pale); }
.section-dark {
  background: linear-gradient(135deg, var(--green-primary), var(--blue-primary));
  color: var(--white);
}
.section-dark h2, .section-dark p { color: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 { margin-bottom: 10px; }
.section-title p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-primary);
}
.logo-img { height: 63px; width: auto; }
.logo span { color: var(--green-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--grey-dark);
  cursor: pointer;
  padding: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-medium);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-list a:hover,
.nav-list a.active {
  background: var(--green-pale);
  color: var(--green-primary);
}

.btn-donate-nav {
  background: var(--green-primary);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
}
.btn-donate-nav:hover { background: var(--green-secondary) !important; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--grey-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
.site-footer h4 {
  color: var(--green-light);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.site-footer p, .site-footer a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--green-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid .footer-about p { font-size: 0.85rem; line-height: 1.8; }
.footer-links li { margin-bottom: 10px; }
.footer-links a::before { content: '\203A'; margin-right: 8px; color: var(--green-light); }
.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.footer-contact i { color: var(--green-light); margin-top: 3px; min-width: 18px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--green-primary);
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(45,106,45,0.08), rgba(26,82,118,0.15)), url('../images/photos/Sustainable foods.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-content { max-width: 700px; }
.hero h1 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--green-primary), var(--blue-primary));
  color: var(--white);
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-blue {
  background: var(--blue-primary);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--blue-secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green-primary);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ============ CARDS ============ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-primary);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.9rem; margin-bottom: 0; }
.focus-label { font-size: 0.82rem; font-weight: 700; color: var(--blue-primary); margin: 15px 0 8px; letter-spacing: 0.02em; }
.focus-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #444; padding: 0; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; display: inline-block; background: var(--green-primary); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card-horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card-horizontal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-horizontal-content { padding: 40px; }
.card-horizontal-image { min-height: 300px; background-size: cover; background-position: center; }

/* ============ STATS ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-item i { font-size: 2rem; color: var(--green-primary); margin-bottom: 15px; }
.stat-number {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label { font-size: 0.85rem; color: var(--grey-medium); font-weight: 500; }

/* ============ PARTNER LOGO STRIP ============ */
.partner-strip {
  overflow: hidden;
  background: var(--white);
  padding: 20px 0;
  white-space: nowrap;
}
.partner-strip-inner {
  display: inline-flex;
  gap: 50px;
  animation: scroll-logos 30s linear infinite;
}
.partner-strip-inner img {
  height: 50px;
  width: auto;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(100%);
}
.partner-strip-inner img:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green-primary);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--green-primary);
  border: 4px solid var(--green-pale);
  border-radius: 50%;
}
.timeline-year {
  display: inline-block;
  background: var(--green-primary);
  color: var(--white);
  padding: 3px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.timeline-item h4 { margin-bottom: 8px; }
.timeline-item ul li {
  font-size: 0.9rem;
  color: var(--grey-medium);
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}
.timeline-item ul li::before {
  content: '\2022';
  color: var(--green-secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-primary);
}
.testimonial-card p {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 20px;
}
.testimonial-author {
  font-weight: 600;
  color: var(--green-primary);
  font-size: 0.9rem;
}

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card .avatar {
  width: 100px;
  height: 100px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--green-primary);
  margin: 0 auto 15px;
}
.team-card h4 { margin-bottom: 5px; }
.team-card .role {
  color: var(--green-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.team-card p { font-size: 0.85rem; }

/* ============ VALUES ============ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.value-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-item i {
  font-size: 2rem;
  color: var(--green-primary);
  margin-bottom: 15px;
  background: var(--green-pale);
  width: 65px;
  height: 65px;
  line-height: 65px;
  border-radius: 50%;
}
.value-item h4 { margin-bottom: 8px; }
.value-item p { font-size: 0.85rem; margin-bottom: 0; }

/* ============ CONTACT FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--grey-dark);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border: 2px solid var(--grey-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus {
  border-color: var(--green-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,106,45,0.15);
}
.form-control.error { border-color: #dc3545; }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-error { color: #dc3545; font-size: 0.8rem; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-success {
  background: var(--green-pale);
  color: var(--green-primary);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: none;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

.contact-info-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 35px;
}
.contact-info-card .info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.contact-info-card .info-item i {
  font-size: 1.3rem;
  color: var(--green-primary);
  margin-top: 4px;
  min-width: 24px;
}
.contact-info-card .info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card .info-item p { font-size: 0.9rem; margin-bottom: 0; }
.contact-map { border-radius: var(--radius-sm); overflow: hidden; margin-top: 20px; }
.contact-map iframe { width: 100%; height: 250px; border: 0; }

/* ============ IMPACT TABLE ============ */
.impact-table-wrap { overflow-x: auto; }
.impact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.impact-table thead {
  background: var(--green-primary);
  color: var(--white);
}
.impact-table th {
  padding: 15px 20px;
  text-align: left;
  font-size: 0.9rem;
}
.impact-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--grey-border);
}
.impact-table tbody tr:hover { background: var(--green-pale); }
.impact-table .total { font-weight: 700; color: var(--green-primary); }

/* ============ PARTNER LOGOS ============ */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
}
.partner-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: 100px;
  transition: var(--transition);
}
.partner-grid-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-grid-item img {
  max-height: 60px;
  max-width: 120px;
  width: auto;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: var(--transition);
}
.partner-grid-item:hover img { filter: grayscale(0%); opacity: 1; }

/* ============ COLLABORATIVE PARTNER PROFILES ============ */
.partner-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-bottom: 30px;
  transition: var(--transition);
}
.partner-detail:last-child { margin-bottom: 0; }
.partner-detail:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-detail-logo {
  width: 120px;
  min-height: 120px;
  background: linear-gradient(135deg, var(--green-primary), var(--blue-primary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-detail-logo span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'Merriweather', serif;
  text-align: center;
  line-height: 1.2;
  padding: 10px;
}
.partner-detail-content { display: flex; flex-direction: column; gap: 12px; }
.partner-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.partner-detail-header h3 {
  font-size: 1.25rem;
  color: var(--blue-primary);
  margin: 0;
}
.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  color: var(--green-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.activity-badge i { font-size: 0.75rem; }
.partner-detail-content > p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}
.partner-detail-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 5px;
}
.partner-photo-item {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}
.partner-photo-item.placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.partner-photo-item.placeholder:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-pale);
}
.partner-photo-item.placeholder::after {
  content: 'Add Photo';
  font-size: 0.7rem;
  font-weight: 600;
  position: absolute;
  bottom: 6px;
}
@media (max-width: 768px) {
  .partner-detail { grid-template-columns: 1fr; text-align: center; }
  .partner-detail-logo { margin: 0 auto; width: 100px; min-height: 100px; }
  .partner-detail-header { justify-content: center; }
  .partner-detail-photos { grid-template-columns: repeat(2, 1fr); }
}

/* ============ ABOUT INTRO ============ */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-intro-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============ CTA BANNER ============ */
.cta-banner {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--green-primary), var(--blue-primary));
  border-radius: var(--radius-lg);
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 15px; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 500px; margin: 0 auto 30px; }

/* ============ PRODUCTS SHOWCASE ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.product-card {
  text-align: center;
  padding: 25px 15px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card:hover img { transform: scale(3); }
.product-card i { font-size: 2rem; color: var(--green-primary); margin-bottom: 10px; }
.product-card img { transition: transform 0.3s ease; }
.product-card img[src*="Moringa caps"],
.product-card img[src*="Neem caps"],
.product-card img[src*="Turmeric Caps"] { mix-blend-mode: multiply; }
.product-card h4 { font-size: 0.95rem; margin-bottom: 4px; }

/* ============ VALUES ROW ============ */
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* ============ 404 ============ */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-404 h1 { font-size: 6rem; color: var(--green-primary); }
.page-404 p { font-size: 1.2rem; margin-bottom: 30px; }

/* ============ 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);
}

/* ============ VIDEO GRID ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--grey-dark);
}
.video-card video, .video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}
.video-card .video-label {
  padding: 12px 15px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============ MEDIA / NEWS ============ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.media-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-card .media-date {
  font-size: 0.8rem;
  color: var(--green-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.media-card h4 { margin-bottom: 8px; }
.media-card p { font-size: 0.85rem; }
.media-card a { font-weight: 600; font-size: 0.85rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-horizontal { grid-template-columns: 1fr; }
  .card-horizontal-image { min-height: 200px; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    padding: 14px 16px;
    width: 100%;
    border-bottom: 1px solid var(--grey-border);
  }
  .nav-list a:last-child { border-bottom: none; }
  .btn-donate-nav { width: 100%; background: var(--green-primary); color: var(--white) !important; text-align: center; }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item { padding: 20px 15px; }
  .stat-number { font-size: 1.8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .values-row { grid-template-columns: 1fr; }

  .partner-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .partner-grid-item { padding: 15px; min-height: 70px; }
  .partner-grid-item img { max-height: 40px; max-width: 80px; }

  .timeline { padding-left: 30px; }
  .section-title { margin-bottom: 30px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ NEWS SECTION ============ */
.news-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: var(--grey-light);
  border: 1px solid var(--grey-border);
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

.filter-btn.active {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

.news-search {
  position: relative;
  flex: 0 1 280px;
}

.news-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--grey-border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--white);
  transition: border-color 0.3s ease;
  outline: none;
}

.news-search input:focus {
  border-color: var(--green-primary);
}

.news-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.news-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.news-image {
  cursor: zoom-in;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 22px 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.news-date i {
  margin-right: 4px;
}

.news-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(45, 106, 45, 0.1);
  color: var(--green-primary);
  padding: 3px 10px;
  border-radius: 12px;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.news-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.btn-text {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-primary);
  transition: color 0.3s ease;
  text-decoration: none;
}

.btn-text:hover {
  color: var(--green-dark);
}

.news-link i {
  font-size: 0.7rem;
  margin-left: 4px;
}

.news-share {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--grey-border);
}

.news-share span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-light);
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.news-share a:hover {
  background: var(--green-primary);
  color: var(--white);
}

.news-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.news-empty i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.news-empty p {
  font-size: 1rem;
}

@media (min-width: 769px) {
  .news-card {
    flex-direction: row;
  }
  .news-image {
    width: 320px;
    min-width: 320px;
    height: auto;
  }
  .news-body {
    padding: 25px 30px;
  }
}

@media (max-width: 768px) {
  .news-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .news-search {
    flex: 1;
  }
  .news-image {
    height: 200px;
  }
  .news-body {
    padding: 18px 20px;
  }
  .news-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .news-filters {
    gap: 6px;
  }
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  .news-image {
    height: 180px;
  }
  .news-actions {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ============ NEWS LIGHTBOX ============ */
.news-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

.news-lightbox.active {
  display: flex;
}

.news-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.news-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  line-height: 1;
}

.news-lightbox-close:hover {
  opacity: 1;
}

/* ============ PRINT ============ */
@media print {
  .site-header { position: static; }
  body { padding-top: 0; }
  .hero { min-height: auto; padding: 40px 0; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
