/* style.css */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #fbbf24;
  --accent: #ffbb00;
  --light-bg: #000000;
  --dark-text: #ffffff;
  --medium-text: #e2e8f0;
  --light-text: #cbd5e1;
  --white: #1a1a1a;
  --success: #ff9900;
  --warning: #fbbf24;
  --error: #ff9900;
  --link-color: #ff9900;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-text);
  margin-top: 0;
}

p {
  margin-bottom: 1rem;
  color: var(--medium-text);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.btn {
  background: var(--success);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  color: #ffffff;
  text-decoration: none;
}

.btn-login {
  background: transparent;
  border: 2px solid var(--success);
  color: var(--success);
}

.btn-login:hover {
  background: var(--success);
  color: #ffffff;
}

.btn-register {
  background: var(--success);
  color: #ffffff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

.logo {
  height: 40px;
  width: auto;
  margin-right: 30px;
}

.nav-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  color: #ff9900;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fbbf24;
}

@media (max-width: 768px) {
  .logo {
    margin-right: 15px;
  }

  .nav-links {
    display: none;
  }

  .header-content {
    justify-content: space-between;
  }

  .auth-buttons {
    gap: 8px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 32px;
    margin-right: 10px;
  }

  .auth-buttons {
    gap: 6px;
  }

  .btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.auth-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.running-text-container {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--success), var(--accent));
  color: var(--white);
  padding: 10px 15px;
  z-index: 99;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
}

.running-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-login {
  border: 1px solid var(--success);
  color: var(--success);
  background: transparent;
}

.btn-login:hover {
  background-color: var(--success);
  color: #000000;
}

.btn-register {
  background: var(--success);
  color: #000000;
  border: 1px solid var(--success);
}

.btn-register:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.main-content {
  margin-top: 100px;
  margin-bottom: 0px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
}

/* Exception untuk hero section agar banner bisa full width */
.section-container:has(.hero-section) {
  max-width: none;
  overflow: visible;
}

/* Fallback untuk browser yang tidak support :has() selector */
.hero-banner-section {
  max-width: none;
  overflow: visible;
}

/* Exception untuk halaman non-homepage agar banner tidak terpotong */
.section-container:has(.page-banner) {
  max-width: none;
  overflow: visible;
}

/* Fallback untuk browser yang tidak support :has() selector */
.page-banner-section {
  max-width: none;
  overflow: visible;
}

@media (min-width: 1400px) {
  .main-content {
    padding: 20px 60px;
  }

  .section-container {
    padding: 0 40px;
  }
}

/* Responsive adjustments untuk section-container */
@media (max-width: 1200px) {
  .section-container {
    padding: 0 20px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 0 15px;
    max-width: calc(100% - 30px);
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 10px;
    max-width: calc(100% - 20px);
  }
}

