/**
Theme Name: Astra Child
Theme URI: https://modernchangemaker.com/
Author: Modern Changemaker
Template: astra
Version: 1.0.0
Description: Child theme for Modern Changemaker - nonprofit resource hub
*/

.resource-directory { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.rd-header { text-align: center; margin-bottom: 3rem; }
.rd-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.rd-header p { font-size: 1.2rem; color: #666; max-width: 700px; margin: 0 auto; }
.rd-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
.rd-filter-btn { padding: 0.5rem 1.25rem; border: 2px solid #e0e0e0; border-radius: 50px; background: #fff; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.rd-filter-btn:hover, .rd-filter-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; }
.rd-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; background: #fff; transition: box-shadow 0.2s; }
.rd-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.rd-card-category { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #2563eb; background: #eff6ff; padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 0.75rem; }
.rd-card h3 { font-size: 1.15rem; margin: 0 0 0.5rem 0; }
.rd-card p { color: #666; font-size: 0.95rem; line-height: 1.5; margin: 0 0 1rem 0; }
.rd-card-footer { display: flex; justify-content: space-between; align-items: center; }
.rd-pricing { font-size: 0.85rem; font-weight: 600; }
.rd-pricing.free { color: #059669; }
.rd-pricing.freemium { color: #d97706; }
.rd-pricing.paid { color: #6366f1; }
.rd-link { display: inline-block; padding: 0.5rem 1.25rem; background: #2563eb; color: #fff !important; text-decoration: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; transition: background 0.2s; }
.rd-link:hover { background: #1d4ed8; }
.rd-empty { text-align: center; padding: 3rem; color: #999; font-size: 1.1rem; }
.rd-disclosure { text-align: center; margin-top: 3rem; padding: 1rem; font-size: 0.8rem; color: #999; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
.product-card { border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.product-card-image { background: #f3f4f6; height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.product-card-body { padding: 1.5rem; }
.product-card h3 { font-size: 1.2rem; margin: 0 0 0.5rem 0; }
.product-card p { color: #666; font-size: 0.95rem; line-height: 1.5; margin: 0 0 1rem 0; }
.product-card-price { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.product-card-btn { display: block; width: 100%; padding: 0.75rem; background: #2563eb; color: #fff; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.product-card-btn:hover { background: #1d4ed8; }
.product-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #059669; background: #ecfdf5; padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.5rem; }

.affiliate-box { background: #f0f9ff; border: 1px solid #bae6fd; border-left: 4px solid #0ea5e9; border-radius: 8px; padding: 1.25rem; margin: 1.5rem 0; }
.affiliate-box strong { display: block; margin-bottom: 0.5rem; color: #0369a1; }
.affiliate-box a { color: #0284c7; font-weight: 600; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.comparison-table th { background: #f8fafc; padding: 0.75rem; text-align: left; font-weight: 600; border-bottom: 2px solid #e2e8f0; }
.comparison-table td { padding: 0.75rem; border-bottom: 1px solid #e2e8f0; }
.comparison-table tr:hover td { background: #f8fafc; }
.comparison-table .check { color: #059669; font-weight: bold; }

@media (max-width: 768px) {
  .rd-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}
