/* ==================== WO-NG-02: ENVIRONMENTAL CONSERVATION NGO ==================== */
/* Green Earth Foundation - Environmental NGO Template */
/* Color Palette: Forest Green, Earth Brown, Sky Blue */

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --secondary: #92400e;
  --accent: #0ea5e9;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f0fdf4;
  --bg-earth: #fef3c7;
  --white: #ffffff;
}

/* Override base colors */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.section-badge {
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary);
}

/* Typography */
body {
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
}

/* Navbar */
.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary);
}

.navbar-link::after {
  background: var(--primary);
}

/* Hero Environmental */
.hero-environmental {
  min-height: 100vh;
  background: url('https://images.pexels.com/photos/957024/forest-trees-pine-sunlight-957024.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-environmental .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.85) 0%, rgba(146, 64, 14, 0.7) 100%);
}

.hero-environmental .container {
  position: relative;
  z-index: 1;
}

.hero-environmental .hero-content {
  max-width: 700px;
  color: var(--white);
  text-align: center;
  margin: 0 auto;
}

.hero-environmental .hero-badge {
  background: rgba(14, 165, 233, 0.3);
  color: var(--white);
}

.hero-environmental .hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.hero-environmental .hero-title span {
  color: var(--accent);
}

.hero-environmental .hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.hero-environmental .hero-buttons {
  justify-content: center;
  margin-bottom: 40px;
}

.hero-environmental .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero-environmental .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-impact {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.impact-item {
  text-align: center;
}

.impact-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.impact-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .hero-impact {
    flex-wrap: wrap;
    gap: 30px;
  }

  .impact-item {
    flex: 1 1 40%;
  }
}

/* Mission Grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mission-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.mission-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.mission-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.mission-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.mission-stats {
  margin-bottom: 20px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.mission-link {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.mission-link:hover {
  color: var(--primary-dark);
}

@media (max-width: 1200px) {
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

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

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

.project-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(31, 41, 55, 0.9);
  padding: 12px;
}

.progress-label {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.project-description {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-actions {
  display: flex;
  gap: 12px;
}

.project-actions .btn {
  flex: 1;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-actions {
    flex-direction: column;
  }
}

/* Help Grid */
.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.help-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.help-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.help-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.help-options {
  margin-bottom: 20px;
}

.help-options li {
  padding: 6px 0;
  color: var(--text-light);
  font-size: 0.875rem;
  position: relative;
  padding-left: 20px;
}

.help-options li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
}

@media (max-width: 1200px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

/* Stories Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.story-image {
  height: 180px;
}

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

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

.story-content {
  padding: 24px;
}

.story-content h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.story-excerpt {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.story-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.impact-tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary);
  border-radius: 12px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--primary-dark);
}

@media (max-width: 992px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-item {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.partner-logo {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.partner-item h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.partner-item p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.newsletter-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.newsletter-form .form-input {
  flex: 1;
  border: none;
}

.newsletter-form .btn-primary {
  background: var(--accent);
  color: var(--text-dark);
}

.newsletter-note {
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Footer */
.footer-brand span {
  color: var(--secondary);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-link:hover {
  color: var(--primary);
}

/* Section Alt */
.section-alt {
  background: var(--bg-earth);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}
