/* Mercy Direct - Single Project Page */

.mdc-project-single {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 36px 24px 60px;
  align-items: start;
}
.mdc-project-main { min-width: 0; }
.mdc-project-sidebar { position: sticky; top: 24px; }

.mdc-category-badge {
  display: inline-block;
  background: #7B2FBE;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.mdc-project-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111827;
}
.mdc-project-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Slider */
.mdc-slider-wrap { position: relative; margin-bottom: 10px; }
.mdc-slider-main {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.mdc-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mdc-slider-arrow.prev { left: 10px; }
.mdc-slider-arrow.next { right: 10px; }
.mdc-slider-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
}
.mdc-slider-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.mdc-slider-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.15s ease;
}
.mdc-slider-thumb.active,
.mdc-slider-thumb:hover {
  border-color: #7B2FBE;
  opacity: 1;
}

/* Progress */
.mdc-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
}
.mdc-progress-raised { font-size: 28px; font-weight: 800; color: #111827; }
.mdc-progress-pct { font-size: 20px; font-weight: 700; color: #7B2FBE; }
.mdc-progress-bar-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin: 8px 0;
  overflow: hidden;
}
.mdc-progress-bar-fill {
  height: 100%;
  background: #7B2FBE;
  border-radius: 4px;
  min-width: 4px;
}
.mdc-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* Tabs */
.mdc-tabs {
  display: flex;
  flex-wrap: wrap;
  background: transparent;
  border-bottom: 1.5px solid #e5e7eb;
  padding: 0;
  margin: 24px 0 0;
  gap: 0;
}
.mdc-tab {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  margin-bottom: -1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mdc-tab.active {
  color: #7B2FBE;
  border-bottom: 3px solid #7B2FBE;
  font-weight: 600;
  background: transparent;
}
.mdc-tab:hover { color: #7B2FBE; }
.mdc-tab-content { display: none; padding: 20px 0; }
.mdc-tab-content.active { display: block; }

/* Story */
.mdc-story-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #374151;
  font-size: 15px;
}
.mdc-story-content h2,
.mdc-story-content h3 {
  font-weight: 700;
  margin: 24px 0 10px;
  color: #111827;
}

/* Sidebar cards */
.mdc-donation-card,
.mdc-case-info-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.mdc-donation-card h3,
.mdc-case-info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px;
}
.mdc-amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.mdc-amount-btn {
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 12px 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  width: 100%;
  transition: all 0.15s ease;
}
.mdc-amount-btn:hover { border-color: #7B2FBE; color: #7B2FBE; }
.mdc-amount-btn.selected {
  background: #7B2FBE;
  color: #fff;
  border-color: #7B2FBE;
}
.mdc-custom-amount-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
}
.mdc-custom-amount-input:focus { border-color: #7B2FBE; }
.mdc-donate-now-btn {
  width: 100%;
  background: #7B2FBE;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}
.mdc-secure-badge {
  text-align: center;
  font-size: 12px;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.mdc-case-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13.5px;
}
.mdc-case-info-row:last-child { border-bottom: none; }
.mdc-case-info-label { color: #9ca3af; }
.mdc-case-info-value { color: #111827; font-weight: 600; text-align: right; }

/* Photos grid */
.mdc-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 0;
}
.mdc-photos-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

/* Floating donate - mobile only */
.mdc-floating-donate {
  display: none;
}
@media (max-width: 768px) {
  .mdc-project-single {
    grid-template-columns: 1fr;
    padding: 20px 16px 80px;
    gap: 24px;
  }
  .mdc-project-sidebar { position: static; }
  .mdc-floating-donate {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #7B2FBE;
    color: #fff;
    text-align: center;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    z-index: 999;
    text-decoration: none;
  }
}
