@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* --------------------------------------------------------
   LIGHT
   -------------------------------------------------------- */
:root {
    --bg: #edeae2;
    --bg-card: #fafaf7;
    --bg-card-hover: #ffffff;
    --text: #181815;
    --text-2: #3a3a34;
    --text-3: #6b6b5e;
    --link: #2a6045;
    --link-hover: #1a4a32;
    --gold: #7a6020;
    --gold-b: #9a7c2a;
    --gold-border: rgba(122, 96, 32, 0.28);
    --accent: #2a6045;
    --accent-2: #3d8060;
    --accent-glow: rgba(42, 96, 69, 0.12);
    --accent-border: rgba(42, 96, 69, 0.32);
    --header-bg: #2c1a08;
    --nav-bg: #231508;
    --nav-text: #a8c8a0;
    --nav-hover: #c8e8b8;
    --nav-hover-bg: rgba(168, 200, 160, 0.08);
    --footer-bg: #f0ece0;
    --footer-text: #5a7050;
    --footer-border: rgba(122, 96, 32, 0.22);
    --notif-bg: #1e2018;
    --notif-text: #c8e0c0;
    --notif-border: #3d6035;
    --shadow-sm: 0 1px 4px rgba(24, 24, 21, 0.07), 0 2px 8px rgba(24, 24, 21, 0.04);
    --shadow-md: 0 4px 16px rgba(24, 24, 21, 0.10);
    --shadow-lg: 0 8px 32px rgba(24, 24, 21, 0.11);
    --border: rgba(122, 96, 32, 0.22);
    --radius: 8px;
    --btn-bg: #231508;
    --btn-text: #a8c8a0;
    --btn-hover: #2a6045;
    --btn-hover-text: #e8f4e8;
    --input-bg: #f4f2ea;
    --input-border: rgba(122, 96, 32, 0.28);
    --input-text: #181815;
    --card-line: linear-gradient(to bottom, #7a6020, #2a6045);
    --nu-gold: #c9a84c;

    /* Ornamen samping */
    --side-w: 36px;
    --side-circuit: rgba(122, 96, 32, 0.50);
    --side-aksara: rgba(122, 96, 32, 0.45);
    --side-kawung: rgba(122, 96, 32, 0.18);
    --max-content: 1100px;
}

/* --------------------------------------------------------
   DARK
   -------------------------------------------------------- */
body.dark {
    --bg: #0b0f0d;
    --bg-card: #131a14;
    --bg-card-hover: #182018;
    --text: #d0e8d4;
    --text-2: #98b89e;
    --text-3: #4a6850;
    --link: #3ddc84;
    --link-hover: #5aeea0;
    --gold: #6a5818;
    --gold-b: #8a7028;
    --gold-border: rgba(106, 88, 24, 0.30);
    --accent: #3ddc84;
    --accent-2: #2ab868;
    --accent-glow: rgba(61, 220, 132, 0.10);
    --accent-border: rgba(61, 220, 132, 0.22);
    --header-bg: #060908;
    --nav-bg: #08100a;
    --nav-text: #3ddc84;
    --nav-hover: #5aeea0;
    --nav-hover-bg: rgba(61, 220, 132, 0.06);
    --footer-bg: #060908;
    --footer-text: #2a6040;
    --footer-border: rgba(61, 220, 132, 0.12);
    --notif-bg: #0a120b;
    --notif-text: #a0d8a8;
    --notif-border: rgba(61, 220, 132, 0.28);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 8px 32px rgba(61, 220, 132, 0.06);
    --border: rgba(61, 220, 132, 0.09);
    --btn-bg: #0f1a10;
    --btn-text: #3ddc84;
    --btn-hover: #3ddc84;
    --btn-hover-text: #060908;
    --input-bg: #0f1a10;
    --input-border: rgba(61, 220, 132, 0.16);
    --input-text: #d0e8d4;
    --card-line: linear-gradient(to bottom, #3ddc84, #1a6040);
    --nu-gold: #e8c96a;

    --side-circuit: rgba(61, 220, 132, 0.55);
    --side-aksara: rgba(138, 112, 40, 0.55);
    --side-kawung: rgba(61, 220, 132, 0.12);
}

/* --------------------------------------------------------
   ANIMASI
   -------------------------------------------------------- */
@keyframes kawung-drift-fwd {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 120px;
    }
}

@keyframes kawung-drift-back {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 -120px;
    }
}

