/*!
Theme Name: WebProxy Indonesia
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: webproxy-indonesia
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

WebProxy Indonesia is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

:root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-alt: #f4f6f8;
    --fg: #1e293b;
    --fg-dim: #64748b;
    --line: #e2e8f0;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* ==========================================================================
   Integrasi Desain Header WebProxy.co.id (Root Sync)
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: relative; /* Penting agar dropdown mobile tidak lari */
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header__logo img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.header__logo:hover {
    opacity: 0.85;
}

/* --- TATA LETAK NAVIGASI (DESKTOP) --- */
.header__nav {
    display: flex;
    align-items: center;
}

.main-navigation {
    display: block;
    width: 100%;
}

/* Sembunyikan tombol garis tiga di Desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--fg);
    padding: 4px 8px;
    line-height: 1;
    cursor: pointer;
}

.menu-toggle:hover {
    background: var(--bg-alt);
    border-color: transparent;
}

.header__nav .main-navigation ul.primary-menu-list {
    display: flex;
    gap: 8px; /* Jarak antar tombol disamakan dengan root */
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

/* Gaya link agar identik dengan .nav-link di root */
.header__nav .main-navigation ul.primary-menu-list li a {
    display: flex;
    align-items: center;
    color: var(--fg);
    font-weight: bold;
    text-decoration: none !important;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.header__nav .main-navigation ul.primary-menu-list li a:hover {
    background: var(--bg-alt);
    color: var(--accent);
    text-decoration: none !important;
}

/* --- TATA LETAK NAVIGASI (MOBILE / HP) --- */
@media (max-width: 600px) {
    .header {
        padding: 12px 16px;
    }
    .header__logo img {
        height: 36px;
    }

    /* Tampilkan tombol garis tiga */
    .menu-toggle {
        display: block;
    }

    /* Sembunyikan menu secara default di HP */
    .header__nav .main-navigation ul.primary-menu-list {
        display: none !important; 
    }

    /* Tampilkan Dropdown saat tombol diketuk (Underscores JS) */
    .header__nav .main-navigation.toggled ul.primary-menu-list {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 4px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }

    /* Lebarkan tombol agar mudah disentuh di layar HP */
    .header__nav .main-navigation ul.primary-menu-list li a {
        padding: 12px 16px;
        width: 100%;
    }
}

/* ==========================================================================
   Integrasi Desain Footer WebProxy.co.id
   ========================================================================== */
.footer {
    margin-top: 60px;
    padding-top: 24px;
    padding-bottom: 40px;
    border-top: 1px solid var(--line);
    color: var(--fg-dim);
    text-align: center;
}

.footer a {
    color: var(--fg-dim);
    margin: 0 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--fg);
    text-decoration: underline;
}

.footer p {
    margin-top: 12px;
    font-size: 0.95rem;
}

/* ==========================================================================
   TATA LETAK HALAMAN UTAMA BLOG (GRID LAYOUT)
   ========================================================================== */
.blog-layout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 320px; /* Konten utama menyesuaikan, Sidebar 320px */
    gap: 40px;
    align-items: start;
}

/* ==========================================================================
   DESAIN KARTU ARSIP ARTIKEL (UPDATE)
   ========================================================================== */
.archive-post-card {
    display: flex;
    background: var(--bg); /* Diubah dari var(--bg-alt) menjadi putih bersih */
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    overflow: hidden;
    margin-bottom: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.archive-post-card:hover {
    box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

/* Penambahan Padding pada Container Gambar */
.archive-post-thumbnail {
    flex-shrink: 0;
    width: 300px;
    padding: 16px; /* Memberikan jarak antara gambar dan dinding kartu */
}

.archive-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px; /* Menambahkan lengkungan pada gambar agar lebih manis */
    display: block;
}

/* Penyesuaian jarak teks agar seimbang dengan padding gambar */
.archive-post-content {
    padding: 24px 24px 24px 8px; /* Mengurangi padding kiri agar tidak terlalu jauh dari gambar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* ... (CSS Judul, Meta, dan Excerpt tetap sama seperti sebelumnya) ... */

.archive-post-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.4;
}
.archive-post-title a { color: var(--fg); text-decoration: none; }
.archive-post-title a:hover { color: var(--accent); }

.archive-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem; /* Diperkecil dari 0.9rem */
    color: var(--fg-dim);
    margin-bottom: 12px;
    font-weight: normal; /* Diubah menjadi normal */
}
.archive-post-meta svg { vertical-align: middle; }

