/*
Theme Name: mistikID
Theme URI: https://mistikid.com
Author: mistikID
Description: Tema WordPress untuk tafsir mimpi, weton primbon, jodoh, zodiak, dan feng shui. Responsif, mode gelap dan terang, ikon SVG bawaan.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mistikid
*/

/* ============================================================
   1. VARIABEL & RESET
   ============================================================ */
:root {
  --bg: #171430;
  --bg2: #211d42;
  --ink: #efe9f7;
  --mute: #b3aacb;
  --gold: #d3a94f;
  --jade: #5fb59d;
  --red: #e58579;
  --line: #3a3468;
  --card: #1d1a3a;
  --hd: rgba(23, 20, 48, 0.88);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3eff8;
    --bg2: #e8e1f1;
    --ink: #231e3f;
    --mute: #5d5479;
    --gold: #8e6a16;
    --jade: #1f7a63;
    --red: #b23a2c;
    --line: #cfc4e0;
    --card: #fbf9fe;
    --hd: rgba(243, 239, 248, 0.9);
  }
}

:root[data-theme="light"] {
  --bg: #f3eff8;
  --bg2: #e8e1f1;
  --ink: #231e3f;
  --mute: #5d5479;
  --gold: #8e6a16;
  --jade: #1f7a63;
  --red: #b23a2c;
  --line: #cfc4e0;
  --card: #fbf9fe;
  --hd: rgba(243, 239, 248, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23d3a94f' stroke-width='1.2'%3E%3Cellipse cx='30' cy='15' rx='9' ry='15'/%3E%3Cellipse cx='30' cy='45' rx='9' ry='15'/%3E%3Cellipse cx='15' cy='30' rx='15' ry='9'/%3E%3Cellipse cx='45' cy='30' rx='15' ry='9'/%3E%3C/g%3E%3C/svg%3E");
}

a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.4em;
}
h1 {
  font-size: clamp(34px, 6vw, 58px);
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
}
h3 {
  font-size: 24px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 1120px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #1b1533;
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
  top: 8px;
}

.muted {
  color: var(--mute);
}
.small {
  font-size: 14px;
}
.ic {
  vertical-align: -0.2em;
  flex: none;
}

/* ============================================================
   2. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hd);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1px;
  font: 700 29px var(--serif);
  text-decoration: none;
  color: var(--ink);
}
.brand b {
  color: var(--gold);
}
.brand .ic {
  color: var(--gold);
}
.brand img {
  max-height: 44px;
  width: auto;
}

.nav {
  flex: 1;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.menu li {
  position: relative;
}
.menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--mute);
  font-weight: 600;
  font-size: 15px;
  position: relative;
}
.menu a:hover,
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a,
.menu li.active > a {
  color: var(--gold);
}

/* Garis bawah menu aktif */
.menu li.active > a::after,
.menu li.current-menu-item > a::after,
.menu li.current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.menu .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  display: block;
}

.actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle {
  display: none;
}

.search-panel {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  background: var(--bg);
}
.sform {
  display: flex;
  gap: 8px;
}
.sform input {
  flex: 1;
}

/* ============================================================
   3. CONTROLS
   ============================================================ */
