/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #154272;
  --navy-dk: #0e2e50;
  --blue-md: #2e7bbf;
  --blue-lt: #68b0d8;
  --blue-pl: #a8d4ee;
  --white: #ffffff;
  --font: 'Inter', Arial, sans-serif;
}

html,
body {
  font-family: var(--font);
  background: #dce9f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  min-height: 78px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background .18s;
  border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, .14);
}

.nav-link i {
  font-size: 13px;
}

.nav-login {
  border: 1px solid rgba(255, 255, 255, .5);
  margin-left: 6px;
  padding: 7px 18px;
  border-radius: 4px;
  font-weight: 500;
}

.nav-login:hover {
  background: rgba(255, 255, 255, .18);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .28s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   PAGE MAIN
   ============================================================ */
.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 48px;
  background: #dce9f5;
}

.page-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* ============================================================
   ID CARD OUTER
   ============================================================ */
.card-outer {
  width: 100%;
  max-width: 440px;
}

.id-card {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--navy);
  box-shadow: 0 10px 44px rgba(14, 46, 80, 0.32), 0 2px 8px rgba(0, 0, 0, .12);
  background: white;
}

/* ============================================================
   CARD HEADER — dark navy
   ============================================================ */
.card-header {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
}

.ch-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  position: relative;
}

.ch-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* diamonds kanan di header */
.ch-deco {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
  align-items: center;
  z-index: 2;
}

.ch-diamond {
  border-radius: 3px;
  transform: rotate(45deg);
}

.ch-d1 {
  width: 28px;
  height: 28px;
  background: var(--blue-md);
  opacity: .9;
}

.ch-d2 {
  width: 18px;
  height: 18px;
  background: var(--blue-lt);
  opacity: .8;
}

/* ============================================================
   CARD TRANSITION BAND — gambar asli topper-biodata.jpg
   ============================================================ */
.card-band {
  width: 100%;
  line-height: 0;
  display: block;
}

.band-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   CARD BODY — topper & footer sebagai background-image
   Konten (foto + tabel) tampil di atas gambar background
   ============================================================ */
.card-body {
  position: relative;
  /* padding-top = tinggi gambar topper, padding-bottom = tinggi gambar footer */
  padding: 80px 28px 90px;
  background-color: #ffffff;
  background-image:
    url('topper-biodata.jpg'),
    url('bottom-biodata.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: top center, bottom center;
  background-size: 100% auto, 100% auto;
}

.body-watermark {
  display: none;
}

.wm-img {
  display: none;
}

/* ============================================================
   BIODATA TITLE
   ============================================================ */
.biodata-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ============================================================
   PHOTO
   ============================================================ */
.photo-area {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.photo-box {
  width: 168px;
  height: 212px;
  background: #cc0000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* shadow saja, tanpa border tebal seperti referensi */
  box-shadow: 0 2px 12px rgba(14, 46, 80, 0.22);
  flex-shrink: 0;
}

.photo-box img,
.photo-box svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table {
  position: relative;
  z-index: 2;
  width: 100%;
  border-collapse: collapse;
}

.data-table tbody tr {
  border-bottom: none;
}

.data-table td {
  padding: 5.5px 0;
  vertical-align: top;
  line-height: 1.55;
}

.data-table .dt-lbl {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  width: 152px;
  min-width: 152px;
  white-space: nowrap;
  letter-spacing: 0em;
}

.data-table .dt-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  padding-left: 14px;
  /* colon sudah termasuk dalam teks nilai */
}

/* ============================================================
   CARD FOOTER — gambar asli bottom-biodata.jpg
   ============================================================ */
.card-footer {
  width: 100%;
  line-height: 0;
  display: block;
}

.footer-img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   SITE FOOTER LOGOS
   ============================================================ */
.site-footer-logos {
  background: var(--navy);
  padding: 36px 28px 20px;
}

.sfl-inner {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.sfl-img {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  object-fit: contain;
}

.sfl-addr {
  text-align: center;
  margin-top: 20px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .6);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   COPYRIGHT
   ============================================================ */
.site-copyright {
  background: #000;
  padding: 10px 16px;
  text-align: center;
}

.site-copyright p {
  color: rgba(255, 255, 255, .75);
  font-size: 11.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--navy-dk);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    z-index: 899;
  }

  .nav-menu.open {
    display: flex;
  }

  .navbar-inner {
    position: relative;
  }

  .nav-link {
    font-size: 13.5px;
    padding: 11px 14px;
  }

  .nav-login {
    margin-left: 0;
  }

  .logo-img {
    height: 44px;
  }

  .sfl-img {
    max-width: 95vw;
  }
}

@media (max-width: 460px) {
  .page-heading {
    font-size: 19px;
  }

  .card-outer {
    max-width: 96vw;
  }

  .photo-box {
    width: 140px;
    height: 176px;
  }

  .dt-lbl {
    width: 128px !important;
    min-width: 128px !important;
    font-size: 13px !important;
  }

  .dt-val {
    font-size: 13px !important;
  }

  /* Topper lebih kecil di mobile — kurangi padding-top secara proporsional */
  .card-body {
    padding-top: 75px;
    padding-bottom: 70px;
  }
}

@media (max-width: 380px) {
  .card-body {
    padding-top: 70px;
    padding-bottom: 60px;
  }
}