/*
Theme Name: Dunia Dauria
Theme URI: https://dauria.id/blog/
Author: Dauria
Author URI: https://dauria.id/
Description: Tema editorial resmi Dunia Dauria untuk cerita keberlanjutan dan ekonomi sirkular.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dunia-dauria
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --navy: #0f1e3a;
  --navy-2: #092d66;
  --teal: #119a9a;
  --teal-dark: #087d7d;
  --green: #4caf5b;
  --yellow: #ffc62f;
  --yellow-dark: #e7a900;
  --mist: #edf9f7;
  --sky: #eef7ff;
  --ink-soft: #52647d;
  --line: #dbe9ea;
  --white: #fff;
  --shadow: 0 18px 45px rgba(15, 30, 58, .11);
  --shadow-sm: 0 9px 25px rgba(15, 30, 58, .08);
  --radius: 22px;
  --content: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: #f8fbfb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 18px; left: 12px; top: 12px; z-index: 99999; background: #fff; color: var(--navy); border-radius: 8px; }
.container { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.section { padding: 72px 0; }

.site-header { position: sticky; top: 0; z-index: 100; padding: 12px 0; background: rgba(248,251,251,.88); backdrop-filter: blur(16px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 18px; padding: 10px 16px; background: #fff; border: 1px solid rgba(15,30,58,.06); border-radius: 20px; box-shadow: var(--shadow-sm); }
.brand { flex: 0 0 180px; display: inline-flex; align-items: center; width: 180px; text-decoration: none; }
.brand img { width: 180px; aspect-ratio: 600/224; object-fit: contain; }
.site-nav { min-width: 0; margin-left: auto; display: flex; align-items: center; }
.menu, .site-nav .menu { display: flex; align-items: center; gap: 2px; padding: 0; margin: 0; list-style: none; }
.site-nav .menu > li { flex: 0 0 auto; }
.site-nav .menu a { display: block; padding: 10px 8px; color: var(--navy); font-weight: 700; font-size: .8rem; line-height: 1.2; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; border-radius: 12px; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--teal-dark); background: var(--mist); }
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.header-search { position: relative; flex: 0 0 190px; }
.header-search .search-form, .header-search .search-form label { width: 100%; }
.header-search .search-field { width: 100%; height: 42px; padding: 0 13px 0 40px; overflow: hidden; border: 0; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.header-search::before { content: ""; position: absolute; left: 15px; top: 14px; width: 12px; height: 12px; border: 2px solid var(--navy); border-radius: 50%; pointer-events: none; }
.header-search::after { content: ""; position: absolute; left: 27px; top: 27px; width: 7px; height: 2px; background: var(--navy); rotate: 45deg; pointer-events: none; }
.header-search .search-submit { display: none; }
.social-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px; color: #fff; background: var(--navy); border-radius: 999px; font-weight: 800; font-size: .8rem; white-space: nowrap; text-decoration: none; }
.social-pill:hover { background: var(--teal-dark); color: #fff; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--sky); color: var(--navy); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; position: absolute; width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle::before { transform: translateY(-7px); }
.menu-toggle::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

.hero { position: relative; overflow: hidden; padding: 44px 0 70px; background: linear-gradient(135deg, #f7fdff 0%, #e5f8f3 52%, #dff2ff 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.hero::before { width: 360px; height: 360px; left: -180px; top: -100px; background: #b7edff; }
.hero::after { width: 440px; height: 440px; right: -210px; bottom: -230px; background: #c9f3bc; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .83fr 1.5fr; align-items: center; gap: 34px; }
.eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-size: .83rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.5rem, 7vw, 6.9rem); line-height: .84; letter-spacing: -.075em; color: var(--navy-2); }
.hero h1 span { display: block; color: var(--teal); }
.hero-lead { max-width: 480px; margin: 26px 0 8px; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.35; font-weight: 900; }
.hero-copy { max-width: 500px; margin: 0 0 25px; color: var(--ink-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 900; text-decoration: none; box-shadow: 0 10px 24px rgba(17,154,154,.2); transition: transform .2s, background .2s; }
.button::after { content: "\2192"; font-size: 1.35em; }
.button:hover { transform: translateY(-2px); color: #fff; background: var(--teal-dark); }
.button--yellow { color: var(--navy); background: var(--yellow); box-shadow: 0 10px 24px rgba(255,198,47,.28); }
.button--yellow:hover { color: var(--navy); background: #ffd35e; }
.button--outline { color: var(--teal-dark); background: transparent; border: 2px solid #a4dddd; box-shadow: none; }
.button--outline:hover { color: #fff; border-color: var(--teal-dark); }
.hero-art { position: relative; min-width: 0; }
.hero-art img { width: 100%; aspect-ratio: 2.725/1; object-fit: cover; object-position: center; border-radius: 30px; box-shadow: var(--shadow); }
.hero-art::after { content: ""; position: absolute; inset: auto 4% -18px 4%; height: 34px; background: rgba(15,30,58,.16); filter: blur(22px); border-radius: 50%; z-index: -1; }

.category-band { position: relative; z-index: 3; margin-top: -38px; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 16px; border-radius: 26px; background: rgba(237,249,247,.95); box-shadow: var(--shadow); }
.category-card { min-width: 0; padding: 16px 10px 14px; border-radius: 18px; background: #fff; color: var(--navy); text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-4px); color: var(--navy); box-shadow: var(--shadow-sm); }
.category-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(145deg, #e9fbf5, #dff4ff); color: var(--teal); }
.category-icon svg { width: 32px; height: 32px; }
.category-card:nth-child(2) .category-icon, .category-card:nth-child(6) .category-icon { background: #fff0ed; color: #df5747; }
.category-card:nth-child(3) .category-icon, .category-card:nth-child(4) .category-icon { background: #ecfae7; color: var(--green); }
.category-card strong { display: block; font-size: .94rem; line-height: 1.25; }
.category-card small { display: block; min-height: 42px; margin: 5px 0 8px; color: var(--ink-soft); font-size: .76rem; line-height: 1.35; }
.round-arrow { display: grid; place-items: center; width: 28px; height: 28px; margin: auto; border-radius: 50%; background: var(--sky); font-weight: 900; }

.latest { padding-top: 70px; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2, .archive-header h1 { margin: 0; font-size: clamp(2.15rem, 4.5vw, 4.2rem); line-height: 1; letter-spacing: -.055em; }
.section-heading h2 span { color: var(--teal); }
.section-intro { max-width: 620px; margin: 10px 0 0; color: var(--ink-soft); }
.filter-tabs { display: flex; gap: 8px; margin: 0 0 26px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.filter-tab { flex: 0 0 auto; padding: 9px 16px; color: var(--navy); background: var(--sky); border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.filter-tab:hover, .filter-tab.is-active { color: #fff; background: var(--teal); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid #e7eeee; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #dff5ee, #dceeff); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card__media img { transform: scale(1.035); }
.post-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--teal); }
.post-card__placeholder svg { width: 64px; height: 64px; }
.post-card__category { position: absolute; left: 14px; bottom: 12px; max-width: calc(100% - 28px); padding: 5px 11px; border-radius: 999px; color: var(--navy); background: var(--yellow); font-size: .72rem; font-weight: 900; }
.post-card__body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.post-card h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.025em; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal-dark); }
.post-card__excerpt { margin: 0 0 18px; color: var(--ink-soft); font-size: .9rem; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #edf1f1; color: var(--ink-soft); font-size: .78rem; }
.post-card__read { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.1rem; text-decoration: none; }

.page-hero, .archive-header { padding: 60px 0; background: linear-gradient(135deg, #e9f8f6, #edf6ff); }
.archive-header .container { max-width: 850px; }
.archive-description { max-width: 700px; margin: 15px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.breadcrumbs { margin: 0 0 20px; color: var(--ink-soft); font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #96a7b5; }
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }
.archive-content { padding: 55px 0 80px; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.result-count { color: var(--ink-soft); }

.article { background: #fff; }
.article-header { padding: 62px 0 34px; background: linear-gradient(135deg, #eef9f6, #f0f7ff); }
.article-header__inner { max-width: 900px; }
.article-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-categories a { padding: 6px 11px; color: var(--navy); background: var(--yellow); border-radius: 999px; font-size: .76rem; font-weight: 900; text-decoration: none; }
.article-title { margin: 0; font-size: clamp(2.45rem, 6vw, 5.1rem); line-height: 1.02; letter-spacing: -.055em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--ink-soft); font-size: .9rem; }
.article-featured { width: min(calc(100% - 32px), 1060px); margin: 36px auto 0; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); }
.article-featured img { width: 100%; max-height: 590px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; justify-content: center; gap: 64px; padding: 58px 16px 80px; }
.entry-content { min-width: 0; font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin: 1.8em 0 .6em; line-height: 1.2; letter-spacing: -.025em; }
.entry-content h2 { font-size: 2rem; }
.entry-content a { font-weight: 700; }
.entry-content blockquote { margin: 2em 0; padding: 22px 28px; border-left: 5px solid var(--teal); border-radius: 0 18px 18px 0; background: var(--mist); font-size: 1.18rem; font-weight: 700; }
.entry-content img { border-radius: 18px; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); }
.article-aside { align-self: start; position: sticky; top: 115px; }
.aside-card { padding: 22px; border-radius: 20px; background: var(--mist); }
.aside-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.aside-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: .88rem; }
.share-links { display: flex; gap: 8px; }
.share-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--teal); font-weight: 900; text-decoration: none; }
.post-tags { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags a { display: inline-block; margin: 5px; padding: 5px 10px; border-radius: 999px; background: var(--sky); font-size: .78rem; text-decoration: none; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 45px; }
.post-navigation a { display: block; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.post-navigation span { display: block; color: var(--ink-soft); font-size: .75rem; }
.post-navigation strong { display: block; margin-top: 4px; color: var(--navy); line-height: 1.35; }
.comments-area { margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--line); }
.comment-list { padding-left: 1.5rem; }
.comment-list li { margin-bottom: 22px; }
.comment-list .children { margin-top: 18px; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c9dada; border-radius: 12px; }
.comment-form .submit { padding: 12px 20px; border: 0; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 900; }
.related { padding: 70px 0; background: #f1f8f7; }

.empty-state { grid-column: 1 / -1; padding: 55px 24px; border: 1px dashed #b9d6d5; border-radius: 24px; background: linear-gradient(135deg, #f6fcfb, #f4f9ff); text-align: center; }
.empty-state__icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #fff; color: var(--teal); box-shadow: var(--shadow-sm); }
.empty-state__icon svg { width: 38px; }
.empty-state h2 { margin: 0 0 8px; font-size: 1.6rem; }
.empty-state p { max-width: 530px; margin: 0 auto 22px; color: var(--ink-soft); }
.search-page-form { max-width: 680px; margin-top: 24px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 52px; padding: 0 18px; border: 1px solid #c9dada; border-radius: 999px; background: #fff; }
.search-form .search-submit { padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 900; }

.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 50px; color: var(--navy); background: #fff; border: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { color: #fff; background: var(--teal); border-color: var(--teal); }

.not-found { display: grid; min-height: 64vh; place-items: center; padding: 70px 16px; text-align: center; background: linear-gradient(135deg, #eef9f6, #edf6ff); }
.not-found__code { margin: 0; color: var(--teal); font-size: clamp(6rem, 20vw, 13rem); line-height: .8; letter-spacing: -.09em; }
.not-found h1 { margin: 24px 0 8px; font-size: 2.2rem; }
.not-found p { max-width: 560px; margin: 0 auto 24px; color: var(--ink-soft); }

.site-footer { padding: 60px 0 24px; color: #dfe9f5; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 55px; }
.footer-logo { width: 200px; padding: 9px; border-radius: 12px; background: #fff; }
.footer-about { max-width: 480px; color: #adbed0; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 1rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: #dfe9f5; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #93a8bd; font-size: .82rem; }

@media (max-width: 1120px) {
  .header-search, .social-pill { display: none; }
  .menu-toggle { position: relative; display: inline-flex; }
  .site-nav { position: fixed; inset: 94px 16px auto; display: block; max-height: calc(100vh - 112px); padding: 18px; overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .2s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav .menu { display: block; }
  .site-nav .menu a { padding: 13px 14px; }
  .hero-grid { grid-template-columns: 1fr 1.35fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .article-aside { position: static; }
}

@media (max-width: 760px) {
  .admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 24px), var(--content)); }
  .site-header { padding: 8px 0; }
  .header-inner { min-height: 60px; padding: 7px 10px; border-radius: 16px; }
  .brand { flex-basis: 164px; width: 164px; }
  .brand img { width: 164px; }
  .site-nav { top: 80px; }
  .hero { padding: 24px 0 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero .eyebrow { margin-bottom: 6px; font-size: .76rem; line-height: 1.35; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 4.75rem); line-height: .88; }
  .hero-lead { margin: 14px 0 6px; font-size: 1.02rem; line-height: 1.3; }
  .hero-copy { margin-bottom: 16px; font-size: .92rem; line-height: 1.5; }
  .hero .button { min-height: 48px; padding-inline: 22px; }
  .hero-art { margin-inline: -12px; }
  .hero-art img { width: calc(100% + 24px); max-width: none; height: auto; aspect-ratio: auto; margin-left: -12px; object-fit: contain; border-radius: 20px; }
  .category-band { margin-top: -24px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; border-radius: 22px; }
  .category-card { padding: 14px 7px 12px; }
  .category-card small { min-height: 0; }
  .section { padding: 55px 0; }
  .latest { padding-top: 55px; }
  .section-heading { align-items: start; flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .archive-header { padding: 42px 0; }
  .archive-toolbar { align-items: start; flex-direction: column; }
  .article-header { padding-top: 42px; }
  .article-layout { padding-top: 40px; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand { flex-basis: 145px; width: 145px; }
  .brand img { width: 145px; }
  .category-card strong { font-size: .86rem; }
  .category-card small { font-size: .7rem; }
  .search-form { flex-direction: column; }
  .search-form .search-submit { height: 50px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .site-nav { top: 140px; max-height: calc(100vh - 156px); }
}

@media (max-width: 760px) {
  .admin-bar .site-nav { top: 126px; max-height: calc(100vh - 142px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
