/* ===========================================================================
   IHF PROJECTS LISTING  ·  css/ihf-projects-list.css
   Taken from the original projects page so the database driven listing looks
   exactly as it did before.
   =========================================================================== */

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

  .project-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 24px; overflow: hidden;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s;
    display: flex; flex-direction: column;
  }
  .project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }

  .project-img { position: relative; height: 240px; overflow: hidden; }
  .project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
  .project-card:hover .project-img img { transform: scale(1.07); }
  .project-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 14px; border-radius: 50px;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--white);
  }
  .project-status {
    position: absolute; top: 16px; right: 16px;
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 50px;
    background: rgba(13,27,20,0.65); backdrop-filter: blur(8px);
    font-size: 11px; font-weight: 700; color: var(--white);
  }
  .project-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-light); animation: blink 1.4s ease-in-out infinite; }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

  .project-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
  .project-name { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--charcoal); margin-bottom: 12px; line-height: 1.25; }
  .project-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 24px; }
  .project-cta { margin-top: auto; }

  /* Featured / wide card */
  .project-card.featured { grid-column: 1 / -1; flex-direction: row; gap: 0; }
  .project-card.featured .project-img { height: auto; min-height: 320px; flex: 1; }
  .project-card.featured .project-body { flex: 1; padding: 48px 44px; justify-content: center; }
  .project-card.featured .project-name { font-size: 30px; }
  .project-card.featured .project-desc { font-size: 15.5px; }

  /* Volunteer band */
  .proj-cta-band {
    margin-top: 80px; padding: 64px 60px; border-radius: 24px;
    background: linear-gradient(135deg, var(--charcoal-2), var(--charcoal));
    border: 1px solid rgba(46,199,116,0.12);
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    position: relative; overflow: hidden;
  }
  .proj-cta-band::before { content: 'IMPACT'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 140px; font-weight: 900; opacity: 0.04; color: var(--white); line-height: 1; pointer-events: none; }
  .proj-cta-band h3 { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: var(--white); margin-bottom: 12px; }
  .proj-cta-band h3 span { color: var(--green-light); }
  .proj-cta-band p  { font-size: 15px; color: rgba(255,255,255,0.55); max-width: 420px; }
  .proj-cta-btns    { display: flex; gap: 14px; flex-shrink: 0; }

  @media (max-width: 1024px) {
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .project-card.featured { flex-direction: column; grid-column: auto; }
    .project-card.featured .project-img { height: 240px; }
    .project-card.featured .project-body { padding: 28px 28px 32px; }
  }
  @media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .proj-cta-band { flex-direction: column; padding: 44px 28px; text-align: center; }
    .proj-cta-btns { justify-content: center; }
    .proj-cta-band::before { display: none; }
  }
