/* --- Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: #f9f9f9;         /* supaya tidak transparan */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 999;  
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 45px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

/* Navbar dasar */
.nav-links li a {
  color: #000; /* warna hitam normal */
  text-decoration: none;
  display: flex;
  font-weight: 500;
  transition: color 0.2s ease;
  }

/* Hover effect */
.nav-links li a:hover {
  color: #555; /* warna abu-abu lebih redup */
  display: flex;
  }

.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn-outline {
  border: 2px solid #c8102e;
  color: #c8102e;
  padding: 6px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-outline:hover {
  transform: scale(1.05);
  background: #c8102e;
  color: white;
}

.btn-primary {
  border: 2px solid #c8102e;
  background: #c8102e;
  color: white;
  padding: 6px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: #fff;
  color: #c8102e;
}

/* --- RESPONSIVE --- */
/* NEW: Tambahkan hamburger menu styling */
.hamburger {
  display: none; /* sembunyikan di desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: 0.3s;
}

/* --- UPDATE: Tambahan helper class --- */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

/* NEW: Styling untuk nav di mobile */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 65px; /* di bawah header */
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
    padding: 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease-in-out;
  }
  
  .nav-links .mobile-only a {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }

  nav ul.show { /* ketika menu aktif */
    transform: translateY(0);
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .hamburger {
    display: flex; /* tampilkan hamburger */
  }
  
   /* --- UPDATE: sembunyikan tombol desktop, tampilkan mobile --- */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* --- UPDATE: style tombol di hamburger menu --- */
  .nav-links .btn-outline,
  .nav-links .btn-primary {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
  }
  
  .nav-links .mobile-only .btn-outline {
    color: #c8102e;
  }
  
  .nav-links .mobile-only .btn-outline:hover {
	color: white;
	display: flex;
	align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  
  .nav-links .mobile-only .btn-primary {
    color: #fff;
	border: 2px solid #c8102e;
  }
  
  .nav-links .mobile-only .btn-primary:hover {
	background: #fff; 
	color: #c8102e;
	display: flex;
	align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

body {
  padding-top: 80px; /* sama dengan tinggi header */
}

.termprivasi-header {
  text-align: center;
  background: linear-gradient(135deg, #c8102e, #d73349);
  color: white;
  padding: 3rem 1rem;
  border-radius: 0 0 30px 30px;
}

.termprivasi-header h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

main {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

h2 {
  font-size: 20px;
  color: #c8102e;
  margin-top: 40px;
}

h3 {
  font-size: 18px;
  color: #c8102e;
  margin-top: 25px;
}

p {
	font-size: 14px;
}

ul, ol {
  margin-left: 20px;
  font-size: 14px;
}

.scroll-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}

/* Footer Section */
.footer {
  background: #f9f9f9;
  color: #111;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 30px auto;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 150px;
}

.footer-column h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #969393;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #000;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 20px auto 0 auto;
  font-size: 13px;
}

.social-icons a {
  color: #969393;
  font-size: 18px;
  margin-left: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #000;
}

/* Responsif */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: left;
  }

   .footer-columns {
    flex-direction: column; /* ⬅️ bikin vertical di HP */
    align-items: left;
    gap: 25px;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}


