/* ================================================================
   BERIKLAN — PRIVATE FRONTEND THEME (Private Build)
   Editorial teal×amber — exclusive, bukan tema pasaran.
   ================================================================ */

:root {
    --primary: #0f766e;
    --primary-strong: #0d5c56;
    --accent: #f59e0b;
    --accent-2: #d97706;
    --text-primary: #172033;
    --text-secondary: #526079;
    --text-muted: #8792a6;
    --bg-body: #f5f7fb;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;
    --border: #e5eaf2;
    --border-strong: #d6deea;
    --shadow-sm: 0 2px 8px rgba(18, 32, 56, .05);
    --shadow-md: 0 12px 32px rgba(18, 32, 56, .08);
    --shadow-lg: 0 22px 55px rgba(18, 32, 56, .12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --container: 1160px;
    --content: 760px;
    --sidebar: 320px;
    --header-height: 76px;
}

html[data-theme="dark"] {
    --text-primary: #f4f7fb;
    --text-secondary: #b7c1d2;
    --text-muted: #8794a9;
    --bg-body: #0d1320;
    --bg-surface: #141c2b;
    --bg-elevated: #192235;
    --border: #273247;
    --border-strong: #344158;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.18);
    --shadow-md: 0 14px 36px rgba(0,0,0,.25);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text-primary);
    background: var(--bg-body);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection { background: rgba(15,118,110,.22); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

button,
input,
textarea,
select { font: inherit; }

button { cursor: pointer; }

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--text-primary);
    color: var(--bg-surface);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Blog tanpa sidebar — hilangkan breaking/cat-strip dari mode news sebelumnya */
.breaking-bar, .cat-strip { display: none !important; }

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-branding { flex: 0 0 auto; }

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -.03em;
}

.site-logo img { max-height: 42px; width: auto; }

.fe-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e, #f59e0b);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 10px rgba(15,118,110,.22);
}
.logo-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
}

.main-nav { flex: 1; min-width: 0; }
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
    display: block;
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: .92rem;
    font-weight: 650;
    transition: .2s ease;
}

.nav-menu > li > a:hover {
    color: var(--text-primary);
    background: var(--bg-body);
}

.sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .18s ease;
}

.nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: .9rem;
}
.sub-menu a:hover { background: var(--bg-body); color: var(--text-primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.search-toggle,
.theme-toggle,
.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-secondary);
    background: transparent;
    transition: .2s ease;
}

.search-toggle:hover,
.theme-toggle:hover,
.mobile-menu-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-body);
    border-color: var(--border);
}

.mobile-menu-toggle { display: none; }
.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    border-radius: 2px;
    background: currentColor;
    transition: .2s ease;
}

.search-form-wrapper {
    padding: 0 0 14px;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 720px;
    margin-inline: auto;
    padding: 6px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.search-form input,
.search-page-form input,
.newsletter-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    background: transparent;
}

.search-form input { padding: 11px 13px; }
.search-form button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--accent);
}

/* ================================================================
   PAGE LAYOUT
   ================================================================ */
.site-content { padding: 42px 0 70px; }

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar);
    gap: 42px;
    align-items: start;
}
.content-layout--no-sidebar {
    grid-template-columns: 1fr;
}
.content-layout--no-sidebar .main-content {
    max-width: none;
    margin-inline: 0;
    width: 100%;
}
.content-layout--no-sidebar .posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.content-layout--no-sidebar .single-article,
.content-layout--no-sidebar .single-page {
    max-width: var(--content);
    margin-inline: auto;
}
.content-layout--no-sidebar .related-posts,
.content-layout--no-sidebar .comments-section,
.content-layout--no-sidebar .archive-header {
    max-width: var(--content);
    margin-inline: auto;
}

.main-content { min-width: 0; }

/* ================================================================
   NEWS HOMEPAGE (no hero — breaking bar + compact leads)
   ================================================================ */
