.bg-light-custom {
  background-color: var(--light-bg);
}

.badge {
  font-weight: 500;
}

.donation-preset {
  border-color: var(--secondary-color);
}

.donation-preset:hover,
.donation-preset.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}



/* Portrait Image Sizing */
.featured-image-container {
  overflow: hidden;
  position: relative;
  height: 300px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

.card-img-container {
  height: 250px;
  overflow: hidden;
  position: relative;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

.small-img-container {
  height: 180px;
  overflow: hidden;
  position: relative;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

.rounded-4 {
  border-radius: 0.75rem;
}

.rounded-pill {
  border-radius: 50rem;
}

.text-primary-dark {
  color: var(--primary-dark);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary-light {
  background-color: #1F3F7A !important;
  color: white;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
  color: var(--primary-dark);
}

.bg-secondary-dark {
  background-color: #86a8a1 !important;
  color: var(--primary-dark);
}

.bg-accent {
  background-color: var(--accent-color) !important;
  color: var(--primary-dark);
}

/* Pagination Styling */
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination .page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
}

.pagination .page-link:hover {
  color: var(--primary-dark);
  background-color: var(--light-bg);
  border-color: #dee2e6;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  border-color: #dee2e6;
}

/* Read More/Less Functionality */
.story-text {
  line-height: 1.5;
  transition: all 0.3s ease;
}

.story-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.875rem;
}

.read-more-btn:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.read-more-btn:focus {
  outline: none;
  box-shadow: none;
}
