/*
Theme Name: Daconda Theme
Theme URI: https://daconda.com
Author: Daconda
Author URI: https://daconda.com
Description: Tema WordPress dengan identitas visual Daconda - gradient cyan, purple, pink; nuansa gaming & top up store. Sesuai dengan tampilan project Laravel Daconda.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daconda-theme
*/

/* ==========================================================================
   CSS Variables (sesuai project Laravel)
   ========================================================================== */
:root {
    --font-sans: 'Montserrat', system-ui, sans-serif;
    --color-cyan-400: #22d3ee;
    --color-cyan-500: #06b6d4;
    --color-purple-400: #c084fc;
    --color-purple-500: #a855f7;
    --color-purple-600: #9333ea;
    --color-pink-400: #f472b6;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-950: #020617;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --gradient-nav: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.9) 100%);
    --gradient-body: linear-gradient(to bottom right, #ecfeff 0%, #e0f2fe 25%, #f3f4f6 50%, #e5e7eb 100%);
    --gradient-body-dark: linear-gradient(to bottom right, #083344 0%, #0f172a 50%, #1e293b 100%);
    --gradient-accent: linear-gradient(90deg, #a855f7 0%, #06b6d4 50%, #ec4899 100%);
    --gradient-text-brand: linear-gradient(90deg, #22d3ee 0%, #c084fc 50%, #f472b6 100%);
    --shadow-cyan: 0 0 30px rgba(6, 182, 212, 0.3);
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;

    /* Container: max-width + padding horizontal responsif */
    --container-max: 72rem;
    /* 1152px, mirip max-w-screen-xl */
    --container-px: 1rem;
    /* mobile */
    --container-py: 1.5rem;
    /* mobile vertical */
    --section-gap: 1.5rem;
    /* jarak antar section mobile */
    --card-padding: 1rem;
    /* mobile */
    --text-base: 0.9375rem;
    /* 15px mobile - nyaman baca */
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
}

/* Tablet: 640px+ */
@media (min-width: 640px) {
    :root {
        --container-px: 1.25rem;
        --container-py: 2rem;
        --section-gap: 2rem;
        --card-padding: 1.25rem;
        --text-base: 1rem;
        --text-2xl: 1.625rem;
        --text-3xl: 2rem;
        --text-4xl: 2.5rem;
    }
}

/* Desktop: 768px+ */
@media (min-width: 768px) {
    :root {
        --container-px: 1.5rem;
        --container-py: 2rem;
        --section-gap: 2.5rem;
        --card-padding: 1.5rem;
        --text-2xl: 1.75rem;
        --text-3xl: 2.25rem;
        --text-4xl: 2.75rem;
    }
}

/* Large: 1024px+ */
@media (min-width: 1024px) {
    :root {
        --container-px: 2rem;
        --container-max: 80rem;
        /* 1280px */
        --section-gap: 3rem;
        --card-padding: 1.5rem;
        --text-4xl: 3rem;
    }
}

/* ==========================================================================
   Base & Typography (default: dark theme seperti main website)
   ========================================================================== */
body,
body.daconda-theme {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    background: var(--gradient-body-dark) !important;
    color: #e2e8f0 !important;
    margin: 0;
    padding-top: 4.5rem;
    min-height: 100vh;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    body {
        padding-top: 5rem;
    }
}

body.theme-light {
    background: var(--gradient-body);
    color: #1e293b;
}

a {
    color: var(--color-cyan-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-cyan-400);
}

/* ==========================================================================
   Header / Navbar (fixed, gradient, accent line)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--gradient-nav);
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 25px 50px -12px rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
    .site-header .header-inner {
        position: relative;
    }
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0.6;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.5rem var(--container-px);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .header-inner {
        padding: 0.625rem var(--container-px);
    }
}

@media (min-width: 768px) {
    .header-inner {
        padding: 0.75rem var(--container-px);
    }
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.site-branding a:hover {
    transform: scale(1.02);
}

.site-title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: var(--leading-tight);
    background: var(--gradient-text-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

@media (min-width: 640px) {
    .site-title {
        font-size: var(--text-xl);
    }
}

@media (min-width: 768px) {
    .site-title {
        font-size: var(--text-2xl);
    }
}

.site-description {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(34, 211, 238, 0.7);
    margin: 0;
}

@media (min-width: 640px) {
    .site-description {
        font-size: 0.75rem;
    }
}

.site-logo {
    width: auto;
    height: 2.75rem;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(6, 182, 212, 0.3);
    transition: border-color 0.3s ease;
}

@media (min-width: 640px) {
    .site-logo {
        height: 3.25rem;
    }
}

@media (min-width: 768px) {
    .site-logo {
        height: 3.75rem;
    }
}

.site-branding a:hover .site-logo {
    border-color: rgba(34, 211, 238, 0.6);
}

/* Main navigation - desktop */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.main-navigation a {
    color: var(--color-slate-300);
    font-size: var(--text-base);
    font-weight: 500;
    padding: 0.5rem 0;
    display: inline-block;
}

@media (min-width: 768px) {
    .main-navigation a {
        font-size: 0.9375rem;
        padding: 0.5rem 0;
    }
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-cyan-400);
}

.main-navigation .current-menu-item a {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-bottom: 2px solid var(--color-cyan-400);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    border-radius: 5px 10px;
    -webkit-border-radius: 5px 10px;
    -moz-border-radius: 5px 10px;
    -ms-border-radius: 5px 10px;
    -o-border-radius: 5px 10px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Hamburger button - tampil hanya di mobile */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(6, 182, 212, 0.3);
    background: rgba(30, 41, 59, 0.5);
    color: var(--color-cyan-400);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(34, 211, 238, 0.5);
}

.nav-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.5);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none !important;
    }
}

