/* 
  tentang-kami.css - Styles for Tentang Kami Page
  Uses tokens from tokens.css
*/

/* Hero - Visi Misi */
.hero-about {
  padding-top: 140px;
  padding-bottom: var(--space-xxxl);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.hero-about-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-xxxl) auto;
}

.hero-about-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-primary);
  line-height: 1.2;
}

.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxxl);
}

.visi {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1.4;
  padding-right: var(--space-lg);
  border-right: 1px solid #e2e8f0;
}

.misi h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-main);
  margin: 0 0 var(--space-md) 0;
}

.misi ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.misi ul li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
}

.misi ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
  font-weight: bold;
}

.core-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.value-card {
  background-color: var(--color-bg-light);
  border: 1px solid #e2e8f0;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  border-color: var(--color-primary-light);
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0;
}

/* History Section */
.history-section {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-xxxl) var(--space-md);
}

.history-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.history-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0 0 var(--space-lg) 0;
  color: var(--color-accent-gold);
}

.history-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-md);
}

.history-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  height: 500px;
}

.history-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Timeline */
.timeline-section {
  padding: var(--space-xxxl) var(--space-md);
  background-color: var(--color-paper-light);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.timeline-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
}

.timeline {
  display: flex;
  position: relative;
  gap: var(--space-xl);
}

.timeline-years {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  border-right: 2px solid #e2e8f0;
  padding-right: var(--space-lg);
}

.year-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: right;
  padding: var(--space-xs) 0;
  transition: all 0.3s ease;
  position: relative;
}

.year-btn::after {
  content: '';
  position: absolute;
  right: calc( (var(--space-lg) * -1) - 6px );
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e2e8f0;
  transition: all 0.3s ease;
}

.year-btn.active {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: bold;
}

.year-btn.active::after {
  background-color: var(--color-accent-gold);
  transform: translateY(-50%) scale(1.5);
}

.timeline-content-area {
  flex-grow: 1;
  position: relative;
}

.timeline-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.timeline-content.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateY(0);
}

.timeline-content h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.75rem;
  margin: 0 0 var(--space-sm) 0;
}

.timeline-content p {
  color: var(--color-text-main);
  line-height: 1.6;
}

/* Facilities Gallery */
.facilities-section {
  padding: var(--space-xxxl) var(--space-md);
  background-color: white;
}

.facilities-container {
  max-width: 1200px;
  margin: 0 auto;
}

.facilities-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.facilities-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: var(--space-xl) var(--space-md) var(--space-md);
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--space-md);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: var(--space-md) 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.btn-close-lightbox {
  position: absolute;
  top: calc(var(--space-xl) * -1);
  right: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 2rem;
}

/* Leadership Section */
.leadership-section {
  padding: var(--space-xxxl) var(--space-md);
  background-color: var(--color-bg-light);
}

.leadership-container {
  max-width: 1200px;
  margin: 0 auto;
}

.leadership-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.leadership-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.leadership-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.leader-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-8px);
}

.leader-img-wrapper {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.leader-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leader-info {
  padding: var(--space-lg);
  text-align: center;
}

.leader-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-xs) 0;
}

.leader-info p {
  color: var(--color-accent-gold);
  font-weight: 600;
  margin: 0;
  font-size: 0.95rem;
}

/* Map Section */
.map-section {
  position: relative;
  height: 500px;
  background-color: #e2e8f0;
}

.map-embed {
  width: 100%;
  height: 100%;
  border: none;
  /* removed grayscale filter to make the map vibrant and visible */
}

.map-card {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  max-width: 350px;
  z-index: 1000;
}

.map-card h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.5rem;
  margin: 0 0 var(--space-sm) 0;
}

.map-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .visi-misi-grid {
    grid-template-columns: 1fr;
  }
  .visi {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding-right: 0;
    padding-bottom: var(--space-lg);
  }
  .history-container {
    grid-template-columns: 1fr;
  }
  .history-visual {
    height: 300px;
  }
  .map-card {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .timeline {
    flex-direction: column;
  }
  .timeline-years {
    flex-direction: row;
    border-right: none;
    border-bottom: 2px solid #e2e8f0;
    padding-right: 0;
    padding-bottom: var(--space-sm);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .timeline-years::-webkit-scrollbar {
    display: none;
  }
  .year-btn {
    text-align: center;
  }
  .year-btn::after {
    top: auto;
    bottom: calc( (var(--space-sm) * -1) - 6px );
    left: 50%;
    transform: translateX(-50%);
  }
  .year-btn.active::after {
    transform: translateX(-50%) scale(1.5);
  }
}