input,
select,
textarea,
.field {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0 6px;
  color: var(--mute);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1b1533;
  font: 700 16px var(--sans);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tool {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 22px 22px 6px 22px;
  padding: 24px;
  box-shadow: 0 0 0 6px var(--bg2);
  margin-bottom: 22px;
}
.tool h3 {
  margin-bottom: 2px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.out {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.out p {
  margin: 8px 0;
}
.big {
  font: 700 30px var(--serif);
  color: var(--gold);
}

/* ============================================================
   4. SECTIONS
   ============================================================ */
.hero {
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}
.hero .lead {
  color: var(--mute);
  font-size: 19px;
  max-width: 48ch;
  margin: 16px 0 8px;
}
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 56px;
}
.cat {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
}
.cat:hover {
  border-color: var(--gold);
}
.cat .ic {
  color: var(--gold);
  margin-bottom: 8px;
}
.cat h3 {
  font-size: 23px;
  margin: 0 0 4px;
}
.cat p {
  margin: 0;
  font-size: 14px;
  color: var(--mute);
}

.sec {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sec-head p {
  margin: 0;
  color: var(--mute);
  max-width: 56ch;
}
.more {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.arti {
  background: var(--card);
  border-left: 3px solid var(--jade);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 12px;
}
.arti h3 {
  margin-bottom: 6px;
}
.arti p {
  margin: 4px 0;
  color: var(--mute);
}
.pos {
  color: var(--jade);
}
.neg {
  color: var(--red);
}

.zgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.z {
  padding: 14px 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.z:hover,
.z[aria-pressed="true"] {
  border-color: var(--gold);
}
.z span {
  display: block;
  font-size: 30px;
  color: var(--gold);
  line-height: 1.1;
}
.z small {
  display: block;
  color: var(--mute);
  font-size: 12px;
}

.shio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.shio div {
  text-align: center;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.shio i {
  display: block;
  font: normal 30px var(--serif);
  color: var(--gold);
}
.shio small {
  color: var(--mute);
  font-size: 13px;
}

.tbl-wrap {
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
.tbl th,
.tbl td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.tbl td + td {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================
   5. CARDS + ARCHIVE
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.card-post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-post:hover {
  border-color: var(--gold);
}

.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  background: var(--bg2);
  color: var(--gold);
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbody {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cbody h3 {
  font-size: 24px;
  margin: 0;
}
.cbody h3 a {
  text-decoration: none;
}
.cbody p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
}

.chip {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--jade);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--jade);
}

.meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: 13px;
  margin-top: auto;
}
.meta span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.page-head {
  padding: 36px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.page-head .lead {
  color: var(--mute);
  max-width: 62ch;
  margin: 8px 0 0;
  font-size: 18px;
}

.crumb {
  font-size: 14px;
  color: var(--mute);
  margin-bottom: 12px;
}
.crumb a {
  text-decoration: none;
  color: var(--gold);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding-bottom: 60px;
}

.pagination {
  margin-top: 30px;
}
.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.page-numbers.current,
a.page-numbers:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Widget / Sidebar */
.widget,
.side-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.widget h3,
.side-box h3 {
  font-size: 22px;
}
.side-box ul,
.widget ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.side-box li,
.widget li {
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.side-box li:last-child,
.widget li:last-child {
  border: 0;
}
.side-box a,
.widget a {
  text-decoration: none;
}
.side-box a:hover,
.widget a:hover {
  color: var(--gold);
}
.tagcloud a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px !important;
}

/* ============================================================
   6. SINGLE POST
   ============================================================ */
.entry {
  font: 21px/1.75 var(--serif);
  min-width: 0;
}
.entry h2,
.entry h3 {
  margin-top: 1.4em;
}
.entry a {
  color: var(--gold);
}
.entry blockquote {
  margin: 1.4em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--gold);
  color: var(--mute);
}
.entry table {
  display: block;
  overflow-x: auto;
}
.entry ul,
.entry ol {
  padding-left: 1.3em;
}

.hero-img {
  margin: 0 0 28px;
}
.hero-img img {
  border-radius: 16px;
  width: 100%;
}

.tags,
.share {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 26px 0;
  font: 15px var(--sans);
}
.tags a {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--mute);
}
.tags a:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.share a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.share a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0;
  font: 15px var(--sans);
}
.postnav a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.postnav .n {
  text-align: right;
}

.angka {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.angka div {
  padding: 14px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  text-align: center;
  background: var(--card);
}
.angka b {
  display: block;
  font: 700 26px var(--serif);
  color: var(--gold);
}

.related {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   7. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  margin-top: 40px;
  padding-top: 56px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}

.fcol {
  min-width: 0;
}

.fcol-brand .brand {
  font-size: 26px;
  margin-bottom: 12px;
  display: inline-flex;
}
.fcol-brand p {
  max-width: 32ch;
  margin: 0 0 16px;
  line-height: 1.6;
}

.fh {
  font: 700 18px var(--serif);
  margin: 0 0 14px;
  color: var(--ink);
  position: relative;
  padding-bottom: 8px;
}
.fh::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Menu Footer */
.footer-menu,
.site-footer ul.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-menu li {
  padding: 0;
  border: 0;
  line-height: 1.4;
}
.footer-menu a {
  display: inline-block;
  padding: 5px 0;
  color: var(--mute);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
}
.footer-menu a:hover {
  color: var(--gold);
  padding-left: 6px;
}
.footer-menu a::before {
  content: "›";
  position: absolute;
  left: -12px;
  opacity: 0;
  color: var(--gold);
  transition: all 0.2s ease;
}
.footer-menu a:hover::before {
  opacity: 1;
  left: -4px;
}

/* Sosial Media di Footer */
.site-footer .social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.site-footer .social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  transition: all 0.25s ease;
}
.site-footer .social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(211, 169, 79, 0.08);
  transform: translateY(-2px);
}

/* Footer Bar Bawah */
.fbar {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 13px;
  color: var(--mute);
  background: rgba(0, 0, 0, 0.15);
}
.fbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fbar-note {
  text-align: right;
  max-width: 60ch;
}

/* ============================================================
   8. COMMENTS
   ============================================================ */
.comments {
  margin-top: 40px;
  font: 16px/1.6 var(--sans);
}
.comments ol {
  list-style: none;
  padding: 0;
}
.comments li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.alignwide,
.alignfull {
  max-width: 100%;
}
.wp-caption,
.gallery-caption {
  color: var(--mute);
  font-size: 14px;
}

/* ============================================================
   9. MOBILE BOTTOM NAVIGATION (FLOATING)
   ============================================================ */
.mistik-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #15132b;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  justify-content: space-around;
  align-items: center;
}
.mistik-mobile-nav .mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #888;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}
.mistik-mobile-nav .mnav-item svg {
  transition: transform 0.2s ease;
}
.mistik-mobile-nav .mnav-item:hover,
.mistik-mobile-nav .mnav-item.active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
}
.mistik-mobile-nav .mnav-item.active svg {
  transform: scale(1.1);
}