/* Mobile navigation */
@media (max-width: 767px) {
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 2px solid rgba(6, 182, 212, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.is-open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-navigation .nav-menu li {
        border-bottom: 1px solid rgba(71, 85, 105, 0.4);
    }

    .main-navigation .nav-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation .nav-menu a {
        display: block;
        padding: 0.875rem 1rem;
        width: 100%;
        border-radius: 0.5rem;
    }

    .main-navigation .current-menu-item a {
        border-bottom: none;
        background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
        border-left: 3px solid var(--color-cyan-400);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) {
    .main-navigation {
        position: static;
        max-height: none;
        overflow: visible;
        background: transparent;
        border-bottom: none;
        box-shadow: none;
    }
}

/* ==========================================================================
   Main content — container responsif
   ========================================================================== */
.site-main {
    max-width: var(--container-max);
    margin: 0 auto;
    /* padding: var(--container-py) var(--container-px) 4rem; */
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .site-main {
        /* padding: var(--container-py) var(--container-px) 4rem; */
    }
}

@media (min-width: 1024px) {
    .site-main {
        padding-bottom: 5rem;
    }
}

/* Wrapper halaman single: konten + sidebar — responsif penuh */
.single-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: var(--container-py) var(--container-px) 4rem;
    box-sizing: border-box;
}

/* Mobile: artikel di atas (order 1), sidebar di bawah (order 2) */
.single-content-wrapper .site-main.single-content-container,
.single-content-wrapper>main {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.single-content-wrapper .single-sidebar,
.single-content-wrapper #secondary.single-sidebar,
.single-content-wrapper>aside {
    order: 2;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 479px) {
    .single-content-wrapper {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
}

@media (min-width: 640px) {
    .single-content-wrapper {
        gap: 2rem;
        max-width: var(--container-max);
    }

    .single-content-wrapper .site-main.single-content-container,
    .single-content-wrapper>main {
        max-width: 48rem;
    }
}

@media (min-width: 1024px) {
    .single-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
        max-width: var(--container-max);
    }

    .single-content-wrapper .site-main.single-content-container,
    .single-content-wrapper>main {
        order: 1;
        max-width: 56rem;
        flex: 1 1 0%;
        min-width: 0;
    }

    .single-content-wrapper .single-sidebar,
    .single-content-wrapper #secondary.single-sidebar,
    .single-content-wrapper>aside {
        order: 2;
        width: 20rem;
        max-width: 20rem;
        flex-shrink: 0;
        position: sticky;
        top: 6rem;
    }
}

@media (min-width: 1280px) {

    .single-content-wrapper .single-sidebar,
    .single-content-wrapper #secondary.single-sidebar,
    .single-content-wrapper>aside {
        width: 24rem;
        max-width: 24rem;
    }
}

/* Kartu artikel di single: tidak overflow di mobile */
.single-content-container .card,
.single-content-container article {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-content-container .entry-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-content-container .entry-content img {
    max-width: 100%;
    height: auto;
}

.single-sidebar .widget-title,
.single-sidebar .sidebar-widget .widget-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: var(--leading-tight);
}

@media (min-width: 640px) {

    .single-sidebar .widget-title,
    .single-sidebar .sidebar-widget .widget-title {
        margin-bottom: 1rem;
    }
}

.sidebar-widget {
    margin-bottom: 1.25rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .sidebar-widget {
        margin-bottom: 1.5rem;
    }
}

/* Widget Artikel Terbaru — typography & spacing responsif */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recent-posts-item {
    border-bottom: 1px solid rgba(71, 85, 105, 0.35);
    padding: 0.75rem 0;
}

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

.recent-posts-item:first-child {
    padding-top: 0;
}

.recent-posts-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--color-slate-300);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 0.25rem;
}

