.form-container {
  max-width: 900px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin: 40px auto;
}

.section-header {
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--bs-primary);
  font-weight: 700;
}

.form-label {
  font-weight: 600;
  color: #444444;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 10px 12px;
}



.volunteer-checkbox-label {
  font-weight: 500;
  color: #555555;
  font-size: 0.9rem;
  cursor: pointer;
}

.volunteer-checkbox {
  cursor: pointer;
}

.submit-btn {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  padding: 12px 35px;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
}

.cta-banner {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/charity.jpg') no-repeat center center;
  background-size: cover;
  padding: 100px 0;
  color: #ffffff;
  text-align: center;
}

.cta-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.cta-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.cta-btn {
  background-color: var(--bs-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 4px;
  border: none;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--bs-secondary);
  color: #ffffff;
}

/* Success Story Styles */
.success-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f6;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.patient-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background-color: #0c2340;
  border-bottom: 1px solid #eef2f6;
}

.patient-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.success-card:hover .patient-img {
  transform: scale(1.05);
}



.patient-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f7f9fb;
  color: #888888;
  padding: 10px;
  text-align: center;
}

.patient-placeholder i {
  font-size: 2rem;
  margin-bottom: 8px;
}

.patient-placeholder span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.success-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.patient-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
  padding: 24px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none;
  overflow-y: auto;
}

.success-card:hover .patient-description {
  opacity: 1;
  pointer-events: auto;
}

.patient-meta-list {
  background-color: #f8fafc;
  padding: 15px;
  border-radius: 6px;
  list-style: none;
  margin: 0;
}

.patient-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid #eceeef;
}

.patient-meta-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.patient-meta-item:first-child {
  padding-top: 0;
}

.meta-label {
  font-weight: 700;
  color: #333333;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.meta-value {
  color: #555555;
  font-weight: 500;
}

.load-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.load-btn {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  padding: 12px 40px;
  font-weight: 700;
  color: #ffffff;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border: none;
}

.load-btn:hover {
  background-color: var(--bs-secondary);
  color: #ffffff;
}

/* Program Card Styles */
.program-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f6;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.program-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background-color: #f7f9fb;
  border-bottom: 1px solid #eef2f6;
}

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

.program-card:hover .program-img {
  transform: scale(1.05);
}

.program-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f7f9fb;
  color: #888888;
  padding: 10px;
  text-align: center;
}

.program-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.program-placeholder span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.program-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--bs-primary);
  transition: color 0.3s ease;
}

.program-card:hover .program-title {
  color: var(--bs-secondary);
}

.program-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 0;
}

/* Custom Accordion Styles for Upcoming Projects */
.custom-accordion .accordion-item {
  margin-bottom: 20px;
  border: 1px solid #eef2f6;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.custom-accordion .accordion-button {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 20px 25px;
  background-color: #ffffff;
  color: var(--bs-primary);
  border: none;
  box-shadow: none !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(8, 50, 92, 0.08);
  color: #08325c;
  box-shadow: none;
}

.custom-accordion .accordion-button::after {
  background-size: 1.25rem;
  transition: transform 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(15%) sepia(50%) saturate(2000%) hue-rotate(195deg) brightness(95%) contrast(100%);
}

.custom-accordion .accordion-body {
  padding: 25px;
  background-color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555555;
}

.accordion-btn-container {
  margin-top: 15px;
}

