/*
Theme Name:  Mitra Ilmiah Blog
Theme URI:   https://mitrailmiah.com/blog/
Author:      Mitra Ilmiah
Author URI:  https://mitrailmiah.com
Description: Custom blog theme untuk Mitra Ilmiah — konsisten dengan landing page. Mendukung featured images, kategori, dan SEO schema otomatis.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitra-ilmiah-blog
Tags:        blog, custom-background, featured-images, translation-ready
*/


/* ══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — diambil dari landing page
══════════════════════════════════════════════════════ */
:root {
  /* Navy palette */
  --navy-50:  #eef2ff;
  --navy-100: #e0e7ff;
  --navy-200: #c7d2fe;
  --navy-400: #818cf8;
  --navy-600: #1e3a5f;
  --navy-700: #162d4a;
  --navy-800: #0f2035;
  --navy-900: #091525;
  --navy-950: #050d18;

  /* Teal palette */
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;

  /* Slate palette */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Gradients */
  --gradient-navy: linear-gradient(135deg, #1e3a5f 0%, #0f2035 100%);
  --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --gradient-hero: linear-gradient(155deg, #091525 0%, #0f2035 45%, #0d2d40 100%);

  /* Shadows */
  --shadow-card:       0 4px 24px rgba(15,32,53,0.10);
  --shadow-card-hover: 0 8px 40px rgba(15,32,53,0.18);
  --shadow-glow-teal:  0 0 30px -5px rgba(20,184,166,0.35);

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Sizing */
  --max-width: 1152px;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
}


/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-800);
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Custom scrollbar — sama dengan landing page */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-800); }
::-webkit-scrollbar-thumb { background: var(--teal-500); border-radius: 3px; }


/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}

.animate-fade-up { animation: fadeUp 0.7s ease both; }
.animate-fade-in { animation: fadeIn 0.6s ease both; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.cta-pulse  { animation: pulse-ring 2.2s cubic-bezier(0.66,0,0,1) infinite; }


/* ══════════════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.dot-bg {
  background-image: radial-gradient(rgba(20,184,166,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.noise::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; border-radius: inherit;
}


/* ══════════════════════════════════════════════════════
   STICKY NAVIGATION
══════════════════════════════════════════════════════ */
#mi-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
#mi-navbar.scrolled {
  background: rgba(9,21,37,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: var(--gradient-teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow-teal);
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--teal-400); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--slate-300);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.nav-links a:hover { color: var(--teal-400); }
.nav-links a.active { color: var(--teal-400); }

.nav-badge {
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--teal-500);
  color: #fff;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  line-height: 1;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: opacity 0.2s;
}
@media (min-width: 768px) { .nav-cta { display: flex; } }
.nav-cta:hover { opacity: 0.9; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }

.nav-mobile {
  display: none;
  margin-top: 1rem;
  background: rgba(15,32,53,0.97);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 1rem; }

.nav-mobile a {
  color: var(--slate-300);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--teal-400); }
.nav-mobile .mobile-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin-top: 0.25rem;
}


/* ══════════════════════════════════════════════════════
   BLOG HERO / PAGE HEADER
══════════════════════════════════════════════════════ */
.blog-hero {
  position: relative;
  padding: 7rem 1.5rem 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}
.blog-hero .dot-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
}
.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20,184,166,0.15);
  border: 1px solid rgba(20,184,166,0.3);
  color: var(--teal-300);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.blog-hero h1 span { color: var(--teal-400); }
.blog-hero p {
  color: var(--slate-300);
  font-size: 1.125rem;
  max-width: 40rem;
  font-weight: 300;
}


/* ══════════════════════════════════════════════════════
   BLOG ARCHIVE LAYOUT
══════════════════════════════════════════════════════ */
.blog-layout {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 320px;
  }
}


/* WordPress wraps thumbnail in <figure> — pastikan tidak merusak rasio */
.post-card-thumb figure,
.post-card-thumb .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: block !important;
}

/* ── Post Grid ── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Post Card ── */
.post-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.post-card-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--slate-100);
  flex-shrink: 0;
  display: block;
  width: 100%;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0f2035;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}
.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--teal-400);
  font-size: 2.5rem;
}

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.post-card-cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  background: rgba(20,184,166,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.post-card-cat:hover { background: rgba(20,184,166,0.2); }

.post-card-date {
  font-size: 0.75rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.625rem;
  line-height: 1.35;
  flex: 0 0 auto;
}
.post-card-title a {
  transition: color 0.2s;
}
.post-card-title a:hover { color: var(--teal-600); }

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  margin-top: auto;
}
.post-card-readmore {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-600);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s, color 0.2s;
}
.post-card-readmore:hover { gap: 0.625rem; color: var(--teal-700); }