@keyframes hex-pulse {

    0%,
    100% {
        opacity: 0.08;
    }

    50% {
        opacity: 1;
    }
}

@keyframes gold-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes gold-breathe {

    0%,
    100% {
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(200, 168, 76, 0.25);
    }

    50% {
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 0 35px rgba(200, 168, 76, 0.55), 0 0 60px rgba(200, 168, 76, 0.20);
    }
}

@keyframes dark-gold-breathe {

    0%,
    100% {
        text-shadow: 0 0 16px rgba(61, 220, 132, 0.38), 0 0 32px rgba(61, 220, 132, 0.12), 0 1px 8px rgba(0, 0, 0, 0.9);
    }

    50% {
        text-shadow: 0 0 24px rgba(61, 220, 132, 0.65), 0 0 50px rgba(61, 220, 132, 0.25), 0 1px 8px rgba(0, 0, 0, 0.9);
    }
}

/* --------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Lora', Georgia, serif;
    line-height: 1.82;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.45s, color 0.45s;
}

/* Motif kawung halus seluruh background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cellipse cx='15' cy='30' rx='11' ry='7' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.09'/%3E%3Cellipse cx='45' cy='30' rx='11' ry='7' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.09'/%3E%3Cellipse cx='30' cy='15' rx='7' ry='11' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.09'/%3E%3Cellipse cx='30' cy='45' rx='7' ry='11' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.09'/%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.09'/%3E%3C/svg%3E");
}

body.dark::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cellipse cx='15' cy='30' rx='11' ry='7' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.055'/%3E%3Cellipse cx='45' cy='30' rx='11' ry='7' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.055'/%3E%3Cellipse cx='30' cy='15' rx='7' ry='11' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.055'/%3E%3Cellipse cx='30' cy='45' rx='7' ry='11' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.055'/%3E%3Ccircle cx='30' cy='30' r='3' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.055'/%3E%3C/svg%3E");
}

.site-header,
.notification-bar,
.site-nav,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

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

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

p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------
   WRAPPER
   -------------------------------------------------------- */
.page-wrap {
    max-width: var(--max-content);
    margin: 0 auto;
    position: relative;
}

.page-wrap::before {
    content: '';
    position: fixed;
    left: calc(50% - var(--max-content)/2 - 1px);
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--side-kawung);
    pointer-events: none;
    z-index: 0;
}

.page-wrap::after {
    content: '';
    position: fixed;
    right: calc(50% - var(--max-content)/2 - 1px);
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--side-kawung);
    pointer-events: none;
    z-index: 0;
}

/* --------------------------------------------------------
   ORNAMEN SAMPING
   -------------------------------------------------------- */
.side-left,
.side-right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--side-w);
    pointer-events: none;
    z-index: 2;
}

.side-left {
    left: calc(50% - var(--max-content)/2 - var(--side-w));
}

.side-right {
    right: calc(50% - var(--max-content)/2 - var(--side-w));
}

.side-left::after,
.side-right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, var(--side-kawung) 8%, var(--side-kawung) 92%, transparent 100%);
}

.side-left::after {
    right: 0;
}

.side-right::after {
    left: 0;
}

.side-left::before,
.side-right::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='120'%3E%3Cellipse cx='18' cy='60' rx='7' ry='4.5' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.22'/%3E%3Cellipse cx='18' cy='60' rx='4.5' ry='7' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.22'/%3E%3Ccircle cx='18' cy='60' r='2' fill='none' stroke='%237a6020' stroke-width='0.7' opacity='0.22'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 36px 120px;
    background-position: center;
}

body.dark .side-left::before,
body.dark .side-right::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='120'%3E%3Cellipse cx='18' cy='60' rx='7' ry='4.5' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.14'/%3E%3Cellipse cx='18' cy='60' rx='4.5' ry='7' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.14'/%3E%3Ccircle cx='18' cy='60' r='2' fill='none' stroke='%233ddc84' stroke-width='0.7' opacity='0.14'/%3E%3C/svg%3E");
}

