
:root {
  --bg: #011608;
  --text: #e6e6e6;
  --accent: #42c498;
  --accent-dark: #2e8f6a;
  --hover: #00ffb3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(10, 30, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(66,196,152,0.25);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
}

nav a.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--hover);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
nav a.logo:hover { color: #00ffcc; text-shadow: 0 0 8px var(--hover); }

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
nav ul li a:hover { color: var(--hover); }
nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--hover));
  transform: translateX(-50%);
  transition: all 0.3s ease;
}
nav ul li a:hover::after { width: 100%; }

@media(max-width:768px){
  nav { flex-direction: column; gap: 10px; }
}

/* FRAME */
.frame-lines {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 70px 20px;
}
.frame-lines::before,
.frame-lines::after {
  content: "";
  position: absolute;
  top: -500px;
  bottom: -500px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(66,196,152,0.6);
  animation: glowPulse 3s ease-in-out infinite;
}
.frame-lines::before { left: 0; }
.frame-lines::after { right: 0; }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 6px rgba(66,196,152,0.3); }
  50% { box-shadow: 0 0 16px rgba(66,196,152,0.8); }
}

/* === DESKTOP: Gambar besar + hover transparan === */
@media (min-width: 1025px) {
  .partner-section {
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
  }

  .partner-card {
    position: relative;
    width: 340px;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    cursor: pointer;
  }

  /* Gambar utama (default) */
  .partner-card .img-default {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.35s ease;
  }

  /* Gambar hover PNG transparan */
  .partner-card .img-hover {
    position: absolute;
    top: -100px;
    left: 50px;
    width: 70%;
    height: auto;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none; /* biar gak ganggu hover */
  }

  /* Efek hover: ganti transparan antar PNG */
  .partner-card:hover .img-hover {
    opacity: 1;
  }

  .partner-card:hover .img-default {
    opacity: 0;
  }
}

/* === MOBILE: Non-hover, vertikal rapat === */
@media (max-width: 768px) {
  .partner-section {
    margin: 0;
    padding: 0;
  }

  .partner-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .partner-card {
    width: 92%;
    position: relative;
  }

  .partner-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Matikan hover di mobile */
  .partner-card .img-hover {
    display: none;
  }
}
/* === PARTNER SECTION MOBILE (AMAN, TANPA HOVER) === */
@media (max-width: 768px) {
  .partner-section {
    padding: 0;
    margin: 0;
  }

  .partner-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .partner-card {
    width: 90%;
    position: relative;
  }

  .partner-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Matikan efek hover di mobile */
  .partner-card .img-hover {
    display: none;
  }
}

/* Efek Hover (aktif desktop aja) */
@media (min-width: 769px) {
  .partner-card:hover .img-default {
    opacity: 0;
    transform: scale(1.03);
  }

  .partner-card:hover .img-hover {
    opacity: 1;
    transform: scale(1);
  }

  .partner-card:hover {
    transform: translateY(-8px);
  }

  /* glow lembut tanpa bg (karena png) */
  .partner-card:hover img {
    filter: drop-shadow(0 0 20px rgba(66,196,152,0.7));
  }
}

/* RESPONSIVE MOBILE (tanpa hover) */
@media (max-width: 768px) {
  .partner-grid {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .partner-card {
    width: 90%;
    max-width: 360px;
    overflow: hidden;
    transform: none;
  }

  /* Hover off di mobile */
  .partner-card:hover .img-hover {
    opacity: 0;
    transform: none;
  }

  .partner-card:hover .img-default {
    opacity: 1;
    transform: none;
  }

  /* Tambah sedikit glow biar tetap elegan */
  .partner-card img {
    filter: drop-shadow(0 0 15px rgba(66,196,152,0.35));
  }
}
/* SEMBUNYIKAN PARTNER SECTION DI MOBILE */
@media (max-width: 768px) {
  .partner-section {
    display: none !important;
    visibility: hidden;
  }
}

/* IFRAME SECTION */
.live-section {
  border: 2px solid rgba(66,196,152,0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(66,196,152,0.15);
  margin-bottom: 90px;
}
iframe {
  width: 100%;
  height: 80vh;
  border: none;
}
@media(max-width:768px){
  iframe {
    width: 100vw;
    height: 70vh;
    margin-left: calc(50% - 50vw);
  }
}

/* ARTICLE */
.artikel-totomacau {
  max-width: 850px;
  margin: 80px auto;
  padding: 0 20px;
  line-height: 1.8;
}
.artikel-totomacau h1 {
  color: var(--accent);
  text-align: center;
  font-size: 2rem;
}
.artikel-totomacau h2 { color: var(--hover); margin-top: 40px; }

/* STICKY BUTTON */
.nav-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 25, 15, 0.95);
  border-top: 2px solid var(--accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  z-index: 9998;
  transition: transform 0.3s ease;
}
.nav-sticky-bottom button {
  flex: 1;
  margin: 0 8px;
  background: rgba(0,25,15,0.9);
  color: var(--text);
  border: 1.5px solid rgba(66,196,152,0.4);
  border-radius: 6px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-sticky-bottom button:hover {
  background: rgba(66,196,152,0.2);
  color: var(--hover);
}

/* === FIX FRAME-LINES BERSIH DI ATAS FOOTER === */
.frame-lines {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 70px 20px 40px; /* dikurangi padding bawah biar gak dorong footer */
  z-index: 1;
}
.frame-lines::before,
.frame-lines::after {
  content: "";
  position: absolute;
  top: -500px;
  bottom: 0; /* dulu -500px, sekarang 0 biar berhenti di atas footer */
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(66,196,152,0.6);
  animation: glowPulse 3s ease-in-out infinite;
}
.frame-lines::before { left: 0; }
.frame-lines::after { right: 0; }

/* === RESPONSIVE EMBED TABLE FIX === */
.live-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(66,196,152,0.3);
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(66,196,152,0.15);
}

.live-section iframe {
  display: block;
  width: 100%;
  height: 80vh;
  border: none;
  background: #000;
}

/* full screen di mobile */
@media (max-width: 768px) {
  .live-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
    border: none;
  }
  .live-section iframe {
    width: 100vw;
    height: 82vh;
  }
}
/* ============================
   FOOTER GLOBAL (STYLE UTAMA)
============================ */
.site-footer {
  background: linear-gradient(180deg, #02150b, #010b06);
  color: #b7e6d3;
  font-family: 'Poppins', sans-serif;
  padding: 60px 8% 30px;
  border-top: 2px solid rgba(66,196,152,0.35);
  position: relative;
  z-index: 2;
  margin-top: 0;
}

/* grid desktop */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-column h6 {
  color: #00ffb3;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a2d8bf;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #b7e6d3;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #00ffb3;
}

/* bottom footer desktop */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(66,196,152,0.25);
  padding-top: 20px;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #9fd8c3;
}

