/* =========================
   CSS VARIABLES
========================= */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;  --danger: #dc2626;
  --danger-hover: #b91c1c;
}

/* =========================
   RESET & DASAR
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   NAVBAR (DESKTOP)
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 1px 30px;
  color: #404040;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2000;
}

.logo img {
  height: 100px;
  width: 100px;
  display: inline-block;
}

.theme-toggle {
  border: 1px solid gray;
  background: var(--surface);
  color: var(--text-main);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
  margin-left: 16px;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.theme-toggle-dark { display: none; }
html.dark .theme-toggle-light { display: none; }
html.dark .theme-toggle-dark { display: inline; }

.nav-links {
  display: flex;
  list-style: none !important;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none !important;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: gray;
  font-size: 17px;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links li a.navbaractive {
  color: blue;
}

/* =========================
   HAMBURGER
========================= */
.nav-toggle { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 30px;
  height: 24px;
  z-index: 2001;
  position: relative;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #1f2dbf;
  border-radius: 3px;
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s ease;
}

.nav-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================
   GOOGLE TRANSLATE
========================= */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-logo-link { display: none !important; }
.goog-te-gadget span { display: none !important; }

#google_translate_element {
  display: inline-flex;
  align-items: center;
  position: relative;
}

#google_translate_element select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 40px 10px 14px;
  border: 1px solid blue;
  border-radius: 8px;
  background: #fff;
  color: blue;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  line-height: 1;
}

#google_translate_element::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: blue;
  pointer-events: none;
  font-size: 14px;
}

/* =========================
   DETAIL WRAP
========================= */
.detail-wrap {
  width: min(760px, 92vw);
  margin: 32px auto 60px;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  color: black;
  margin-bottom: 14px;
  font-weight: 600;
}
.back-link:hover { color: var(--text); }

.detail-card { background: transparent; }

/* Single column — media on top, spec below */
.detail-grid { display: none; } /* not used anymore */

/* TOP: media card — centered content */
.media-card {
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  border-bottom: none;
  text-align: center;
}

.media-frame {
  padding: 30px 30px 18px;
  background: #fff;
  display: flex;
  justify-content: center;
}

