/* ==========================================
   MITRA PDU SAEMAUL & TPS3R - HIGH-END MODERN CSS
   ========================================== */

.hero-mitra {
  padding: 40px 8% 25px !important;
}

.hero-live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  color: #047857;
  margin-top: 18px;
}

body.dark-mode .hero-live-status {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.mitra-section {
  padding: 30px 8% 70px;
  max-width: 1300px;
  margin: 0 auto;
}

/* 1. DUAL SHOWCASE CARDS (PDU & TPS3R) */
.dual-showcase-container {
  margin-bottom: 65px;
}

.showcase-header {
  margin-bottom: 35px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.dual-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.showcase-card {
  border-radius: 24px;
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.showcase-pdu {
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  border: 2px solid #10b981;
}

.showcase-tps3r {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 2px solid #3b82f6;
}

body.dark-mode .showcase-pdu {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  border-color: #34d399;
  color: white;
}

body.dark-mode .showcase-tps3r {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border-color: #60a5fa;
  color: white;
}

.showcase-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 12px;
}

.showcase-pdu .showcase-badge {
  background: #10b981;
  color: white;
}

.showcase-tps3r .showcase-badge {
  background: #3b82f6;
  color: white;
}

.showcase-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
}

.showcase-pdu .showcase-icon {
  background: #d1fae5;
  color: #047857;
}

.showcase-tps3r .showcase-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.showcase-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
}

body.dark-mode .showcase-card h3 {
  color: white;
}

.showcase-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

body.dark-mode .showcase-card p {
  color: #e2e8f0;
}

.showcase-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-features li {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;

}

.showcase-pdu .showcase-features li i { color: #10b981; }
.showcase-tps3r .showcase-features li i { color: #3b82f6; }

/* 2. METRICS CARDS & PROGRESS METER */
.mitra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 65px;
}

.mitra-card {
  background: white;
  padding: 30px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1.5px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.mitra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.card-accent-green { border-top: 5px solid #10b981 !important; }
.card-accent-blue { border-top: 5px solid #3b82f6 !important; }
.card-accent-amber { border-top: 5px solid #f59e0b !important; }
.card-accent-purple { border-top: 5px solid #8b5cf6 !important; }

.card-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.bg-green { background: #d1fae5; color: #047857; }
.bg-blue { background: #dbeafe; color: #1d4ed8; }
.bg-amber { background: #fef3c7; color: #b45309; }
.bg-purple { background: #f3e8ff; color: #6b21a8; }

.mitra-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  color: var(--forest);
  margin-bottom: 8px;
}

.mitra-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.metric-meter {
  height: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.bg-blue-bar { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bg-amber-bar { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bg-purple-bar { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.meter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* 3. ALUR KERJA PROCESS FLOW */
.flow-container {
  margin-bottom: 70px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 35px;
}

.flow-step {
  background: white;
  padding: 30px 24px 26px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #e2e8f0;
  position: relative;
  transition: all 0.3s ease;
}

.flow-step:hover {
  transform: translateY(-6px);
  border-color: #10b981;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15);
}

.step-num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #cbd5e1;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.flow-step h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: var(--forest);
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--text-secondary);
  font-size: 13.8px;
  line-height: 1.6;
}

/* 4. INFOGRAPHIC TIMELINE */
.timeline-infographic-container {
  margin-bottom: 70px;
}

.info-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.info-time-card {
  padding: 28px 24px;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.info-time-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.t-card-2023 {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #10b981;
}

.t-card-2024 {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #3b82f6;
}

.t-card-2025 {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
}

.t-card-2026 {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 2px solid #8b5cf6;
}

.time-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.t-year {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.t-tag {
  background: white;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.t-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.t-card-2023 .t-icon-circle { color: #10b981; }
.t-card-2024 .t-icon-circle { color: #3b82f6; }
.t-card-2025 .t-icon-circle { color: #f59e0b; }
.t-card-2026 .t-icon-circle { color: #8b5cf6; }

.info-time-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18.5px;
  color: #0f172a;
  margin-bottom: 8px;
}

.info-time-card p {
  font-size: 13.8px;
  color: #334155;
  line-height: 1.6;
}

/* 5. DOKUMENTASI GALLERY WITH FILTER TABS */
.galeri-container {
  margin-bottom: 70px;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.gallery-tab-btn.active {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
  box-shadow: 0 6px 16px rgba(6, 78, 59, 0.25);
}

.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.galeri-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 240px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.4s ease;
}

.galeri-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.15);
  border-color: #10b981;
}

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

.galeri-item:hover img {
  transform: scale(1.1);
}

.galeri-overlay {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
  color: white;
  padding: 24px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.galeri-overlay span {
  font-size: 15px;
  font-weight: 700;
}

.galeri-overlay small {
  font-size: 12.5px;
  color: #6ee7b7;
}

/* LIGHTBOX MODAL */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.lightbox-content {
  position: relative;
  max-width: 850px;
  width: 100%;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.lightbox-content p {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  background: #f8fafc;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
}

/* 6. LOCATION INFO BAR & GOOGLE MAPS */
.maps-container {
  margin-bottom: 30px;
}

.location-info-bar {
  background: white;
  padding: 24px 32px;
  border-radius: 22px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-item i {
  font-size: 22px;
  color: #047857;
  background: #d1fae5;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item strong {
  display: block;
  font-size: 15px;
  color: var(--forest);
}

.info-item p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

.location-action-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.directions-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.45);
}

.wa-consult-btn {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
}

.wa-consult-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

.maps-wrapper {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 2px solid #e2e8f0;
  height: 420px;
}

.maps-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .location-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .location-action-btns {
    width: 100%;
    flex-direction: column;
  }

  .directions-btn, .wa-consult-btn {
    width: 100%;
    justify-content: center;
  }
}
