/* =======================
   General
======================= */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #222;
  line-height: 1.6;
}

header {
  background-color: #006400;
  color: white;
  padding: 30px 10px;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 600;
}

/* =======================
   Hero
======================= */
.hero {
  position: relative;
  background: url("/images/header.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  isolation: isolate;            /* creates its own stacking context */
}
.hero .overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;                    /* behind content */
  pointer-events: none;          /* just in case */
}
.hero h1 {
  position: relative;
  font-size: 2.5rem;
  z-index: 1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
/* ensure header content is above the overlay */
.hero > *:not(.overlay) {
  position: relative;
  z-index: 1;
}

/* =======================
   Count down
======================= */

/* Countdown */
.countdown h2 { 
  color:#fff; 
  text-align:center; 
  margin-bottom:6px; 
  font-size: 1.5rem;
}

.countdown-grid {
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:16px;
  text-align:center;
  margin: 0 auto;      /* centers the grid within the section */
  max-width: 900px;
  z-index: 1;
}

.countdown .time {
  background:#fff;
  border-radius:8px;
  padding:16px;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.countdown .time span {
  display:block;
  font-size:2rem;
  font-weight:700;
  color:#006400;
  letter-spacing:1px;
}

.countdown .time label {
  display:block;
  margin-top:6px;
  font-size:0.85rem;
  color:#555;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.countdown-end {
  text-align:center;
  color:#006400;
  margin-top:14px;
  font-weight:600;
}

/* Match main's width */
.countdown {
  max-width: 900px;
  margin: 40px auto;   /* centers the block */
  padding: 0 20px;
  text-align: center;  /* centers the headings/subtext */
}


@media (max-width:700px){
  .countdown-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* =======================
   Layout
======================= */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
section { margin-bottom: 60px; }

/* =======================
   Buttons
======================= */
.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.action-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.action-btn:active { transform: translateY(0); }

.donate-btn { background-color: #ffcc00; color: #000; }
.donate-btn:hover { background-color: #ffd633; }

.share-btn  { background-color: #0073e6; color: #fff; }
.share-btn:hover { background-color: #3399ff; }

/* =======================
    Amazon Section
======================= */

/* 2 rows × 3 columns amazon category grid */

.amazon-list h2 { 
  color:#006400; 
  text-align:center; 
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 20px;
}
.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  padding: 50px;                 /* <-- space around the image */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.category-card figure { margin: 0; }

/* Square image with rounded corners inside the padded card */
.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
/* Label */
.category-card figcaption {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  color: #006400;
  font-size: 1rem;
}

/* Responsive: 2 columns on tablets, 1 on phones */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =======================
   what we accept section
======================= */

/* What We’re Accepting → 2×2 grid with breathing room */

.what-we-accept {
  margin-bottom: 60px;                 /* space below the whole section */
}
.what-we-accept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-top: 20px;
}
.what-we-accept-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  padding: 20px;                 /* <-- space around the image */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.what-we-accept-card: hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.what-we-accept-grid h3 { margin: 0 0 10px; color:#006400; }
.what-we-accept-grid ul { list-style:none; padding:0; margin:8px 0 0; }
.what-we-accept-grid li { margin:8px 0; }
.what-we-accept h2 { 
  color:#006400; 
  text-align:center; 
}

/* Mobile: stack to 1 column */
@media (max-width: 900px) {
  .what-we-accept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .what-we-accept-grid { grid-template-columns: 1fr; }
}


/* =======================
   Impact / Gratitude
======================= */

.impact h2 { color: #006400; text-align: center; }
.impact ul { list-style: disc; margin-left: 20px; }

.gratitude {
  text-align: center;
  background: #006400;
  color: #fff;
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 60px;    
}

/* Existing helpers reused */
.accept-note {
  text-align: left;
  font-size: 1rem;
  color: #000;
  margin: 0 auto 25px;
}
.accept-actions { justify-content: center; margin-top: 24px; }
.accept-ship { 
  text-align: center; 
  margin-top: 16px 16px; 
  color: #333; 
}


/*---donate item for pick up----*/

.contact-tag {
  padding: 6px 10px;
  border: 1px solid #006400;
  color: #006400;
  border-radius: 999px;            /* pill shape */
  font-size: 0.9rem;
  background: #f4fbf4;            /* soft green tint */
  vertical-align: middle;
  /*white-space: nowrap;*/
  text-align: center;
  max-width: 900px;
}

.contact-tag a {
  color: #006400;
  text-decoration: none;
  font-weight: 600;
}

.contact-tag a:hover {
  text-decoration: underline;
}


/* =======================
   Footer
======================= */
footer {
  background: #003300;
  color: #eee;
  text-align: center;
  padding: 25px 10px;
}
footer .thanks {
  margin-top: 10px;
  font-style: italic;
  color: #ffd700;
}
footer .copyright {
  margin-top: 10px;
  font-style: none;
  color: #ffd700;
  font-size: .8rem;
}

/* =======================
   Responsive tweaks
======================= */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .action-btn { width: 100%; text-align: center; }
}
