/* =======================================
   RESET & BASE
======================================= */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #e0e7ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  text-decoration: none;
  color: inherit;
}

/* =======================================
   CONTAINER
======================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =======================================
   HEADER
======================================= */
header {
  background: linear-gradient(90deg, #2357a2, #1a3e7c);
  box-shadow: 0 6px 20px rgba(0, 53, 128, 0.7);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-radius: 0 0 20px 20px;
  user-select: none;
}
header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* =======================================
   LOGO
======================================= */
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #a9c6ff;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #78aaffcc;
  transition: transform 0.3s ease;
}
.logo img {
  height: 48px;
  margin-right: 0.75rem;
  filter: drop-shadow(0 0 5px #5290ff);
}
.logo:hover {
  transform: scale(1.1);
}

/* =======================================
   DESKTOP MENU
======================================= */
nav.desktop-menu {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
nav.desktop-menu a {
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
  color: #bcd1ff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.3s ease;
}
nav.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: #5a8dff;
  border-radius: 4px;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}
nav.desktop-menu a:hover,
nav.desktop-menu a.active {
  color: #e6f0ff;
  background: rgba(90, 141, 255, 0.3);
  box-shadow: 0 5px 20px rgba(90, 141, 255, 0.5);
}
nav.desktop-menu a:hover::after,
nav.desktop-menu a.active::after {
  width: 70%;
}

/* =======================================
   HAMBURGER
======================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  margin-left: auto;
  width: 30px;
  user-select: none;
  transition: transform 0.3s ease;
}
.hamburger div {
  height: 3.8px;
  background: linear-gradient(90deg, #5a8dff, #3a69e8);
  border-radius: 8px;
  transition: 0.4s;
}
.hamburger:hover {
  transform: scale(1.1);
}

/* =======================================
   MOBILE MENU
======================================= */
nav.mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #2a5298, #1a3e7c);
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  box-shadow: 0 6px 30px rgba(0, 40, 95, 0.8);
  border-radius: 0 0 25px 25px;
  z-index: 999;
  padding: 1.5rem 2rem;
  user-select: none;
}
nav.mobile-menu.show {
  display: flex;
  animation: slideDown 0.4s ease forwards;
}
nav.mobile-menu a {
  color: #c6d4ff;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
nav.mobile-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: #5a8dff;
  opacity: 0.4;
  transition: width 0.3s ease;
  border-radius: 12px 0 0 12px;
  z-index: 0;
}
nav.mobile-menu a:hover,
nav.mobile-menu a.active {
  background: #436ecccc;
  color: #f0f6ff;
  box-shadow: 0 10px 25px #3a69e8bb;
}
nav.mobile-menu a:hover::before,
nav.mobile-menu a.active::before {
  width: 12px;
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================
   MAIN CONTENT
======================================= */
main.container {
  flex-grow: 1;
  background: #f0f4ff;
  color: #1a3055;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(58, 105, 232, 0.35);
  padding: 3rem 4rem;
  margin: 2.5rem auto 4rem;
  max-width: 900px;
  transition: box-shadow 0.3s ease;
}
main.container:hover {
  box-shadow: 0 15px 40px rgba(58, 105, 232, 0.6);
}
main h1 {
  font-weight: 900;
  font-size: 2.8rem;
  margin-bottom: 1.4rem;
  text-align: center;
  color: #2357a2;
  text-shadow: 0 0 14px #5a8dff88;
}
main p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #2e466e;
  line-height: 1.6;
}
main section h2 {
  font-weight: 800;
  font-size: 1.9rem;
  color: #1a3e7c;
  margin-bottom: 1rem;
  border-left: 6px solid #5277ff;
  padding-left: 12px;
  text-shadow: 0 0 8px #5277ff66;
}
main ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #3a5699;
  font-size: 1.15rem;
  line-height: 1.6;
}
main ul li {
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
  cursor: default;
}
main ul li:hover {
  color: #5277ff;
  font-weight: 700;
}