/* Khusus untuk div yang berisi title provider */
.section-container div[style*="text-align: center"] {
  padding: 0 10px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

/* Responsif untuk provider title */
@media (max-width: 768px) {
  .provider-title {
    font-size: 18px;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .provider-title {
    font-size: 16px;
    padding: 10px 12px;
  }
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;

  padding-top: 20px;
}

@media (max-width: 768px) {
  .hero-section {
    gap: 20px;
    padding-top: 15px;
  }
}

@media (max-width: 500px) {
  .hero-section {
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 10px;
  }
}

.banner-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  aspect-ratio: 1200 / 630;
  margin: 0 calc(-50vw + 50% + 20px);
  position: relative;
}

@media (max-width: 768px) {
  .banner-container {
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    aspect-ratio: 1200 / 630;
    margin: 0 calc(-50vw + 50% + 15px);
  }
}

@media (max-width: 500px) {
  .banner-container {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    aspect-ratio: 1200 / 630;
    margin: 0 calc(-50vw + 50% + 10px);
  }
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title-container {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-description-container {
  background: var(--white);
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #ff9900;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-title-container,
  .hero-description-container {
    padding: 15px;
  }

  .hero-content {
    gap: 15px;
  }
}

@media (max-width: 480px) {

  .hero-title-container,
  .hero-description-container {
    padding: 10px;
  }
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--medium-text);
  margin-bottom: 15px;
  text-align: justify;
}

.hero-description:last-child {
  margin-bottom: 0;
  margin-top: 0;
}

/* Table Container Styles */
.table-section {
  margin-bottom: 25px;
}

.table-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 0;
  color: var(--light-bg);
  font-weight: 600;
  background-color: var(--accent);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: fit-content;
}

.table-container {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-cell {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}

.table-cell:first-child {
  width: 35%;
  font-weight: 600;
  color: var(--accent);
  background: rgba(220, 38, 38, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.table-cell:last-child {
  width: 65%;
  color: var(--medium-text);
  background: var(--white);
}

.info-table tbody tr:last-child .table-cell {
  border-bottom: none;
}

.info-table tbody tr:hover .table-cell {
  background-color: rgba(251, 191, 36, 0.05);
  transition: background-color 0.3s ease;
}

.info-table tbody tr:hover .table-cell:first-child {
  background-color: rgba(251, 191, 36, 0.15);
}

/* Responsive table styles */
@media (max-width: 768px) {
  .table-title {
    font-size: 18px;
    padding: 12px 15px;
  }

  .table-cell {
    padding: 15px;
    font-size: 14px;
  }

  .table-cell:first-child {
    width: 40%;
  }

  .table-cell:last-child {
    width: 60%;
  }
}

@media (max-width: 480px) {
  .table-title {
    font-size: 16px;
    padding: 10px 12px;
  }

  .table-cell {
    padding: 12px;
    font-size: 13px;
  }

  .table-cell:first-child {
    width: 45%;
  }

  .table-cell:last-child {
    width: 55%;
  }
}

.provider-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 0;
  color: var(--light-bg);
  font-weight: 600;
  background-color: var(--accent);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.box-grid {
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding: 10px 5px 20px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  max-width: 100%;
  box-sizing: border-box;
}

/* Scrollbar styling for webkit browsers */
.box-grid::-webkit-scrollbar {
  height: 8px;
}

.box-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.box-grid::-webkit-scrollbar-thumb {
  background: var(--success);
  border-radius: 10px;
}

.box-grid::-webkit-scrollbar-thumb:hover {
  background: #ff0000;
}

.box {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 auto;
  width: 180px;
  min-width: 180px;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .box {
    width: 150px;
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .box {
    width: 130px;
    min-width: 130px;
  }
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.box-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: var(--white);
  max-width: 100%;
  max-height: 120px;
  box-sizing: border-box;
}

.box-title {
  padding: 12px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  color: var(--accent);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(220, 38, 38, 0.1);
  flex-shrink: 0;
}

/* Override untuk image di dalam box provider games */
.box-grid .box .box-image {
  width: 100% !important;
  height: 120px !important;
  object-fit: contain !important;
  padding: 15px !important;
  background: #1a1a1a !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  max-height: 120px !important;
}

/* Khusus untuk section provider games - pastikan semua elemen dalam kontainer */
.section-container .box-grid {
  contain: layout;
  width: 100%;
  max-width: 100%;
}

.section-container .box-grid .box {
  contain: layout;
  overflow: hidden;
  box-sizing: border-box;
}

/* Rule dengan prioritas tinggi untuk gambar provider games yang memiliki inline style */
.box-grid .box img[style*="width:100%"] {
  width: 100% !important;
  height: 120px !important;
  object-fit: contain !important;
  padding: 15px !important;
  background: #1a1a1a !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 auto !important;
  max-width: calc(100% - 30px) !important;
  max-height: 90px !important;
}

/* Tambahan untuk memastikan box tidak overflow */
.box-grid .box {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
}

@media (max-width: 768px) {
  .box-grid .box {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }
}

@media (max-width: 480px) {
  .box-grid .box {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
  }
}

.testimonial-section {
  margin-bottom: 25px;
}

.testimonial-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 0;
  color: var(--light-bg);
  font-weight: 600;
  background-color: var(--accent);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: fit-content;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 10px;
  }
}

.testimonial-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial-info h4 {
  margin: 0;
  font-size: 14px;
  color: var(--dark-text);
  font-weight: 600;
}

.testimonial-info .game {
  font-size: 12px;
  color: var(--light-text);
  margin: 2px 0 0 0;
}

.testimonial-date {
  font-size: 11px;
  color: var(--light-text);
  margin: 2px 0 0 0;
}

.testimonial-stars {
  margin-left: auto;
  color: var(--warning);
  font-size: 12px;
}

.testimonial-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--medium-text);
  font-style: italic;
  margin-bottom: 10px;
  text-align: center;
}

.testimonial-amount {
  margin-top: 8px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.faq-section {
  margin-bottom: 25px;
}

.faq-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 0;
  color: var(--light-bg);
  font-weight: 600;
  background-color: var(--accent);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-block;
  width: fit-content;
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.faq-item {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333333;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #ff9900;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.faq-button {
  width: 100%;
  background: #1a1a1a;
  border: none;
  padding: 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  outline: none;
}

.faq-button:hover {
  background: #2a2a2a;
  color: #fbbf24;
}

.faq-button:focus {
  background: #2a2a2a;
  color: #fbbf24;
}

.faq-question {
  flex: 1;
  text-align: left;
}

.faq-icon {
  font-size: 20px;
  font-weight: bold;
  color: #ff9900;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #1a1a1a;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px 20px;
}

.faq-answer p {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding-top: 10px;
}

@media (max-width: 768px) {
  .faq-button {
    padding: 15px;
    font-size: 15px;
  }

  .faq-item.active .faq-answer {
    padding: 0 15px 15px 15px;
  }

  .faq-answer p {
    font-size: 13px;
  }

  .faq-icon {
    font-size: 18px;
    margin-left: 10px;
  }
}

@media (max-width: 480px) {
  .faq-button {
    padding: 12px;
    font-size: 14px;
  }

  .faq-item.active .faq-answer {
    padding: 0 12px 12px 12px;
  }

  .faq-answer p {
    font-size: 12px;
  }
}

.copyright-footer {
  text-align: center;
  font-size: 13px;
  color: var(--success);
  margin-bottom: 90px;
}

/* Khusus untuk halaman lain yang tidak punya copyright-footer */
.nav-grid-container {
  margin-bottom: 120px;
}

/* Banner untuk halaman lain (non-homepage) - ukuran lebih besar seperti homepage */
.banner-container.page-banner {
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  aspect-ratio: 1200 / 630;
  margin: 30px calc(-50vw + 50% + 20px) 20px calc(-50vw + 50% + 20px) !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .banner-container.page-banner {
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
    margin: 30px calc(-50vw + 50% + 15px) 20px calc(-50vw + 50% + 15px) !important;
  }
}

@media (max-width: 500px) {
  .banner-container.page-banner {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin: 30px calc(-50vw + 50% + 10px) 20px calc(-50vw + 50% + 10px) !important;
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--light-text);
  font-size: 12px;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-item:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  display: inline-block;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn-footer {
  background: #1a1a1a;
  color: #ff9900;
  border: 1px solid #ff9900;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  margin: 0 4px 8px 0;
  display: inline-block;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-footer:hover {
  background: #fbbf24;
  color: #1a1a1a;
  border-color: #fbbf24;
  text-decoration: none;
}

/* Navigation Grid Layout - 1 row for desktop, 2x2 for mobile */
.nav-grid-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 120px 0;
  width: 100%;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 1fr;
  gap: 15px;
  max-width: 800px;
  width: 100%;
}

.nav-grid .btn-footer {
  padding: 8px 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-grid .btn-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Privacy Policy button - remove full width span for desktop */
.nav-grid .btn-footer.privacy-full {
  grid-column: auto;
}

/* Responsive design for mobile - back to 2x2 grid */
@media (max-width: 768px) {
  .nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    max-width: 400px;
  }

  /* Privacy Policy button spans full width in second row on mobile */
  .nav-grid .btn-footer.privacy-full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .nav-grid {
    max-width: 300px;
    gap: 12px;
  }

  .nav-grid .btn-footer {
    padding: 6px 12px;
    font-size: 12px;
    min-height: auto;
  }
}