/* ==========================================================================
   SemogaBermanfaat.com — Stylesheet Utama (Gaya MasTimon.com)
   Ringan, Mobile-First, Core Web Vitals 100, & Dark Mode Ready
   ========================================================================== */

:root {
    --primary: #005af0;
    --primary-hover: #0046bd;
    --primary-soft: rgba(0, 90, 240, 0.09);
    --bg-body: #f3f5f9;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --text-main: #111827;
    --text-body: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --container-max: 1140px;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.15);
    --bg-body: #0b1120;
    --bg-card: #131c31;
    --bg-subtle: #1e293b;
    --text-main: #f1f5f9;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
}
.skip-link:focus {
    top: 12px;
}

/* Top Utility Bar */
.top-utility-bar {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.top-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    gap: 12px;
}

.top-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}

.top-quick-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-quick-links a {
    color: #cbd5e1;
    font-weight: 500;
}

.top-quick-links a:hover {
    color: #ffffff;
}

.top-admin-badge {
    background: var(--primary);
    color: #fff !important;
    padding: 2px 9px;
    border-radius: 4px;
    font-weight: 600;
}

/* Header Utama Sticky (MasTimon Style) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-card);
    border-top: 3px solid var(--primary);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-logo:hover {
    color: var(--text-main);
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    flex-shrink: 0;
}

.brand-accent {
    color: var(--primary);
}

/* Navigasi Kategori */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 7px 12px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.91rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
}

/* Icon Dark/Light */
[data-theme="light"] .icon-sun {
    display: none;
}
[data-theme="dark"] .icon-moon {
    display: none;
}

/* Dropdown Search Bar */
.header-search-bar {
    background-color: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

/* Layout Utama 2 Kolom (Content + Sidebar) */
.site-main {
    padding: 26px 0 48px;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.content-area,
.site-sidebar {
    min-width: 0;
    max-width: 100%;
}

/* Featured Headline Card (Atas Beranda) */
.featured-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.featured-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0f172a;
}

.featured-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.featured-card:hover .featured-thumb {
    transform: scale(1.03);
}

.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}

.featured-body {
    padding: 22px 24px;
}

.featured-title {
    font-size: 1.55rem;
    line-height: 1.32;
    font-weight: 800;
    margin: 8px 0 10px;
}

.featured-title a {
    color: var(--text-main);
}

.featured-title a:hover {
    color: var(--primary);
}

.featured-excerpt {
    color: var(--text-body);
    font-size: 0.96rem;
    margin-bottom: 14px;
}

/* Section Heading */
.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--border) 100%);
}

/* Post Feed & Horizontal Card (Mirip MasTimon.com) */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-card {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 90, 240, 0.28);
}

.post-card-thumb-link {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-subtle);
}

.post-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb {
    transform: scale(1.04);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.post-cat-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cat-color, var(--primary));
    background-color: var(--primary-soft);
    padding: 2px 8px;
    border-radius: 4px;
}

.meta-dot {
    color: var(--text-muted);
}

.meta-read {
    color: var(--text-muted);
}

.post-card-title {
    font-size: 1.16rem;
    line-height: 1.38;
    font-weight: 750;
    margin-bottom: 8px;
}

.post-card-title a {
    color: var(--text-main);
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* Sidebar Widgets */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 84px;
}

.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.widget-line {
    flex: 1;
    height: 2px;
    background: var(--primary);
    opacity: 0.35;
}

/* Popular Posts Widget (MasTimon Numbered Style) */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

