/* ══════════════════════════════════════
   PROJECT PAGE STYLES
══════════════════════════════════════ */

/* ── Navbar solid orange ── */
.site-navbar--solid {
  position: relative !important;
  top: 0 !important;
  background: var(--orange) !important;
  padding-bottom: 1.25rem !important;
}
/* Пункти меню на помаранчевому фоні — підкреслення при наведенні */
.site-navbar--solid .nav-link:hover,
.site-navbar--solid .nav-link:focus {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.site-navbar--solid .dropdown-toggle::after { border-top-color: #fff !important; }

/* Кнопка "задонатити" — білий фон */
.site-navbar--solid .btn-donate {
  background: #fff;
  border: 2px solid #fff;
  color: var(--orange);
}
.site-navbar--solid .btn-donate:hover {
  background: #E67700;
  border-color: #E67700;
  color: #fff;
}

/* ── PROJECT HEADER (breadcrumb strip, white bg below navbar) ── */
.project-header-section {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-item a { color: #999; text-decoration: none; font-size: .9rem; }
.breadcrumb-item a:hover { color: var(--orange); }
.breadcrumb-item.active { color: var(--text); font-size: .9rem; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #ccc; }

/* Title block (inside main content, on white bg) */
.project-hero-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: 20px;
}
.project-page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: .4rem;
  color: var(--text);
}
.project-page-sub {
  font-size: 1rem;
  color: #777;
}
.btn-white {
  background: #fff;
  color: var(--orange);
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  border-radius: 38px;
  transition: background .2s, color .2s;
}
.btn-white:hover { background: var(--dark-bg); color: #fff; }

/* ── PROJECT PHOTO SLIDER ── */
.project-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #ddd;
}
.project-slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.project-slide {
  flex: 0 0 100%;
}
.project-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .project-slide img { height: 260px; }
}

/* Arrows */
.proj-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.proj-slide-btn:hover { background: #fff; }
.proj-slide-btn:disabled { opacity: .3; cursor: default; }
.proj-slide-prev { left: 12px; }
.proj-slide-next { right: 12px; }

/* Dots */
.proj-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.proj-slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.proj-slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── STICKY BAR ── */
.project-sticky-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.sticky-label { font-size: .75rem; color: #999; text-transform: uppercase; letter-spacing: .05em; }
.sticky-value  { font-size: 1.1rem; font-weight: 900; color: var(--text); }
.sticky-value span { font-size: .85rem; font-weight: 600; }

/* ── PROGRESS CARD ── */
.project-progress-card {
  background: #F2F2F2;
  border-radius: 20px;
  padding: 2rem 2.2rem;
}
.progress-meta-label { font-size: .8rem; color: #888; text-transform: uppercase; letter-spacing: .04em; }
.progress-value { font-size: 1.4rem; font-weight: 900; }
.progress-stat { text-align: center; }
.progress-stat-value { font-size: 1.8rem; font-weight: 900; color: var(--orange); line-height: 1; }
.progress-stat-label { font-size: .82rem; color: #888; margin-top: 2px; }

/* ── TABS ── */
.project-tabs {
  gap: 4px;
  border-bottom: 2px solid #eee;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.project-tab {
  background: none;
  border: none;
  padding: .6rem 1.2rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.project-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.project-tab:hover { color: var(--orange); }

/* ── SECTION TITLES ── */
.project-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.project-section-subtitle {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

/* ── INFO GRID ── */
.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 576px) {
  .project-info-grid { grid-template-columns: 1fr; }
}
.project-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F2F2F2;
  border-radius: 12px;
  padding: 16px;
}
.project-info-item i {
  color: var(--orange);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.project-info-label { font-size: .78rem; color: #888; text-transform: uppercase; letter-spacing: .04em; }
.project-info-value { font-weight: 700; font-size: .95rem; margin-top: 2px; }

/* ── LIST ── */
.project-list {
  padding-left: 0;
  list-style: none;
}
.project-list li {
  padding: .5rem 0 .5rem 1.8rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.project-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

/* ── BUDGET ── */
.budget-list { display: flex; flex-direction: column; gap: 20px; }
.budget-item {}
.budget-bar-wrap {
  background: #eee;
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.budget-bar {
  height: 100%;
  background: var(--orange);
  border-radius: 8px;
}
.budget-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.budget-name { font-weight: 600; font-size: .95rem; }
.budget-amount { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.budget-pct { color: var(--orange); margin-left: 6px; }

/* ── MILESTONES ── */
.project-milestone-list { position: relative; }
.milestone {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}
.milestone::before {
  content: '';
  position: absolute;
  left: 9px; top: 22px;
  width: 2px;
  bottom: 0;
  background: #ddd;
}
.milestone:last-child::before { display: none; }
.milestone-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 3px solid #ddd;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.milestone-dot.done  { background: var(--orange); border-color: var(--orange); }
.milestone-dot.active { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(255,153,0,.2); }
.milestone-date  { font-size: .8rem; color: #888; }
.milestone-title { font-weight: 800; margin: 2px 0; }
.milestone-desc  { font-size: .9rem; color: #666; }

/* ── REPORTS ── */
.report-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F2F2F2;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.report-icon {
  font-size: 1.8rem;
  color: var(--orange);
  flex-shrink: 0;
}
.report-card > div { flex-grow: 1; }
.report-title { font-weight: 800; }
.report-desc  { font-size: .88rem; color: #777; }

/* ── DONORS ── */
.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.donor-card {
  background: #F2F2F2;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.donor-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.donor-name   { font-weight: 700; font-size: .95rem; }
.donor-amount { font-size: .82rem; color: var(--orange); font-weight: 800; }
.donor-wish   { font-size: .8rem; color: #777; margin-top: 2px; font-style: italic; }
.donor-date   { font-size: .75rem; color: #aaa; }

/* ── DONATE WIDGET ── */
.donate-widget {
  background: #fff;
  border-radius: 24px;
  padding: 2rem 2.2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
  position: sticky;
  top: 80px;
}
.donate-widget-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.donate-widget-header p {
  color: #888;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

/* Frequency */
.donate-frequency {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
}
.freq-btn {
  padding: .45rem .3rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: .8rem;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  color: var(--text);
}
.freq-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.freq-btn:hover:not(.active) { border-color: var(--orange); color: var(--orange); }

.freq-note {
  background: #fff8ee;
  border-left: 3px solid var(--orange);
  padding: .6rem .9rem;
  border-radius: 0 8px 8px 0;
  font-size: .85rem;
  color: #666;
}

/* Amount presets */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.amount-btn {
  padding: .6rem .5rem;
  font-family: var(--font);
  font-weight: 800;
  font-size: .95rem;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  color: var(--text);
}
.amount-btn.active {
  border-color: var(--orange);
  background: rgba(255,153,0,.08);
  color: var(--orange);
}
.amount-btn:hover:not(.active) { border-color: var(--orange); }

/* Custom amount input */
.amount-input-wrap {
  position: relative;
}
.amount-input {
  width: 100%;
  padding: .75rem 3.5rem .75rem 1rem;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  outline: none;
  transition: border-color .2s;
}
.amount-input:focus { border-color: var(--orange); }
.amount-currency {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: #888;
  pointer-events: none;
}

/* Fields */
.donate-field {
  width: 100%;
  padding: .7rem 1rem;
  font-family: var(--font);
  font-size: .95rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  resize: none;
  transition: border-color .2s;
}
.donate-field:focus { border-color: var(--orange); }

/* Total */
.donate-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F2F2F2;
  border-radius: 12px;
  padding: .9rem 1.2rem;
  font-weight: 700;
}
.donate-total-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--orange);
}

/* LiqPay button */
.btn-donate-main {
  width: 100%;
  padding: 1rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
}
.btn-donate-main:hover  { background: var(--orange-dark); transform: translateY(-2px); }
.btn-donate-main:active { transform: translateY(0); }
.btn-donate-main #btnAmount {
  background: rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 4px;
}

.donate-secure {
  text-align: center;
  font-size: .8rem;
  color: #999;
  margin: 0;
}

.donate-legal {
  text-align: center;
  font-size: .74rem;
  line-height: 1.5;
  color: #aaa;
  margin: 0;
}
.donate-legal a {
  color: var(--orange);
  text-decoration: underline;
  font-weight: 600;
}
.donate-legal a:hover { opacity: .8; }

/* Share */
.donate-share-label { font-size: .85rem; color: #888; margin-bottom: .5rem; }
.share-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .8; }
.share-fb   { background: #1877f2; color: #fff; }
.share-tg   { background: #29b6f6; color: #fff; }
.share-wa   { background: #25d366; color: #fff; }
.share-copy { background: #F2F2F2; color: var(--text); }