.archive-post-excerpt p {
    margin: 0;
    color: var(--fg-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==========================================================================
   DESAIN SIDEBAR & WIDGET
   ========================================================================== */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.custom-widget {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
    color: var(--fg);
}

/* --- Desain Kolom Pencarian (Identik dengan Root) --- */
.custom-search-form .input-group {
    display: flex;
    align-items: stretch; /* UBAH KE STRETCH: Memaksa tombol sejajar penuh ke atas dan bawah */
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.custom-search-form .input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-search-form input {
    border: none;
    box-shadow: none;
    padding: 10px 16px;
    width: 100%;
    font-size: 0.95rem;
    background: transparent;
    color: var(--fg);
    outline: none;
    margin: 0; /* Pastikan tidak ada margin bawaan dari tema */
}

.custom-search-form .go-btn {
    display: flex;
    align-items: center; 
    justify-content: center;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0;
    padding: 0 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-search-form .go-btn:hover {
    background: var(--accent-hover);
}

/* --- Desain Daftar Artikel & Kategori --- */
.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.widget-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-list li a {
    color: var(--fg);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    transition: color 0.2s;
}

.widget-list li a:hover {
    color: var(--accent);
}

/* Kategori list items (Bawaan wp_list_categories kadang menambahkan class) */
.widget-list.category-list li.cat-item a {
    font-weight: 500;
}

/* ==========================================================================
   DESAIN ARTIKEL TUNGGAL (SINGLE POST)
   ========================================================================== */
.single-post-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    margin-bottom: 40px;

    box-sizing: border-box; 
    width: 100%;
    max-width: 100%;
}

/* --- Breadcrumbs --- */
.single-breadcrumbs {
    font-size: 0.9rem;
    color: var(--fg-dim);
    margin-bottom: 12px;
}
.single-breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}
.single-breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- Header, Judul & Meta --- */
.single-header {
    margin-bottom: 24px;
}

.single-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--fg);
    font-weight: 700;
}

/* ==========================================================================
   META DATA ARTIKEL (Single Post & Archive)
   ========================================================================== */
.single-meta,
.archive-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--fg-dim);
    font-weight: normal;
}

/* Menghapus gaya default link pada nama author agar terlihat rapi */
.single-meta .author-name a,
.archive-post-meta .author-name a {
    color: var(--fg);
    text-decoration: none;
    font-weight: normal; 
    transition: color 0.2s ease;
}

/* Efek saat nama author disorot (hover) */
.single-meta .author-name a:hover,
.archive-post-meta .author-name a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* --- Gambar Unggulan (Rounded) --- */
.single-featured-image {
    margin-bottom: 40px;
}
.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* --- Tipografi Konten Artikel --- */
.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--fg);

    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
/* Memisahkan gaya H2, H3, H4 untuk mengatur ukuran font yang berjenjang */
.single-content h2 {
    font-size: 1.75rem;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--fg);
    font-weight: 700;
}

.single-content h3 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--fg);
    font-weight: 600;
}

.single-content h4 {
    font-size: 1.2rem; /* Lebih kecil dari H3 */
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--fg);
    font-weight: 600;
}

.single-content p {
    margin-bottom: 24px;
}
.single-content a {
    color: var(--accent);
    text-decoration: none;
}
.single-content a:hover {
    text-decoration: underline;
}
.single-content ul, 
.single-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.single-content li {
    margin-bottom: 8px;
}
.single-content img {
    border-radius: 8px;
    margin: 24px 0;
    height: auto;
    max-width: 100%;
}

/* --- Pengaman Layout (Tabel, Iframe, Code) --- */
.single-content pre {
    max-width: 100%;
    overflow-x: auto; /* Memunculkan scroll horizontal jika kode terlalu panjang */
    box-sizing: border-box;
}

.single-content table {
    max-width: 100%;
    overflow-x: auto; /* Memunculkan scroll horizontal pada tabel di HP */
    display: block; 
    box-sizing: border-box;
}

.single-content iframe,
.single-content embed,
.single-content object {
    max-width: 100%;
}

/* ==========================================================================
   PERBAIKAN RESPONSIVITAS MOBILE & TABLET (FINAL)
   ========================================================================== */

/* 1. Untuk layar Tablet (Sidebar pindah ke bawah) */
@media (max-width: 992px) {
    .blog-layout-container {
        grid-template-columns: 1fr;
    }
}

/* 2. Untuk layar Smartphone */
@media (max-width: 600px) {
    
    /* --- Desain Daftar Artikel (Thumbnail Kiri, Tanpa Kutipan) --- */
    .archive-post-card {
        flex-direction: row;
        align-items: center;
        margin-bottom: 16px;
    }
    
    .archive-post-thumbnail {
        width: 110px;
        padding: 12px 0 12px 12px;
    }
    
    .archive-post-thumbnail img {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }
    
    .archive-post-content {
        padding: 12px 16px;
    }
    
    .archive-post-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .archive-post-meta {
        font-size: 0.8rem; /* Meta data diperkecil */
        margin-bottom: 0; 
        flex-wrap: wrap;
    }
    
    .archive-post-excerpt {
        display: none;
    }

    /* --- Desain Halaman Artikel Tunggal --- */
    .single-post-card {
        padding: 20px;

        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .single-title {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .single-meta {
        flex-wrap: wrap; 
    }
    
    .single-featured-image {
        margin-bottom: 24px;
    }
    
    .single-content img {
        max-width: 100%;
        height: auto;
    }

    /* --- Penyesuaian Tipografi Heading di Mobile --- */
    .single-content h2 {
        font-size: 1.4rem;
        margin-top: 28px;
        margin-bottom: 10px;
    }
    
    .single-content h3 {
        font-size: 1.2rem;
        margin-top: 24px;
        margin-bottom: 8px;
    }
    
    .single-content h4 {
        font-size: 1.1rem;
        margin-top: 20px;
        margin-bottom: 6px;
    }
}

/* ==========================================================================
   DESAIN AREA KOMENTAR (KARTU IDENTIK DENGAN SINGLE POST)
   ========================================================================== */
.comments-area {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    margin-bottom: 40px;
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
    color: var(--fg);
}

/* --- Daftar Komentar & Avatar --- */
.comment-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.comment-list li.comment {
    margin-bottom: 24px;
}

.comment-body {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.comment-author .avatar {
    border-radius: 50%; /* Membuat foto profil bulat sempurna */
    width: 48px;
    height: 48px;
}

.comment-meta {
    flex: 1;
}

.comment-author b.fn {
    font-size: 1.05rem;
    color: var(--fg);
}

.comment-metadata {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.comment-metadata a {
    color: var(--fg-dim);
    text-decoration: none;
}

.comment-content p {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fg);
}

.reply a {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

/* --- Desain Formulir Komentar --- */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--fg);
}

/* Input dan Textarea melengkung bergaya modern */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--fg);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
}