.popular-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-thumb-link {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.popular-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-rank {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-bottom-right-radius: 6px;
}

.popular-info {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.popular-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.popular-title {
    font-size: 0.88rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.popular-title a {
    color: var(--text-main);
}

.popular-title a:hover {
    color: var(--primary);
}

.popular-meta {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: flex;
    gap: 5px;
}

/* Category Widget */
.category-widget-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-widget-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    background-color: var(--bg-subtle);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.category-widget-link:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.cat-dot-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cat-count-badge {
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-badge {
    display: inline-block;
    padding: 5px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.tag-badge:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Single Article Page (post.php) */
.single-post-card,
.card-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.single-post-title {
    font-size: 1.85rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-main);
    margin: 10px 0 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.author-meta-chip {
    display: flex;
    align-items: center;
    gap: 11px;
}

.author-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.author-name-line {
    font-size: 0.92rem;
    color: var(--text-main);
    display: block;
}

.post-date-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.single-post-figure {
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.single-post-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.single-post-caption {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
    text-align: center;
}

/* Table of Contents (Daftar Isi Otomatis) */
.toc-box {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 22px 0;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.toc-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--text-main);
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.toc-list {
    margin-top: 12px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-item {
    font-size: 0.92rem;
}

.toc-item.toc-sub {
    margin-left: 18px;
    list-style-type: circle;
}

.toc-item a {
    color: var(--text-body);
    font-weight: 500;
}

.toc-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Tipografi Konten Artikel */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.82;
    color: var(--text-body);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-content p {
    margin-bottom: 1.25em;
}

.entry-content h2 {
    font-size: 1.42rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1.65em 0 0.65em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 750;
    color: var(--text-main);
    margin: 1.4em 0 0.55em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.3em 1.4em;
}

.entry-content li {
    margin-bottom: 0.45em;
}

.entry-content blockquote {
    background-color: var(--primary-soft);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-main);
    margin: 1.4em 0;
}

.entry-content code {
    background-color: var(--bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
    border: 1px solid var(--border);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-content pre {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-sm);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.4em;
}

.entry-content pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    overflow-wrap: normal;
    word-break: normal;
    white-space: pre;
}

.entry-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.92rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.entry-content th {
    background-color: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 700;
}

.entry-content img {
    border-radius: var(--radius-sm);
    margin: 1.2em auto;
}

/* Tags & Share Box */
.post-tags-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.tags-label,
.share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.share-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff !important;
    border: none;
    cursor: pointer;
}

.share-wa { background-color: #16a34a; }
.share-fb { background-color: #1877f2; }
.share-tw { background-color: #0f172a; }
.share-tg { background-color: #0284c7; }
.share-copy { background-color: #475569; }

/* Author E-E-A-T Box */
.author-eeat-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 26px;
    padding: 20px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.author-eeat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-eeat-role {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}

.author-eeat-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.author-eeat-bio {
    font-size: 0.88rem;
    color: var(--text-body);
}

/* Related Posts Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--bg-subtle);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.related-thumb-link {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-title {
    font-size: 0.95rem;
    line-height: 1.38;
    font-weight: 700;
    margin-bottom: 4px;
}

.related-title a {
    color: var(--text-main);
}

.related-title a:hover {
    color: var(--primary);
}

.related-date {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Forms & Comments */
.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.req {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg-subtle);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.94rem;
}

.form-control:focus {
    outline: 2px solid var(--primary);
    background-color: var(--bg-card);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

.comment-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 0.92rem;
    color: var(--text-main);
}

.comment-date {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.92rem;
    color: var(--text-body);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Archive Header & Pagination */
.archive-header {
    margin-bottom: 22px;
}

.archive-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.archive-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 4px 0 6px;
}

.archive-desc {
    font-size: 0.92rem;
    color: var(--text-body);
}

.archive-count {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.inline-search-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.88rem;
}

.page-btn:hover,
.page-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* AdSense Slot Wrappers */
.ad-slot-wrapper {
    margin: 20px 0;
    text-align: center;
    background: var(--bg-subtle);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.ad-slot-badge {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ad-demo-box {
    padding: 24px 16px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding-top: 48px;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
}

.footer-brand {
    color: #ffffff !important;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.footer-contact-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #e2e8f0;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: #090e1a;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #cbd5e1;
}

/* Cookie Banner & Back to Top */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 720px;
    margin: 0 auto;
    background-color: #0f172a;
    color: #f1f5f9;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2000;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-text {
    font-size: 0.84rem;
    line-height: 1.5;
}

.cookie-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1500;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.text-muted {
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

/* Responsif Tablet & Smartphone (Friendly Mobile 100%) */
@media (max-width: 960px) {
    .main-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-sidebar {
        position: static;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        padding: 10px 12px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .top-date {
        display: none;
    }

    .top-utility-inner {
        justify-content: center;
    }

    .post-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .featured-title,
    .single-post-title {
        font-size: 1.32rem;
        line-height: 1.35;
    }

    .section-title {
        white-space: normal;
    }

    .single-post-card,
    .card-box {
        padding: 16px;
    }

    .form-row-2,
    .related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }
}

