/* ============================================
   STUDIOBET78 - Mobile Friendly CSS
   Mengatasi semua masalah overflow & potong
   ============================================ */

/* ---- RESET DASAR ---- */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
img, iframe, video, embed, object {
  max-width: 100%;
  display: block;
}

/* ---- CONTAINER ---- */
.container {
  width: 90% !important;
  max-width: 1280px;
  padding-left: 0;
  padding-right: 0;
}

/* ---- NAVIGASI ---- */
nav {
  width: 100%;
  overflow: hidden;
}
nav .nav-wrapper {
  padding: 0 10px;
}
nav .brand-logo img {
  height: 44px !important;
  width: auto;
  padding: 6px 0 !important;
}
.sidenav {
  width: 260px;
  max-width: 85vw;
}
.sidenav li a {
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1.4;
}

/* ---- PARALLAX BANNER ---- */
.parallax-container {
  min-height: 260px;
  overflow: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  overflow-wrap: break-word;
}
p, li, a {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ---- TOMBOL - fix inline margin yang overflow ---- */
.btn, .btn-large, .btn-flat {
  white-space: normal;
  word-break: break-word;
  height: auto;
  line-height: 1.4;
  padding: 10px 20px;
}
.btn-group-mobile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

/* ---- FOOTER ---- */
footer.page-footer {
  margin: 0;
  width: 100%;
  overflow: hidden;
}
footer .col {
  padding: 0 10px;
}

/* ---- CARD ---- */
.card {
  overflow: hidden;
  word-break: break-word;
}

/* ---- OL / UL ---- */
ol, ul {
  padding-left: 22px;
}
ol li, ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ---- SECTION PADDING ---- */
.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ================================================
   BREAKPOINT: TABLET (max 992px)
   ================================================ */
@media only screen and (max-width: 992px) {
  .parallax-container .section {
    position: relative !important;
    top: auto !important;
  }
  #index-banner .section {
    top: auto !important;
    padding-top: 1.5rem;
  }
}

/* ================================================
   BREAKPOINT: MOBILE (max 600px)
   ================================================ */
@media only screen and (max-width: 600px) {

  /* Container lebih lebar di HP */
  .container {
    width: 94% !important;
  }

  /* Navbar: logo tengah, hamburger kiri */
  nav .brand-logo {
    left: 50% !important;
    transform: translateX(-50%);
    right: auto !important;
    font-size: 1rem;
  }
  nav .brand-logo img {
    height: 38px !important;
  }

  /* Typography scale-down */
  h1 { font-size: 1.8rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.5rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.3rem !important; }
  h4 { font-size: 1.1rem !important; }
  h5 { font-size: 1rem !important; }
  p  { font-size: 0.95rem; line-height: 1.7; }

  /* H1 BebasNeue khusus index */
  h1.wh1 {
    font-size: 2.2rem !important;
    letter-spacing: 1px;
    text-shadow: 2px 1px 3px #fff;
  }
  h4.wh2 {
    font-size: 1.1rem !important;
  }

  /* Tombol: full width, stack vertikal */
  .btn, .btn-large {
    display: block !important;
    width: 100% !important;
    margin: 6px 0 !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    text-align: center;
  }

  /* Row center dengan tombol berdampingan */
  .row.center .btn-large,
  .row.center .btn {
    display: block !important;
    width: 100% !important;
    margin: 6px auto !important;
  }

  /* Parallax banner */
  .parallax-container {
    min-height: 180px;
  }
  #index-banner {
    min-height: 220px;
  }
  #index-banner .container {
    padding-top: 16px;
    padding-bottom: 8px;
  }

  /* Icon block spacing */
  .icon-block {
    padding: 0 8px;
    margin-bottom: 20px;
  }

  /* Footer */
  footer .col.l6,
  footer .col.l3 {
    margin-bottom: 20px;
  }
  .footer-copyright {
    font-size: 0.78rem;
    padding: 10px 0;
  }

  /* Ol/Ul */
  ol, ul {
    padding-left: 18px;
  }
  ol li, ul li {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  /* Card */
  .card .card-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
  .card-content {
    padding: 16px !important;
  }

  /* Section spacing */
  .section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* Artikel/TOS/Rules: center headings */
  h1.white-text.center {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    padding: 0 4px;
  }
}

/* ================================================
   BREAKPOINT: KECIL SEKALI (max 380px)
   ================================================ */
@media only screen and (max-width: 380px) {
  h1 { font-size: 1.5rem !important; }
  h1.wh1 { font-size: 1.8rem !important; }
  .container { width: 96% !important; }
  nav .brand-logo img { height: 32px !important; }
}