@media (max-width: 1200px) {

    .side-left,
    .side-right,
    .page-wrap::before,
    .page-wrap::after {
        display: none;
    }
}

/* --------------------------------------------------------
   HEADER
   -------------------------------------------------------- */
.site-header {
    background-color: var(--header-bg);
    padding: 2rem 1rem 1.4rem;
    text-align: center;
    border-bottom: 1px solid rgba(122, 96, 32, 0.35);
    z-index: 10;
    overflow: hidden;
    transition: background-color 0.45s, border-color 0.45s;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
}

body.dark .site-header {
    border-bottom-color: rgba(61, 220, 132, 0.14);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: -10px;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cellipse cx='30' cy='60' rx='26' ry='16' fill='none' stroke='%23c9a84c' stroke-width='1'/%3E%3Cellipse cx='90' cy='60' rx='26' ry='16' fill='none' stroke='%23c9a84c' stroke-width='1'/%3E%3Cellipse cx='60' cy='30' rx='16' ry='26' fill='none' stroke='%23c9a84c' stroke-width='1'/%3E%3Cellipse cx='60' cy='90' rx='16' ry='26' fill='none' stroke='%23c9a84c' stroke-width='1'/%3E%3Ccircle cx='60' cy='60' r='8' fill='none' stroke='%23c9a84c' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    opacity: 0.12;
    animation: kawung-drift-fwd 30s linear infinite;
}

body.dark .site-header::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cellipse cx='30' cy='60' rx='26' ry='16' fill='none' stroke='%233ddc84' stroke-width='1'/%3E%3Cellipse cx='90' cy='60' rx='26' ry='16' fill='none' stroke='%233ddc84' stroke-width='1'/%3E%3Cellipse cx='60' cy='30' rx='16' ry='26' fill='none' stroke='%233ddc84' stroke-width='1'/%3E%3Cellipse cx='60' cy='90' rx='16' ry='26' fill='none' stroke='%233ddc84' stroke-width='1'/%3E%3Ccircle cx='60' cy='60' r='8' fill='none' stroke='%233ddc84' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.08;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: -5px;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cellipse cx='15' cy='30' rx='12' ry='7' fill='none' stroke='%23c9a84c' stroke-width='0.7'/%3E%3Cellipse cx='45' cy='30' rx='12' ry='7' fill='none' stroke='%23c9a84c' stroke-width='0.7'/%3E%3Cellipse cx='30' cy='15' rx='7' ry='12' fill='none' stroke='%23c9a84c' stroke-width='0.7'/%3E%3Cellipse cx='30' cy='45' rx='7' ry='12' fill='none' stroke='%23c9a84c' stroke-width='0.7'/%3E%3Ccircle cx='30' cy='30' r='3.5' fill='none' stroke='%23c9a84c' stroke-width='0.7'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.07;
    animation: kawung-drift-back 20s linear infinite;
}

body.dark .site-header::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cellipse cx='15' cy='30' rx='12' ry='7' fill='none' stroke='%233ddc84' stroke-width='0.7'/%3E%3Cellipse cx='45' cy='30' rx='12' ry='7' fill='none' stroke='%233ddc84' stroke-width='0.7'/%3E%3Cellipse cx='30' cy='15' rx='7' ry='12' fill='none' stroke='%233ddc84' stroke-width='0.7'/%3E%3Cellipse cx='30' cy='45' rx='7' ry='12' fill='none' stroke='%233ddc84' stroke-width='0.7'/%3E%3Ccircle cx='30' cy='30' r='3.5' fill='none' stroke='%233ddc84' stroke-width='0.7'/%3E%3C/svg%3E");
    opacity: 0.05;
}

.site-header h1 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    position: relative;
    z-index: 2;
    transition: text-shadow 0.45s;
    background: linear-gradient(90deg, #b8902a 0%, #c8a84c 30%, #f0d878 48%, #fffbe0 50%, #f0d878 52%, #c8a84c 70%, #b8902a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 5s linear infinite, gold-breathe 4s ease-in-out infinite;
}