.recent-posts-link:hover {
    color: var(--color-cyan-400);
}

.recent-posts-date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-slate-500);
    font-weight: 400;
}

@media (min-width: 640px) {
    .recent-posts-item {
        padding: 0.875rem 0;
    }

    .recent-posts-link {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }

    .recent-posts-date {
        font-size: 0.8125rem;
    }
}

/* Cards (rounded-xl, backdrop-blur, border gradient) - dark default */
.entry-content,
.widget,
.card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: var(--card-padding);
    /* margin-bottom: var(--section-gap); */
    box-sizing: border-box;
}

body.theme-light .entry-content,
body.theme-light .widget,
body.theme-light .card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
}

/* Headings (gradient terang agar terbaca di background gelap) */
.entry-title,
.page-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: 0.025em;
    margin: 0 0 0.5rem;
    background: linear-gradient(90deg, #f8fafc 0%, #c7d2fe 50%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {

    .entry-title,
    .page-title {
        font-size: var(--text-3xl);
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) {

    .entry-title,
    .page-title {
        font-size: var(--text-4xl);
        margin-bottom: 1rem;
    }
}

body.theme-light .entry-title,
body.theme-light .page-title {
    background: linear-gradient(90deg, #1e293b 0%, #6366f1 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.entry-meta {
    font-size: 0.8125rem;
    color: var(--color-slate-400);
    margin-top: 0.25rem;
    line-height: var(--leading-normal);
}

@media (min-width: 640px) {
    .entry-meta {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
}

.entry-meta a {
    color: inherit;
}

.post-thumbnail {
    margin: 0.75rem 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

@media (min-width: 640px) {
    .post-thumbnail {
        margin: 1rem 0;
    }
}

@media (min-width: 768px) {
    .post-thumbnail {
        margin: 1.25rem 0;
    }
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

.entry-content p,
.entry-content li {
    color: #cbd5e1;
    margin: 0 0 0.75rem;
}

.entry-content p:last-child,
.entry-content li:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {

    .entry-content p,
    .entry-content li {
        margin-bottom: 1rem;
    }
}

body.theme-light .entry-content p,
body.theme-light .entry-content li {
    color: #334155;
}

/* Entry content — semua tag HTML (single post artikel) */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #e2e8f0;
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
    margin-top: 0;
}

.entry-content h1 {
    font-size: var(--text-3xl);
}

.entry-content h2 {
    font-size: var(--text-2xl);
}

.entry-content h3 {
    font-size: var(--text-xl);
}

.entry-content h4 {
    font-size: var(--text-lg);
}

.entry-content h5 {
    font-size: var(--text-base);
}

.entry-content h6 {
    font-size: 0.9375rem;
    color: var(--color-slate-400);
}

@media (min-width: 640px) {
    .entry-content h1 {
        font-size: var(--text-4xl);
        margin-top: 2rem;
    }

    .entry-content h2 {
        font-size: var(--text-3xl);
        margin-top: 1.75rem;
    }

    .entry-content h3 {
        font-size: var(--text-2xl);
    }

    .entry-content h4 {
        font-size: var(--text-xl);
    }

    .entry-content h5 {
        font-size: var(--text-lg);
    }
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    color: var(--color-slate-300);
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
}

.entry-content li {
    margin-bottom: 0.375rem;
}

.entry-content blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-cyan-500);
    background: rgba(6, 182, 212, 0.08);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    color: var(--color-slate-300);
    font-style: italic;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content pre,
.entry-content code {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
}

.entry-content code {
    padding: 0.2em 0.4em;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 0.375rem;
    color: var(--color-cyan-300, #67e8f9);
}

.entry-content pre {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: var(--radius-xl);
    color: var(--color-slate-300);
}

.entry-content pre code {
    padding: 0;
    background: none;
    border: none;
    color: inherit;
}

.entry-content kbd {
    padding: 0.2em 0.5em;
    font-size: 0.875em;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.6);
    border-radius: 0.25rem;
    color: #e2e8f0;
}

/* Wrapper tabel: scroll horizontal kalau terlalu lebar */
.entry-content .table-scroll-wrap,
.entry-content .wp-block-table {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.entry-content .table-scroll-wrap {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(71, 85, 105, 0.4);
}

.entry-content .table-scroll-wrap::-webkit-scrollbar,
.entry-content .wp-block-table::-webkit-scrollbar {
    height: 0.5rem;
}

.entry-content .table-scroll-wrap::-webkit-scrollbar-track,
.entry-content .wp-block-table::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.25rem;
}

.entry-content .table-scroll-wrap::-webkit-scrollbar-thumb,
.entry-content .wp-block-table::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.6);
    border-radius: 0.25rem;
}

.entry-content .table-scroll-wrap::-webkit-scrollbar-thumb:hover,
.entry-content .wp-block-table::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.4);
}