.post-card-readtime {
  font-size: 0.75rem;
  color: var(--slate-400);
}


/* ── Featured Post (first post, full width) ── */
.post-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card--featured .post-card-thumb {
  width: 45%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.post-card--featured .post-card-title { font-size: 1.3125rem; }
.post-card--featured .post-card-excerpt { -webkit-line-clamp: 4; }
@media (max-width: 640px) {
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card-thumb { width: 100%; aspect-ratio: 1 / 1; }
}


/* ── Pagination ── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  background: #fff;
  border: 1px solid var(--slate-200);
  transition: all 0.2s;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--teal-500);
  color: #fff;
  border-color: var(--teal-500);
}
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding-inline: 1rem;
  gap: 0.375rem;
}


/* ── No Posts ── */
.no-posts {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--slate-500);
}
.no-posts h2 {
  color: var(--navy-800);
  margin-bottom: 0.75rem;
}


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

.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-800);
  padding-bottom: 0.875rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--teal-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Search widget */
.sidebar-search {
  display: flex;
  gap: 0.5rem;
}
.sidebar-search input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.sidebar-search input:focus { border-color: var(--teal-500); }
.sidebar-search button {
  background: var(--gradient-teal);
  color: #fff;
  border: none;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sidebar-search button:hover { opacity: 0.9; }

/* Categories widget */
.sidebar-cats li {
  border-bottom: 1px solid var(--slate-100);
}
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--slate-600);
  transition: color 0.2s;
}
.sidebar-cats a:hover { color: var(--teal-600); }
.sidebar-cats .cat-count {
  font-size: 0.75rem;
  background: var(--slate-100);
  color: var(--slate-500);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* Recent posts widget */
.sidebar-recent li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--slate-100);
}
.sidebar-recent-info a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.sidebar-recent-info a:hover { color: var(--teal-600); }
.sidebar-recent-date {
  font-size: 0.6875rem;
  color: var(--slate-400);
  margin-top: 0.25rem;
}

/* CTA widget */
.sidebar-cta {
  background: var(--gradient-navy) !important;
  text-align: center;
  padding: 1.75rem 1.5rem !important;
}
.sidebar-cta p {
  color: var(--slate-300);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.sidebar-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  transition: opacity 0.2s;
}
.sidebar-cta a:hover { opacity: 0.9; }
.sidebar-cta .sidebar-widget-title {
  color: #fff;
  border-bottom-color: var(--teal-500);
}
.sidebar-cta .sidebar-widget-title i { color: var(--teal-400); }


/* ══════════════════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════════════════ */
.single-layout {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 2rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .single-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--slate-400);
  margin-bottom: 1.75rem;
}
.post-breadcrumb a { color: var(--teal-600); transition: color 0.2s; }
.post-breadcrumb a:hover { color: var(--teal-700); }
.post-breadcrumb span.sep { color: var(--slate-300); }

/* Post header */
.post-header { margin-bottom: 2rem; }

.post-header-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.post-header-cats a {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  background: rgba(20,184,166,0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.post-header-cats a:hover { background: rgba(20,184,166,0.2); }

.post-header h1 {
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 2rem;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}
.post-meta-item i { color: var(--teal-500); }
.post-meta-item a { color: var(--slate-600); transition: color 0.2s; }
.post-meta-item a:hover { color: var(--teal-600); }

/* Featured image */
.post-featured-image {
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card-hover);
}
.post-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Post content typography */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-700);
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--navy-800);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-500);
}
.post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy-700);
}
.post-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--navy-700);
}
.post-content p { margin-bottom: 1.5rem; }
.post-content p:last-child { margin-bottom: 0; }

.post-content a {
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.post-content a:hover { color: var(--teal-700); }

.post-content ul,
.post-content ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
  list-style: revert;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--teal-500);
  background: rgba(20,184,166,0.06);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--slate-600);
}
.post-content blockquote p { margin-bottom: 0; }

.post-content code {
  font-size: 0.875em;
  background: var(--slate-100);
  color: var(--teal-700);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}
.post-content pre {
  background: var(--navy-900);
  color: var(--teal-300);
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.post-content pre code { background: none; color: inherit; padding: 0; }

.post-content img {
  border-radius: 0.75rem;
  margin: 1.5rem auto;
  box-shadow: var(--shadow-card);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.post-content th {
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-heading);
  padding: 0.75rem 1rem;
  text-align: left;
}
.post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}
.post-content tr:nth-child(even) td { background: var(--slate-50); }