body.dark .site-header h1 {
    background: linear-gradient(90deg, #1ab860 0%, #3ddc84 30%, #a0ffcc 48%, #e0fff0 50%, #a0ffcc 52%, #3ddc84 70%, #1ab860 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 5s linear infinite, dark-gold-breathe 4s ease-in-out infinite;
}

.site-header .tagline {
    font-style: italic;
    font-size: 0.81rem;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 2;
    color: rgba(200, 180, 140, 0.50);
    margin-top: 0.25rem;
    transition: color 0.45s;
    min-height: 1.2em;
}

body.dark .site-header .tagline {
    color: rgba(61, 220, 132, 0.28);
}

/* --------------------------------------------------------
   THEME TOGGLE
   -------------------------------------------------------- */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(42, 96, 69, 0.14);
    color: #a8c8a0;
    border: 1px solid rgba(42, 96, 69, 0.35);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s;
    z-index: 20;
}

.theme-toggle:hover {
    background: rgba(42, 96, 69, 0.28);
    color: #c8e8c0;
    transform: rotate(18deg) scale(1.08);
}

body.dark .theme-toggle {
    background: rgba(61, 220, 132, 0.07);
    color: #3ddc84;
    border-color: rgba(61, 220, 132, 0.22);
}

body.dark .theme-toggle:hover {
    background: rgba(61, 220, 132, 0.14);
    color: #5aeea0;
    border-color: rgba(61, 220, 132, 0.45);
    box-shadow: 0 0 10px rgba(61, 220, 132, 0.22);
    transform: rotate(18deg) scale(1.08);
}

/* --------------------------------------------------------
   NOTIFIKASI
   -------------------------------------------------------- */
.notification-bar {
    background-color: var(--notif-bg);
    color: var(--notif-text);
    border-bottom: 1px solid var(--notif-border);
    padding: 0.55rem 1rem;
    text-align: center;
    font-size: 0.84rem;
    font-style: italic;
    letter-spacing: 0.03em;
    display: none;
    z-index: 9;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
}

.notification-bar.active {
    display: block;
}

/* --------------------------------------------------------
   NAVIGASI
   -------------------------------------------------------- */
.site-nav {
    background-color: var(--nav-bg);
    border-bottom: 1px solid rgba(42, 96, 69, 0.22);
    position: relative;
    z-index: 100;
    overflow: visible;
    transition: border-color 0.45s;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
}

.site-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cellipse cx='10' cy='20' rx='8' ry='5' fill='none' stroke='%23c9a84c' stroke-width='0.6' opacity='0.18'/%3E%3Cellipse cx='30' cy='20' rx='8' ry='5' fill='none' stroke='%23c9a84c' stroke-width='0.6' opacity='0.18'/%3E%3Cellipse cx='20' cy='10' rx='5' ry='8' fill='none' stroke='%23c9a84c' stroke-width='0.6' opacity='0.18'/%3E%3Cellipse cx='20' cy='30' rx='5' ry='8' fill='none' stroke='%23c9a84c' stroke-width='0.6' opacity='0.18'/%3E%3Ccircle cx='20' cy='20' r='2.5' fill='none' stroke='%23c9a84c' stroke-width='0.6' opacity='0.18'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

body.dark .site-nav {
    border-bottom-color: rgba(61, 220, 132, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

body.dark .site-nav::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cellipse cx='10' cy='20' rx='8' ry='5' fill='none' stroke='%233ddc84' stroke-width='0.6' opacity='0.10'/%3E%3Cellipse cx='30' cy='20' rx='8' ry='5' fill='none' stroke='%233ddc84' stroke-width='0.6' opacity='0.10'/%3E%3Cellipse cx='20' cy='10' rx='5' ry='8' fill='none' stroke='%233ddc84' stroke-width='0.6' opacity='0.10'/%3E%3Cellipse cx='20' cy='30' rx='5' ry='8' fill='none' stroke='%233ddc84' stroke-width='0.6' opacity='0.10'/%3E%3Ccircle cx='20' cy='20' r='2.5' fill='none' stroke='%233ddc84' stroke-width='0.6' opacity='0.10'/%3E%3C/svg%3E");
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
}

/* --------------------------------------------------------
   NAV ITEM: link, label, dan span dropdown — seragam
   -------------------------------------------------------- */
.nav-menu > li > a,
.nav-menu > li > label,
.nav-menu > li > .nav-item-dropdown {
    display: block;
    padding: 0.88rem 1.1rem;
    color: var(--nav-text);
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.3s, background 0.3s;
    position: relative;
    z-index: 1;
}

.nav-menu > li > a::after,
.nav-menu > li > label::after,
.nav-menu > li > .nav-item-dropdown::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--nav-hover);
    transition: left 0.3s, right 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li > label:hover,