.accordion-click-btn {
  background-color: #198754;
  /* Bootstrap success green */
  color: #ffffff;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 4px;
  border: none;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.accordion-click-btn:hover {
  background-color: #157347;
  color: #ffffff;
}

/* Project Showcase Alternating Row Styles */
.project-showcase-row {
  margin-bottom: 80px;
  align-items: center;
}

.project-showcase-row:last-child {
  margin-bottom: 0;
}

.project-showcase-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: linear-gradient(135deg, #0c2340 0%, #08325c 100%);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-showcase-row:hover .project-showcase-img-box {
  /* transform: translateY(-5px); */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.project-showcase-icon {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.project-showcase-row:hover .project-showcase-icon {
  transform: scale(1.1) rotate(2deg);
}

.project-showcase-img-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-badge {
  display: inline-block;
  background-color: rgba(8, 50, 92, 0.08);
  color: #08325c;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 15px;
}

.project-showcase-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: #08325c;
  font-size: 1.8rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.project-showcase-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 25px;
  text-align: justify;
}

.project-action-btn {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 4px;
  border: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.project-action-btn:hover {
  background-color: var(--bs-secondary);
  color: #ffffff;

}

/* Mission Hunger Styles */
.mission-hunger-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: var(--bs-dark);
}

.grocery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
}

@media (max-width: 1200px) {
  .grocery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .grocery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .grocery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grocery-card {
  background: #ffffff;
  border: 1px solid #eef2f5;
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grocery-card:hover {

  border-color: var(--bs-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.grocery-icon-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: rgba(0, 176, 116, 0.08);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.grocery-card:hover .grocery-icon-wrapper {
  background-color: var(--bs-primary);
  color: #ffffff;
}

.grocery-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bs-dark);
  margin-bottom: 0;
}

/* Service Card / Donation box */
.nation-service-card {
  background: #ffffff;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
  padding: 30px;
  border-top: 4px solid var(--bs-primary);
}

.nation-service-card-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: var(--bs-primary);
  border-bottom: 2px solid #eef2f5;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.donation-tier-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.donation-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #fdfdfd;
  border: 1px solid #f3f5f7;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.donation-tier-row:hover {
  background: #fafbfc;
  border-color: rgba(0, 176, 116, 0.2);
}

.donation-tier-info {
  flex: 1;
  padding-right: 15px;
}

.donation-tier-label {
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.donation-tier-sub {
  font-size: 0.8rem;
  color: #777777;
}

.donation-tier-btn {
  border: 1.5px solid var(--bs-primary);
  color: var(--bs-primary);
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.donation-tier-btn:hover {
  background: var(--bs-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 176, 116, 0.25);
}

/* Efforts Section Banner */
.efforts-banner {
  background: linear-gradient(135deg, #0099ae 0%, #00b074 100%);
  border-radius: 40px;
  padding: 60px 40px;
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 153, 174, 0.15);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .efforts-banner {
    border-radius: 24px;
    padding: 40px 20px;
  }
}

.efforts-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 35px;
  position: relative;
  display: inline-block;
}

.efforts-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background-color: #ffffff;
  transform: translateX(-50%);
  border-radius: 2px;
}

.effort-item-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.effort-item-card:hover {
  background: rgba(255, 255, 255, 0.15);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.effort-icon-box {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.effort-heading {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.effort-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.efforts-footer-text {
  max-width: 800px;
  margin: 40px auto 0 auto;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.7;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

/* Education Support Styles */
.education-appeal-card {
  background: #ffffff;
  border: 1px solid #eef2f5;
  border-left: 5px solid var(--bs-primary);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}


.appeal-img-container {
  width: 100%;
  height: 240px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.appeal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
}

.appeal-img-container:hover img {
  transform: scale(1.05);
}

.appeal-img-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(0, 176, 116, 0.25);
  font-size: 3.5rem;
  z-index: 1;
}

.appeal-img-fallback span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  color: #777777;
}

.appeal-badge {
  background-color: rgba(0, 176, 116, 0.08);
  color: var(--bs-primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.appeal-badge.student-tag {
  background-color: rgba(0, 153, 174, 0.08);
  color: #0099ae;
}

.appeal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #fafbfc;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #f3f5f7;
}

@media (max-width: 576px) {
  .appeal-info-grid {
    grid-template-columns: 1fr;
  }
}

.appeal-info-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #555555;
}

.appeal-info-item i {
  color: var(--bs-primary);
  margin-right: 10px;
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
}

.appeal-info-item.blue-icon i {
  color: #0099ae;
}

.appeal-info-label {
  font-weight: 700;
  color: var(--bs-dark);
  margin-right: 5px;
}

.appeal-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bs-dark);
  line-height: 1.3;
}

.appeal-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555555;
  text-align: justify;
}

/* ── Blog Inner Page Styles ── */
.blog-inner-wrap {
  padding: 60px 0 80px;
}

.blog-inner-header {
  margin-bottom: 32px;
}

.blog-inner-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--bs-dark);
  line-height: 1.35;
  margin-bottom: 16px;
}

.blog-inner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 28px;
}

.blog-inner-meta span {
  font-size: 0.83rem;
  color: #888;
}

.blog-inner-meta span i {
  color: var(--bs-primary);
  margin-right: 6px;
}

