/* ============================================
   Proposal Donasi — Custom Styles
   Plain CSS (compatible with Tailwind CDN)
   ============================================ */

[x-cloak] {
  display: none !important;
}

/* --- Navigation --- */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #059669;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #059669;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #047857;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background-color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: #6ee7b7;
  color: #047857;
}

/* --- Section typography --- */
.section-label {
  display: inline-block;
  border-radius: 9999px;
  background-color: #d1fae5;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #047857;
}

.section-title {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #475569;
}

/* --- Hero background pattern --- */
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 185, 129, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
}

/* --- Progress bar --- */
.progress-bar {
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.6s ease;
}

/* --- Feature cards --- */
.feature-card {
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background-color: #fff;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 4px 24px -4px rgba(6, 78, 59, 0.12);
}

.feature-icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

/* --- Campaign cards --- */
.campaign-card {
  overflow: hidden;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 4px 24px -4px rgba(6, 78, 59, 0.12);
  transition: all 0.3s ease;
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.campaign-image {
  position: relative;
  display: flex;
  height: 11rem;
  align-items: flex-start;
  padding: 1rem;
}

.campaign-badge {
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  backdrop-filter: blur(4px);
}

/* --- Step cards --- */
.step-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  background-color: #fff;
  padding: 2rem;
  text-align: center;
}

.step-number {
  display: inline-flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: #d1fae5;
  font-size: 1.25rem;
  font-weight: 800;
  color: #047857;
}

/* --- Testimonials --- */
.testimonial-card {
  border-radius: 1rem;
  border: 1px solid #065f46;
  background-color: rgba(6, 95, 70, 0.5);
  padding: 2rem;
}

/* --- Form --- */
.input-field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  color: #1e293b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: #10b981;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.amount-btn {
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-btn:hover {
  border-color: #6ee7b7;
}

.amount-btn-active {
  border-color: #059669;
  background-color: #ecfdf5;
  color: #047857;
}

/* --- FAQ --- */
.faq-item {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
}

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-trigger:hover {
  background-color: #f8fafc;
}

.faq-icon {
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

.faq-content {
  border-top: 1px solid #f1f5f9;
  padding: 1rem 1.5rem;
  color: #475569;
  line-height: 1.75;
}

/* --- Line clamp --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Shadow utility --- */
.shadow-soft {
  box-shadow: 0 4px 24px -4px rgba(6, 78, 59, 0.12);
}

.shadow-glow {
  box-shadow: 0 0 40px -8px rgba(16, 185, 129, 0.35);
}

/* ========== PROPOSAL LAYOUT ========== */

.proposal-badge {
  display: inline-block;
  border-radius: 9999px;
  background-color: #d1fae5;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  color: #047857;
}

.proposal-meta-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 1rem 1.25rem;
}

.proposal-meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.proposal-meta-value {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.proposal-section {
  scroll-margin-top: 1.5rem;
}

.proposal-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #10b981;
  display: inline-block;
}

.proposal-content {
  font-size: 1rem;
}

.highlight-box {
  border-radius: 0.75rem;
  border: 1px solid #d1fae5;
  background-color: #ecfdf5;
  padding: 1.25rem;
  text-align: center;
}

.problem-item {
  display: flex;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1.25rem;
}

.problem-icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #fef3c7;
  font-size: 0.75rem;
  font-weight: 800;
  color: #b45309;
}

.proposal-table th,
.proposal-table td {
  vertical-align: top;
}

.program-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1.25rem;
}

.program-letter {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #059669;
  font-weight: 800;
  color: #fff;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
  padding-left: 0.25rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 1.25rem;
  bottom: 0;
  width: 2px;
  background-color: #d1fae5;
}

.timeline-item-last::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  height: 0.875rem;
  width: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
  border-radius: 9999px;
  background-color: #059669;
  box-shadow: 0 0 0 4px #ecfdf5;
}

.timeline-content {
  flex: 1;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1rem 1.25rem;
}

.impact-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1.25rem;
}

.team-card {
  display: flex;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1.25rem;
}

.team-avatar {
  display: flex;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #d1fae5;
  font-size: 0.875rem;
  font-weight: 800;
  color: #047857;
}

.trust-badge {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 0.35rem 0.85rem;
  font-weight: 500;
  color: #475569;
}

.donation-bank-card {
  border-radius: 0.75rem;
  border: 2px dashed #a7f3d0;
  background-color: #ecfdf5;
  padding: 1.25rem;
}

.sidebar-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1.25rem;
  box-shadow: 0 4px 24px -4px rgba(6, 78, 59, 0.08);
}

.proposal-sidebar {
  max-height: calc(100vh - 7rem);
}

/* ========== GALERI & LIGHTBOX ========== */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #f1f5f9;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 4 / 3;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover {
  box-shadow: 0 8px 24px -6px rgba(6, 78, 59, 0.2);
  transform: translateY(-2px);
}

.gallery-item:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(6, 78, 59, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 3.5rem 4.5rem 1.25rem;
  background-color: rgba(15, 23, 42, 0.96);
  box-sizing: border-box;
  overflow: hidden;
}

.gallery-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100001;
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gallery-lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 100001;
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gallery-lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

.gallery-lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 4.5rem);
  max-height: calc(100vh - 4.5rem);
  min-height: 0;
}

.gallery-lightbox-stage {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 7rem);
}

.gallery-lightbox-img {
  display: block;
  max-width: min(92vw, 1600px);
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 48rem;
  margin-top: 1rem;
  text-align: center;
}

.gallery-lightbox-caption {
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.gallery-lightbox-counter {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .gallery-lightbox {
    padding: 3rem 0.75rem 1rem;
  }

  .gallery-lightbox-stage {
    max-height: calc(100vh - 6.5rem);
  }

  .gallery-lightbox-img {
    max-width: 96vw;
    max-height: calc(100vh - 6.5rem);
  }

  .gallery-lightbox-prev {
    left: 0.5rem;
  }

  .gallery-lightbox-next {
    right: 0.5rem;
  }

  .gallery-lightbox-nav {
    height: 2.25rem;
    width: 2.25rem;
  }
}