.homepage-hero { display: none !important; }
.news-updated-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: .78rem;
}
.news-updated-bar strong { color: var(--text-primary); letter-spacing: -.01em; }
.news-updated-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--text-primary);
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.section-title::after {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.latest-articles { min-width: 0; }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* ================================================================
   POST CARDS — Blog (clean editorial)
   ================================================================ */
.post-card {
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    box-shadow: var(--shadow-md);
}

.post-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ccfbf1, #fef3c7);
}

.post-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,16,30,.18), transparent 45%);
    opacity: 0;
    transition: opacity .25s ease;
}

.post-card:hover .post-thumbnail::after { opacity: 1; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-thumbnail img { transform: scale(1.045); }

.post-content { padding: 22px 22px 23px; }
.post-category,
.article-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    color: #5147c7;
    background: #eeedff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

html[data-theme="dark"] .post-category,
html[data-theme="dark"] .article-category {
    color: #b8b5ff;
    background: rgba(99,102,241,.16);
}

.post-title {
    margin: 12px 0 9px;
    font-size: 1.3rem;
    line-height: 1.28;
    letter-spacing: -.035em;
}
.post-title a { color: var(--text-primary); }
.post-title a:hover { color: var(--accent); }

.post-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-meta,
.article-meta,
.related-meta {
    color: var(--text-muted);
    font-size: .78rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.post-author { color: var(--text-secondary); font-weight: 650; }
.post-separator { opacity: .55; }

.post-tags,
.article-tags,
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.post-tags { margin-top: 16px; }
.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    background: var(--bg-body);
    font-size: .72rem;
    transition: .18s ease;
}
.tag-link:hover { color: var(--accent); border-color: rgba(99,102,241,.3); }

/* ================================================================
   SIDEBAR
   ================================================================ */
.site-sidebar { min-width: 0; position: sticky; top: 96px; }

.widget {
    margin-bottom: 20px;
    padding: 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    font-size: 1rem;
    letter-spacing: -.02em;
}
.widget-title::before {
    content: "";
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.popular-posts-list,
.categories-list,
.sub-categories,
.footer-links { list-style: none; padding: 0; margin: 0; }
.popular-post-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.popular-post-item:first-child { padding-top: 0; }
.popular-post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.post-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: var(--accent);
    background: #eeedff;
    font-size: .78rem;
    font-weight: 800;
}
.post-info { min-width: 0; }
.post-info .post-title {
    display: block;
    margin: 0 0 3px;
    font-size: .88rem;
    line-height: 1.42;
}
.post-info .post-meta { font-size: .7rem; }

.categories-list > li { border-bottom: 1px solid var(--border); }
.categories-list > li:last-child { border-bottom: 0; }
.categories-list > li > a,
.sub-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    color: var(--text-secondary);
    font-size: .88rem;
}
.categories-list > li > a:hover,
.sub-categories a:hover { color: var(--accent); }
.sub-categories { padding-left: 13px; }
.sub-categories a { padding: 5px 0; font-size: .8rem; }

.tags-cloud { gap: 7px; }

/* ================================================================
   ARCHIVES / SEARCH
   ================================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: .78rem;
}
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-separator { opacity: .5; }

.archive-header {
    margin-bottom: 26px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}
.archive-title,
.page-title {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -.045em;
}
.archive-description { margin: 0 0 9px; color: var(--text-secondary); }
.archive-count { margin: 0; color: var(--text-muted); font-size: .82rem; font-weight: 650; }

.search-page-form {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}
.search-page-form input { padding: 10px 12px; }
.search-page-form button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    font-size: .88rem;
    transition: .2s ease;
}
.search-page-form button,
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 7px 18px rgba(99,102,241,.22);
}
.search-page-form button:hover,
.btn-primary:hover { color: #fff; transform: translateY(-1px); }

mark {
    padding: 0 4px;
    border-radius: 5px;
    color: inherit;
    background: rgba(245,183,0,.25);
}

/* ================================================================
   SINGLE ARTICLE / PAGE
   ================================================================ */
