/* =========================================
   ROOT VARIABLES
========================================= */

:root {
    --primary-green: #0F6E56;
    --accent-amber: #D4872A;
    --background: #F9F6F1;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --white: #FFFFFF;
    --border: #E2DDD6;
  }
  
  /* =========================================
     RESET
  ========================================= */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
  }
  
  img {
    width: 100%;
    display: block;
  }
  
  .container {
    width: 90%;
    max-width: 1250px;
    margin: auto;
  }
  
  /* =========================================
     HERO SECTION
  ========================================= */
  
  .hero {
    /* Refined NGO-style hero image and overlay for stronger readability. */
    background:
      linear-gradient(
        135deg,
        rgba(10, 56, 43, 0.92) 0%,
        rgba(15, 110, 86, 0.82) 48%,
        rgba(8, 37, 29, 0.72) 100%
      ),
      url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1800&auto=format&fit=crop")
      center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    max-width: 850px;
    margin: auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
  }
  
  /* =========================================
     FILTER SECTION
  ========================================= */
  
  .filters-section {
    padding: 50px 0 20px;
  }
  
  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  
  .filter-btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
  }
  
  /* =========================================
     PROJECT SECTION
  ========================================= */
  
  .projects-section {
    padding: 40px 0 100px;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
  }
  
  /* =========================================
     PROJECT CARD
  ========================================= */
  
  .project-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  }
  
  .project-card:hover,
  .project-card:focus-visible {
    transform: translateY(-8px);
    border-color: rgba(15, 110, 86, 0.25);
    box-shadow: 0 16px 38px rgba(15, 110, 86, 0.14);
    outline: none;
  }

  .project-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(212, 135, 42, 0.22), 0 16px 38px rgba(15, 110, 86, 0.14);
  }
  
  .project-card img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.45s ease;
  }

  .project-card:hover img,
  .project-card:focus-visible img {
    transform: scale(1.04);
  }
  
  .project-content {
    padding: 28px;
  }
  
  .tag {
    display: inline-block;
    background: var(--accent-amber);
    color: white;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
  }
  
  .project-content h3 {
    color: var(--primary-green);
    margin-bottom: 16px;
    font-size: 1.4rem;
    line-height: 1.4;
  }
  
  .project-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.98rem;
  }
  
  .project-content a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: bold;
    transition: 0.3s ease;
  }
  
  .project-content a:hover {
    color: var(--accent-amber);
  }
  
  /* =========================================
     RESPONSIVE
  ========================================= */
  
  @media (max-width: 992px) {
  
    .hero h1 {
      font-size: 2.8rem;
    }
  
    .projects-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  
  }
  
  @media (max-width: 768px) {
  
    .hero {
      padding: 90px 20px;
    }
  
    .hero h1 {
      font-size: 2.2rem;
    }
  
    .hero p {
      font-size: 1rem;
    }
  
    .filter-buttons {
      justify-content: flex-start;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    .project-content {
      padding: 22px;
    }
  
  }