/* =======================================
   FOOTER
======================================= */
footer {
  background: linear-gradient(135deg, #1a3e7c, #2357a2);
  color: #cad5ff;
  text-align: center;
  padding: 1.8rem 0;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 -5px 20px rgba(35, 87, 162, 0.75);
  user-select: none;
  border-radius: 20px 20px 0 0;
  letter-spacing: 0.05em;
}

/* =======================================
   RESPONSIVE
======================================= */
@media (max-width: 900px) {
  main.container {
    padding: 2.5rem 2rem;
    margin: 2rem 1rem 3rem;
  }
  main h1 {
    font-size: 2.4rem;
  }
  main p {
    font-size: 1.1rem;
  }
}
@media (max-width: 700px) {
  nav.desktop-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  main.container {
    padding: 2rem 1.5rem;
    margin: 1.8rem 1rem 3rem;
  }
  main h1 {
    font-size: 2.2rem;
  }
  main p {
    font-size: 1rem;
  }
}

/* =======================================
   MARQUEE (Berita Berjalan)
======================================= */
.marquee-container {
  background: linear-gradient(90deg, #3a69e8, #5a8dff);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* =======================================
   SLIDE CONTAINER (Untuk Game/List Gambar)
======================================= */
.slider-container {
  position: relative;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

.slide {
  position: absolute;  /* Biar tumpuk di atas satu sama lain */
  width: 100%;
  opacity: 0;          /* Semua slide default transparan */
  transition: opacity 1s ease-in-out;
  top: 0;
  left: 0;
  z-index: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Untuk layar besar (PC/Desktop) */
@media (min-width: 768px) {
  .slider-container {
    height: 400px; /* Atur tinggi slider di desktop */
  }

  .slide img {
    height: 100%; /* Sesuaikan tinggi container */
    object-fit: cover; /* Biar tetap proporsional */
  }
}

/* Untuk layar kecil (Mobile) */
@media (max-width: 767px) {
  .slider-container {
    height: 200px; /* Slider lebih kecil di mobile */
  }

  .slide img {
    height: 100%;
    object-fit: cover;
  }
}

/* =======================================
   WHATSAPP FLOATING BUTTON
======================================= */
.wa-button {
  position: fixed;
  bottom: 20px;
  left: 10px;
  background-color: #25d366; /* warna khas WA */
  border-radius: 45%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.wa-button:hover {
  background-color: #128c4a;
}

.wa-button svg {
  fill: white;
  width: 24px;
  height: 24px;
}

/* =======================================
   BUTTON STYLES
======================================= */
button,
.btn {
  background: #5a8dff;
  color: #e6f0ff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 6px 15px #5277ffbb;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}
button:hover,
.btn:hover {
  background: #436eff;
  box-shadow: 0 8px 25px #436effbb;
}
button:focus,
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px #5277ffcc;
}
button:disabled,
.btn:disabled {
  background: #a3b4ff88;
  box-shadow: none;
  cursor: not-allowed;
}

/* =======================================
   FORM INPUTS
======================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  margin: 0.4rem 0 1.2rem;
  border-radius: 12px;
  border: 1.8px solid #5a8dff;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.3s ease;
  box-shadow: inset 0 0 7px #a4b9ff55;
  color: #1a3055;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: #436eff;
  box-shadow: 0 0 8px #5277ffcc;
  outline: none;
}

/* =======================================
   ERROR MESSAGE
======================================= */
.error-message {
  color: #ff4c4c;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: -1rem;
  margin-bottom: 1rem;
  user-select: none;
}

/* =======================================
   UTILITIES
======================================= */
.text-center {
  text-align: center;
}
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.hidden { display: none !important; }
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =======================================
   CUSTOM SCROLLBAR (for Webkit)
======================================= */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #c2d0ff33;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #5277ffbb;
  border-radius: 12px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #436effcc;
}
