/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  /* background-color: #f8f9fa; */
  background: linear-gradient(
    -90deg,
    #ffffff 0%,
    rgba(227, 255, 255, 0.674) 45%
  );
  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 Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 50px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1100; /* di atas overlay */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Logo */
.navbar .navbar-icon {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar .logo-icon img {
  width: 20%;
  /* margin-left: 6rem; */
}

.logo-teks {
  font-family: "Poppins", sans-serif; /* Font khusus navbar */
  font-size: 22px;
  font-weight: 700;
  color: #377dff;
  margin-left: 6rem;
}

/* Nav Links (desktop) */
.nav-links {
  display: flex;
  gap: 2rem;
  margin-right: 8rem;
  align-items: center;
}

.nav-links a {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  gap: 2rem;
}

.nav-links a:hover {
  color: #377dff;
}

/* Tombol daftar */
.btn-daftar {
  padding: 8px 16px;
  background: #377dff;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-daftar:hover {
  background: #2563eb;
}

/* ================= 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) {
  .html {
    font-size: 75%;
  }

  .logo-teks {
    margin-left: 0;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    right: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1200;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .nav-links a:hover {
    color: #377dff;
  }

  .btn-daftar {
    padding: 10px 16px;
    background: linear-gradient(90deg, #ffce54, #f6a623);
    color: #000 !important;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  /* Animasi muncul link satu per satu */
  .nav-links a {
    opacity: 0;
    transform: translateY(-10px); /* geser sedikit ke atas */
    transition: all 0.3s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0); /* turun ke posisi normal */
  }

  .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;
  }
  .nav-links.active a:nth-child(6) {
    transition-delay: 0.6s;
  }

  .hamburger {
    display: flex;
  }
}

/* ====== Container utama ====== */
.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* max-width: 1200px; */
  margin: 6rem 9rem;
  padding: 20px;
  gap: 20px;
}

/* ====== Artikel ====== */
.article {
  flex: 3;
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-left: -2rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 15px;
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 14px;
  line-height: 1.8;
}

.breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
  margin-bottom: 2rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
}

/* Judul Artikel */
.article h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #222;
}

.article p {
  line-height: 2;
  font-size: 1rem;
}

/* Profil Penulis */
.author {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
}

.author .name {
  font-weight: bold;
  margin-right: 8px;
}

.author .date {
  color: #888;
  font-size: 13px;
}

/* Gambar Utama */
.main-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.article .btn-container {
  display: flex;
  justify-content: center; /* tombol ada di tengah horizontal */
  margin-top: 20px; /* kasih jarak biar tidak terlalu rapat */
}

.article .backlink {
  text-decoration: none;
  color: #fff;
  background-color: #1a73e8;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block; /* biar bentuk tombol */
  text-align: center;
}

/* ====== Sidebar ====== */
.sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 100px;
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  height: fit-content;
}

.sidebar h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #222;
}

.sidebar .post {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.sidebar .post:last-child {
  border-bottom: none;
}

.sidebar .post a {
  display: block;
  font-weight: bold;
  color: #1a73e8;
  text-decoration: none;
  margin-bottom: 4px;
}

.sidebar .post a:hover {
  text-decoration: underline;
}

.sidebar .post span {
  font-size: 13px;
  color: #666;
}

.sidebar img {
  margin-top: 3rem;
  width: 100%;
}

#disqus_thread {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ======= 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 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 ========= */