.detail-img {
  width: auto;
  max-width: 280px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.meta {
  padding: 4px 24px 28px;
}

.title {
  margin: 8px 0 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.title-desc {
	  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: justify;
  line-height: 1.6;
  padding-right: 5px;
  padding-left: 5px;
}

/* BOTTOM: spec card — full width, no title header */
.spec-card {
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  border-top: none;
  padding: 0 0 18px;
  overflow: hidden;
}

.spec-title { display: none; } /* hidden — no separate title needed */

/* Grid of spec cards — 2 columns */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-item {
  padding: 28px 24px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.spec-item:nth-child(2n) {
  border-right: none;
}

.spec-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item:hover { background: #f8fafc; }

.icon-box { display: none; }

.spec-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.07em;
}

.spec-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.spec-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 2px;
}

/* Buttons */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 0 18px;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, opacity .15s ease;
  user-select: none;
}

.btn:active { transform: translateY(1px); }
.btn-primary { background: black; color: #fff; border-radius: 8px; }
.btn-primary:hover { background: #143D99; }
.btn-danger {color: red; border-radius: 8px; margin-bottom: 10px}
.btn-danger:hover { color: var(--danger-hover); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background-color: #020B40;
  color: white;
  padding: 48px 0 20px;
}

.footer-branch {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.footer-wrap {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr .85fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-col {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-title {
  font-size: 22px;
  margin: 0 0 14px;
  font-weight: 800;
  color: white;
}

.footer-text {
  margin: 0;
  color: #eaf0ff;
  font-size: 14px;
  text-align: justify;
  line-height: 1.55;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.footer-list li {
  color: #eaf0ff;
  font-size: 14px;
  line-height: 1.5;
}

.footer-list li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.footer-list a:hover,
.footer-list li a.active {
  color: blue;
  transition: 0.1s ease-in-out;
}

/* Social icons */
.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.facebook, .youtube, .tiktok, .linkedin, .instagram {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: transform 0.3s ease-in-out;
}

.facebook:hover, .youtube:hover, .tiktok:hover,
.linkedin:hover, .instagram:hover {
  transform: translateY(-5px);
}

.footer-bottom {
  width: 90%;
  max-width: 1300px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 13px;
  color: #eaf0ff;
}

.footer-divider {
  background: rgba(255,255,255,.35);
  height: 1px;
  width: 100%;
  display: block;
  margin-bottom: 20px;
}

/* =========================
   RESPONSIVE — TABLET (≤ 1100px)
========================= */
@media (max-width: 1100px) {
  .footer-wrap { grid-template-columns: 1fr 1fr; }
		.btn-danger {
		display: flex;
		justify-content: flex-start;
	}
}

/* =========================
   RESPONSIVE — MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {
  .navbar { flex-wrap: nowrap; padding: 10px 18px; }
  .logo img { width: 70px; height: 70px; }

  .hamburger { display: flex !important; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 110px 28px 40px;
    gap: 0;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.28s ease;
    z-index: 1999;
    overflow-y: auto;
  }
	
	.btn-danger {
		display: flex;
		justify-content: flex-start;
	}
  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    list-style: none !important;
    width: 100%;
    border-bottom: 1px solid #ebebeb;
    padding: 0;
    margin: 0;
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
  }

  .nav-links a.navbaractive { color: #1f2dbf; font-weight: 600; }
  .nav-links a:hover { color: #1f2dbf; padding-left: 4px; }

  .nav-links li:has(#google_translate_element) {
    border-bottom: none;
    padding: 24px 0 8px;
  }

  #google_translate_element { width: 100%; justify-content: flex-start; }

  #google_translate_element select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1.5px solid #1f2dbf;
    border-radius: 10px;
    color: #1f2dbf;
    font-weight: 700;
    font-size: 14px;
  }

  /* Detail — already single column, just fix spec grid */
  .spec-grid { grid-template-columns: 1fr; }
  .spec-item { border-right: none !important; }
  .spec-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .spec-item:last-child { border-bottom: none; }
  .detail-img { max-width: 200px; height: 160px; }

  .actions { flex-direction: column; padding: 0 14px; }
  .btn { width: 100%; }

  .footer-wrap { grid-template-columns: 1fr; gap: 22px; }
}

/* =========================
   HP kecil
========================= */
@media (max-width: 420px) {
  .title { font-size: 20px; }
  .logo img { width: 60px; height: 60px; }
		.btn-danger {
		display: flex;
		justify-content: flex-start;
	}
}

/* =========================
   DARK MODE
========================= */
html.dark {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --line: #334155;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --danger: #ef4444;
  --danger-hover: #dc2626;
}

html.dark body { background: var(--bg); color: var(--text); }

html.dark .navbar {
  background-color: #111827;
  color: #e5e7eb;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.35);
}

html.dark .nav-links a { color: #e5e7eb; }
html.dark .nav-links a:hover { color: #93c5fd; }
html.dark .nav-links li a.navbaractive { color: #93c5fd; font-weight: 650; }

html.dark #google_translate_element select {
  background: #111827;
  color: #93c5fd;
  border-color: #334155;
}

html.dark #google_translate_element::after { color: #93c5fd; }
html.dark .back-link { color: #93c5fd; }
html.dark .back-link:hover { color: #bfdbfe; }

html.dark .media-card,
html.dark .spec-card,
html.dark .empty-state {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

html.dark .media-frame { background: #111827; }
html.dark .detail-img { background: #1f2937; border-color: var(--line); }

html.dark .title,
html.dark .spec-title { color: #f8fafc; }

html.dark .desc { color: var(--muted); }

/* Spec grid dark mode */
html.dark .spec-grid { border-color: var(--line); }

html.dark .spec-item { background: var(--card); border-color: var(--line); }
html.dark .spec-item:hover { background: #1e293b; }

html.dark .spec-label { color: #60a5fa; }
html.dark .spec-value { color: #f1f5f9; }
html.dark .spec-desc { color: var(--muted); }

html.dark .btn-primary { background: #2563eb; }
html.dark .btn-primary:hover { background: #1d4ed8; }
html.dark .btn-danger { color: #f87171; }
html.dark .btn-danger:hover { color: #fca5a5; }

html.dark .site-footer { background-color: #020617; }
html.dark .footer-text,
html.dark .footer-list li,
html.dark .footer-bottom { color: #cbd5e1; }
html.dark .footer-list li a { color: #ffffff; }
html.dark .footer-list a:hover,
html.dark .footer-list li a.active { color: #93c5fd; }

/* =========================
   DARK MODE MOBILE
========================= */
@media (max-width: 768px) {
  html.dark .nav-links { background: #111827; }
  html.dark .nav-links li { border-bottom: 1px solid #334155; }
  html.dark .nav-links a { color: #e5e7eb; }
  html.dark .nav-links a.navbaractive,
  html.dark .nav-links a:hover { color: #93c5fd; }
  html.dark #google_translate_element select {
    background: #111827;
    color: #93c5fd;
    border: 1.5px solid #334155;
  }
}