.footer-bottom a {
  color: #00ffb3;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: #063525;
  color: #00ffb3;
  text-align: center;
  transition: all 0.25s ease;
}

.footer-socials a:hover {
  background-color: #00ffb3;
  color: #031e16;
}

/* shadow overlap fix */
footer::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
  z-index: -1;
}

@media (max-width: 768px) {
  /* Struktur dasar */
  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  /* Tentang Kami full atas */
  .footer-column:nth-child(1) {
    order: 1;
    width: 90%;
    text-align: center;
  }

  /* Bungkus dua kolom sejajar */
  .footer-pair {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 90%;
    order: 2;
    gap: 10px;
  }

  /* Terapkan pair pada dua kolom tengah */
  .footer-column:nth-child(2),
  .footer-column:nth-child(3) {
    width: 48%;
    margin: 0;
  }

  /* Posisi kiri kanan */
  .footer-column:nth-child(2) {
    text-align: left;
  }
  .footer-column:nth-child(3) {
    text-align: right;
  }

  /* Rapiin teks dan jarak */
  .footer-column h6 {
    color: #00ffb3;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
  }

  .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-links li {
    margin-bottom: 6px;
  }

  .footer-links a {
    color: #b7e6d3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }

  .footer-links a:hover {
    color: #00ffb3;
  }

/* === ALIGN SOSMED DI TENGAH UNTUK SEMUA UKURAN === */
.footer-bottom {
  display: flex;
  flex-direction: column; /* ubah jadi vertikal */
  align-items: center;    /* center horizontal */
  justify-content: center;
  text-align: center;
  border-top: 1px solid rgba(66,196,152,0.25);
  padding-top: 15px;
  margin-top: 30px;
  gap: 12px; /* kasih jarak antar elemen */
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #b7e6d3;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* spasi antar icon */
  margin-top: 5px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #063525;
  color: #00ffb3;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: #00ffb3;
  color: #031e16;
}

}

/* === PERBAIKAN KHUSUS FOOTER DESKTOP === */
@media (min-width: 769px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  /* Pastikan footer-pair diabaikan di desktop */
  .footer-pair {
    display: contents; /* ini kuncinya, lebur ke grid parent */
  }

  .footer-column {
    text-align: left;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(66,196,152,0.25);
    padding-top: 15px;
    margin-top: 30px;
  }

  .footer-socials {
    margin-top: 0;
  }
}

/* ============================
   RESPONSIVE MOBILE
============================ */
@media (max-width: 768px) {
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  /* Tentang Kami full atas */
  .footer-column:nth-child(1) {
    order: 1;
  }

  /* Kategori + Informasi sejajar kanan kiri */
  .footer-pair {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 15px;
  }

  /* Buat wrapper baru otomatis di mobile */
  .footer-grid .footer-column:nth-child(2),
  .footer-grid .footer-column:nth-child(3) {
    width: 48%;
  }

  .footer-grid .footer-column:nth-child(2) { text-align: left; }
  .footer-grid .footer-column:nth-child(3) { text-align: right; }

  .footer-bottom {
    text-align: center;
    margin-top: 30px;
  }
}

/* ============================
   STICKY BUTTON (hilang saat footer muncul)
============================ */
#stickyBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: #00ffb3;
  color: #031e16;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 14px rgba(0,255,179,0.3);
}

#stickyBtn:hover {
  background-color: #42c498;
  transform: translateY(-3px);
}

#stickyBtn.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

/* Tombol hilang di mobile */
@media (max-width: 768px) {
  #stickyBtn {
    display: none;
  }
}

/* === MOBILE FULLSCREEN GIF BANNER (NO PADDING TOP) === */
.mobile-gif-banner {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 5;
}

.mobile-gif-banner a {
  display: block;
  width: 100vw;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
}

.mobile-gif-banner img {
  display: block;
  width: 100vw;
  height: auto;
  border: none;
  border-radius: 0;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none;
}

/* aktif hanya di mobile */
@media (max-width: 768px) {
  .mobile-gif-banner {
    display: block;
  }

  /* hilangkan partner */
  .partner-section {
    display: none !important;
  }

  /* kalau header punya padding, reset juga */
  header, .navbar, .topbar {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* kalau ada main wrapper yang ngedorong ke bawah */
  main, .container, .content-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
