/* ═════════════════════════════════════════════════════════════════════════
 * BASE — Font & Typography
 * ═════════════════════════════════════════════════════════════════════════ */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (min-width: 1024px) { html { font-size: 17px; } }

body {
    font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}
html.dark body { color: #cbd5e1; }

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
p { line-height: 1.75; }

/* ═════════════════════════════════════════════════════════════════════════
 * BACKGROUND COLORFUL
 * ═════════════════════════════════════════════════════════════════════════ */
body.bg-colorful { background-color: #f5f3ff; position: relative; }
body.bg-colorful::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 80% 60% at 5% 5%, rgba(165, 180, 252, 0.85) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 95% 10%, rgba(251, 207, 232, 0.85) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 20% 90%, rgba(165, 243, 252, 0.75) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 85% 80%, rgba(253, 230, 138, 0.65) 0%, transparent 60%),
        linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 50%, #eef2ff 100%);
}
html.dark body.bg-colorful { background-color: #030712; }
html.dark body.bg-colorful::before {
    background-image:
        radial-gradient(ellipse 80% 60% at 5% 5%, rgba(99, 102, 241, 0.32) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 95% 10%, rgba(236, 72, 153, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 20% 90%, rgba(34, 211, 238, 0.20) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 85% 80%, rgba(251, 191, 36, 0.18) 0%, transparent 60%),
        linear-gradient(135deg, #030712 0%, #1e1b4b 50%, #0c0a09 100%);
}

/* ═════════════════════════════════════════════════════════════════════════
 * CARD GLASS
 * ═════════════════════════════════════════════════════════════════════════ */
.card-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px -25px rgba(80, 70, 180, 0.2);
}
html.dark .card-glass {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.6);
}

/* ═════════════════════════════════════════════════════════════════════════
 * SCROLLBAR
 * ═════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
html.dark ::-webkit-scrollbar-thumb { background: #334155; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #475569; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

.fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ═════════════════════════════════════════════════════════════════════════
 * TEMA GELAP
 * ═════════════════════════════════════════════════════════════════════════ */
.dark-blobs { display: none; }
html.dark .dark-blobs { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob-1 { position: absolute; top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, rgba(0,0,0,0) 60%); filter: blur(60px); }
.blob-2 { position: absolute; top: 30%; right: -20%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, rgba(0,0,0,0) 60%); filter: blur(60px); }
.blob-3 { position: absolute; bottom: -10%; left: 15%; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(163,230,53,0.06) 0%, rgba(0,0,0,0) 60%); filter: blur(60px); }

/* ═════════════════════════════════════════════════════════════════════════
 * SLIDER BLENDING
 * ═════════════════════════════════════════════════════════════════════════ */
.hero-mask-bottom { mask-image: linear-gradient(to bottom, black 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%); }
.hero-img-mask { mask-image: linear-gradient(to right, transparent 0%, black 50%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%); }
.hero-grid-overlay { background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px); background-size: 40px 40px; }
html.dark .hero-grid-overlay { background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); }

/* ═════════════════════════════════════════════════════════════════════════
 * TYPOGRAPHY POST
 * ═════════════════════════════════════════════════════════════════════════ */