.single-article,
.single-page {
    max-width: var(--content);
    margin-inline: auto;
}

.article-header,
.page-header {
    margin-bottom: 28px;
}
.article-category { margin-bottom: 16px; }
.article-title {
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.article-author { display: flex; align-items: center; gap: 11px; }
.author-avatar,
.author-avatar-large {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 800;
}
.author-avatar { width: 42px; height: 42px; }
.author-info { display: flex; flex-direction: column; }
.author-name { color: var(--text-primary); font-weight: 750; }
.article-date { font-size: .75rem; color: var(--text-muted); }
.article-updated { color: var(--text-muted); font-size: .72rem; }
.article-stats { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.reading-time,
.view-count { display: inline-flex; align-items: center; gap: 5px; }

.article-featured-image,
.page-featured-image {
    overflow: hidden;
    margin: 0 0 34px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
}
.article-featured-image img,
.page-featured-image img { width: 100%; }

.article-content,
.page-content {
    color: var(--text-primary);
    font-size: 1.06rem;
    line-height: 1.9;
}

.article-content > *:first-child,
.page-content > *:first-child { margin-top: 0; }
.article-content h2,
.page-content h2 { margin: 2.2em 0 .7em; font-size: 1.65rem; line-height: 1.25; letter-spacing: -.035em; }
.article-content h3,
.page-content h3 { margin: 1.8em 0 .6em; font-size: 1.3rem; line-height: 1.3; }
.article-content p,
.page-content p { margin: 0 0 1.25em; }
.article-content a,
.page-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content blockquote,
.page-content blockquote {
    margin: 1.7em 0;
    padding: 18px 22px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--bg-surface);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}
.article-content img,
.page-content img { border-radius: 14px; margin: 1.5em auto; }
.article-content pre,
.page-content pre {
    overflow: auto;
    margin: 1.6em 0;
    padding: 18px;
    border-radius: 13px;
    color: #e7eaf0;
    background: #111827;
    line-height: 1.6;
    font-size: .88rem;
}
.article-content code,
.page-content code { padding: 2px 5px; border-radius: 5px; background: var(--bg-body); font-size: .9em; }
.article-content pre code,
.page-content pre code { padding: 0; background: transparent; }
.article-content ul,
.article-content ol,
.page-content ul,
.page-content ol { padding-left: 1.5em; }

.article-tags {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.tags-label { margin-right: 3px; color: var(--text-secondary); font-weight: 750; }

/* Author box */
.author-box {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}
.author-avatar-large { width: 64px; height: 64px; font-size: 1.35rem; }
.author-details { min-width: 0; }
.author-bio { margin: 5px 0 0; color: var(--text-secondary); font-size: .9rem; }
.author-meta { color: var(--text-muted); font-size: .76rem; }

/* Share */
.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding: 17px 0;
    border-top: 1px solid var(--border);
}
.share-label { color: var(--text-secondary); font-size: .82rem; font-weight: 700; }
.share-buttons { display: flex; gap: 8px; }
.share-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    transition: .2s ease;
}
.share-btn:hover { color: var(--accent); border-color: rgba(99,102,241,.3); transform: translateY(-2px); }

/* ================================================================
   RELATED POSTS
   ================================================================ */