.blog-inner-feat-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 420px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-inner-body h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bs-dark);
  margin-top: 36px;
  margin-bottom: 14px;
}

.blog-inner-body p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #555555;
  margin-bottom: 18px;
  text-align: justify;
}

.blog-inner-section-img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  margin: 28px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.blog-inner-highlight {
  background-color: rgba(var(--bs-primary-rgb, 0, 176, 116), 0.07);
  border-left: 4px solid var(--bs-primary);
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}

.blog-inner-highlight p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-dark);
  margin-bottom: 0;
  font-style: italic;
  text-align: left;
}

.blog-inner-share {
  border-top: 1px solid #eef2f5;
  padding-top: 28px;
  margin-top: 40px;
  text-align: center;
}

.blog-inner-share p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 14px;
}

.blog-inner-share .share-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.blog-inner-share .share-btns a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-inner-share .share-btns a:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.blog-inner-share .share-fb {
  background: #1877f2;
}

.blog-inner-share .share-tw {
  background: #000000;
}

.blog-inner-share .share-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.blog-inner-share .share-li {
  background: #0a66c2;
}

/* Blog sidebar */
.blog-sidebar-card {
  background: #ffffff;
  border: 1px solid #eef2f5;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.blog-sidebar-card h5 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bs-dark);
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.blog-related-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f7fa;
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-related-img {
  width: 70px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  font-size: 1.4rem;
}

.blog-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.blog-related-text {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--bs-dark);
  line-height: 1.45;
  transition: color 0.2s ease;
}

.blog-related-item:hover .blog-related-text {
  color: var(--bs-primary);
}

.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-pill {
  background-color: rgba(var(--bs-primary-rgb, 0, 176, 116), 0.08);
  color: var(--bs-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.3px;
}

.blog-tag-pill:hover {
  background: var(--bs-primary);
  color: #ffffff;
}

/* ── Gallery Page Styles ── */
.gallery-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  background-color: transparent;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  letter-spacing: 0.3px;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background-color: var(--bs-primary);
  color: #ffffff;
  border-color: var(--bs-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #f0f2f5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 3px solid;
  cursor: pointer;

  border-color: var(--bs-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-overlay {
  display: none;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
  color: #aaaaaa;
}

.gallery-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--bs-primary);
  opacity: 0.35;
}

.gallery-placeholder span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #bbbbbb;
}

.gallery-load-wrap {
  text-align: center;
  margin-top: 44px;
}

.gallery-load-btn {
  border: 2px solid var(--bs-primary);
  background: transparent;
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 44px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.gallery-load-btn:hover {
  background-color: var(--bs-primary);
  color: #ffffff;
}

/* ── Gallery Dropdown Styles ── */
.gallery-filter-btn.dropdown-toggle::after {
  display: none !important;
}

.gallery-dropdown-menu {
  background-color: #ffffff;
  border: 1px solid rgba(0, 176, 116, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 5px !important;
  min-width: 180px;
}

.gallery-dropdown-item {
  color: var(--bs-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gallery-dropdown-item:hover,
.gallery-dropdown-item.active {
  background-color: var(--bs-primary);
  color: #ffffff;
}

.gallery-dropdown-item:focus {
  background-color: var(--bs-primary);
  color: #ffffff;
}

/* ── Contact Page Redesign Styles ── */
/* Premium Form Container */
.contact-form-wrapper {
  max-width: 800px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.01);
  padding: 45px;
  margin: 0 auto;
  border: 1px solid #eef2f6;
}

/* Floating Input Labels */
.form-floating>.form-control {
  height: 60px;
  border-radius: 8px;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding-left: 20px;
}

.form-floating>textarea.form-control {
  height: 150px;
  resize: none;
}

/* Input Focus Shadow Glow */
.form-floating>.form-control:focus {
  border-color: var(--bs-primary);

}

/* Float Label color adjustments */
.form-floating>label {
  padding-left: 20px;
  color: #797E88;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: var(--bs-primary);
}

/* Premium Button Styles */
.btn-submit {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 156, 149, 0.2);
  border: none;
}

.btn-submit:hover {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #ffffff;


}

.btn-submit:active {
  transform: translateY(0);
}

/* Email Pill Card Styling */
.email-badge-card {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2f6;
  transition: all 0.3s ease;
  text-decoration: none;
}

.email-badge-card:hover {

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 156, 149, 0.2);
}

/* Premium Locations Styling */
.location-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #eef2f6 !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #ffffff;
}



