/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  background-color: #ffffff;
  color: #1f2933;
}

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap");

/* Navbar container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 150px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.327);
}

/* Logo kiri */
.navbar-logo img {
  width: 120px;
  height: auto;
}

/* Menu tengah */
.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1; /* ambil space di tengah */
  justify-content: center; /* posisikan item ke tengah */
}

.nav-links a {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #20639b;
}

.nav-links .selected-page {
  color: #20639b;
}

/* Tombol kanan */
.navbar-cta {
  display: flex;
  align-items: center;
}

.btn-daftar {
  padding: 10px 16px;
  background: #20639b;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
  width: 10rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
}

.btn-daftar:hover {
  background: #2563eb;
}

.mobile-only {
  display: none;
}

/* ================= Hamburger ================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1200;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animasi jadi X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= Overlay ================= */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================= Mobile Menu ================= */
@media (max-width: 768px) {
  /* Biar padding navbar lebih kecil */
  .navbar {
    padding: 12px 20px;
  }

  /* Logo jangan kepotong */
  .navbar-logo img {
    width: 100px;
  }

  /* Menu geser jadi sidebar drop */
  .nav-links {
    position: fixed;
    top: 70px; /* beri jarak dari navbar */
    right: 15px;
    left: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 230px;
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1200;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Link menu */
  .nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s ease;
  }

  .nav-links a:hover {
    color: #20639b;
  }

  /* Tombol daftar di bawah menu */
  .navbar-cta {
    display: none; /* sembunyikan versi desktop */
  }

  .nav-links .btn-daftar {
    display: block;
    margin-top: 10px;
    padding: 12px 16px;
    background: #20639b;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .dekstop-only {
    display: none;
  }

  .mobile-only {
    display: block; /* tampilkan tombol mobile */
    margin-top: 10px;
    padding: 12px 16px;
    background: #20639b;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  /* Hamburger tampil */
  .hamburger {
    display: flex;
  }

  /* Animasi muncul link satu per satu */
  .nav-links a {
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active a:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active a:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links.active a:nth-child(5) {
    transition-delay: 0.5s;
  }
}

/* ====== ARTICLE =========== */
.article {
  max-width: 850px;
  margin: 8rem auto;
  padding: 0 20px;
  text-align: center;
}

/* Judul besar */
.article-header h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #0f2137;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

/* Meta info */
.article-meta {
  font-size: 0.95rem;
  color: #6b7280; /* abu */
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.article-meta a {
  color: #6b7280;
}

/* Divider garis */
.article-divider {
  width: 90px;
  height: 3px;
  background: #20639b;
  border-radius: 2px;
  margin: 0 auto 30px auto;
}

/* Konten */
.article-content {
  text-align: left;
  font-size: 1.1rem;
  color: #1f2937b4;
  line-height: 2;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content p a {
  color: #6b7280;
}

/* Highlight paragraf terakhir */
.article-content p:last-child {
  color: #6b7280;
}

/* Quote box */
.quote-box {
  border-left: 5px solid #20639b;
  background: #f9fafb;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-radius: 6px;
  margin: 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quote-box p {
  font-style: italic;
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.quote-box cite {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Gambar artikel */
.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CTA Box */
.cta-box {
  max-width: 850px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: #20639b;
  color: #fff;
  text-align: center;
  border-radius: 12px;
}

/* Judul CTA */
.cta-box h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Deskripsi CTA */
.cta-box p {
  font-size: 1.05rem;
  color: #d1d5db; /* abu terang */
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Tombol CTA */
.cta-box .cta-button {
  display: inline-block;
  background: #f5b700;
  color: #0f2137;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-box .cta-button:hover {
  background: #e0a800;
  color: #fff;
  transition: all 0.3s ease;
}

.cta-box-white {
  max-width: 850px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: #fff;
  color: #050505f4;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.327);
}

/* Judul CTA */
.cta-box-white h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Deskripsi CTA */
.cta-box-white p {
  font-size: 1.05rem;
  color: #3e3e3f8a; /* abu terang */
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Tombol CTA */
.cta-box-white .cta-button {
  display: inline-block;
  background: #f5b700;
  color: #0f2137;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-box-white .cta-button:hover {
  background: #e0a800;
  color: #fff;
  transition: all 0.3s ease;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .article {
    margin: 5rem auto;
    padding: 0 15px;
  }

  .article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    max-width: 100%;
  }

  .article-meta {
    font-size: 0.8rem;
    flex-wrap: wrap;
    text-align: center;
  }

  .article-content {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .quote-box {
    padding: 1rem;
  }

  .quote-box p {
    font-size: 1rem;
  }

  .cta-box {
    padding: 2rem 1.2rem;
    margin: 3rem auto;
  }

  .cta-box h2 {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .cta-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .cta-box .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .quote-box-white {
    padding: 1rem;
  }

  .quote-box-white p {
    font-size: 1rem;
  }

  .cta-box-white {
    padding: 2rem 1.2rem;
    margin: 3rem auto;
  }

  .cta-box-white h2 {
    font-size: 1.4rem;
    line-height: 1.4;
  }

  .cta-box-white p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .cta-box-white .cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.6rem;
  }

  .cta-box h2 {
    font-size: 1.2rem;
  }

  .cta-box p {
    font-size: 0.85rem;
  }

  .cta-box .cta-button {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .cta-box-white h2 {
    font-size: 1.2rem;
  }

  .cta-box-white p {
    font-size: 0.85rem;
  }

  .cta-box-white .cta-button {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

.btn-info a {
  color: #fff;
  background-color: #20639b;
  text-decoration: none;
  padding: 12px 16px;
}

/* ======= FOOTER START ========= */
footer {
  background: linear-gradient(135deg, #f9fbff 0%, #edf2fb 50%, #f1f5ff 100%);
  color: #111827;
  padding: 60px 20px 30px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Kolom */
.footer-col {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-col h2.footer-brand {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-col .footer-brand img {
  width: 160px; /* atur sesuai ukuran logo */
  height: 50px;
  /* background: url('/path/to/logo-carabicara.png') no-repeat center; */
  background-size: contain;
  text-indent: -9999px; /* sembunyikan teks */
  overflow: hidden;
}

.footer-col h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1e3a8a;
  position: relative;
}

.footer-col h4::after {
  content: "";
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #9333ea);
  position: absolute;
  left: 0;
  bottom: -6px;
  border-radius: 2px;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 15px;
  color: #374151;
}

.footer-col ul li a {
  text-decoration: none;
  color: #374151;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #2563eb;
}

/* Ikon Sosial */
.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  font-size: 20px;
  color: #374151;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #2563eb;
}

/* Ikon dalam kontak */
.footer-col ul li i {
  margin-right: 8px;
  color: #2563eb;
  font-size: 16px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #e5ebf7;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #6b7280;
}

.footer-bottom .footer-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .footer-links a {
  text-decoration: none;
  color: #6b7280;
  transition: color 0.3s ease;
}

.footer-bottom .footer-links a:hover {
  color: #2563eb;
}

/* Responsive Tablet */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
  }
  .footer-col {
    flex: 1 1 45%;
  }
}

/* Responsive Mobile */
@media (max-width: 600px) {
  footer {
    padding: 40px 16px 20px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-col {
    flex: 1 1 100%;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
/* ======= FOOTER END ========= */
