:root {
  --primary: #3e09fd;
  --secondary: #ff0000;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: rgba(0, 0, 0, 0.9);
  color: var(--white);
  overflow-x: hidden;
  font-size: 14px;
}

.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: auto;
  max-height: 129%;
  z-index: -1;
  filter: brightness(0.4);
  object-fit: contain;
  filter: brightness(50%);
  pointer-events: none; /* opsional: agar tidak mengganggu klik */
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgb(0, 0, 0);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
  margin: auto;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  font-style: italic;
  color: var(--secondary);
}
.logo span {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary);
}

.menu-toggle:hover {
  color: var(--secondary);
}

.navbar {
  display: flex;
  gap: 7.2rem;
  justify-content: center;
  flex: 2;
}

.navbar a {
  position: relative; /* penting untuk pseudo-element */
  color: var(--primary);
  font-size: 1.3rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

/* Efek garis bawah */
.navbar a::after {
  content: "";
  position: absolute;
  bottom: -4px; /* jarak garis dari teks */
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transition: transform 0.3s ease;
}

.navbar a:hover {
  color: var(--secondary);
}

.navbar a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 60%;
  height: 100%;
  background: rgba(0, 0, 0, 0.801);
  backdrop-filter: blur(10px);
  transition: right 0.3s ease;
  z-index: 100;
}
.sidebar.show {
  right: 0;
}
.sidebar-content {
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem;
  gap: 2rem;
}
.sidebar-content a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.sidebar-content a:hover {
  color: var(--secondary);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  display: none;
  z-index: 50;
}
.overlay.show {
  display: block;
}

/* Hero */
.hero {
  text-align: center;
  padding: 8rem 2rem 5rem;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero h1 span {
  color: var(--white);
}
.hero p {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.hero p span {
  font-size: 1.2rem;
  font-style: italic;
  color: #9b9b9b;
}

.hero button {
  padding: 0.6rem 1.3rem;
  background: var(--primary);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s;
}
.hero button:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

/* FOOTER */

footer {
  background: rgba(0, 0, 0, 0.637);
  color: #ddd;
  text-align: center;
  padding: 1rem;
  width: 100%;
  margin-top: 4rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar.desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .search-box.desktop-search {
    display: none;
  }
  .search-box.mobile-search {
    display: block;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}

/* HALAMAN */
.halaman-section {
  background: rgba(255, 255, 255, 0.01);
  padding: 60px 0;
  border-top: 1px solid #00f2ff20;
}

/* Container utama */
.container {
  padding: 0 20px; /* Tambahkan padding kiri-kanan */
  max-width: 1200px;
  margin: 0 auto; /* Agar tetap center di desktop */
}

/* Grid topik */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
  padding: 0 10px; /* Tambahkan padding ekstra di dalam grid */
}

/* Kartu topik */
.topic-card {
  background: #0000003f;
  border: 1px solid var(--secondary);
  padding: 20px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--primary);
}

.topic-card h3 {
  font-size: 1.2em;
  color: white;
  margin-bottom: 10px;
}

.topic-card p {
  font-size: 0.95em;
  color: #ddd;
  line-height: 1.6;
}

/* =====================
   SECTION TITLE STYLING
   ===================== */
.section-title {
  font-size: 2.5em;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

/* STYLE DAN GAMBAR UNTUK ARTIKEL */
.article-container .article-image {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  border-radius: 12px;
}

.article-container .article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Judul dan meta */
.article-container .section-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.article-meta {
  text-align: center !important;
  font-size: 0.95rem;
  color: #7e7e7e94 !important;
  margin-bottom: 30px;
}

/* Caption */
.article-container .article-image figcaption {
  font-size: 0.9rem;
  color: #7e7e7e94;
  margin-top: 8px;
}

/* Paragraf lebih rapi dan nyaman */
.article-container p {
  font-size: 1.05rem;
  line-height: 2;
  text-align: justify;
  margin-bottom: 1.7rem;
  color: white;
}

/* Gambar */
.article-image {
  margin: 30px 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.article-image figcaption {
  font-size: 0.9rem;
  color: white;
  margin-top: 8px;
  text-align: center;
}

/* Responsive fix */
@media (max-width: 768px) {
  .article-container {
    padding: 20px 15px;
  }

  .article-container .section-title {
    font-size: 1.7rem;
  }

  .article-container p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* Responsive padding untuk layar besar */
@media (min-width: 1200px) {
  .article-container {
    padding: 60px 60px;
  }

  .article-container p {
    font-size: 1.15rem;
  }
}

/* KONTAK KAMI - GMAIL */
.kontak-section {
  background: #0000003f;
  color: white;
  border: 1px solid var(--secondary);
  padding: 30px;
  border-radius: 40px;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kontak-section .section-title {
  color: white;
  margin-bottom: 10px;
}

.kontak-deskripsi {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 25px;
  color: #ddd;
}

.kontak-info img.gmail-icon {
  width: 32px;
  height: 32px;
}

.kontak-info a {
  font-size: 1.1rem;
  color: #00ffff;
  text-decoration: none;
}

.kontak-info a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* TENTANG KAMI - VISI MISI */
.visi-misi {
  background: #0000003f;
  color: white;
  border: 1px solid var(--secondary);
  padding: 30px;
  border-radius: 40px;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.visi-misi h2 {
  color: #00ffff;
  margin-bottom: 10px;
}

.visi {
  margin-bottom: 40px; /* beri jarak antara visi dan misi */
}

.visi-misi p,
.visi-misi ul {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.visi-misi ul li {
  margin: 8px 0;
}

.team-section {
  text-align: center;
  margin-top: 60px;
}

.section-subtitle {
  font-size: 2rem;
  color: white;
  margin-bottom: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background: #0000003f;
  border: 1px solid var(--secondary);
  padding: 20px;
  border-radius: 15px;
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}