.entry-content table {
    width: 100%;
    min-width: 480px;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(71, 85, 105, 0.5);
    text-align: left;
    color: var(--color-slate-300);
}

.entry-content th {
    background: rgba(15, 23, 42, 0.6);
    font-weight: 600;
    color: #e2e8f0;
}

.entry-content tr:nth-child(even) td {
    background: rgba(30, 41, 59, 0.3);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
}

.entry-content strong,
.entry-content b {
    font-weight: 700;
    color: #e2e8f0;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

.entry-content hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
}

.entry-content a:hover {
    color: var(--color-cyan-300, #67e8f9);
}

.entry-content dl {
    margin: 0 0 1rem;
    color: var(--color-slate-300);
}

.entry-content dt {
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.entry-content dt:first-child {
    margin-top: 0;
}

.entry-content dd {
    margin-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-content figure {
    margin: 1.25rem 0;
}

.entry-content figcaption {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    margin-top: 0.5rem;
    text-align: center;
}

.entry-content sub,
.entry-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.entry-content sup {
    top: -0.5em;
}

.entry-content sub {
    bottom: -0.25em;
}

.entry-content mark {
    background: rgba(34, 211, 238, 0.25);
    color: #e2e8f0;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
}

.entry-content del {
    color: var(--color-slate-500);
    text-decoration: line-through;
}

.entry-content ins {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* Theme light: entry content tags */
body.theme-light .entry-content h1,
body.theme-light .entry-content h2,
body.theme-light .entry-content h3,
body.theme-light .entry-content h4,
body.theme-light .entry-content h5,
body.theme-light .entry-content h6 {
    color: var(--color-slate-800);
}

body.theme-light .entry-content blockquote {
    background: rgba(148, 163, 184, 0.15);
    border-left-color: var(--color-cyan-600);
    color: #334155;
}

body.theme-light .entry-content code {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #0f172a;
}

body.theme-light .entry-content pre {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
    color: #334155;
}

body.theme-light .entry-content th,
body.theme-light .entry-content td {
    border-color: rgba(148, 163, 184, 0.4);
    color: #334155;
}

body.theme-light .entry-content th {
    background: rgba(241, 245, 249, 0.8);
    color: #0f172a;
}

body.theme-light .entry-content strong,
body.theme-light .entry-content b {
    color: #0f172a;
}

body.theme-light .entry-content dt {
    color: #0f172a;
}

body.theme-light .entry-content mark {
    background: rgba(6, 182, 212, 0.2);
    color: #0f172a;
}

.entry-footer {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    font-size: 0.8125rem;
    color: var(--color-slate-400);
}

@media (min-width: 640px) {
    .entry-footer {
        margin-top: 1.25rem;
        padding-top: 1rem;
        font-size: 0.875rem;
    }
}

.entry-footer a {
    color: var(--color-cyan-400);
}

/* ==========================================================================
   Front Page builder — Hero + Artikel Terbaru grid (tampilan dipercantik)
   ========================================================================== */

/* Hero: gradient border, layout dua kolom (teks kiri, media kanan) */
.front-hero {
    position: relative;
    padding: 0;
    margin-bottom: 3rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(6, 182, 212, 0.25);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(6, 182, 212, 0.1);
    overflow: hidden;
}

.front-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 2px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@media (min-width: 768px) {
    .front-hero {
        margin-bottom: 4rem;
    }
}

/* Hero: satu kolom saja (konten full width) */
.front-hero-inner {
    display: flex;
    flex-direction: column;
}

.front-hero-content {
    flex: 1 1 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 640px) {
    .front-hero-content {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 768px) {
    .front-hero-content {
        padding: 3rem 2.5rem;
    }
}

/* Kolom media disembunyikan — hero satu kolom */
.front-hero-media {
    display: none;
}

.front-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.front-hero-placeholder {
    width: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(168, 85, 247, 0.2) 50%, rgba(236, 72, 153, 0.1) 100%);
    background-size: 400% 400%;
    animation: front-hero-shimmer 12s ease infinite;
}

@media (min-width: 768px) {
    .front-hero-placeholder {
        min-height: 100%;
    }
}

@keyframes front-hero-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.front-hero .entry-title {
    font-size: var(--text-2xl);
    margin-bottom: 0.75rem;
    background: var(--gradient-text-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    .front-hero .entry-title {
        font-size: var(--text-3xl);
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .front-hero .entry-title {
        font-size: var(--text-4xl);
    }
}

.front-hero .entry-content {
    margin-bottom: 1.5rem;
}

.front-hero .entry-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-slate-300);
}

.front-hero .btn-primary {
    margin-top: 0.5rem;
}

/* Override block editor (Gutenberg) — hilangkan kotak abu-abu di hero & halaman depan */
.front-hero .entry-content .wp-block-group,
.front-hero .entry-content .wp-block-cover,
.front-hero .entry-content [class*="wp-block"],
.front-page-blocks .entry-content .wp-block-group,
.front-page-blocks .entry-content .wp-block-cover,
.front-page-blocks .entry-content [class*="wp-block"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.front-hero .entry-content .wp-block-group.has-background,
.front-page-blocks .entry-content .wp-block-group.has-background {
    background: transparent !important;
    background-color: transparent !important;
}

.front-hero .entry-content .has-background,
.front-hero .entry-content [class*="background-color"],
.front-page-blocks .entry-content .has-background,
.front-page-blocks .entry-content [class*="background-color"] {
    background: transparent !important;
    background-color: transparent !important;
}

.front-hero .entry-content .wp-block-group>*,
.front-hero .entry-content [class*="wp-block"]>*,
.front-page-blocks .entry-content .wp-block-group>*,
.front-page-blocks .entry-content [class*="wp-block"]>* {
    color: inherit;
}

.front-hero .entry-content .wp-block-buttons .wp-block-button__link,
.front-page-blocks .entry-content .wp-block-buttons .wp-block-button__link {
    background: linear-gradient(90deg, #9333ea 0%, #06b6d4 100%) !important;
    color: #fff !important;
    border: none !important;
}

/* Site content & main — pastikan tidak dapat background terang dari block theme */
.site-content,
#main.site-main {
    background: transparent !important;
}

/* (Style untuk quick links di sidebar tetap dipakai) */
.front-quick-links-widget .front-section-title {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.front-quick-links-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
}

.front-quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--color-slate-300);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.front-quick-link:hover {
    color: var(--color-cyan-400);
    background: rgba(255, 255, 255, 0.05);
}

.front-quick-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Section title Artikel Terbaru */
.front-section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
    background: linear-gradient(90deg, var(--color-cyan-400), var(--color-purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    .front-section-title {
        font-size: var(--text-3xl);
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}

/* Grid artikel */
.front-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .front-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .front-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }
}

/* Kartu artikel: image di atas, hover lift, shadow */
.front-post-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(71, 85, 105, 0.4);
}

.front-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 40px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.35);
}

.front-post-card .entry-header {
    margin-bottom: 0.75rem;
}

.front-post-card .entry-title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.front-post-card .entry-title a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.front-post-card .entry-title a:hover {
    color: var(--color-cyan-400);
}

@media (min-width: 640px) {
    .front-post-card .entry-title {
        font-size: var(--text-xl);
    }
}

.front-post-card .entry-meta {
    font-size: 0.8125rem;
    color: var(--color-slate-500);
}

/* Gambar full-bleed ke atas & samping kartu, sudut atas membulat */
.front-post-card .post-thumbnail {
    margin: -1.5rem -1.5rem 1rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}

.front-post-card .post-thumbnail a {
    display: block;
    position: relative;
    overflow: hidden;
}

.front-post-card .post-thumbnail a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.front-post-card:hover .post-thumbnail a::after {
    opacity: 1;
}

.front-post-card .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.front-post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.front-post-card .entry-content p {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-slate-400);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .front-post-card .entry-content p {
        font-size: 1rem;
    }
}

