/* GIGA88 override — struktur dan CSS dasar template tetap dipertahankan. */
:root {
  --giga88-blue: #0878da;
  --giga88-bright: #18a4ff;
  --giga88-dark: #034e9a;
  --giga88-navy: #031426;
  --giga88-text: #17243a;
  --giga88-soft: #eef7ff;
}

html,
body {
  max-width: 100%;
  background: var(--giga88-soft) !important;
  overflow-x: hidden;
}

header[data-testid="standard-header"],
footer,
[data-testid="footer-standard"] {
  color: #fff !important;
  border-color: rgba(24, 164, 255, .3) !important;
  background: var(--giga88-navy) !important;
}

header[data-testid="standard-header"] a,
header[data-testid="standard-header"] button,
footer a,
footer button {
  color: #fff !important;
}

header[data-testid="standard-header"] button:hover,
header[data-testid="standard-header"] a:hover,
footer a:hover {
  color: #70caff !important;
}

[data-testid="envato-logo"] {
  display: flex !important;
  min-width: 145px;
  align-items: center;
}

[data-testid="envato-logo"] img {
  width: auto !important;
  max-width: 175px !important;
  height: auto !important;
  max-height: 58px !important;
  object-fit: contain !important;
}

main img:not([id^="batBeacon"]) {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

a,
[role="link"] {
  color: var(--giga88-blue);
}

button,
[role="button"],
a[class*="button"],
a[class*="Button"] {
  border-color: var(--giga88-blue) !important;
}

button:hover,
[role="button"]:hover {
  border-color: var(--giga88-bright) !important;
}

/* Hilangkan portal/modal hasil snapshot agar tidak menutupi halaman. */
.ReactModalPortal,
#credential_picker_container,
iframe[title*="Sign in"],
iframe[id*="Cookiebot"],
img[id^="batBeacon"] {
  display: none !important;
}

.giga88-article {
  position: relative;
  z-index: 2;
  display: flow-root;
  clear: both;
  width: 100%;
  padding: 40px 18px;
  color: var(--giga88-text);
  background:
    radial-gradient(circle at 100% 0, rgba(24, 164, 255, .12), transparent 28rem),
    var(--giga88-soft);
  box-sizing: border-box;
}

.giga88-article__inner {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(8, 120, 218, .24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(3, 51, 94, .11);
  box-sizing: border-box;
}

.giga88-article h1 {
  margin: 0 0 24px;
  color: var(--giga88-navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
}

.giga88-article h2 {
  margin: 30px 0 10px;
  color: var(--giga88-blue);
  font-size: 24px;
  line-height: 1.35;
}

.giga88-article p {
  margin: 0 0 17px;
  color: var(--giga88-text);
  font-size: 16px;
  line-height: 1.78;
  text-align: justify;
}

.giga88-article a {
  color: var(--giga88-blue) !important;
  font-weight: 700;
  text-decoration: underline;
}

@media only screen and (max-width: 767px) {
  html,
  body,
  #app,
  main,
  main > div,
  header,
  footer {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  header[data-testid="standard-header"] {
    position: relative !important;
    inset: auto !important;
  }

  [data-testid="envato-logo"] {
    min-width: 0;
  }

  [data-testid="envato-logo"] img {
    max-width: 145px !important;
    max-height: 48px !important;
  }

  main img:not([id^="batBeacon"]) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .giga88-article {
    padding: 20px 10px;
  }

  .giga88-article__inner {
    width: 100%;
    padding: 22px 16px;
    border-radius: 13px;
  }

  .giga88-article h1 {
    margin-bottom: 19px;
    font-size: 27px;
    line-height: 1.3;
  }

  .giga88-article h2 {
    margin-top: 25px;
    font-size: 21px;
  }

  .giga88-article p {
    font-size: 15px;
    line-height: 1.72;
    text-align: left;
    overflow-wrap: anywhere;
  }
}
