/* PROGRAM PAGE STYLES */
.program-page {
  padding-top: 80px;
  background-color: #f8fbff;
}

/* --- HERO --- */
.program-hero {
  padding: 60px 24px;
  text-align: center;
  background: white;
  border-bottom: 1px solid #edf2f7;
}

.program-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 10px;
}

.program-hero p {
  color: #718096;
  font-size: 16px;
}

/* --- TABS --- */
.program-tabs-container {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #4a5568;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
}

.tab-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(61, 139, 55, 0.3);
}

/* Second section tabs (Orange) */
.tab-btn.orange.active {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(232, 101, 10, 0.3);
}

/* --- PROGRAM GRID --- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.program-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #f0f4f8;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.program-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

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

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

.program-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
}

.program-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2d3748;
}

.program-card-content p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 20px;
}

.program-stats {
  margin-top: auto;
}

.stats-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}

.stats-val {
  font-weight: 700;
  color: var(--orange);
}

.progress-bar {
  height: 8px;
  background: #edf2f7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-light), var(--orange));
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.btn-donasi-card {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-donasi-card:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 15px rgba(61, 139, 55, 0.4);
}

.program-card.orange-theme .btn-donasi-card {
  background: var(--orange);
}

.program-card.orange-theme .btn-donasi-card:hover {
  background: var(--orange-dark);
  box-shadow: 0 4px 15px rgba(232, 101, 10, 0.4);
}

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