/* Post tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}
.post-tags-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
}
.post-tags a {
  font-size: 0.8125rem;
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.post-tags a:hover { background: rgba(20,184,166,0.15); color: var(--teal-700); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}
.post-nav-item {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  transition: all 0.2s;
}
.post-nav-item:hover { border-color: var(--teal-400); box-shadow: var(--shadow-card); }
.post-nav-item.prev { text-align: left; }
.post-nav-item.next { text-align: right; }
.post-nav-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.post-nav-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.mi-footer {
  background: #050d18;
  padding: 4rem 1.5rem 2rem;
}
.mi-footer-grid {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) {
  .mi-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}
.footer-logo-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.625rem;
  background: var(--gradient-teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow-teal);
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.footer-logo-text span { color: var(--teal-400); }

.footer-desc {
  color: var(--slate-400);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 18rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.footer-social a:hover { color: var(--teal-400); border-color: rgba(20,184,166,0.4); }

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav a {
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-nav a:hover { color: var(--teal-300); }

.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-400);
  font-size: 0.875rem;
}
.footer-contact-item i { color: var(--teal-500); margin-top: 0.15rem; width: 1rem; flex-shrink: 0; }
.footer-contact-item a { color: var(--slate-400); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--teal-300); }

.footer-hours { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.footer-hour-row span:first-child { color: var(--slate-400); }
.footer-hour-row span:last-child { color: #fff; font-weight: 500; }
.footer-hour-row span.limited { color: #f59e0b; }
.footer-online-badge {
  margin-top: 1rem;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--teal-300);
  font-weight: 600;
}
.footer-online-badge .pulse-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
}

.mi-footer-bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 768px) {
  .mi-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.mi-footer-bottom p {
  color: var(--slate-500);
  font-size: 0.75rem;
}
.mi-footer-privacy {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--slate-500);
  font-size: 0.75rem;
}
.mi-footer-privacy i { color: var(--teal-500); }


/* ══════════════════════════════════════════════════════
   FLOATING WA BUTTON
══════════════════════════════════════════════════════ */
#wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.25);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
#wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.3);
}
.wa-float-label {
  line-height: 1.2;
}
.wa-float-label .sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wa-float-label .main {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-heading);
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .post-navigation { grid-template-columns: 1fr; }
  .single-layout, .blog-layout { padding-inline: 1rem; }
}

/* WordPress alignment classes */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--slate-400); text-align: center; margin-top: 0.375rem; }

/* Screen reader utility */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  word-wrap: normal;
}


/* ══════════════════════════════════════════════════════
   ARTIKEL TERKAIT
══════════════════════════════════════════════════════ */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}
.related-posts-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .related-posts-grid { grid-template-columns: 1fr; }
}

.related-post-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.related-post-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--slate-100);
}
.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0f2035;
  transition: transform 0.3s;
}
.related-post-card:hover .related-post-thumb img {
  transform: scale(1.05);
}
.related-post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--teal-400);
  font-size: 1.75rem;
}

.related-post-body {
  padding: 0.875rem;
}
.related-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.related-post-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.related-post-title a {
  color: var(--navy-800);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-title a:hover { color: var(--teal-600); }


/* ══════════════════════════════════════════════════════
   KOMENTAR
══════════════════════════════════════════════════════ */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}
.comments-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comments-title span { color: var(--teal-600); }

/* Comment list */
.comment-list,
.comment-list .children {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment-list .children {
  margin-top: 1rem;
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--teal-500);
}

.mi-comment-body {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.mi-comment-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
.mi-avatar {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50%;
  border: 2px solid var(--teal-500);
}
.mi-comment-author-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--navy-800);
  display: block;
}
.mi-comment-date {
  font-size: 0.75rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.mi-comment-content {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.7;
}
.mi-comment-content p { margin-bottom: 0.75rem; }
.mi-comment-content p:last-child { margin-bottom: 0; }

.mi-comment-reply {
  margin-top: 0.875rem;
}
.mi-comment-reply a,
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-600);
  transition: color 0.2s;
}
.mi-comment-reply a:hover,
.comment-reply-link:hover { color: var(--teal-700); }

/* Comment Reply Title */
.comment-reply-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-800);
  margin: 2rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comment-reply-title small a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-400);
  margin-left: 0.75rem;
}

/* Form fields */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment-form p { margin: 0; }

.mi-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.375rem;
}
.mi-form-label .required { color: #ef4444; }

.mi-form-input,
.mi-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--slate-800);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mi-form-input:focus,
.mi-form-textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}
.mi-form-textarea { resize: vertical; min-height: 140px; }

.mi-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
}
.mi-comment-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════
   COMMENT NAVIGATION
══════════════════════════════════════════════════════ */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}
.comment-navigation a {
  color: var(--teal-600);
  font-weight: 600;
  transition: color 0.2s;
}
.comment-navigation a:hover { color: var(--teal-700); }