.location-img-box {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #f7f9fb;
}

.location-img-box img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  object-fit: cover;
}

.location-card:hover .location-img-box img {
  transform: scale(1.08);
}

/* Location badges */
.office-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--bs-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.office-badge.hq {
  background-color: var(--bs-secondary);
}

/* Section line */
.section-header-underline {
  width: 70px;
  height: 3px;
  background-color: var(--bs-primary);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

/* ── Inline CSS Extractions ── */
.topbar-logo {
  max-height: 55px;
}

.topbar-title {
  font-size: 1.3rem;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.2;
}

.topbar-subtitle {
  font-size: 0.65rem;
  letter-spacing: 1px;
  display: block;
}

.topbar-info-text {
  font-size: 0.8rem;
}

.topbar-email-text {
  font-size: 0.75rem;
}

.btn-donate-nav {
  border-radius: 0 !important;
  font-weight: 700;
}

.contact-container {
  max-width: 900px;
}

.contact-header-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  color: #2b2b2b;
}

.email-badge-icon {
  width: 45px !important;
  height: 45px !important;
}

.email-badge-text-wrap {
  font-family: 'Josefin Sans', sans-serif;
}

.email-badge-label {
  color: var(--bs-primary) !important;
}

.locations-section-title {
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 1px;
  color: var(--bs-primary) !important;
}

.location-placeholder-bg {
  background-color: var(--bs-primary) !important;
}

.location-card-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.25rem;
  color: #2b2b2b;
}

.location-card-address {
  font-size: 0.9rem;
  line-height: 1.5;
}

.location-card-phone {
  font-size: 0.85rem;
}

.footer-logo {
  max-height: 50px;
  background-color: #ffffff;
  padding: 4px;
  border-radius: 4px;
}

.footer-brand-title {
  font-size: 1.1rem;
  line-height: 1.2;
}

.footer-brand-subtitle {
  font-size: 0.65rem;
}

.footer-contact-link {
  font-size: 0.85rem;
}

/* ── Medical Cases Page Styles ── */
.case-img-box {
  position: relative;
  height: 220px;
  background-color: #f7f9fb;
  overflow: hidden;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.donation-item:hover .case-img {
  transform: scale(1.08);
}

.case-placeholder-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  /* dynamically shown via onerror handler */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bs-primary) 0%, #063c37 100%);
  color: #ffffff;
  font-family: 'Josefin Sans', sans-serif;
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.case-placeholder-fallback i {
  animation: heartbeat-animation 1.5s infinite ease-in-out;
}

.case-placeholder-fallback span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bs-secondary);
}