.post-content { font-size: 1.0625rem; line-height: 1.85; }
@media (min-width: 640px) { .post-content { font-size: 1.125rem; } }
.post-content h1, .post-content h2, .post-content h3 { font-weight: 700; margin-bottom: 0.85rem; scroll-margin-top: 100px; line-height: 1.3; }
.post-content h1 { font-size: 1.85rem; margin: 1.75rem 0 0.85rem; }
.post-content h2 { font-size: 1.75rem; font-weight: 800; margin: 2rem 0 0.85rem; color: #0f172a; display: flex; align-items: center; gap: 12px; line-height: 1.3; }
html.dark .post-content h2 { color: #ffffff; }
.post-content h2::before { content: ""; display: inline-block; width: 5px; height: 26px; background: #7c3aed; border-radius: 9999px; flex-shrink: 0; }
html.dark .post-content h2::before { background: #a3e635; }
.post-content h3 { font-size: 1.35rem; font-weight: 700; margin: 1.75rem 0 0.6rem; color: #1e293b; }
html.dark .post-content h3 { color: #e2e8f0; }
.post-content p { margin-bottom: 1.35rem; line-height: 1.85; }
.post-content p:last-child { margin-bottom: 0; }
.post-content ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1.15rem; }
.post-content ol { list-style-type: decimal; margin-left: 1.5rem; margin-bottom: 1.15rem; }
.post-content li { margin-bottom: 0.5rem; line-height: 1.8; }
.post-content a { color: #2563eb; text-decoration: underline; }
html.dark .post-content a { color: #a3e635; }
.post-content .ql-align-center { text-align: center; }
.post-content .ql-align-right { text-align: right; }
.post-content .ql-align-justify { text-align: justify; }
.post-content blockquote { border-left: 4px solid #7c3aed; padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; color: #475569; }
html.dark .post-content blockquote { color: #cbd5e1; }

/* ═════════════════════════════════════════════════════════════════════════
 * QUILL EDITOR
 * ═════════════════════════════════════════════════════════════════════════ */
.ql-toolbar.ql-snow { border: none !important; border-bottom: 1px solid #e2e8f0 !important; background: #f8fafc; font-family: 'Poppins', sans-serif; border-top-left-radius: 8px; border-top-right-radius: 8px; }
.ql-container.ql-snow { border: none !important; font-family: 'Poppins', sans-serif; font-size: 0.95rem; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.ql-editor { min-height: 200px; max-height: 35vh; overflow-y: auto; line-height: 1.75; }
html.dark .ql-toolbar.ql-snow { background: #0b1120; border-bottom-color: rgba(255,255,255,0.1) !important; }
html.dark .ql-container.ql-snow { background: #0b1120; color: #e2e8f0; }
html.dark .ql-toolbar.ql-snow .ql-picker, html.dark .ql-toolbar.ql-snow .ql-stroke { stroke: #94a3b8; color: #94a3b8; }
html.dark .ql-toolbar.ql-snow .ql-fill { fill: #94a3b8; }
html.dark .ql-editor.ql-blank::before { color: #475569; }
html.dark .ql-picker-options { background-color: #0b1120 !important; border-color: rgba(255,255,255,0.1) !important; color: #e2e8f0; }

/* ═════════════════════════════════════════════════════════════════════════
 * EFEK TILT + GLOW + MAGNETIC
 * ═════════════════════════════════════════════════════════════════════════ */
.tilt-card { transition: transform 0.15s cubic-bezier(0.03, 0.98, 0.52, 0.99), box-shadow 0.3s ease; will-change: transform; }
.tilt-card .tilt-inner { position: relative; z-index: 5; pointer-events: auto; }
.glow-follow { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 230, 53, 0.35) 0%, rgba(163, 230, 53, 0) 70%); pointer-events: none; opacity: 0; transition: opacity 0.3s ease; transform: translate(-50%, -50%); z-index: 1; mix-blend-mode: screen; }
html:not(.dark) .glow-follow { background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0) 70%); mix-blend-mode: multiply; }
.tilt-card:hover .glow-follow { opacity: 1; }
.parallax-img { transition: transform 0.3s cubic-bezier(0.03, 0.98, 0.52, 0.99); will-change: transform; }
.magnetic { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); will-change: transform; }
.tilt-card:hover { border-color: rgba(139, 92, 246, 0.4) !important; }
html.dark .tilt-card:hover { border-color: rgba(163, 230, 53, 0.4) !important; }
@media (hover: none) { .glow-follow { display: none; } .tilt-card:hover { transform: none !important; } }

/* ═════════════════════════════════════════════════════════════════════════
 * GRID CAROUSEL
 * ═════════════════════════════════════════════════════════════════════════ */
.grid-track { display: flex; will-change: transform; }
.grid-track > .grid-post-slide { flex: 0 0 100%; min-width: 0; }
@media (min-width: 640px) { .grid-track > .grid-post-slide { flex: 0 0 calc(50% - 10px); } }
@media (min-width: 1024px) { .grid-track > .grid-post-slide { flex: 0 0 calc(33.333% - 14px); } }

.grid-post-card { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(12px); border-radius: 24px; overflow: hidden; box-shadow: 0 4px 20px -8px rgba(80, 70, 180, 0.12), 0 2px 8px -2px rgba(0, 0, 0, 0.04); border: 1px solid rgba(255, 255, 255, 0.9); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; position: relative; }
html.dark .grid-post-card { background: rgba(15, 23, 42, 0.75); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.5); }
.grid-post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px -10px rgba(139, 92, 246, 0.3); border-color: rgba(139, 92, 246, 0.4); }
html.dark .grid-post-card:hover { box-shadow: 0 12px 35px -10px rgba(163, 230, 53, 0.25); border-color: rgba(163, 230, 53, 0.4); }
.grid-post-card .card-image-frame { padding: 10px 10px 0 10px; }
.grid-post-card .card-image-wrap { border-radius: 16px; overflow: hidden; position: relative; height: 200px; background: #f1f5f9; cursor: pointer; }
html.dark .grid-post-card .card-image-wrap { background: #030712; }
.grid-post-card .card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.grid-post-card:hover .card-image-wrap img { transform: scale(1.06); }
.grid-post-card .card-badge { position: absolute; top: 12px; left: 12px; padding: 5px 14px; border-radius: 9999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.95); color: #7c3aed; border: 1.5px solid #7c3aed; backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); pointer-events: none; }
html.dark .grid-post-card .card-badge { background: rgba(11, 17, 32, 0.9); color: #a3e635; border-color: #a3e635; }
.grid-post-card .card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.grid-post-card .card-date { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 10px; }
.grid-post-card .card-title { font-size: 18px; font-weight: 700; line-height: 1.4; color: #0f172a; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s ease; cursor: pointer; }
@media (min-width: 640px) { .grid-post-card .card-title { font-size: 19px; } }
html.dark .grid-post-card .card-title { color: #f1f5f9; }
.grid-post-card:hover .card-title { color: #7c3aed; }
html.dark .grid-post-card:hover .card-title { color: #a3e635; }
.grid-post-card .card-excerpt { font-size: 14.5px; line-height: 1.7; color: #64748b; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; margin-bottom: 16px; }
@media (min-width: 640px) { .grid-post-card .card-excerpt { font-size: 15px; } }
html.dark .grid-post-card .card-excerpt { color: #94a3b8; }
.grid-post-card .card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: #7c3aed; margin-top: auto; padding-top: 4px; transition: gap 0.3s ease, color 0.2s ease; cursor: pointer; }
html.dark .grid-post-card .card-link { color: #a3e635; }
.grid-post-card .card-link:hover { gap: 14px; }

.grid-dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(100, 116, 139, 0.3); transition: all 0.3s ease; cursor: pointer; border: none; padding: 0; }
.grid-dot.active { width: 26px; background: #7c3aed; }
html.dark .grid-dot.active { background: #a3e635; }

/* ═════════════════════════════════════════════════════════════════════════
 * FEATURED POST
 * ═════════════════════════════════════════════════════════════════════════ */
.posts-featured-card { display: grid; grid-template-columns: 1fr; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px -12px rgba(80, 70, 180, 0.15); border: 1px solid rgba(255, 255, 255, 0.9); transition: box-shadow 0.3s ease, border-color 0.3s ease; cursor: pointer; }
html.dark .posts-featured-card { background: rgba(15, 23, 42, 0.75); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5); }
.posts-featured-card:hover { box-shadow: 0 20px 55px -15px rgba(139, 92, 246, 0.3); border-color: rgba(139, 92, 246, 0.4); }
html.dark .posts-featured-card:hover { box-shadow: 0 20px 55px -15px rgba(163, 230, 53, 0.28); border-color: rgba(163, 230, 53, 0.4); }
@media (min-width: 1024px) { .posts-featured-card { grid-template-columns: 1fr 1fr; min-height: 480px; } }
.posts-featured-media { position: relative; overflow: hidden; min-height: 260px; background: #0f172a; }
@media (min-width: 640px) { .posts-featured-media { min-height: 340px; } }
@media (min-width: 1024px) { .posts-featured-media { min-height: 100%; } }
.posts-featured-pattern { position: absolute; inset: 0; z-index: 1; background-color: #0f172a; background-image: linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%), linear-gradient(225deg, rgba(255,255,255,0.05) 25%, transparent 25%), linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%), linear-gradient(315deg, rgba(255,255,255,0.05) 25%, transparent 25%); background-size: 40px 40px; }
html.dark .posts-featured-pattern { background-color: #030712; }
.posts-featured-media img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }

/* ═════════════════════════════════════════════════════════════════════════
 * GALLERY MARQUEE
 * ═════════════════════════════════════════════════════════════════════════ */
.gallery-marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }
.gallery-track { display: flex; gap: 16px; width: max-content; animation: marquee-left 40s linear infinite; }
.gallery-track.reverse { animation: marquee-right 40s linear infinite; }
.gallery-marquee:hover .gallery-track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.gallery-item { position: relative; flex-shrink: 0; width: 260px; height: 170px; border-radius: 16px; overflow: hidden; cursor: pointer; background: #e2e8f0; box-shadow: 0 4px 15px -5px rgba(80, 70, 180, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
html.dark .gallery-item { background: #0b1120; }
.gallery-item:hover { transform: scale(1.05) translateY(-4px); box-shadow: 0 15px 35px -10px rgba(139, 92, 246, 0.4); z-index: 10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay, .gallery-grid-item .gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, transparent 75%); opacity: 0; transition: opacity 0.4s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: white; }
.gallery-item:hover .gallery-overlay, .gallery-grid-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-title, .gallery-grid-item .gallery-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.gallery-item .gallery-caption, .gallery-grid-item .gallery-caption { font-size: 12px; line-height: 1.45; opacity: 0.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-grid-item { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; cursor: pointer; background: #e2e8f0; box-shadow: 0 8px 25px -8px rgba(80, 70, 180, 0.2); transition: transform 0.4s ease, box-shadow 0.4s ease; }
html.dark .gallery-grid-item { background: #0b1120; }
.gallery-grid-item:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 0.4); }
.gallery-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-grid-item:hover img { transform: scale(1.08); }

/* ═════════════════════════════════════════════════════════════════════════
 * DAFTAR ISI
 * ═════════════════════════════════════════════════════════════════════════ */
#post-toc-list { list-style: none; padding: 0; margin: 0; }
#post-toc-list .toc-item { display: block; padding: 8px 0; font-size: 15px; font-weight: 500; color: #475569; line-height: 1.55; text-decoration: none; cursor: pointer; transition: color 0.2s ease; }
html.dark #post-toc-list .toc-item { color: #cbd5e1; }
#post-toc-list .toc-item:hover { color: #7c3aed; }
html.dark #post-toc-list .toc-item:hover { color: #a3e635; }
#post-toc-list .toc-item.active { color: #7c3aed; font-weight: 700; }
html.dark #post-toc-list .toc-item.active { color: #a3e635; }

@media (min-width: 1024px) { #view-post aside.sticky { top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: none; } #view-post aside.sticky::-webkit-scrollbar { display: none; width: 0; height: 0; } }
@media (max-width: 1023px) { #view-post aside.sticky { display: none !important; } }

/* ═════════════════════════════════════════════════════════════════════════
 * NOTE / QUOTE BLOCK
 * ═════════════════════════════════════════════════════════════════════════ */
.note-block { position: relative; margin: 2rem 0; padding: 32px 36px; background: linear-gradient(135deg, #f5f3ff 0%, #fae8ff 40%, #e0f2fe 100%); border-radius: 24px; box-shadow: 0 10px 30px -12px rgba(124, 58, 237, 0.15), 0 2px 8px -2px rgba(0, 0, 0, 0.04); overflow: hidden; }
html.dark .note-block { background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(11, 17, 32, 0.9) 50%, rgba(30, 58, 138, 0.1) 100%); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4); }
.note-block::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.06) 0%, transparent 40%); pointer-events: none; }
.note-block .note-text { position: relative; z-index: 1; font-size: 1.0625rem; line-height: 1.8; color: #1e293b; font-weight: 500; margin-bottom: 18px; letter-spacing: -0.005em; }
.note-block .note-text:last-child { margin-bottom: 0; }
html.dark .note-block .note-text { color: #e2e8f0; }
.note-block .note-author { position: relative; z-index: 1; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #7c3aed; }
html.dark .note-block .note-author { color: #a3e635; }
.note-block.note-small { margin: 1.75rem 0; padding: 20px 24px; background: #fefce8; border-left: 4px solid #eab308; border-radius: 12px; }
html.dark .note-block.note-small { background: rgba(234, 179, 8, 0.08); border-left-color: #eab308; }
.note-block.note-small .note-text { font-size: 15px; margin-bottom: 0; color: #78350f; }
html.dark .note-block.note-small .note-text { color: #fde68a; }

/* ═════════════════════════════════════════════════════════════════════════
 * HEADER
 * ═════════════════════════════════════════════════════════════════════════ */
#site-header { transition: all 0.3s ease; }
#site-header:hover { box-shadow: 0 12px 40px -10px rgba(80, 70, 180, 0.2); }
html.dark #site-header { box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05); }
html.dark #site-header:hover { box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(163, 230, 53, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.08); }
#site-header nav .group:hover .ph-caret-down { transform: rotate(180deg); }
#mobile-menu-drawer { transition: max-height 0.3s ease; }
html.dark #theme-knob { transform: translateX(calc(100% + 4px)); }
#site-header.scrolled { box-shadow: 0 10px 35px -8px rgba(80, 70, 180, 0.2); background: rgba(255, 255, 255, 0.85); }
html.dark #site-header.scrolled { background: rgba(11, 17, 32, 0.85); }
#site-header nav a, #site-header nav button { font-size: 14.5px; font-weight: 600; }
@media (min-width: 640px) { #site-header nav a, #site-header nav button { font-size: 15px; } }
@media (max-width: 640px) { #site-header { border-radius: 9999px; } #mobile-menu-drawer { border-radius: 0 0 1.5rem 1.5rem; } }

/* ═════════════════════════════════════════════════════════════════════════
 * FOOTER
 * ═════════════════════════════════════════════════════════════════════════ */
#footer, #footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6,
#footer p, #footer span, #footer div, #footer a,
#footer input, #footer button, #footer li, #footer label,
#footer address, #footer small, #footer strong, #footer b,
#footer textarea, #footer select {
    font-family: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
}
#footer i, #footer i[class*="ph"], #footer .ph, #footer [class*="ph-"] {
    font-family: "Phosphor" !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
#footer .ph-fill, #footer i.ph-fill { font-family: "Phosphor-Fill" !important; }
#footer { font-size: 14.5px; line-height: 1.7; }
#footer h3 { font-size: 1.15rem; font-weight: 700; }
#footer h4 { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
#footer p { font-size: 14.5px; line-height: 1.75; }

/* ═════════════════════════════════════════════════════════════════════════
 * TIMELINE PRESTASI
 * ═════════════════════════════════════════════════════════════════════════ */
.timeline-zigzag { position: relative; padding: 20px 0; }
.timeline-zigzag::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent 0%, #7c3aed 8%, #7c3aed 92%, transparent 100%);
    border-radius: 9999px;
    z-index: 1;
}
html.dark .timeline-zigzag::before { background: linear-gradient(to bottom, transparent 0%, #a3e635 8%, #a3e635 92%, transparent 100%); }

.timeline-item { position: relative; display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; gap: 0; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-card { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1.5px solid rgba(226, 232, 240, 0.9); border-radius: 20px; padding: 22px 26px; box-shadow: 0 8px 30px -12px rgba(80, 70, 180, 0.15); transition: all 0.3s ease; }
html.dark .timeline-card { background: rgba(15, 23, 42, 0.88); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6); }
.timeline-card:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, 0.5); box-shadow: 0 15px 40px -12px rgba(124, 58, 237, 0.3); }
html.dark .timeline-card:hover { border-color: rgba(163, 230, 53, 0.4); box-shadow: 0 15px 40px -12px rgba(163, 230, 53, 0.25); }

.timeline-item.left .timeline-card { grid-column: 1 / 2; margin-right: 24px; }
.timeline-item.right .timeline-card { grid-column: 3 / 4; margin-left: 24px; }

.timeline-node { grid-column: 2 / 3; display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; }
.timeline-node-inner { width: 44px; height: 44px; border-radius: 50%; background: #ffffff; border: 3px solid #7c3aed; display: flex; align-items: center; justify-content: center; color: #7c3aed; font-size: 20px; box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12), 0 6px 20px rgba(124, 58, 237, 0.2); transition: all 0.3s ease; }
html.dark .timeline-node-inner { background: #0b1120; border-color: #a3e635; color: #a3e635; box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.12), 0 6px 20px rgba(163, 230, 53, 0.2); }
.timeline-item:hover .timeline-node-inner { transform: scale(1.15); }

.level-badge { display: inline-block; padding: 4px 14px; border-radius: 9999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.level-internasional { background: #dcfce7; color: #15803d; border: 1.5px solid #86efac; }
.level-nasional      { background: #fef3c7; color: #b45309; border: 1.5px solid #fcd34d; }
.level-provinsi      { background: #dbeafe; color: #1d4ed8; border: 1.5px solid #93c5fd; }
.level-kabupaten     { background: #fae8ff; color: #86198f; border: 1.5px solid #e9d5ff; }
.level-sekolah       { background: #e0e7ff; color: #4338ca; border: 1.5px solid #c7d2fe; }
html.dark .level-internasional { background: rgba(34,197,94,0.15); color: #4ade80; border-color: rgba(74,222,128,0.4); }
html.dark .level-nasional      { background: rgba(245,158,11,0.15); color: #fbbf24; border-color: rgba(251,191,36,0.4); }
html.dark .level-provinsi      { background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(96,165,250,0.4); }
html.dark .level-kabupaten     { background: rgba(168,85,247,0.15); color: #c084fc; border-color: rgba(192,132,252,0.4); }
html.dark .level-sekolah       { background: rgba(99,102,241,0.15); color: #a5b4fc; border-color: rgba(165,180,252,0.4); }

.year-pill { display: inline-block; padding: 4px 14px; border-radius: 9999px; font-size: 11px; font-weight: 700; background: #ffffff; color: #475569; border: 1.5px solid #cbd5e1; }
html.dark .year-pill { background: rgba(15, 23, 42, 0.8); color: #cbd5e1; border-color: rgba(255, 255, 255, 0.1); }

@media (max-width: 767px) {
    .timeline-zigzag::before { left: 20px; transform: none; }
    .timeline-item { grid-template-columns: 40px 1fr; gap: 16px; margin-bottom: 28px; }
    .timeline-item.left .timeline-card, .timeline-item.right .timeline-card { grid-column: 2 / 3; margin: 0; }
    .timeline-node { grid-column: 1 / 2; align-self: start; padding-top: 20px; }
    .timeline-node-inner { width: 36px; height: 36px; font-size: 16px; border-width: 2.5px; }
    .timeline-card { padding: 18px 20px; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * RESPONSIVE MOBILE
 * ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) { .grid-post-card .card-image-wrap { height: 190px; } }
@media (max-width: 640px) {
    #hero-slider-section { height: calc(100vh - 40px) !important; min-height: 500px !important; max-height: 640px !important; }
    #grid-carousel-wrapper { padding-top: 6px !important; padding-bottom: 10px !important; margin-bottom: 24px !important; }
    #grid-prev, #grid-next { width: 40px !important; height: 40px !important; top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; z-index: 40 !important; background: rgba(255, 255, 255, 0.95) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; }
    #grid-prev { left: 4px !important; }
    #grid-next { right: 4px !important; }
    #grid-dots { margin-top: 10px !important; }
    #grid-carousel-wrapper > div.overflow-hidden { padding-left: 56px !important; padding-right: 56px !important; }
    .grid-post-card .card-image-wrap { height: 180px; }
    .grid-post-card .card-body { padding: 16px 18px 20px; }
    .grid-post-card .card-title { font-size: 17px; line-height: 1.4; }
    .grid-post-card .card-excerpt { font-size: 14px; line-height: 1.65; -webkit-line-clamp: 3; }
    .grid-post-card .card-link { font-size: 14px; }
    .grid-post-card .card-date { font-size: 11px; }
    .gallery-item { width: 200px; height: 130px; }
    .gallery-track { animation-duration: 30s; gap: 12px; }
    .post-content { font-size: 1rem; line-height: 1.8; }
    .post-content h1 { font-size: 1.5rem; }
    .post-content h2 { font-size: 1.4rem; }
    .post-content h3 { font-size: 1.2rem; }
    .ql-editor { min-height: 150px; max-height: 40vh; font-size: 14px; }
    #events-section { margin-top: 40px !important; }
    #gallery-section { margin-top: 32px !important; }
    .note-block { padding: 24px 22px !important; margin: 1.5rem 0 !important; }
    .note-block .note-text { font-size: 15.5px !important; }
    .note-block .note-author { font-size: 11.5px !important; }
    .posts-featured-media { min-height: 240px; }
}
@media (max-width: 400px) {
    .grid-post-card .card-image-wrap { height: 160px; }
    .gallery-item { width: 180px; height: 120px; }
    #grid-prev, #grid-next { width: 36px !important; height: 36px !important; }
    #grid-carousel-wrapper > div.overflow-hidden { padding-left: 48px !important; padding-right: 48px !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * TAILWIND TEXT SIZE OVERRIDES
 * ═════════════════════════════════════════════════════════════════════════ */
.text-xs { font-size: 13px !important; line-height: 1.55 !important; }
.text-sm { font-size: 14.5px !important; line-height: 1.6 !important; }
.text-base { font-size: 16px !important; line-height: 1.7 !important; }
.text-lg { font-size: 18px !important; line-height: 1.6 !important; }
.text-xl { font-size: 20px !important; line-height: 1.5 !important; }
@media (min-width: 640px) {
    .sm\:text-sm { font-size: 15px !important; }
    .sm\:text-base { font-size: 17px !important; }
    .sm\:text-lg { font-size: 19px !important; }
    .sm\:text-xl { font-size: 21px !important; }
    .sm\:text-2xl { font-size: 25px !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * TOAST NOTIFIKASI
 * ═════════════════════════════════════════════════════════════════════════ */
.toast-notif { animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 20px); } }