:root {
  --bg: #f5f7ff;
  --bg-soft: #eef2ff;
  --card: #ffffff;
  --accent: #6366f1;       /* Indigo */
  --accent-2: #ec4899;     /* Pink */
  --accent-3: #22c55e;     /* Green */
  --text-dark: #0f172a;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, #fee2e2 0, transparent 50%),
    radial-gradient(circle at top right, #e0f2fe 0, transparent 50%),
    radial-gradient(circle at bottom, #f5f3ff 0, #eef2ff 55%);
  color: var(--text);
  line-height: 1.7;
}

/* Utility */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 1.25rem;
}

/* HEADER / NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.logo::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    #6366f1,
    #ec4899,
    #22c55e,
    #f97316,
    #6366f1
  );
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.logo span {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.15rem;
  font-weight: 500;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text-dark);
}

.nav a:hover::after {
  width: 100%;
}

/* HAMBURGER BUTTON (MOBILE) */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  display: block;
  position: relative;
  transition: 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

/* HERO SECTION */
.hero {
  padding: 3.2rem 0 2.7rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.8rem;
}

.tagline {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #6366f1;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.85rem;
  color: #0f172a;
}

.hero h1 span {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.98rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0.3rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.badge.pink {
  background: rgba(236, 72, 153, 0.08);
  color: #db2777;
  border-color: rgba(244, 114, 182, 0.6);
}

.badge.green {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
  border-color: rgba(74, 222, 128, 0.6);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-weight: 500;
}

.btn.primary {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #ffffff;
  box-shadow: 0 18px 35px rgba(99, 102, 241, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(129, 140, 248, 0.4);
}

.btn.secondary {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
}

.btn.secondary:hover {
  border-color: #6366f1;
  background: #eef2ff;
}

.hero-photo {
  justify-self: center;
}

.hero-photo-wrapper {
  position: relative;
}

.hero-photo img {
  border-radius: 1.8rem;
  border: 3px solid #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 1.8rem;
}

/* MAIN LAYOUT */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 3.2rem;
}

/* CONTENT */
.content h2 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
  color: #0f172a;
}

/* POST CARDS */
.post-card {
  background: linear-gradient(135deg, #ffffff, #f9f5ff);
  border-radius: 1.4rem;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.2), transparent 55%);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.post-card:hover::before {
  opacity: 1;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 22px 45px rgba(129, 140, 248, 0.3);
}

.post-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: #111827;
}

.post-card h3 a {
  color: inherit;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.post-tag {
  font-size: 0.78rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
}

.post-tag.pink {
  background: rgba(236, 72, 153, 0.08);
  color: #db2777;
}

.post-tag.green {
  background: rgba(34, 197, 94, 0.08);
  color: #16a34a;
}

.post-excerpt {
  font-size: 0.93rem;
  color: #4b5563;
  margin-bottom: 0.8rem;
}

.read-more {
  font-size: 0.9rem;
  color: #4f46e5;
  font-weight: 500;
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1.4rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 14px 35px rgba(148, 163, 184, 0.25);
}

.widget h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1rem;
  color: #111827;
}

.widget p,
.widget li {
  font-size: 0.9rem;
  color: #4b5563;
}

.category-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li + li,
.contact-list li + li {
  margin-top: 0.35rem;
}

.category-list a {
  color: var(--muted);
}

.category-list a:hover {
  color: #4f46e5;
}

.contact-list a {
  color: #4f46e5;
}

/* SINGLE POST LAYOUT */
.post-layout {
  padding: 2.7rem 1.25rem 3.2rem;
}

.single-post {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.6rem;
  padding: 1.8rem 1.8rem 2.1rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: #4f46e5;
}

.single-post h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.7rem;
  color: #0f172a;
}

.post-cover {
  margin: 1.2rem 0 1.3rem;
  border-radius: 1.5rem;
}

.post-content h2 {
  font-size: 1.2rem;
  margin-top: 1.3rem;
  margin-bottom: 0.55rem;
  color: #111827;
}

.post-content p,
.post-content li {
  font-size: 0.98rem;
  color: #374151;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.4rem 0 2rem;
  background: linear-gradient(135deg, #eef2ff, #fdf2ff);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links {
  opacity: 0.95;
}

/* RESPONSIVE: TABLET & HP */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero-photo {
    order: -1;
    max-width: 260px;
    margin: 0 auto 1.7rem;
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: -1;
  }

  .content h2 {
    margin-top: 1.2rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    border-bottom: 1px solid rgba(209, 213, 219, 0.8);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
  }

  .hero {
    padding-top: 2.1rem;
  }

  .single-post {
    padding: 1.3rem 1.2rem 1.6rem;
  }
}

/* State ketika nav-toggle aktif */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}