/* Tombol Kirim Komentar (Bentuk Pil melengkung seperti pencarian) */
.comment-form .form-submit .submit {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .form-submit .submit:hover {
    background: var(--accent-hover);
}

/* --- Responsif Komentar untuk Ponsel --- */
@media (max-width: 600px) {
    .comments-area {
        padding: 20px;
    }
    .comment-body {
        flex-direction: column; /* Avatar pindah ke atas di layar kecil */
        gap: 12px;
    }
}

/* ==========================================================================
   TABLE OF CONTENTS (TOC) - MULTI LEVEL, TOGGLE & SMOOTH SCROLL
   ========================================================================== */

/* 1. Efek Smooth Scroll Native HTML */
html {
    scroll-behavior: smooth; 
}

/* 2. Mencegah teks heading tertutup header saat di-klik */
.single-content h2, 
.single-content h3, 
.single-content h4 {
    scroll-margin-top: 80px; 
}

/* 3. Desain Kotak Utama ToC */
.custom-toc {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    display: block;
    max-width: fit-content;
    min-width: 50%;
}

.custom-toc details {
    padding: 20px 24px;
}

/* 4. Tampilan Judul & Tombol Toggle */
.custom-toc details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.custom-toc details summary::-webkit-details-marker {
    display: none;
}
.custom-toc .toc-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--fg);
    margin: 0;
}

/* Desain Tombol Toggle (Sedikit gelap dari putih, bergaris, rounded) */
.toc-toggle-text::after {
    content: "Tampilkan";
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fg);
    background-color: rgba(0, 0, 0, 0.03); /* Abu-abu sangat terang */
    border: 1px solid var(--line);
    border-radius: 20px; /* Bentuk tombol melengkung */
    padding: 4px 16px;
    transition: all 0.2s ease;
}

/* Saat di-hover */
.custom-toc details summary:hover .toc-toggle-text::after {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Teks dan warna tombol saat ToC terbuka */
.custom-toc details[open] .toc-toggle-text::after {
    content: "Sembunyikan";
    background-color: rgba(0, 0, 0, 0.06);
}

/* 5. Desain Area Konten ToC (Background sedikit gelap) */
.toc-content {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.02); /* Membedakan konten ToC dari halaman utama */
    border-radius: 8px;
    border: 1px solid var(--line);
}

/* 6. Penomoran Bertingkat Otomatis & Padding Hirarki */
.custom-toc ol.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: h2-counter;
}
.custom-toc ol.toc-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}
.custom-toc ol.toc-list a {
    color: var(--fg-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}
.custom-toc ol.toc-list a:hover {
    color: var(--accent);
}

/* Style H2 */
.toc-level-2 {
    counter-reset: h3-counter;
    margin-top: 16px;
}
.toc-level-2 > a::before {
    counter-increment: h2-counter;
    content: counter(h2-counter) ". ";
    color: var(--accent);
    font-weight: bold;
    margin-right: 8px;
}

/* Style H3 (Diberi padding lebih dalam agar menjorok masuk) */
.toc-level-3 {
    counter-reset: h4-counter;
    padding-left: 32px; /* Padding sisi kiri dipertegas */
    margin-top: 8px;
    font-size: 0.95rem;
}
.toc-level-3 > a::before {
    counter-increment: h3-counter;
    content: counter(h2-counter) "." counter(h3-counter) " ";
    color: var(--accent);
    margin-right: 8px;
}

/* Style H4 (Diberi padding lebih dalam dari H3) */
.toc-level-4 {
    padding-left: 64px; /* Padding sisi kiri lebih dalam dari H3 */
    margin-top: 8px;
    font-size: 0.9rem;
}
.toc-level-4 > a::before {
    counter-increment: h4-counter;
    content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter) " ";
    color: var(--accent);
    margin-right: 8px;
}