/* Profil page — cross-device responsive */

.profil-page .profile-tabs-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.profil-page .profile-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}

.profil-page .profile-tabs-scroll .filter-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.profil-page .profile-content {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .profil-page .profile-content {
    padding: 2rem;
  }
}

/* Profile hero image + full view */
.profile-hero-figure {
  position: relative;
  margin: 0 0 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.profile-hero-figure .profile-hero-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0;
  display: block;
}

.profile-hero-zoom-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.profile-hero-zoom-btn:hover {
  background-color: #fff;
}

@media (max-width: 575.98px) {
  .profile-hero-zoom-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .profile-hero-zoom-btn {
    padding: 0.5rem 0.65rem;
  }
}

.profile-hero-modal-content {
  overflow: hidden;
}

.profile-hero-modal-image {
  width: 100%;
  max-height: min(85vh, 900px);
  object-fit: contain;
  background: #f8f9fa;
}

.profil-page .profile-data-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profil-page .profile-data-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 0.375rem;
  border-left: 3px solid var(--creative-primary, #f4623a);
}

@media (min-width: 576px) {
  .profil-page .profile-data-row {
    grid-template-columns: minmax(110px, 32%) 1fr;
    align-items: baseline;
    gap: 0.75rem;
  }
}

.profil-page .profile-data-label {
  font-weight: 700;
  color: #212529;
  font-size: 0.9rem;
}

.profil-page .profile-data-value {
  color: #6c757d;
  font-size: 0.95rem;
  word-break: break-word;
}

.profil-page .profile-map-wrap {
  width: 100%;
  min-height: 260px;
  height: 50vw;
  max-height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.profil-page #map {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

/* Struktur organisasi image */
.profil-page .profile-org-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 0.5rem;
}

/* Horizontal timeline — Kepala Dinas (tablet+) */
.profil-page .timeline-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .profil-page .timeline-scroll-hint {
    display: block;
  }
}

.profil-page .timeline-wrapper-h {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.profil-page .timeline-wrapper-h::-webkit-scrollbar {
  height: 8px;
}

.profil-page .timeline-wrapper-h::-webkit-scrollbar-thumb {
  background-color: #00796b;
  border-radius: 4px;
}

.profil-page .timeline-h {
  display: flex;
  position: relative;
  width: max-content;
  min-width: 100%;
  padding: 4.5rem 1rem 1rem;
  gap: 0;
}

.profil-page .timeline-h::before {
  content: '';
  position: absolute;
  height: 6px;
  background-color: #00796b;
  top: 3.125rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
}

.profil-page .timeline-h .timeline-item {
  flex: 0 0 auto;
  width: 260px;
  padding: 0 1rem 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.profil-page .timeline-h .timeline-item::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: #004d40;
  border: 4px solid #00796b;
  border-radius: 50%;
  top: 2.125rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.profil-page .timeline-h .timeline-content {
  padding: 1rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  position: relative;
  margin-top: 1.75rem;
}

.profil-page .timeline-h .timeline-content::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-bottom-color: #fff;
}

.profil-page .timeline-h .photo-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #006131;
}

.profil-page .timeline-h .timeline-content h4 {
  font-size: 1rem;
  color: #004d40;
  margin: 0.5rem 0 0.25rem;
}

.profil-page .timeline-h .year {
  display: block;
  font-weight: 700;
  color: #e65100;
  font-size: 0.875rem;
}

/* Vertical leader cards — mobile */
.profil-page .leader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .profil-page .leader-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profil-page .leader-card {
  text-align: center;
  padding: 1.25rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.profil-page .leader-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #006131;
  margin-bottom: 0.75rem;
}

.profil-page .leader-card h4 {
  font-size: 0.95rem;
  color: #004d40;
  margin-bottom: 0.25rem;
}

.profil-page .leader-card .year {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e65100;
}

/* Penghargaan timeline */
.profil-page .timeline-awards {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.profil-page .timeline-awards::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #00796b;
  top: 0;
  bottom: 0;
  left: 1.25rem;
  z-index: 1;
}

@media (min-width: 768px) {
  .profil-page .timeline-awards::after {
    left: 50%;
    margin-left: -2px;
  }
}

.profil-page .timeline-award-item {
  position: relative;
  width: 100%;
  padding: 0 0 1.5rem 3rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .profil-page .timeline-award-item {
    width: 50%;
    padding: 0 2rem 2.5rem;
  }

  .profil-page .timeline-award-item:nth-child(odd) {
    left: 0;
    padding-right: 2.5rem;
    padding-left: 0;
  }

  .profil-page .timeline-award-item:nth-child(even) {
    left: 50%;
    padding-left: 2.5rem;
    padding-right: 0;
  }
}

.profil-page .timeline-award-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #004d40;
  border: 3px solid #00796b;
  border-radius: 50%;
  top: 1.25rem;
  left: 1.16rem;
  z-index: 3;
}

@media (min-width: 768px) {
  .profil-page .timeline-award-item:nth-child(odd)::after {
    right: -9px;
    left: auto;
  }

  .profil-page .timeline-award-item:nth-child(even)::after {
    left: -9px;
  }
}

.profil-page .timeline-award-item .timeline-content {
  padding: 1.25rem;
  padding-top: 1.75rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  position: relative;
}

.profil-page .timeline-award-item .timeline-content h2 {
  font-size: 1.05rem;
  color: #004d40;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.profil-page .year-badge {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  background-color: #ffb300;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .profil-page .timeline-award-item:nth-child(even) .year-badge {
    left: auto;
    right: 1rem;
  }
}

.profil-page .award-detail img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
}

.profil-page .award-pemberi {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
}

.profil-page .pagination {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.profil-page .empty-state img {
  max-width: min(200px, 60vw);
  height: auto;
}