.nav-menu > li > .nav-item-dropdown:hover {
    color: var(--nav-hover);
    background: var(--nav-hover-bg);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > label:hover::after,
.nav-menu > li > .nav-item-dropdown:hover::after {
    left: 1rem;
    right: 1rem;
}

/* --------------------------------------------------------
   SUBMENU
   -------------------------------------------------------- */
.submenu-toggle {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    border: 1px solid rgba(42, 96, 69, 0.28);
    border-top: 1px solid var(--accent-2);
    border-radius: 0 0 var(--radius) var(--radius);
    min-width: 185px;
    z-index: 500;
    list-style: none;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

body.dark .submenu {
    border-color: rgba(61, 220, 132, 0.12);
    border-top-color: rgba(61, 220, 132, 0.38);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* Desktop: tampil saat hover */
@media (min-width: 769px) {
    .nav-menu > li:hover > .submenu {
        display: block;
    }
}

/* Mobile & desktop: tampil saat JS menambahkan class submenu-open */
.has-submenu.submenu-open > .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 0.62rem 1.2rem;
    color: var(--nav-text);
    font-size: 0.82rem;
    font-family: 'Lora', serif;
    border-bottom: 1px solid rgba(42, 96, 69, 0.08);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    white-space: nowrap;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: var(--nav-hover-bg);
    color: var(--nav-hover);
    padding-left: 1.5rem;
}

body.dark .submenu li a {
    border-bottom-color: rgba(61, 220, 132, 0.06);
}

/* --------------------------------------------------------
   HAMBURGER
   -------------------------------------------------------- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.7rem;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #a8c8a0;
    margin: 5px 0;
    border-radius: 1px;
    transition: 0.3s;
}

body.dark .hamburger .bar {
    background: #3ddc84;
}

/* --------------------------------------------------------
   KONTEN UTAMA
   -------------------------------------------------------- */
.site-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0.25rem;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------
   ORNAMEN DIVIDER
   -------------------------------------------------------- */
.ornamen-divider {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.7rem;
    margin: 1.1rem 0;
    user-select: none;
    color: var(--gold);
    opacity: 0.40;
    transition: color 0.45s;
}

body.dark .ornamen-divider {
    color: var(--accent);
    opacity: 0.28;
    text-shadow: 0 0 6px rgba(61, 220, 132, 0.22);
}

/* --------------------------------------------------------
   FORM
   -------------------------------------------------------- */
.search-kategori-wrap {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.form-search,
.form-kategori {
    display: flex;
    gap: 0.4rem;
    flex: 1;
    min-width: 200px;
}

.form-search input[type="text"],
.form-kategori select {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    background-color: var(--input-bg);
    color: var(--input-text);
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.45s, color 0.45s;
}

.form-search input:focus,
.form-kategori select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-search button {
    padding: 0.55rem 1rem;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid rgba(42, 96, 69, 0.32);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.form-search button:hover {
    background: var(--btn-hover);
    color: var(--btn-hover-text);
}

body.dark .form-search button {
    border-color: rgba(61, 220, 132, 0.18);
}

/* --------------------------------------------------------
   KARTU POSTINGAN
   -------------------------------------------------------- */
.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem 1.3rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.25s, border-color 0.3s;

    background-image:
        linear-gradient(160deg,
            rgba(255, 253, 245, 0.92) 0%,
            rgba(245, 250, 244, 0.70) 45%,
            rgba(250, 248, 238, 0.85) 100%),
        linear-gradient(105deg,
            transparent 0%,
            rgba(201, 168, 76, 0.035) 38%,
            rgba(201, 168, 76, 0.065) 50%,
            rgba(201, 168, 76, 0.035) 62%,
            transparent 100%);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='4'%3E%3Cellipse cx='6' cy='2' rx='4.5' ry='1.4' fill='none' stroke='%237a6020' stroke-width='0.7'/%3E%3Cellipse cx='18' cy='2' rx='4.5' ry='1.4' fill='none' stroke='%237a6020' stroke-width='0.7'/%3E%3C/svg%3E"),
        linear-gradient(90deg, rgba(122, 96, 32, 0) 0%, rgba(122, 96, 32, 0.22) 20%, rgba(42, 96, 69, 0.18) 50%, rgba(122, 96, 32, 0.22) 80%, rgba(122, 96, 32, 0) 100%);
    background-repeat: repeat-x, no-repeat;
    background-size: 24px 4px, 100% 1px;
    background-position: 0 0, 0 bottom;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.3s;
}

body.dark .post-card::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='4'%3E%3Cellipse cx='6' cy='2' rx='4.5' ry='1.4' fill='none' stroke='%233ddc84' stroke-width='0.7'/%3E%3Cellipse cx='18' cy='2' rx='4.5' ry='1.4' fill='none' stroke='%233ddc84' stroke-width='0.7'/%3E%3C/svg%3E"),
        linear-gradient(90deg, rgba(61, 220, 132, 0) 0%, rgba(61, 220, 132, 0.16) 20%, rgba(61, 220, 132, 0.12) 50%, rgba(61, 220, 132, 0.16) 80%, rgba(61, 220, 132, 0) 100%);
    opacity: 0.45;
}

.post-card:hover::before {
    opacity: 0.80;
}

.post-card::after {
    content: '';
    position: absolute;
    top: -18px;
    right: -18px;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cellipse cx='20' cy='40' rx='16' ry='10' fill='none' stroke='%237a6020' stroke-width='0.8'/%3E%3Cellipse cx='60' cy='40' rx='16' ry='10' fill='none' stroke='%237a6020' stroke-width='0.8'/%3E%3Cellipse cx='40' cy='20' rx='10' ry='16' fill='none' stroke='%237a6020' stroke-width='0.8'/%3E%3Cellipse cx='40' cy='60' rx='10' ry='16' fill='none' stroke='%237a6020' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='40' r='4.5' fill='none' stroke='%237a6020' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.18;
    pointer-events: none;
    transition: opacity 0.3s;
}

body.dark .post-card::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cellipse cx='20' cy='40' rx='16' ry='10' fill='none' stroke='%233ddc84' stroke-width='0.8'/%3E%3Cellipse cx='60' cy='40' rx='16' ry='10' fill='none' stroke='%233ddc84' stroke-width='0.8'/%3E%3Cellipse cx='40' cy='20' rx='10' ry='16' fill='none' stroke='%233ddc84' stroke-width='0.8'/%3E%3Cellipse cx='40' cy='60' rx='10' ry='16' fill='none' stroke='%233ddc84' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='40' r='4.5' fill='none' stroke='%233ddc84' stroke-width='0.8'/%3E%3C/svg%3E");
    opacity: 0.14;
}

.post-card:hover::after {
    opacity: 0.38;
}

.card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            #c9a84c 0%,
            #7a6020 28%,
            #2a6045 55%,
            #3d8060 78%,
            #c9a84c 100%);
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0.70;
    transition: width 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.post-card:hover .card-accent {
    width: 5px;
    box-shadow: 2px 0 8px rgba(42, 96, 69, 0.18);
    opacity: 1;
}

body.dark .card-accent {
    background: linear-gradient(to bottom,
            #e8c96a 0%,
            #3ddc84 40%,
            #2ab868 75%,
            #e8c96a 100%);
    opacity: 0.65;
}

body.dark .post-card:hover .card-accent {
    box-shadow: 2px 0 8px rgba(61, 220, 132, 0.28);
    opacity: 1;
}

.card-corner {
    position: absolute;
    bottom: 8px;
    left: 14px;
    pointer-events: none;
    opacity: 0.18;
    transition: opacity 0.3s;
}

.post-card:hover .card-corner {
    opacity: 0.38;
}

body.dark .card-corner {
    opacity: 0.14;
}

body.dark .post-card:hover .card-corner {
    opacity: 0.30;
}

.post-card:hover {
    background-color: var(--bg-card-hover);
    background-image:
        linear-gradient(160deg,
            rgba(255, 255, 252, 0.98) 0%,
            rgba(242, 252, 245, 0.80) 45%,
            rgba(255, 252, 240, 0.92) 100%),
        linear-gradient(105deg,
            transparent 0%,
            rgba(201, 168, 76, 0.05) 38%,
            rgba(201, 168, 76, 0.10) 50%,
            rgba(201, 168, 76, 0.05) 62%,
            transparent 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent-border);
}

body.dark .post-card {
    background-image:
        linear-gradient(160deg,
            rgba(20, 28, 22, 0.95) 0%,
            rgba(18, 30, 20, 0.80) 45%,
            rgba(22, 26, 18, 0.90) 100%),
        linear-gradient(105deg,
            transparent 0%,
            rgba(61, 220, 132, 0.025) 38%,
            rgba(61, 220, 132, 0.045) 50%,
            rgba(61, 220, 132, 0.025) 62%,
            transparent 100%);
}

body.dark .post-card:hover {
    background-image:
        linear-gradient(160deg,
            rgba(24, 34, 26, 0.98) 0%,
            rgba(20, 36, 24, 0.88) 45%,
            rgba(26, 30, 20, 0.95) 100%),
        linear-gradient(105deg,
            transparent 0%,
            rgba(61, 220, 132, 0.04) 38%,
            rgba(61, 220, 132, 0.07) 50%,
            rgba(61, 220, 132, 0.04) 62%,
            transparent 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 10px rgba(61, 220, 132, 0.05);
}

.post-card h2 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--text);
    transition: color 0.3s;
}

.post-card h2 a:hover {
    color: var(--link);
}

body.dark .post-card h2 a:hover {
    text-shadow: 0 0 6px rgba(61, 220, 132, 0.22);
}

.post-meta {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-bottom: 0.75rem;
    font-style: italic;
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta a {
    color: var(--text-3);
}

.post-meta a:hover {
    color: var(--link);
}

.post-excerpt {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.88;
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    align-items: center;
}

.read-more {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.3s, color 0.3s;
}

.read-more:hover {
    border-bottom-color: var(--accent);
    color: var(--link-hover);
}

body.dark .read-more:hover {
    text-shadow: 0 0 6px rgba(61, 220, 132, 0.28);
}

/* --------------------------------------------------------
   BREADCRUMB
   -------------------------------------------------------- */
.breadcrumb {
    font-size: 0.76rem;
    color: var(--text-3);
    margin-bottom: 1.2rem;
    font-style: italic;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

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

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

.breadcrumb .sep {
    opacity: 0.4;
    font-size: 0.68rem;
}

/* --------------------------------------------------------
   PAGINATION
   -------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2.5rem 0 1.5rem;
}

.pagination a,
.pagination .current,
.pagination .pg-arrow,
.pagination .pg-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pagination a {
    color: #3b2e1e;
    border: 1px solid #c9b99a;
}

.pagination a:hover {
    background: #f5efe4;
    border-color: #8c6d3f;
    color: #8c6d3f;
}

.pagination .current {
    background: #2d4a1e;
    color: #f5efe4;
    border: 1px solid #2d4a1e;
    font-weight: 600;
    cursor: default;
}

.pagination .pg-arrow {
    border: 1px solid #c9b99a;
    color: #3b2e1e;
}

.pagination .pg-arrow:not(.disabled):hover {
    background: #f5efe4;
    border-color: #8c6d3f;
    color: #8c6d3f;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .pg-ellipsis {
    color: #a0856a;
    border: none;
    background: none;
    cursor: default;
    min-width: 24px;
}

@media (max-width: 480px) {

    .pagination a,
    .pagination .current,
    .pagination .pg-arrow {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-3);
}

.empty-state .empty-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.38;
}

/* --------------------------------------------------------
   FOOTER
   -------------------------------------------------------- */
.site-footer {
    background-color: #1c1508;
    color: #a89060;
    text-align: center;
    padding: 1.8rem 1rem 1.3rem;
    margin-top: 2rem;
    border-top: 2px solid rgba(122, 96, 32, 0.45);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: background-color 0.45s, border-color 0.45s;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
}

body.dark .site-footer {
    background-color: #060908;
    color: #3a7050;
    border-top-color: rgba(61, 220, 132, 0.22);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.5);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='3'%3E%3Cellipse cx='6' cy='1.5' rx='4.5' ry='1.2' fill='none' stroke='%23c9a84c' stroke-width='0.8'/%3E%3Cellipse cx='18' cy='1.5' rx='4.5' ry='1.2' fill='none' stroke='%23c9a84c' stroke-width='0.8'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    opacity: 0.50;
    pointer-events: none;
}

body.dark .site-footer::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='3'%3E%3Cellipse cx='6' cy='1.5' rx='4.5' ry='1.2' fill='none' stroke='%233ddc84' stroke-width='0.8'/%3E%3Cellipse cx='18' cy='1.5' rx='4.5' ry='1.2' fill='none' stroke='%233ddc84' stroke-width='0.8'/%3E%3C/svg%3E");
    opacity: 0.28;
}

.footer-hex-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.site-footer > *:not(.footer-hex-canvas) {
    position: relative;
    z-index: 1;
}

.footer-stats {
    margin-bottom: 0.7rem;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: #c8a84c;
}

body.dark .footer-stats {
    color: #3ddc84;
}

.footer-copy {
    opacity: 0.50;
    margin-top: 0.4rem;
    color: #a89060;
}

body.dark .footer-copy {
    color: #3a7050;
    opacity: 0.7;
}

.footer-love {
    font-size: 0.75rem;
    opacity: 0.45;
    margin-top: 0.3rem;
    color: #c8a84c;
}

body.dark .footer-love {
    color: #2a5038;
    opacity: 0.8;
}

.footer-links {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: var(--footer-text);
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--nu-gold);
}