.front-post-card .btn-primary {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

@media (min-width: 640px) {
    .front-post-card .btn-primary {
        padding: 0.625rem 1.25rem;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: #fff;
    background: linear-gradient(90deg, #9333ea 0%, #06b6d4 100%);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 2.75rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: var(--text-base);
        gap: 0.75rem;
        min-height: 3rem;
    }
}

@media (min-width: 768px) {
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: var(--text-lg);
    }
}

/* Tombol full-width (sidebar CTA): teks tetap satu baris, padding proporsional */
.btn-primary.w-full,
.sidebar-widget .btn-primary,
a.btn-primary[class*="w-full"] {
    width: 100%;
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 640px) {

    .btn-primary.w-full,
    .sidebar-widget .btn-primary,
    a.btn-primary[class*="w-full"] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Ikon di dalam tombol: proporsional dengan teks, tidak mendominasi */
.btn-primary svg,
.btn-primary .btn-primary-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #7e22ce 0%, #0891b2 100%);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
    transform: scale(1.02);
}

/* ==========================================================================
   Comments (single post) — daftar komentar + form, tema gelap
   ========================================================================== */
.comments-area {
    border: 1px solid rgba(71, 85, 105, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.comments-title {
    color: #e2e8f0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.4);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Daftar komentar: ul/li */
.comment-list,
.comment-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li,
.comment-list .comment {
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.comment-list li:last-child,
.comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-list .children {
    list-style: none;
    margin: 0.75rem 0 0 1.5rem;
    padding-left: 0;
    border-left: 2px solid rgba(6, 182, 212, 0.3);
    padding-left: 1rem;
}

.comment-body {
    color: var(--color-slate-300);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.comment-meta {
    margin-bottom: 0.5rem;
}

.comment-meta .comment-author a,
.comment-meta .fn a {
    color: var(--color-cyan-400);
    font-weight: 600;
    text-decoration: none;
}

.comment-meta .comment-author a:hover,
.comment-meta .fn a:hover {
    text-decoration: underline;
}

.comment-meta .comment-metadata {
    font-size: 0.8125rem;
    color: var(--color-slate-500);
    margin-top: 0.25rem;
}

.comment-meta .comment-metadata a {
    color: var(--color-slate-400);
}

.comment-content {
    margin-top: 0.5rem;
}

.comment-content p {
    margin: 0 0 0.5rem;
    color: var(--color-slate-300);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Form komentar */
.comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.4);
}

.comment-form p {
    margin-bottom: 1rem;
    color: var(--color-slate-300);
}

.comment-form label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--color-slate-300);
    font-size: 0.9375rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0;
    caret-color: var(--color-cyan-400);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: var(--radius-xl);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.comments-area .comment-form textarea,
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"] {
    color: #e2e8f0 !important;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: var(--color-cyan-500);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.comment-form textarea::placeholder,
.comment-form input::placeholder {
    color: var(--color-slate-500);
}

.comment-form .form-submit {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.comment-form .form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(90deg, #9333ea 0%, #06b6d4 100%);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: linear-gradient(90deg, #7e22ce 0%, #0891b2 100%);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
    transform: scale(1.02);
}

.comment-form .logged-in-as a,
.comment-form .comment-notes {
    color: var(--color-slate-400);
    font-size: 0.875rem;
}

.comment-form .logged-in-as a:hover {
    color: var(--color-cyan-400);
}

/* ==========================================================================
   Footer (gradient slate/blue/purple, orbs, pattern)
   ========================================================================== */
.site-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, #020617 0%, rgba(30, 58, 138, 0.3) 50%, rgba(59, 7, 100, 0.2) 100%);
    padding: var(--section-gap) var(--container-px) 2.5rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .site-footer {
        padding: 2rem var(--container-px) 3rem;
        margin-top: 4rem;
    }
}

@media (min-width: 768px) {
    .site-footer {
        padding: 2.5rem var(--container-px) 3rem;
    }
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(99, 102, 241, 0.05) 100%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .footer-inner {
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

.footer-brand .site-title {
    font-size: var(--text-2xl);
}

@media (min-width: 640px) {
    .footer-brand .site-title {
        font-size: var(--text-3xl);
    }
}

.footer-brand .site-description {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(34, 211, 238, 0.8);
}

@media (min-width: 640px) {
    .footer-brand .site-description {
        font-size: 0.875rem;
    }
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .footer-nav li {
        margin-bottom: 0.75rem;
    }
}

.footer-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-slate-300);
}

.footer-nav a:hover {
    color: var(--color-cyan-400);
}

.footer-nav a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-cyan-500);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.footer-nav a:hover::before {
    background: var(--color-cyan-400);
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
    margin-bottom: 1rem;
}

.footer-brand-link:hover {
    color: inherit;
}

.footer-logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .footer-logo {
        width: 5rem;
        height: 5rem;
    }
}

@media (min-width: 768px) {
    .footer-logo {
        width: 6rem;
        height: 6rem;
    }
}

.footer-nav-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #67e8f9 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    .footer-nav-title {
        margin-bottom: 1rem;
    }
}