.related-posts { max-width: var(--content); margin: 48px auto 0; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.related-post-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}
.related-thumbnail { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-body); }
.related-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.related-post-card:hover img { transform: scale(1.04); }
.related-content { padding: 13px 14px 15px; }
.related-title { margin: 0 0 7px; font-size: .95rem; line-height: 1.4; }
.related-title a { color: var(--text-primary); }

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-section {
    max-width: var(--content);
    margin: 48px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.comment-count { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.comment-form-wrapper {
    margin-bottom: 25px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}
.comment-form-wrapper h3 { margin: 0 0 16px; font-size: 1.1rem; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form .form-group { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 6px; color: var(--text-primary); font-size: .8rem; font-weight: 750; }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    color: var(--text-primary);
    background: var(--bg-elevated);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.comment-form small { display: block; margin-top: 4px; color: var(--text-muted); font-size: .72rem; }
.comments-list { display: flex; flex-direction: column; gap: 14px; }
.comment {
    display: flex;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
}
.comment-avatar { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 750; }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.comment-author { color: var(--text-primary); }
.comment-author a { color: inherit; }
.comment-date { color: var(--text-muted); font-size: .72rem; }
.comment-content { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; }
.comment-replies { margin: 13px 0 0 52px; display: flex; flex-direction: column; gap: 10px; }
.comment-reply { background: var(--bg-body); border-left: 3px solid var(--accent); }
.no-comments,
.empty-state {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    background: var(--bg-surface);
}

.alert { padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; font-size: .86rem; }
.alert-success { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.alert-danger { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.alert-warning { color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 32px;
}
.pagination-numbers { display: flex; gap: 7px; }
.pagination-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    font-size: .8rem;
    font-weight: 700;
}
.pagination-link:hover,
.pagination-link.active { color: #fff; border-color: var(--accent); background: var(--accent); }
.pagination-dots { display: inline-flex; align-items: center; padding: 0 4px; color: var(--text-muted); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    margin-top: 20px;
    padding: 58px 0 24px;
    color: #b9c2d3;
    background: #111827;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr;
    gap: 34px;
}
.footer-title { margin: 0 0 13px; color: #fff; font-size: 1rem; }
.footer-about,
.footer-col > p { margin: 0; color: #9ba7bb; font-size: .85rem; line-height: 1.7; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: #9ba7bb; font-size: .83rem; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 8px; margin-top: 17px; }
.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2b3548;
    border-radius: 10px;
    color: #b9c2d3;
    background: #182235;
}
.social-links a:hover { color: #fff; border-color: #56647c; }
.newsletter-form { display: flex; gap: 7px; margin-top: 12px; }
.newsletter-form input {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #2b3548;
    border-radius: 9px;
    color: #fff;
    background: #182235;
}
.newsletter-form button {
    flex: 0 0 auto;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    color: #111827;
    background: var(--primary);
    font-weight: 800;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid #273247;
    color: #77849a;
    font-size: .74rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #aab4c7; }

/* ================================================================
   ERROR PAGE
   ================================================================ */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-content { max-width: 650px; padding: 60px 20px; }
.error-code { margin: 0; color: var(--accent); font-size: clamp(5rem, 15vw, 9rem); line-height: .9; letter-spacing: -.08em; }
.error-title { margin: 18px 0 8px; font-size: 2rem; }
.error-message { color: var(--text-secondary); }
.error-search { max-width: 520px; margin: 25px auto; }
.suggestions-list { text-align: left; }

/* ================================================================
   AD CONTAINERS
   ================================================================ */
.ad-container,
.ad-placeholder { margin: 0 0 22px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
    .content-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
    .nav-menu > li > a { padding-inline: 8px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .site-content { padding-top: 26px; }
    .header-inner { gap: 12px; }
    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--bg-surface);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: .2s ease;
    }
    .main-nav.show { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-menu { display: block; }
    .nav-menu > li > a { padding: 11px 12px; }
    .sub-menu { position: static; display: none; padding: 0 0 6px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
    .nav-menu > li:hover .sub-menu { display: block; }
    .mobile-menu-toggle { display: inline-flex; }
    .content-layout { grid-template-columns: 1fr; }
    .site-sidebar { position: static; }
    .homepage-hero { min-height: 290px; padding: 40px 32px; }
    .posts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 20px), var(--container)); }
    .site-header { --header-height: 66px; }
    .logo-text { font-size: 1.08rem; }
    .search-toggle, .theme-toggle, .mobile-menu-toggle { width: 36px; height: 36px; }
    .homepage-hero { min-height: 260px; margin-bottom: 34px; padding: 32px 24px; border-radius: 20px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: .95rem; }
    .posts-grid,
    .related-posts-grid { grid-template-columns: 1fr; }
    .post-content { padding: 18px; }
    .archive-header { padding: 22px; }
    .article-title { font-size: 2.25rem; }
    .article-meta { align-items: flex-start; flex-direction: column; }
    .article-stats { width: 100%; justify-content: flex-start; }
    .article-content, .page-content { font-size: 1rem; }
    .article-share { align-items: flex-start; flex-direction: column; }
    .comment-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .comment-replies { margin-left: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================================================================
   EXISTING COMMENT COMPONENT COMPATIBILITY
   ================================================================ */
.comments-section { margin-top: 3rem; }
.comment-form-wrapper { margin-bottom: 2rem; }
.comments-list { gap: 1rem; }


/* Iklan: rata tengah */
.ad-placement {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin: 24px auto;
    text-align: center;
    overflow: hidden;
}
.ad-placement iframe,
.ad-placement ins,
.ad-placement img {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* ================================================================
   PERBAIKAN MOBILE (tabel, embed, judul, tombol sentuh)
   ================================================================ */

/* Isi artikel: cegah teks/URL panjang melebihi layar */
.article-content,
.page-content { overflow-wrap: anywhere; }

/* Tabel: bisa digeser ke samping, tidak melebarkan halaman */
.article-content table,
.page-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    font-size: .95rem;
    line-height: 1.5;
}
.article-content th,
.article-content td,
.page-content th,
.page-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.article-content th,
.page-content th { background: var(--bg-surface); font-weight: 700; }

/* Embed video (YouTube, Vimeo, TikTok) responsif */
.article-content iframe,
.page-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 1.5em 0;
    border: 0;
    border-radius: 12px;
}
.article-content video,
.page-content video { max-width: 100%; height: auto; }

/* Iklan: jangan melebihi lebar layar */
.ad-placement iframe,
.ad-placement ins,
.ad-placement img { max-width: 100%; }

@media (max-width: 860px) {
    .mobile-menu-toggle { width: 40px; height: 40px; }
    .nav-menu > li > a { padding: 13px 12px; }
}

@media (max-width: 620px) {
    .article-title { font-size: 1.65rem; line-height: 1.25; letter-spacing: -.02em; }
    .article-content h2,
    .page-content h2 { margin: 1.8em 0 .6em; font-size: 1.35rem; }
    .article-content h3,
    .page-content h3 { font-size: 1.12rem; }
    .article-content,
    .page-content { line-height: 1.8; }
    .article-featured-image,
    .page-featured-image { margin-bottom: 22px; border-radius: 14px; }
    .breadcrumb { font-size: .8rem; margin-bottom: 16px; }
    .author-box { flex-direction: column; padding: 18px; }

    /* Tombol sentuh minimal ~44px */
    .share-btn { width: 44px; height: 44px; }
    .search-toggle, .theme-toggle, .mobile-menu-toggle { width: 40px; height: 40px; }

    /* 16px mencegah iPhone memperbesar halaman otomatis saat mengetik */
    .comment-form input,
    .comment-form textarea,
    .search-form input { font-size: 16px; }
}


/* ================================================================
   PERBAIKAN: grid artikel & tombol hamburger di HP
   ================================================================ */

/* Aturan layout tanpa sidebar (3 kolom) lebih kuat dari aturan mobile,
   sehingga HP tetap 3 kolom. Ditimpa di sini dengan selector yang sama kuat. */
@media (max-width: 1100px) {
    .content-layout--no-sidebar .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .content-layout--no-sidebar .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Tombol hamburger: tiga garis harus tersusun ke bawah, bukan ke samping */
.mobile-menu-toggle {
    flex-direction: column;
    gap: 0;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }