/* General Styles */
:root {
  --primary-color: #1a237e; /* Biru Tua Intelektual */
  --secondary-color: #f59e0b; /* Kuning Tua Hangat */
  --text-color-dark: #1f2937; /* Hitam Lembut */
  --text-color-light: #6b7280; /* Abu-abu untuk sub-teks */
  --background-color-light: #f9fafb; /* Putih Gading */
  --border-color: #e5e7eb;
  --white: #fff;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

.login {
  background: transparent !important;
  color: #10164e !important;
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--white);
  overflow-x: hidden; /* Prevent horizontal scroll, but we still fix the underlying cause */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: #10164e; /* Darker shade */
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.subtitle {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

/* Header Styles */
.header {
  background-color: var(--white);
  padding: 20px 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo a {
  /* font-size: 1.8em; */
  font-weight: 700;
  color: var(--text-color-dark);
}
.header .logo a img {
  height: 60px; /* Anda bisa ubah angka ini sesuai kebutuhan */
  width: auto; /* Biarkan lebar menyesuaikan agar gambar tidak gepeng */
}

.header .navbar ul {
  display: flex;
}

.header .navbar ul li {
  margin-left: 30px;
}

.header .navbar ul li a {
  color: var(--text-color-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.header .navbar ul li a:hover,
.header .navbar ul li a.active {
  color: var(--primary-color);
}

/* Sembunyikan ikon hamburger di desktop */
.menu-toggle {
  display: none;
}

/* --- State Saat Menu Mobile Terbuka --- */

/* Mencegah halaman bisa di-scroll saat menu terbuka */
body.menu-open {
  overflow: hidden;
}

/* Tampilkan overlay gelap di belakang menu */
body.menu-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999; /* Di bawah menu, di atas konten */
}

/* Geser menu masuk ke layar */
body.menu-open .header .navbar {
  right: 0;
}

/* --- Media Query untuk Tablet & Mobile --- */
@media (max-width: 992px) {
  /* Tampilkan ikon hamburger */
  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001; /* Pastikan ikon selalu paling atas */
  }

  .menu-toggle i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
  }

  /* Ubah ikon saat menu terbuka */
  body.menu-open .menu-toggle i {
    transform: rotate(180deg);
    color: var(--primary-color); /* DIUBAH: Warna ikon 'X' jadi biru */
  }

  /* Sembunyikan tombol desktop */
  .btn.desktop-only {
    display: none;
  }

  /* Atur ulang navbar untuk menjadi menu mobile */
  .header .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white); /* DIUBAH: Latar belakang jadi putih */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 80px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); /* Shadow sedikit diperhalus */
    transition: right 0.4s ease-in-out;
    z-index: 1000;
    border-left: 1px solid var(--border-color); /* Tambah border agar terlihat rapi */
  }

  .header .navbar ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .header .navbar ul li {
    margin: 20px 0;
  }

  .header .navbar ul li a {
    color: var(--text-color-dark); /* DIUBAH: Warna teks jadi gelap */
    font-size: 1.2em;
    font-weight: 600;
  }
}
/* Hero Section */
.hero {
  padding: 2.5rem 0; /* Default padding for larger screens */
  background-color: var(--white);
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content .description {
  color: var(--text-color-light);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
}

.hero-form button {
  padding: 15px 30px;
  font-size: 1em;
  white-space: nowrap;
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
}

.services-section h2 {
  font-size: 2.5em;
  margin-bottom: 50px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
  gap: 30px;
  text-align: left;
  justify-content: center;
}

.service-cards .card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-cards .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.1);
}

.service-cards .card.active {
  border-color: var(--primary-color);
}

.service-cards .card .icon {
  width: 60px;
  height: 60px;
  background-color: #e8eaf6; /* Light blue background for icons */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-cards .card .icon i {
  font-size: 1.8em;
}

.service-cards .card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.service-cards .card p {
  color: var(--text-color-light);
  margin-bottom: 20px;
}

.service-cards .card .learn-more {
  font-weight: 600;
  display: inline-block;
  color: var(--primary-color);
}

/* Visi Misi Section (About Section) */
.about-section {
  padding: 80px 0;
  background-color: var(--background-color-light);
  display: flex;
  align-items: center;
}

.about-section .container {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-content p {
  color: var(--text-color-light);
  margin-bottom: 20px;
}

.checklist {
  list-style: none;
  margin-top: 20px;
}

.checklist li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.checklist li i {
  color: var(--secondary-color); /* Use accent color for check */
  margin-right: 15px;
  font-size: 1.2em;
}

/* Contact Section */
.contact-section {
  background-color: var(--white);
  padding: 80px 0;
}

.contact-section .container > p,
.contact-section .container > h2 {
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.contact-info,
.contact-form {
  background-color: var(--background-color-light);
  padding: 40px;
  font-size: small;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Default min-width for contact elements before mobile breakpoints */
.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 3px;
  width: 25px;
}

.contact-item p {
  margin: 0;
  font-size: 1.1em;
}

.contact-item a {
  color: var(--text-color-dark);
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-form {
  flex: 1.5;
  min-width: 300px; /* Default min-width for contact form */
  background-color: var(--white);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  font-family: "Poppins", sans-serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
}

/* Footer */
.footer {
  background-color: var(--text-color-dark);
  color: #a0aec0; /* Lighter text for footer */
  padding: 30px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container,
  .about-section .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .hero-image,
  .about-image {
    order: -1;
    margin-bottom: 40px;
  }
  .hero-form {
    justify-content: center;
  }
  /* Penyesuaian untuk tablet yang lebih besar/desktop yang lebih kecil */
  .hero-content h1 {
    font-size: 2.8em; /* Sedikit lebih kecil untuk tablet */
  }
  .services-section h2,
  .about-content h2,
  .contact-section h2 {
    font-size: 2.2em; /* Sedikit lebih kecil untuk tablet */
  }
}
.mobile-only {
  display: none;
}
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  .action {
    display: none;
  }
  .hero {
    padding: 60px 0;
  }
  .hero-content h1 {
    font-size: 2.2em;
  }
  .about-section .container {
    gap: 30px;
  }
  .services-section,
  .about-section,
  .contact-section {
    padding: 60px 0;
  }
  .services-section h2,
  .about-content h2,
  .contact-section h2 {
    font-size: 2em;
  }

  /* FIX PENTING untuk Contact Section: Pastikan elemen kontak menyesuaikan lebar */
  .contact-content {
    flex-direction: column; /* Menumpuk elemen secara vertikal */
    gap: 30px; /* Sesuaikan jarak saat ditumpuk */
  }
  .contact-info,
  .contact-form {
    min-width: unset; /* Hapus min-width tetap yang bisa menyebabkan overflow */
    width: 100%; /* Pastikan mengambil lebar penuh dari parent */
    padding: 30px; /* Sesuaikan padding untuk layar menengah */
    flex: unset; /* Pastikan flex tidak mengganggu lebar penuh */
  }

  /* Penyesuaian Halaman Artikel Tunggal */
  .article-container {
    padding: 20px;
  }
  .article-header h1 {
    font-size: 2em;
  }
  .featured-image {
    height: 250px;
  }
  .article-content {
    font-size: 1em;
  }

  /* Penyesuaian ukuran font umum untuk layar yang lebih kecil */
  body {
    font-size: 0.95em; /* Ukuran font dasar sedikit lebih kecil */
  }
  .btn {
    padding: 10px 20px; /* Tombol sedikit lebih kecil */
  }
}

/* Media query untuk perangkat seluler yang sangat kecil (smartphone, di bawah 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px; /* Kurangi padding container pada layar sangat kecil */
  }
  .hero {
    padding: 40px 0; /* Kurangi lagi padding hero */
  }
  .hero-content h1 {
    font-size: 1.8em; /* Judul hero lebih kecil untuk layar sangat kecil */
  }
  .hero-form {
    flex-direction: column; /* Tumpuk input dan tombol secara vertikal */
    gap: 15px; /* Tambah jarak saat ditumpuk */
  }
  .hero-form input[type="email"],
  .hero-form button {
    width: 100%; /* Buat lebar penuh saat ditumpuk */
    font-size: 0.9em; /* Ukuran font sedikit lebih kecil untuk input/tombol */
  }
  .services-section h2,
  .about-content h2,
  .contact-section h2 {
    font-size: 1.8em; /* Judul bagian lebih kecil */
  }
  .service-cards .card {
    padding: 20px; /* Kurangi padding card lebih lanjut untuk layar sangat sempit */
  }
  .service-cards {
    grid-template-columns: 1fr; /* Paksa satu kolom pada layar sangat kecil */
    gap: 20px;
  }

  /* Pastikan elemen kontak sudah responsif dari breakpoint 768px, namun bisa disesuaikan lagi jika perlu */
  .contact-info,
  .contact-form {
    padding: 20px; /* Kurangi padding kotak kontak lebih lanjut */
  }

  .article-header h1 {
    font-size: 1.8em; /* Judul artikel tunggal lebih kecil */
  }
  .featured-image {
    height: 200px; /* Gambar utama bahkan lebih kecil */
  }
  .floating-wa {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    bottom: 20px;
    right: 20px;
  }
}

/* Footer Social Links */
.footer .social-links {
  margin-bottom: 15px;
}
.footer .social-links a {
  color: var(--white);
  font-size: 1.5em; /* 24px */
  margin: 0 15px;
  transition: color 0.3s ease;
}
.footer .social-links a:hover {
  color: var(--secondary-color);
}

/* Floating WA Button */
.floating-wa {
  position: fixed;
  /* bottom: 30px; */
  /* right: 30px; */
  width: 60px;
  height: 60px;
  background-color: #25d366; /* Warna resmi WhatsApp */
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em; /* 32px */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.3s ease;
}
.floating-wa:hover {
  transform: scale(1.1);
}

/* Styling untuk halaman artikel tunggal (artikel-single.php) */
.article-container {
  max-width: 800px; /* Lebar maksimum untuk konten artikel */
  margin: 0 auto; /* Tengah kontainer */
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.article-header {
  margin-bottom: 30px;
  text-align: center;
}

.article-header h1 {
  font-size: 2.8em;
  color: var(--text-color-dark);
  line-height: 1.2;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 0.95em;
  color: var(--text-color-light);
}

.featured-image {
  width: 100%;
  height: 400px; /* Tinggi tetap untuk konsistensi gambar utama */
  object-fit: cover; /* Menutupi area, memotong jika perlu */
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color-dark);
}

.article-content p {
  margin-bottom: 20px;
}

/* Memastikan gambar di dalam konten responsif */
.article-content img {
  max-width: 100%;
  height: auto;
  display: block; /* Mencegah spasi ekstra di bawah gambar */
  margin: 20px auto; /* Tengah gambar */
  border-radius: 5px;
}
