body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: #fff;
}

.hero-image {
  width: 100%;
  height: 256px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-image {
    height: 384px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-size: 30px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
}

.hero-description {
  font-size: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 20px;
  }
}

/* Programs Grid Section */
.programs-grid-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 30px;
  }
}

.section-description {
  font-size: 18px;
  color: #4b5563;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Component */
.card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.card-image-wrapper {
  position: relative;
  height: 192px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-header {
  padding: 24px 24px 0;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-icon {
  height: 20px;
  width: 20px;
  color: #9ca3af;
  transition: color 0.3s ease-in-out;
}

.card:hover .card-title-icon {
  color: #16a34a;
}

.card-description {
  color: #6b7280;
  font-size: 14px;
  text-align: justify;
  margin-bottom: 0.5rem;
}

.card-content {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: justify;
}

.card-details {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-button {
  background-color: #16a34a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease-in-out;
  margin-top: auto;
  border: none;
  cursor: pointer;
  display: block;
}

.card-button:hover {
  background-color: #15803d;
}

/* Call to Action Section */
.cta-section {
  background-color: #f9fafb;
  padding: 2rem;
  padding-top: 0;
  text-align: center;
}

@media (max-width: 450px) {
  .cta-section {
    padding: 0;
  }

  .cta-section .card {
    padding: 1.5rem;
    border-radius: 0;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: small;
  }
}

.cta-section .card {
    padding: 3rem;
}

.cta-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgb(16, 24, 40);
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 30px;
  }
}

.cta-description {
  color: #6b7280;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta-button {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.cta-donate-btn {
  background-color: #16a34a;
  color: #fff;
  border: 1px solid #16a34a;
}

.cta-donate-btn:hover {
  background-color: #15803d;
}

.cta-contact-btn {
  background-color: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.cta-contact-btn:hover {
  background-color: #f3f4f6;
}
