/* Gallery Styles */
.gallery-section {
  padding: 3rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-image-container {
  position: relative;
  height: 12rem;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  .gallery-image-container {
    height: 16rem;
  }
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-caption {
  padding: 0.75rem 1rem;
  background: transparent;
}

.gallery-caption-text {
  font-size: 0.875rem;
  color: #002147;
}

@media (min-width: 640px) {
  .gallery-caption-text {
    font-size: 0.875rem;
  }
}

/* latest causes */

/* Card Link Container */
.card-link {
  text-decoration: none;
  display: block;
  height: 100%;
  margin: 0 !important;
}

/* Card Container */
.card {
  border: 1px solid transparent;
  color: inherit;
  height: 100%;
  background-color: transparent;
  border: none;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover,
.card:active {
  transform: scale(1.02);
}

/* Image Container */
.card-image-container {
  position: relative;
  height: 10rem; /* h-40 */
  width: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .card-image-container {
    height: 12rem; /* sm:h-48 */
  }
}

/* Card Image */
.card-image {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  max-width: 100%;
}

/* Card Content */
.causes-card-content {
  padding: 1rem; /* p-4 */
}

@media (min-width: 640px) {
  .causes-card-content {
    padding: 1.5rem; /* sm:p-6 */
  }
}

/* Card Title */
.causes-card-title {
  color: #ff8430;
  font-size: 1.125rem; /* text-lg */
  font-weight: 700; /* font-bold */
  margin-bottom: 0.5rem;
  word-break: break-word;
}

@media (min-width: 640px) {
  .causes-card-title {
    font-size: 1.25rem; /* sm:text-xl */
  }
}

/* Card Description */
.card-description {
  color: #002147;
  font-size: 0.875rem; /* text-sm */
}

@media (min-width: 640px) {
  .card-description {
    font-size: 1rem; /* sm:text-base */
  }
}

/* Card Action Container */
.card-action {
  margin-top: 1rem;
}

/* Learn More Link */
.learn-more-link {
  display: inline-flex;
  align-items: center;
  color: #002147;
  font-weight: 500;
  min-height: 44px;
  transition: color 0.3s ease;
}

.learn-more-link:hover,
.learn-more-link:active {
  color: #09cc7f;
}

/* Arrow Icon */
.arrow-icon {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.founder-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}