.footer-menu,
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
    color: var(--color-slate-400);
    font-size: 0.8125rem;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 2rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Utility — container & spacing
   ========================================================================== */
.container-page {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
    box-sizing: border-box;
}

.entry-header {
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .entry-header {
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 768px) {
    .entry-header {
        margin-bottom: 1.5rem;
    }
}

/* Post navigation (prev/next) — tombol responsif */
.post-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.post-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1 1 auto;
    min-width: 0;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    min-width: 0;
    width: 100%;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: #fff;
    background: linear-gradient(90deg, #9333ea 0%, #06b6d4 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.25);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    min-height: 2.75rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-navigation a:hover {
    background: linear-gradient(90deg, #7e22ce 0%, #0891b2 100%);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.4);
    transform: scale(1.02);
}

/* Link langsung di .post-navigation (preview tanpa .nav-links) */
.post-navigation>a {
    flex: 1 1 auto;
    min-width: 0;
}

/* Mobile: tombol navigasi stack vertikal */
@media (max-width: 479px) {
    .post-navigation {
        flex-direction: column;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next,
    .post-navigation>a {
        width: 100%;
    }
}

@media (min-width: 480px) {

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        flex: 1 1 calc(50% - 0.375rem);
    }
}

@media (min-width: 640px) {
    .post-navigation {
        gap: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .post-navigation .nav-links {
        gap: 1rem;
    }

    .post-navigation a {
        padding: 0.75rem 1.25rem;
        font-size: var(--text-base);
        min-height: 3rem;
    }
}

@media (min-width: 768px) {
    .post-navigation a {
        padding: 0.75rem 1.5rem;
        font-size: var(--text-lg);
    }
}

.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .md\:\!hidden {
        display: none !important;
    }
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}