/* ============================================================
   10. BACK TO TOP BUTTON
   ============================================================ */
.mistik-back-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 95;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffd700;
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.mistik-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mistik-back-top:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}
.mistik-back-top:not(.visible) {
  pointer-events: none;
}

/* ============================================================
   11. RESPONSIVE - URUTAN DARI BESAR KE KECIL
   ============================================================ */

/* Tablet (max 900px) */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .layout {
    grid-template-columns: 1fr;
  }
  .cats {
    grid-template-columns: 1fr 1fr;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .fcol-brand {
    grid-column: 1 / -1;
  }
  .fcol-brand p {
    max-width: 100%;
  }
}

/* Mobile L (max 860px) - menu hamburger */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
    z-index: 101;
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav.open {
    display: block;
  }
  .menu {
    flex-direction: column;
  }
  .menu .sub-menu {
    display: block;
    position: static;
    border: 0;
    padding: 0 0 0 14px;
    background: none;
  }
  /* Sembunyikan garis bawah di mobile */
  .menu li.active > a::after,
  .menu li.current-menu-item > a::after {
    display: none;
  }
  /* Highlight menu aktif di mobile */
  .menu li.active > a,
  .menu li.current-menu-item > a {
    background: rgba(211, 169, 79, 0.1);
    border-left: 3px solid var(--gold);
    padding-left: 14px;
  }
}

/* Mobile (max 768px) - menu floating */
@media (max-width: 768px) {
  .mistik-mobile-nav {
    display: flex;
  }
  body {
    padding-bottom: 80px;
  }
}

/* Mobile S (max 600px) - footer & konten */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .row,
  .postnav,
  .angka {
    grid-template-columns: 1fr;
  }
  .cats {
    grid-template-columns: 1fr;
  }
  .entry {
    font-size: 19px;
  }

  /* Footer */
  .site-footer {
    padding-top: 32px;
    margin-top: 24px;
  }
  .site-footer::before {
    width: 60px;
    height: 2px;
  }

  .fgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding-bottom: 24px;
  }

  /* Brand full width di atas */
  .fcol-brand {
    grid-column: 1 / -1;
    text-align: left;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  .fcol-brand .brand {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .fcol-brand p {
    font-size: 13px;
    line-height: 1.5;
    max-width: 100%;
    margin-bottom: 12px;
  }
  .site-footer .social {
    justify-content: flex-start;
    gap: 8px;
  }
  .site-footer .social a {
    width: 36px;
    height: 36px;
  }

  .fh {
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  .fh::after {
    width: 24px;
    height: 2px;
  }

  .footer-menu {
    gap: 0;
  }
  .footer-menu a {
    font-size: 13px;
    padding: 3px 0;
  }

  /* Kolom Jelajahi & Kategori: 2 kolom berdampingan */
  .fcol:nth-child(2),
  .fcol:nth-child(3) {
    grid-column: auto;
  }

  /* Kolom Artikel Terbaru: full width di bawah */
  .fcol:nth-child(4) {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }
  .fcol:nth-child(4) .footer-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }

  /* Bar bawah */
  .fbar {
    padding: 16px 0;
    font-size: 11px;
    line-height: 1.5;
  }
  .fbar-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .fbar-note {
    text-align: center;
    max-width: 100%;
    font-size: 11px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   ADS STYLING
   ============================================ */
.mistik-ad {
  position: relative;
  text-align: center;
}

/* Iklan Header (di bawah menu) */
.mistik-ad-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mistik-ad-header .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Iklan Footer (di atas copyright) */
.mistik-ad-footer {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mistik-ad-footer .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Iklan di Dalam Konten — TANPA BORDER */
.mistik-ad-before-content,
.mistik-ad-after-paragraph,
.mistik-ad-after-content {
  margin: 28px 0;
  padding: 0;
  /* Tidak ada border, tidak ada background */
}

/* Iklan Sidebar */
.mistik-ad-sidebar {
  text-align: center;
  padding: 8px 0;
}

.mistik-ad-widget {
  padding: 8px 0;
}

/* ============================================
   RESPONSIVE ADS
   ============================================ */
@media (max-width: 768px) {
  .mistik-ad-header,
  .mistik-ad-footer {
    padding: 12px 0;
  }

  .mistik-ad-before-content,
  .mistik-ad-after-paragraph,
  .mistik-ad-after-content {
    margin: 20px 0;
  }
}
