/* Custom Page Styles for Informasi Template */

/* Section Pages */
.section-pages {
  font-family: Poppins;
  font-size: 14px;
}

/* Custom Header Background Sub */
.custom-header-bg-sub {
  background-color: #6936d3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 60px 0;
}

.custom-header-bg-sub__head {
  width: 100%;
}

.custom-header-bg-sub__content {
  align-items: center;
  min-height: 300px;
}

.custom-header-bg-sub__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.custom-header-bg-sub__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-header-bg-sub-title {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 20px 0;
}

.custom-header-bg-sub-subtitle {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

.custom-header-image {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}

/* Sub News Titles */
.sub-news-title {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  margin: 0 0 40px;
}

.news > div > div.sub-news-title:not(:first-child) {
  margin-top: 80px;
}

.sub-news-title-2 {
  font-family: 'Poppins';
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  margin: 80px 0px 16px;
}

/* Vision Mission Section */
.visimisi {
  padding: 60px 0;
}

.vision-img-main {
  text-align: center;
}

.vision-img-main img {
  max-width: 100%;
  height: auto;
}

.vision-content {
  padding: 20px 0;
}

.title-visi {
  font-weight: 600;
  font-size: 18px;
  margin: 20px 0 16px;
  color: #1f2e45;
}

.content-container {
  margin-bottom: 24px;
}

.content {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.col-img-content {
  margin-right: 16px;
  flex-shrink: 0;
}

.col-img-content img {
  width: 20px;
  height: 20px;
}

.text-content {
  font-size: 14px;
  line-height: 21px;
  color: #6b717b;
}

/* Timeline Styles */
#timeline-container {
  overflow: auto;
  padding: 60px 0 0;
}

#timeline-container .inner-container {
  max-width: 1000px;
  margin: 0 auto;
}

#timeline-container .inner-container .heading {
  text-align: center;
  font-weight: 700;
  font-size: 3rem;
  color: #6b717b;
  margin-top: 0;
}

.timeline {
  position: relative;
  margin-top: 16px;
  margin-left: 5%;
}

.timeline-item {
  color: #6b717b;
  font-size: 14px;
  padding: 0 40px 26px 26px;
  border-left: 2px solid rgba(222, 227, 255, 1);
  position: relative;
  list-style-type: none;
  --item-width: calc(100%);
  margin-top: 8px;
}

.timeline-item::after {
  content: attr(data-date);
  position: absolute;
  right: calc(var(--item-width) + 26px);
  top: -2px;
  float: right;
  font-weight: bold;
  white-space: nowrap;
}

.timeline-item::before {
  content: '';
  border-radius: 50%;
  width: 14px;
  height: 14px;
  background-color: #faf9ff;
  border: 2px solid rgba(222, 227, 255, 1);
  position: absolute;
  left: -8px;
  top: 0px;
}

.timeline-item:last-child {
  border-bottom: none;
  border-left: 4px solid #6936d3;
  padding-bottom: 8px;
  color: #1f2e45;
}

.timeline-item.active::before {
  background-color: #6936d3;
  border: 2px solid #6936d3;
  left: -9px;
}

.timeline-bold {
  margin-top: 10px;
  font-weight: 600;
}

/* History Section */
.history {
  padding: 60px 0;
}

.wrp-img-history {
  text-align: center;
}

.wrp-img-history img {
  max-width: 100%;
  height: auto;
}

/* Struktur Section */
.struktur {
  padding: 60px 0;
}

.wrp-struktur {
  background: #faf9ff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.title-organisasi {
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 24px;
}

.lihat-detail {
  color: #6936d3;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  text-decoration: none;
  background: url(../../../images/icon-lihat-detail.png) no-repeat right;
  padding-right: 30px;
}

.lihat-detail:hover {
  color: #1f2e45;
  text-decoration: none;
}

/* Dewan Section */
.dewan {
  padding: 60px 0;
}

.wrp-dewan {
  vertical-align: middle;
  text-align: center;
  margin-bottom: 40px;
}

.name-board {
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  color: #1f2e45;
  margin: 24px 0px 4px;
}

.title-boar {
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #abadb9;
}

.content-board {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  display: block;
  margin: auto;
  text-align: center;
  color: #6b717b;
  margin-top: 16px;
}

.dewan-komisaris + div .content-board {
  width: 350px;
  padding: 0 40px;
}

.content-board-popup {
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  display: block;
  color: #1f2e45;
  margin-top: 16px;
}

a.btn-profil {
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  margin: 16px 0 80px;
  color: #6936d3;
  text-decoration: none;
  padding: 12px;
}

a.btn-profil:hover {
  color: #1f2e45;
  text-decoration: none;
}

/* Popup Modal */
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 99;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 130px auto;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 50%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 50px;
  text-decoration: none;
  color: #abadb9;
  font-family: 'Poppins';
  font-style: normal;
}

.popup .close:hover {
  color: rgba(105, 54, 211, 1);
}

.popup .up {
  max-height: 70vh;
  overflow: auto;
}

a.close-popup {
  color: #abadb9;
  font-size: 30px;
  line-height: 19px;
  float: right;
  text-decoration: none;
}

a.close-popup:hover {
  color: #6936d3;
  text-decoration: none;
}

/* Komite Section */
.dewan-komite {
  padding: 60px 0;
}

.komite {
  margin-bottom: 40px;
}

.sub-komite-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 27px;
  display: flex;
  align-items: center;
  color: #1f2e45;
  margin-bottom: 16px;
}

.overflow-horizontal {
  overflow-x: auto;
}

.komite table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  min-width: 500px;
}

.komite table th,
.komite table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.komite table th {
  background: #6936d3;
  color: #fff;
  font-weight: 600;
}

.name-komite {
  font-weight: 500;
  color: #1f2e45;
}

/* Narrow sections */
.narrow {
  max-width: 1000px;
  margin: 0 auto;
}

/* Sekretaris Perusahaan */
.sekretaris-perusahaan {
  margin-top: 60px;
}

/* Dewan Direksi */
.dewan-direksi {
  margin-top: 60px;
}

/* Profile image width override */
.wrp-dewan img[style*='width: 200px'] {
  width: 200px !important;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 991px) {
  .popup {
    width: 90%;
    max-width: 500px;
    padding: 24px;
    max-height: 70vh;
  }

  .content-popup {
    max-height: 60vh;
    overflow: auto;
  }

  #timeline-container {
    overflow: unset;
    padding: 24px 0 0;
  }

  .timeline {
    margin: 0 auto;
    position: relative;
    left: 0;
    padding-left: 70px;
  }

  .timeline .timeline-item {
    font-size: 12px;
  }

  .timeline .timeline-item:after {
    font-size: 14px;
  }

  .timeline-item:last-child {
    height: auto;
  }

  /* Custom Header Mobile Styles */
  .custom-header-bg-sub {
    padding: 40px 0;
    min-height: 300px;
  }

  .custom-header-bg-sub__content {
    min-height: auto;
  }

  .custom-header-bg-sub__image {
    margin-bottom: 30px;
  }

  .custom-header-bg-sub-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .custom-header-bg-sub-subtitle {
    font-size: 16px;
  }

  .custom-header-image {
    max-height: 200px;
  }

  .header-bg-sub-title {
    font-size: 24px;
  }

  .header-bg-sub-subtitle {
    font-size: 16px;
  }

  .header-image {
    max-width: 150px;
  }

  .dewan-komisaris + div .content-board {
    width: auto;
    padding: 0 20px;
  }

  .vision-content,
  .history,
  .struktur,
  .dewan,
  .dewan-komite {
    padding: 40px 0;
  }
}