.footer-links .sep {
    opacity: 0.4;
    margin: 0 0.3rem;
}

.footer-load-time {
    font-size: 0.68rem;
    opacity: 0.38;
    margin-top: 0.3rem;
    font-family: 'Courier New', monospace;
    color: #a89060;
}

body.dark .footer-load-time {
    color: #3ddc84;
}

/* --------------------------------------------------------
   BACK TO TOP
   -------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    background: var(--nav-bg);
    color: var(--nav-text);
    border: 1px solid rgba(42, 96, 69, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(42, 96, 69, 0.22);
    color: var(--nav-hover);
}

body.dark .back-to-top {
    border-color: rgba(61, 220, 132, 0.16);
}

body.dark .back-to-top:hover {
    background: rgba(61, 220, 132, 0.09);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(61, 220, 132, 0.18);
}

/* --------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .site-header::before,
    .site-header::after,
    .side-left::before,
    .side-right::before {
        animation: none !important;
    }
}

/* --------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------- */
@media (max-width: 768px) {
    .site-header {
        padding: 1.2rem 1rem 0.9rem;
    }

    .theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .nav-inner {
        padding: 0;
        justify-content: flex-end;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--nav-bg);
        border-top: 1px solid rgba(42, 96, 69, 0.18);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu > li > a,
    .nav-menu > li > label,
    .nav-menu > li > .nav-item-dropdown {
        padding: 0.85rem 1.2rem;
        border-bottom: 1px solid rgba(42, 96, 69, 0.08);
        width: 100%;
    }

    .submenu {
        position: static;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(42, 96, 69, 0.08);
        box-shadow: none;
        min-width: 100%;
        background: rgba(0, 0, 0, 0.08);
        z-index: auto;
    }

    body.dark .submenu {
        background: rgba(61, 220, 132, 0.03);
    }

    .submenu li a {
        padding-left: 2.5rem;
    }

    .search-kategori-wrap {
        flex-direction: column;
    }

    .form-search,
    .form-kategori {
        min-width: 100%;
    }

    .post-card {
        padding: 1rem 1.1rem;
    }

    .site-main {
        padding: 1rem 0.75rem 1.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }
}