/* =========================
   GLOBAL SCROLL
========================= */
html {
  scroll-behavior: smooth;
}

 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.6;
  background: url("../imgs/index_bg.png") center / cover no-repeat fixed;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(120, 120, 120, 0.35); /* grey tint */
  z-index: -1;
}

/* =========================
   BACK BUTTON
========================= */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 20px;
  margin-left:40px;

  padding: 8px 16px;

  background: rgba(0, 0, 0, 0.5);
  color: white;

  border: none;
  border-radius: 6px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: background 0.25s ease, transform 0.2s ease;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}


/* =========================
   ORGANIZATIONAL CHART
========================= */
.org-chart-section {
  padding: 240px 50px;
  background:rgba(0,0,0,.55);
  color:white;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #ffffff;
  margin-bottom: 50px;
}

.org-chart-wrapper {
  display: inline-block;
  padding: 20px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  cursor: zoom-in;
}

.org-chart-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
}

#lightboxImg {
  max-width: 100%;
  max-height: 90vh;
  transition: transform 0.2s ease;
  transform-origin: center center;
  cursor: grab;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}