.case-placeholder-fallback small {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes heartbeat-animation {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8rem;
  font-size: 1.25rem !important;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--bs-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.text-truncate-2:hover {
  color: var(--bs-primary);
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.2rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.text-truncate-2 {
  text-decoration: none !important;
}

/* ── Inner Medical Case Page Styles ── */
.medical-appeal-box {
  background-color: #f8f9fa;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.medical-appeal-box h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
  color: var(--bs-dark);
}

.medical-main-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 450px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Tab Overrides */
.medical-tabs {
  border-bottom: 2px solid #f0f2f5;
  margin-bottom: 20px;
  gap: 10px;
}

.medical-tabs .nav-link {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bs-dark);
  border: none;
  padding: 10px 24px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
  background: transparent;
}

.medical-tabs .nav-link:hover {
  color: var(--bs-primary);
}

.medical-tabs .nav-link.active {
  color: #ffffff !important;
  background-color: var(--bs-primary) !important;
  border-radius: 4px;
}

.medical-tab-content {
  background: #ffffff;
  padding: 10px 0;
}

/* Sidebar Donation Form */
.donation-sidebar-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.preset-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.preset-btn {
  background-color: var(--bs-primary);
  color: #ffffff;
  border: 1px solid var(--bs-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.preset-btn:hover,
.preset-btn.active {
  background-color: var(--bs-secondary);

  border-color: var(--bs-secondary);
}

.donor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
}

.donor-row:last-child {
  border-bottom: none;
}

.donor-name {
  font-weight: 600;
  color: var(--bs-dark);
  font-size: 0.95rem;
}

.donor-amount {
  font-weight: 700;
  color: var(--bs-primary);
  font-size: 0.95rem;
}

.docs-carousel {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px dashed #dee2e6;
}

.docs-carousel-item img {
  max-height: 550px;
  object-fit: contain;
  border: 1px solid #eef2f6;
  background-color: #ffffff;
  border-radius: 8px;
}

/* ── Donation Page Styles ── */
.donation-page-card {
  background: rgba(26, 104, 91, 0.06); /* Brand secondary green soft tint */
  border: 1px solid rgba(26, 104, 91, 0.18);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(26, 104, 91, 0.03);
  height: 100%;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.donation-page-card:hover {
  box-shadow: 0 15px 40px rgba(26, 104, 91, 0.06);
}

.donation-page-card .form-control {
  background-color: #ffffff !important;
  border: 1px solid rgba(26, 104, 91, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}



.preset-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.preset-btn {
  background-color: var(--bs-primary);
  color: #ffffff;
  border: 1px solid var(--bs-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(26, 104, 91, 0.15);
}

.preset-btn:hover,
.preset-btn.active {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  
  box-shadow: 0 6px 15px rgba(8, 50, 92, 0.2);
}

.donation-stats-card {
  background: rgba(26, 104, 91, 0.06); /* Brand secondary green soft tint */
  border: 1px solid rgba(26, 104, 91, 0.18);
  border-radius: 16px;
  padding: 35px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(26, 104, 91, 0.03);
  transition: all 0.3s ease;
}

.donation-stats-card:hover {
  box-shadow: 0 15px 40px rgba(26, 104, 91, 0.06);
}

.donation-stats-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.donation-stats-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: #555555;
  font-weight: 500;
}

.donation-stats-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--bs-primary);
}

.donation-stats-list li strong {
  color: var(--bs-primary);
  font-size: 1.15rem;
}

.payment-method-card {
  background: rgba(26, 104, 91, 0.06); /* Brand secondary green soft tint */
  border: 1px solid rgba(26, 104, 91, 0.18);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(26, 104, 91, 0.03);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}



.payment-method-icon {
  font-size: 2.5rem;
  color: var(--bs-primary);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.payment-method-card:hover .payment-method-icon {
  transform: scale(1.1);
}

.payment-method-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bs-dark);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--bs-primary);
  padding-bottom: 8px;
  display: inline-block;
}

.qr-code-placeholder {
  width: 160px;
  height: 160px;
  border: 2px dashed rgba(26, 104, 91, 0.4);
  border-radius: 12px;
  margin: 15px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  color: var(--bs-tertiary);
  font-size: 0.8rem;
  padding: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.qr-code-placeholder:hover {
  transform: scale(1.05);
}

.payment-method-card:hover .qr-code-placeholder {
  border-color: var(--bs-primary);
  box-shadow: 0 6px 16px rgba(26, 104, 91, 0.08);
}

/* Custom CSS Badges for Payment Branding */
.paytm-badge {
  background-color: #ffffff;
  border: 1px solid rgba(26, 104, 91, 0.15);
  padding: 4px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.paytm-badge .pay-text {
  color: #0A2540; /* Dark blue */
}

.paytm-badge .tm-text {
  color: #00BAF2; /* Paytm cyan */
}

.upi-badge {
  background-color: #ffffff;
  border: 1px solid rgba(26, 104, 91, 0.15);
  padding: 4px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  letter-spacing: 0.5px;
}

.upi-badge .upi-part-u {
  color: #0c428a; /* UPI dark blue */
}

.upi-badge .upi-part-p {
  color: #0c428a;
}

.upi-badge .upi-part-i {
  color: #00b074; /* UPI green */
}

/* Fix mobile horizontal overflow and layout rendering */
/* html, body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 991.98px) {
  .top-bar {
    padding: 0 15px !important;
    height: auto !important;
  }
  .top-bar .row {
    height: auto !important;
    padding: 10px 0;
  }
  .nav-bar {
    padding: 0 15px !important;
  }
  .donation-sidebar-card,
  .donation-page-card {
    padding: 20px !important;
  }
}

@media (max-width: 576px) {
  .donation-sidebar-card,
  .donation-page-card {
    padding: 15px !important;
  }
  .docs-carousel-item img {
    max-height: 320px !important;
  }
  .preset-btn {
    font-size: 0.85rem !important;
    padding: 6px !important;
  }
  .payment-method-card {
    padding: 20px !important;
  }
} */