/* Navbar Container */
.navbar {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticky-header-desktop {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;              /* prevent bleed-through */
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0 2px 8px rgba(0,0,0,.05); /* optional */
  }

.sticky-header-mobile {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #fff;              /* prevent bleed-through */
  border-bottom: 1px solid #ebebeb;
  /* box-shadow: 0 2px 8px rgba(0,0,0,.05); */
}

/* Logo */
.logo {
  height: 40px;
  width: auto;
}

@media (min-width: 768px) {
  .logo {
    height: 48px;
  }
}

/* Desktop Nav */
.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2vw;
    /* gap: 40px; */
  }
}

.nav-link {
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none;
}

.nav-link.active {
  border-bottom: 2px solid #e60023; /* highlight active page */
}

/* Auth Buttons (desktop) */
.auth-buttons {
  display: none;
}

@media (min-width: 1024px) {
  .auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.btn-login {
  color: #1a1a1a;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #f5f5f5;
}

.btn-signup {
  background: #e60023;
  color: #fff;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-download-apk {
  background: black;
  color: #fff;
  /* font-weight: bold; */
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-right: 2rem;
}

.btn-blog:hover{
  transform: scale(1.1);
}

.btn-download-ios {
  background: #dbdbdb;
  color: black;
  /* font-weight: bold; */
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-signup:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

/* Mobile Menu Button */
.menu-button {
  display: block;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.menu-button:hover {
  background: #f5f5f5;
}

@media (min-width: 1024px) {
  .menu-button {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 0 24px 16px;
  /* border-top: 1px solid #e5e5e5; */
  width: 100%;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.mobile-link:hover {
  background: #f9f9f9;
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.mobile-auth .btn-login,
.mobile-auth .btn-signup {
  width: 100%;
}

/* stat box */
.stat-box {
  text-align: center;
  align-items: center;
  background: #fff;       /* white background */
  padding: 20px 30px;
  border-radius: 8px;     /* rounded corners */
  box-shadow: 0 3px 22px rgb(141 138 138 / 32%); /* subtle shadow */
  /* max-width: 300px; */
}

.stat-box .content h2 {
  margin: 0;
  font-size: 14px;
  color: #0d2b6b; /* dark blue */
}

.stat-box .content p {
  margin: 0;
  font-size: 42px;
  color: #251e1e;
  font-weight: bold;
}

.game-box {
  text-align: center;
  align-items: center;
  background: #fff;
  /* padding: 20px 30px; */
  border-radius: 20px;
  box-shadow: 0 3px 22px rgb(141 138 138 / 32%);
  padding-bottom: 1.5rem;
  /* max-width: 300px; */
}

.game-box .content h2 {
  margin: 0;
  font-size: 25px;
  color: #0d2b6b; /* dark blue */
}

.game-box .content p {
  margin: 0;
  font-size: 14px;
  color: #555;
  /* font-weight: bold; */
}

/* white body */
.white-body {
  background-color: white;
}

.grey-body {
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.footer-color {
  /* background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1)); */
  /* background-color: rgb(85 116 183); */
  background-color: white;
}

@media (min-width: 992px) {
  /* body content */
  .body-width {
    width: 75%;
    margin: 0 auto;
  }

  /* .section-about {
    padding-top: 60px;
  } */

  .faq-title {
    font-size: 30px;
    margin-bottom: 1rem;
    /* padding-top: 60px; */
    /* padding-bottom: 30px; */
    font-weight: bold;
  }

  .faq-content {
    font-size: 18px;
  }

  .section-faq {
    /* padding-top: 60px; */
    padding-top: 3rem;
    padding-bottom: 3rem;
    scroll-margin-top: 60px;
  }

  .section-games {
    padding-top: 60px;
    scroll-margin-top: 60px;
  }
  
}

@media (max-width: 991px) {
  /* body content */
  .body-width {
    width: 95%;
    margin: 0 auto;
  }

  .btn-download-apk {
    margin-right: unset;
  }

  .faq-title {
    font-size: 25px;
    /* padding-top: 25px; */
    /* padding-bottom: 10px; */
    font-weight: bold;
  }

  .faq-content {
    font-size: 14px;
  }

  .section-faq {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    scroll-margin-top: 60px;
  }

  .section-games {
    padding-top: 30px;
    scroll-margin-top: 60px;
  }
}

/* faq */
.subtitle{
  color:var(--muted);text-align:center;margin:0 0 26px;font-size:18px;
}

details{
  margin:16px 0;
  border:1px solid #e6e8ee;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}

summary{
  list-style:none;
  cursor:pointer;
  padding:18px 56px 18px 18px;
  position:relative;
  font-weight:700;
  display:flex; align-items:center; gap:.6rem;
  outline:none;
}
/* summary::-webkit-details-marker{display:none} */
.num{
  font-weight:800; margin-right:.4rem;
}
/* caret icon */
.caret{
  position:absolute;right:16px;top:50%;translate:0 -50%;
  width:20px;height:20px;display:inline-grid;place-items:center;
  transition:transform .25s ease;
}
details[open] .caret{transform:translateY(-50%) rotate(180deg)}
.caret svg{display:block}
/* active/hover state */
details.active summary, details[open] summary{
  color:var(--brand);
}
/* details:hover{border-color:#dfe3ec} */
details:hover{
  border-color:#dfe3ec
}

.panel{
  padding:0 18px 18px 18px;
  color:#404a5a;
  line-height:1.65;
  border-top: 1px solid #dfdfdf;
  padding-top: 10px;
}
.panel p{
  margin:0

}
/* subtle divider between items inside an open card */
.panel + .panel{
  border-top:1px solid var(--border)
}

/* small screen tweaks */
@media (max-width:520px){
  h1{font-size:36px}
  .subtitle{font-size:16px}
  summary{padding-right:48px}
}


.header-padding {
  margin-bottom: 2rem;
  text-align: left;
}

.header-title {
  font-size: 48px;
  margin-top: 3rem;
}

/* .header-title {
  font-size: 30px;
  margin-top: 1rem;
  margin-bottom: 1rem;
} */

.section-title {
  font-size: 30px;
  margin-bottom: 1rem;
}

.section-content {
  font-size: 18px;
}

.section-content-small {
  font-size: 14px;
}

.section-button {
  margin-bottom: 3rem;
  font-size: 18px;
  margin-top: 1rem;
  display: flex;
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* section about */
.flex-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 1;
}

.about-content {
  padding-right: 1rem;
}

.about-image {
  padding-left: 1rem;
}

.why-button {
  display: flex;
  font-size: 18px;
  margin-top: 1rem;
  /* margin-bottom: 3rem; */
  align-items: center;
}

/* table */
.specs__title{
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    font-weight:700;
    margin:0 0 12px 0;
    font-size:clamp(20px,2.4vw,30px);
    color:#111827;
  }
  .specs__card{
    max-width:1100px;
    border-radius:8px;
    background:#fff;
    padding:14px 12px;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color:#111827;
  }
  .specs__table{
    width:100%;
    border:1px solid #e5e7eb;
    border-radius:6px;
    border-collapse:separate;
    border-spacing:0;
    overflow:hidden;
  }
  .specs__table thead tr{
    background:#fafafa;
    color:#374151;
    font-weight:600;
  }
  .specs__table th,
  .specs__table td{
    padding:12px 14px;
    border-top:1px solid #f3f4f6;
    font-size:clamp(14px,2.2vw,18px);
    text-align:left; /* mobile: left */
  }
  .specs__table thead th{
    border-bottom:1px solid #f3f4f6;
    font-size:clamp(16px,2.6vw,20px);
  }
  .specs__table tbody tr:first-child td{ border-top:none; }

  .specs__tip{
    margin:10px 2px 0;
    font-size:clamp(12px,2vw,14px);
    color:#374151;
  }


@media (max-width:991px){
  .header-title {
    font-size: 25px;
    margin-top: 1.5rem;
  }

  .header-title {
    font-size: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 20px;
    /* margin-top: 1rem; */
    margin-bottom: 1rem;
  }

  .section-content {
    font-size: 14px;
  }

  .section-content-small {
    font-size: 10px;
  }

  .header-padding {
    margin-bottom: 1rem;
  }

  .section-button {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    gap: 1rem;
    font-size: 14px;
    display: flex;
    justify-content: center;
  }

  .section-padding {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* section about */
  .flex-section {
    flex-direction: column !important;
  }

  .flex-section .flex-1 .section-title {
    padding-top: 1rem;
  }

  .flex-1 {
    flex: unset;
  }

  .flex-2 {
    flex: unset;
  }

  .about-content {
    padding-right: unset;
  }

  .about-image {
    padding-left: unset;
    padding-top: 1rem;
  }

  .about-image img { 
    width:100%; height:auto; display:block;
  }

  .flex-2{
    order:-1;
  }

  /* download why section */
  .why-button {
    display: block;
    font-size: 14px;
    margin-top: 1rem;
    text-align: center;
  }

  .why-button .btn-download-apk {
    margin-bottom: 0.5rem;
  }

  /* table */
  /* .specs.section-padding{ padding-top:2rem; padding-bottom:2rem; } */
  .specs__table th, .specs__table td{ text-align:center; } /* desktop: center cells */
  .specs__card{ padding:14px 16px; width: 100%; }
}

@media (max-width:400px){
  .specs__card {
    padding:14px 0px;
  }
}


.table-wrapper {
    width: 100%;
    overflow-x: auto;      /* mobile: allow horizontal scroll */
  }

  .game-table {
    width: 100%;
    min-width: 750px;      /* force scroll on small screens */
    border-collapse: collapse;
    font-size: 14px;
  }

  .game-table th,
  .game-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;   /* keep each cell in one line */
  }

  .game-table th:nth-child(6),
  .game-table td:nth-child(6) {
    white-space: normal;   /* let “Ringkasan” wrap */
  }

  .game-table th {
    font-weight: 600;
  }

  .dropdown-item:hover {
    background-color: #000 !important;
    color: #fff !important;
}