/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #1a1a1a;
    --accent-blue: #7B1A28; /* Burgundy Red — primary accent (swapped) */
    --accent-navy: #004D98; /* Navy Blue — secondary accent (swapped) */
    --bg-light: #ffffff;
    --border-color: #e5e5e5;
    --font-heading: 'Inter', 'Trebuchet MS', Arial, sans-serif;
    --font-body: 'Inter', 'Trebuchet MS', Arial, sans-serif;

    /* Theme Variables — DEFAULT: light body, always-dark transparent header */
    --bg-body: #FAFAFA;
    --bg-header: linear-gradient(160deg, rgba(14, 14, 28, 0.97) 0%, rgba(8, 20, 52, 0.97) 100%);
    --bg-header-scrolled: rgba(12, 14, 30, 0.94);
    --text-main: #3a3a3a;
    --text-heading: #0d0d0d;
    --text-muted: #888888;
    --border-color: #e5e5e5;
    --input-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --disclaimer-bg: #F2F0EB;
}

/* Night Mode */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-header: linear-gradient(160deg, rgba(8, 8, 18, 0.98) 0%, rgba(4, 14, 38, 0.98) 100%);
    --bg-header-scrolled: rgba(8, 8, 22, 0.96);
    --text-main: #e0e0e0;
    --text-heading: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #333333;
    --input-bg: #222222;
    --card-bg: #1e1e1e;
    --disclaimer-bg: #1e1e1e;
    --accent-blue: #B5404F;
    --accent-navy: #4D8FD6;
}

/* Dark Mode Specific Overrides */
[data-theme="dark"] .sub-translate-text,
[data-theme="dark"] .goog-te-gadget-simple,
[data-theme="dark"] .goog-te-gadget-simple span,
[data-theme="dark"] .goog-te-gadget-simple .goog-te-menu-value span {
    color: #ffffff !important;
}

/* Smooth Theme Transition */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
    transition-delay: 0s !important;
}

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

/* --- SKIP TO CONTENT (Accessibility) --- */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 10px;
}

/* --- FOCUS VISIBLE (Keyboard Navigation) --- */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 2px;
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}
/* Remove outline only for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image: radial-gradient(circle, rgba(0, 77, 152, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    line-height: 1.75;
    transition: background-color 0.6s ease, color 0.6s ease;
    -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body,
[data-theme="dark"] {
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- HEADER --- */
.main-header {
    padding: 48px 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-header);
    transition: background 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    transform: translateZ(0);
    will-change: padding, background;
}

.main-header.scrolled {
    background: var(--bg-header-scrolled);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-container {
    text-align: center;
    position: relative;
}

/* Hide logo image if accidentally placed in header */
.header-container .header-logo {
    display: none;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 4px;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), max-height 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1), margin 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
}

.brand-name a { color: var(--text-heading); }

/* Text in dark editorial header */
.main-header .brand-name a {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.main-header .pre-title {
    color: rgba(255,255,255,0.42);
}
.main-header .tagline {
    color: rgba(255,255,255,0.55);
}

.main-header .tagline::after {
    background: rgba(255,255,255,0.5);
}

.main-header .nav-links a {
    color: rgba(255,255,255,0.75);
}

.main-header .nav-links a:hover,
.main-header .nav-links a.active,
.main-header .nav-links a:hover,
.main-header .nav-links a.active {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,0.6) !important;
}

.main-header .nav-wrapper {
    border-top-color: rgba(255,255,255,0.15);
}

.main-header .search-box input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

.main-header .search-box input::placeholder {
    color: rgba(255,255,255,0.4);
}


.main-header .search-box button {
    color: rgba(255,255,255,0.7);
}

.main-header .hamburger {
    color: rgba(255,255,255,0.9);
}

.pre-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1), max-height 0.3s cubic-bezier(0.4,0,0.2,1);
    max-height: 30px;
    opacity: 1;
    overflow: hidden;
    transform: translateY(0);
    will-change: transform, opacity;
}

.pre-title.hidden {
    opacity: 0;
    transform: translateY(-4px);
    max-height: 0;
}

.tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    margin-bottom: 38px;
    display: inline-block;
    position: relative;
    letter-spacing: 0.5px;
    transition: font-size 0.35s cubic-bezier(0.4,0,0.2,1), margin 0.35s cubic-bezier(0.4,0,0.2,1), color 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* Garis dekorasi di bawah tagline */
.tagline::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    margin: 14px auto 0;
    transition: opacity 0.3s ease, margin 0.3s ease, height 0.3s ease;
}

/* =====================================================
   SCROLLED — ALL VIEWPORTS
   Layout: [theme-toggle] | [a Reza POV] | [hamburger]
   ===================================================== */
.main-header.scrolled .brand-name {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.main-header.scrolled .pre-title {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* header-container: relative so brand can be absolute-centered */
.main-header.scrolled .header-container {
    position: relative;
    padding: 4px 0;
}

/* Brand: fill entire header-container, flex-center the tagline */
.main-header.scrolled .brand {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.main-header.scrolled .tagline {
    font-size: 1rem;
    line-height: 1;
    margin: 0 !important;
    padding: 0;
    pointer-events: auto;
    color: rgba(255,255,255,0.85);
}

/* White text & icons in dark scrolled header */
.main-header.scrolled .hamburger {
    color: rgba(255,255,255,0.9);
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.main-header.scrolled .theme-toggle {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.2);
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Dropdown panel matches dark header */
.scrolled-menu-panel {
    background: rgba(10, 10, 10, 0.92);
    border-top-color: rgba(255,255,255,0.1);
}

.panel-nav-links li a {
    color: rgba(255,255,255,0.75);
    border-bottom-color: rgba(255,255,255,0.1);
}

.panel-nav-links li a:hover,
.panel-nav-links li a.active {
    color: #ffffff;
}

.panel-search input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #ffffff;
}

.panel-search input::placeholder {
    color: rgba(255,255,255,0.4);
}

.panel-search button {
    color: rgba(255,255,255,0.7);
}

.main-header.scrolled .tagline::after {
    opacity: 0;
    margin-top: 0;
    height: 0;
}

/* Nav-wrapper: full-width flex row; controls group at left, hamburger at right */
.main-header.scrolled .nav-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 4px 0;
    border-top: none;
    position: static;
    min-height: unset;
    height: auto;
}

.main-header.scrolled .hamburger {
    margin-left: auto;
}

/* Hide nav and search when scrolled */
.main-header.scrolled .navbar {
    display: none;
}

.main-header.scrolled .search-box {
    display: none;
}

/* Hamburger always visible when scrolled */
.main-header.scrolled .hamburger {
    display: flex !important;
    position: static;
    top: auto;
    right: auto;
}

/* Single dropdown panel for scrolled state */
.scrolled-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header-scrolled);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1100;
    padding: 0 24px 20px;
}

.scrolled-menu-panel.active {
    display: block;
}

.panel-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-nav-links li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.panel-nav-links li:last-child a {
    border-bottom: none;
}

.panel-nav-links li a:hover,
.panel-nav-links li a.active {
    color: #ffffff !important;
}

.panel-search {
    margin-top: 14px;
    position: relative;
}

.panel-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.panel-search input {
    width: 100%;
    padding: 9px 44px 9px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
}

.panel-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    font-size: 0.85rem;
}

/* --- NAVIGATION & SEARCH WRAPPER --- */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    background-color: transparent;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.navbar {
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.nav-links a.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

/* --- SEARCH BAR DENGAN MATA --- */
.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 42px 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    outline: none;
    width: 220px;
    font-size: 0.85rem;
    transition: 0.3s;
    background-color: var(--input-bg);
    color: var(--text-main);
}

.search-box input:focus {
    border-color: var(--accent-navy);
    width: 240px; /* Efek memanjang saat diklik */
}

.search-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
    font-size: 0.85rem;
}

.eye-icon {
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--accent-blue);
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger:hover { background: var(--input-bg); }
.hamburger i { transition: transform 0.2s; }

/* --- MAIN LAYOUT --- */
.main-layout {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    margin-bottom: 100px;
}

.content-area {
    flex: 4;
    min-width: 0; /* Prevent flex overflow breaking sidebar */
    overflow-x: hidden;
}

/* Prevent wide content (images, tables, iframes) from breaking layout */
.content-area img,
.excerpt img {
    max-width: 100%;
    height: auto;
}

.content-area table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.sidebar-area {
    flex: 1;
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
    padding-right: 32px;
    position: sticky;
    top: 120px;
    height: fit-content;
    transition: border-color 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
    background-color: var(--bg-body);
    /* Bleed background to screen right edge via box-shadow */
    box-shadow: 999px 0 0 999px var(--bg-body);
    clip-path: inset(0 -999px 0 0);
}

.sidebar-area.is-sticky {
    border-color: var(--accent-navy);
    background-color: var(--disclaimer-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- ARTICLE HERO (full-width cinematic image) --- */
.article-hero {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 480px;
    max-height: 780px;
    overflow: hidden;
    margin-bottom: 0;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.article-hero:hover img {
    transform: scale(1.06);
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.72) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 64px;
}

.article-hero-meta {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 14px;
}

.article-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    max-width: 800px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.article-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: italic;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .article-hero {
        height: 60vw;
        min-height: 280px;
    }
    .article-hero-overlay {
        padding: 28px 24px;
    }
    .article-hero-title {
        font-size: 1.6rem;
    }
}

/* --- POST ITEMS --- */
.post-item {
    margin-bottom: 70px;
}

.post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-thumb:hover img {
    transform: scale(1.015);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.meta-date {
    color: var(--accent-blue);
}

.meta-cat {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-navy);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.post-details h1,
.post-details h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.post-details h1 a,
.post-details h2 a { color: var(--text-heading); }
.post-details h1 a:hover,
.post-details h2 a:hover { color: var(--accent-blue); }

.excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.75;
    text-align: left;
}

.excerpt p {
    margin-bottom: 25px;
}

.excerpt h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-heading);
    line-height: 1.4;
    text-align: left;
}

.excerpt h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-heading);
    line-height: 1.4;
    text-align: left;
}

.excerpt ul, .excerpt ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.excerpt ul {
    list-style: disc;
}

.pov-label {
    font-weight: 700;
    color: var(--text-heading);
    text-align: left;
    margin-top: 30px;
}

.quote-pov {
    color: red;
    text-align: center;
    font-weight: 700;
    margin-top: 10px;
    font-style: italic;
}

/* --- ARTICLE IMAGES & CAPTIONS --- */
figure {
    margin: 30px 0;
    text-align: center;
}
figure img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Class specifically for screenshots/tables to prevent blurriness */
figure img.crisp-image {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Full-width article header image */
figure img.full-width-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Class untuk membuat tampilan screenshot aplikasi (mobile) terlihat lebih profesional */
figure img.mobile-screenshot {
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}
figcaption {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

.entry-content {
    color: #333;
}

[data-theme="dark"] .entry-content {
    color: #ffffff;
}

.image-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 30px 0;
}

.image-row figure {
    flex: 1;
    margin: 0;
}

.image-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.image-stack img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.read-more {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-heading);
    border-bottom: 1.5px solid var(--text-heading);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

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

/* --- SIDEBAR --- */
.widget {
    position: relative;
}

.widget h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.social-widget {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.soc-icon { font-size: 1.4rem; color: var(--text-muted); }
.soc-icon:hover { color: var(--accent-blue); }

/* --- CONNECT WIDGET (NEW LAYOUT) --- */
.connect-wrapper {
    display: flex;
    justify-content: space-between; /* Dorong teks ke kiri, logo ke kanan */
    align-items: center;           /* Sejajarkan secara vertikal */
    width: 100%;
    max-width: 100%;
}

.connect-left {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antara tulisan CONNECT dan ikon sosmed */
}

.connect-title {
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 24px; /* Ukuran ikon media sosial */
}

.logo-link {
    display: block;
    width: 70px;  /* Ukuran kotak luar logo */
    height: 70px;
}

@keyframes logoEntry {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* PENTING: Logo tidak akan gepeng/terpotong */
    border: 1.5px solid var(--accent-navy);
    border-radius: 15px;
    padding: 8px;
    background-color: var(--bg-body);
    animation: logoEntry 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0 28px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-body);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footer-quote {
    margin: 0 0 28px;
    padding: 20px 24px 20px;
    border-bottom: none;
    background: rgba(0,0,0,0.55);
    border-radius: 10px;
    border-left: 3px solid var(--accent-navy);
    width: 100%;
    max-width: 480px;
}

.footer-quote-phrase {
    display: block;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.footer-quote-text {
    display: block;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', Georgia, serif;
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.footer-quote-author {
    display: block;
    font-family: 'Lora', serif;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--accent-navy);
    margin-top: 6px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: currentColor;
}

/* Instagram — brand gradient via background clip */
.footer-socials a.ig-link { color: #E1306C; border-color: #E1306C; }
.footer-socials a.ig-link .fa-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* X / Twitter — classic Twitter blue */
.footer-socials a.tw-link { color: #1DA1F2; border-color: #1DA1F2; }
.footer-socials a.tw-link .fa-twitter,
.footer-socials a.tw-link .fa-x-twitter { color: #1DA1F2; }

/* Email */
.footer-socials a.em-link { color: var(--accent-blue); border-color: var(--accent-blue); }
.footer-socials a.em-link .fa-envelope { color: var(--accent-blue); }

.copyright {
    color: var(--text-muted);
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.copyright b {
    color: var(--text-heading);
    font-weight: 600;
}

/* --- SPOTIFY LINKS --- */
.spotify-link,
a.spotify-link,
.excerpt .spotify-link,
.entry-content .spotify-link {
    color: var(--accent-navy) !important;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: 0.3s;
    cursor: pointer;
    pointer-events: auto;
}
.spotify-link:hover,
a.spotify-link:hover {
    opacity: 0.75;
    border-bottom-style: solid;
}

.footer-legal {
    font-size: 0.78rem;
    margin-top: 4px;
}

.footer-legal a {
    font-family: 'Times New Roman', Times, serif;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--accent-blue);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Sembunyikan logo di mobile agar teks header terbaca jelas */
    /* .logo-link { display: none; }  <-- Dihapus agar logo tetap tampil di mobile sesuai layout baru */

    /* Layout Mobile untuk Connect Widget (Icons - Translate - Logo) */
    .connect-wrapper {
        background-color: var(--disclaimer-bg);
        border-radius: 12px;
        border: 1px solid var(--border-color);
        margin-top: 30px;
        padding: 20px;
        max-width: 100%;
    }

    .main-layout { flex-direction: column; gap: 60px; }
    .sidebar-area { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 50px; margin-top: 30px; }

    .nav-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
        min-height: 50px;
        position: relative;
        height: auto;
    }

    /* Non-scrolled mobile: push menu content below the controls row */
    .main-header:not(.scrolled) .nav-wrapper {
        padding-top: 54px;
    }

    /* Position theme-toggle and lang-toggle alongside the hamburger at top-right */
    .main-header:not(.scrolled) .theme-toggle {
        position: absolute;
        right: 44px;
        top: 12px;
        width: 40px;
        height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .main-header:not(.scrolled) .lang-toggle {
        position: absolute;
        right: 92px;
        top: 14px;
        margin-right: 0;
    }

    .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 10px; }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 15px 0; border-bottom: 1px solid var(--border-color); width: 100%; }
    .nav-links li:last-child a { border-bottom: none; }

    /* Search: move to top of expanded menu, above nav links */
    .search-box { width: 100%; margin-top: 0; margin-bottom: 8px; display: none; order: -1; }
    .search-box.active { display: block; }
    .search-box input { width: 100%; }

    .brand-name {
        font-size: 1.7rem;
        letter-spacing: 4px;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 0;
        top: 12px;
        z-index: 100;
    }

}

/* --- PORTFOLIO OVERLAY --- */
.portfolio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    width: 90%;
    max-width: 900px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
    padding: 10px;
}

.portfolio-overlay.active .overlay-content {
    transform: scale(1);
}

.overlay-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-navy);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.stock-code {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-navy);
    margin-bottom: 8px;
}

.stock-name {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.stock-cat {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-readmore {
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-overlay {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.close-overlay:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* --- CATEGORY FILTER --- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.cat-btn {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.cat-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* --- FEATURED SECTION --- */
.featured-label {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--accent-navy);
    border-bottom: 3px solid var(--accent-navy);
    padding-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
}

/* Subtle lift on grid post hover */
.posts-grid .post-item {
    transition: transform 0.25s ease;
}
.posts-grid .post-item:hover {
    transform: translateY(-3px);
}

/* --- PRIVACY & SINGLE PAGE STYLES --- */
.content-area.single-col {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    flex: none;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header hr {
    width: 60px;
    border: 1px solid var(--accent-navy);
    margin: 20px auto;
}

.privacy-content h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.privacy-content p, .privacy-content li {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.last-updated {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    display: block;
    text-align: center;
}

/* --- INSIGHTS GRID --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
}

.posts-grid .post-item {
    margin-bottom: 0;
}

.posts-grid .post-thumb {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.posts-grid .post-thumb img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--disclaimer-bg);
    border-radius: 6px;
    width: 100%;
}

.posts-grid .post-details h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.posts-grid .excerpt {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.posts-grid .excerpt p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* --- RELATED POSTS GRID --- */
#related-posts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

#related-posts-container .post-item {
    margin-bottom: 0;
}

#related-posts-container .post-thumb {
    margin-bottom: 15px;
}

#related-posts-container .post-thumb img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--disclaimer-bg);
}

#related-posts-container .post-details h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

#related-posts-container .excerpt {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

#related-posts-container .excerpt p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #related-posts-container {
        grid-template-columns: 1fr;
    }
}

/* --- TRANSLATE WIDGET --- */
.translate-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.translate-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.translate-btn-row {
    display: flex;
    gap: 8px;
}


/* --- SIDEBAR LANGUAGE SWITCH BUTTONS --- */
.sidebar-lang-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 4px;
    background: transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: var(--font-sans);
}

.sidebar-lang-btn.active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.sidebar-lang-btn:hover:not(.active) {
    background-color: var(--text-heading);
    border-color: var(--text-heading);
    color: #fff;
}

[data-theme="dark"] .sidebar-lang-btn {
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="dark"] .sidebar-lang-btn.active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}


.portfolio-disclaimer {
    margin-top: 40px;
    padding: 20px 20px 20px 55px; /* Padding for icon */
    background-color: var(--disclaimer-bg);
    border-left: 4px solid var(--accent-blue);
    font-size: 0.9rem;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.6;
    position: relative; /* For icon positioning */
}

.portfolio-disclaimer::before {
    content: '\f071'; /* Font Awesome warning icon (fa-triangle-exclamation) */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900; /* Solid icon */
    position: absolute;
    left: 20px;
    top: 24px; /* Adjust vertical alignment */
    color: var(--accent-blue);
    font-size: 1.2rem;
}

/* --- CONTENT TABLES --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px 8px 0 0;
}

.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-track { background: transparent; }
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
    min-width: 600px; /* Memaksa tabel cukup lebar agar memicu scroll di HP */
}

.content-table thead tr {
    background-color: var(--accent-blue);
    color: #ffffff;
    text-align: left;
    font-family: var(--font-heading);
}

.content-table th,
.content-table td {
    padding: 12px 15px;
}

.content-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.content-table tbody tr:nth-of-type(even) {
    background-color: var(--input-bg);
}

.content-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent-blue);
}

/* --- HOMEPAGE PORTFOLIO (LIGHT MODE) --- */
.home-portfolio .portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.home-portfolio .portfolio-card:hover {
    background: var(--bg-header);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.home-portfolio .stock-name { color: var(--text-heading); }
.home-portfolio .stock-cat { color: var(--text-muted); }
/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Hidden by default */
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.5s ease-in-out;
    border-top: 3px solid var(--accent-blue);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 700;
}

.cookie-btn {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: #003370;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* --- CONTACT FORM --- */
.contact-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.contact-section h3 {
    text-align: center;
    font-family: var(--font-heading);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: 0.3s;
    outline: none;
    background: var(--input-bg);
    color: var(--text-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-blue);
    background: var(--bg-header);
    box-shadow: 0 0 0 3px rgba(37, 132, 161, 0.1);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.submit-btn:hover {
    background-color: #003370;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 132, 161, 0.3);
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* --- SHARE BUTTONS --- */
.share-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.share-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.simple-share-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.simple-share-btn::before,
.simple-share-btn::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--border-color);
    transition: width 0.3s, background-color 0.3s;
}

.simple-share-btn:hover {
    color: var(--text-heading);
    letter-spacing: 4px; /* Efek melebar sedikit saat hover */
}
.simple-share-btn:hover::before,
.simple-share-btn:hover::after {
    width: 50px;
    background-color: var(--accent-blue);
}

/* --- SHARE POPUP MENU --- */
.share-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-popup {
    position: absolute;
    bottom: 120%; /* Muncul di atas tombol */
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    background-color: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.5);
    z-index: 100;
}

.share-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Panah kecil di bawah popup */
.share-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--bg-header) transparent transparent transparent;
}

.share-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
}

.share-icon:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: transparent;
}

.share-icon.twitter:hover { background-color: #000; }
.share-icon.whatsapp:hover { background-color: #25D366; }
.share-icon.linkedin:hover { background-color: #0077b5; }
.share-icon.instagram:hover { background-color: #E1306C; }
.share-icon.copy:hover { background-color: var(--text-muted); }

/* --- TOAST NOTIFICATION --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Mulai dari bawah layar */
    background-color: var(--accent-blue);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none; /* Agar tidak mengganggu klik */
}

/* --- TABLE OF CONTENTS --- */
.toc-container {
    background-color: var(--disclaimer-bg);
    border-left: 4px solid var(--accent-blue);
    padding: 20px 20px 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.toc-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.toc-list li a { color: var(--text-main); text-decoration: none; transition: all 0.2s; border-bottom: 1px dotted transparent; }
.toc-list li a:hover { color: var(--accent-blue); border-bottom-color: var(--accent-blue); padding-left: 5px; }
.toc-list li a.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); padding-left: 8px; font-weight: 700; }
.toc-list li.toc-h4 { margin-left: 20px; font-size: 0.9rem; color: var(--text-muted); }

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: #4ce483; /* Warna hijau untuk ikon check */
    font-size: 1.1rem;
}

/* --- PORTFOLIO UPDATE WIDGET --- */
.portfolio-update-widget {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.portfolio-update-widget h3 {
    margin-bottom: 25px;
}

.year-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
    padding: 12px 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.year-toggle:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.quarters-list {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
    margin-left: 15px;
}

.quarters-list li { margin-bottom: 10px; }
.quarters-list a { font-size: 0.9rem; color: var(--text-muted); display: block; transition: 0.3s; }
.quarters-list a:hover { color: var(--accent-blue); transform: translateX(5px); font-weight: 600; }

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: #003370;
    transform: translateY(-3px);
}

/* --- CODE BLOCKS & COPY BUTTON --- */
.code-block-wrapper {
    position: relative;
    margin: 30px 0;
}

pre {
    background-color: var(--disclaimer-bg);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0; /* Wrapper handles margin */
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.code-block-wrapper:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background-color: #003370;
    transform: translateY(-2px);
}

.copy-code-btn.copied {
    background-color: #4ce483;
}

@media (max-width: 768px) {
    .copy-code-btn {
        opacity: 1;
    }
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 99999; /* Ensure it stays on top of sticky header */
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 4px rgba(37, 132, 161, 0.5);
}

/* --- READING MODE --- */
.reading-mode-btn {
    position: fixed;
    bottom: 90px; /* Above back-to-top */
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--text-main);
    color: var(--bg-body);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.reading-mode-btn.visible {
    opacity: 0.8;
    visibility: visible;
}

.reading-mode-btn.visible:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    .reading-mode-btn {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

body.reading-mode .main-header,
body.reading-mode .sidebar-area,
body.reading-mode footer,
body.reading-mode .recent-posts,
body.reading-mode .share-container {
    display: none !important;
}

/* Background khusus Mode Baca agar mata tidak cepat lelah */
body.reading-mode {
    background-color: #fdfaf6; /* Warna kertas hangat (soft sepia) di Light Mode */
}
[data-theme="dark"] body.reading-mode {
    background-color: #080808; /* Warna super gelap di Dark Mode agar lebih fokus */
}

body.reading-mode .main-layout {
    display: block;
    max-width: 740px; /* Optimal reading width */
    margin: 40px auto;
    animation: fadeInReading 0.6s ease forwards;
}

body.reading-mode .content-area {
    width: 100%;
    flex: none;
}

@keyframes fadeInReading {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- REFERENCES COLLAPSIBLE --- */
.references-details {
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.references-details summary {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    transition: color 0.3s ease;
}

.references-details summary::-webkit-details-marker {
    display: none;
}

.references-details summary::before {
    content: '\f078'; /* Font Awesome fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.references-details[open] summary::before {
    transform: rotate(180deg);
}

.references-details summary:hover {
    color: var(--accent-blue);
}

.references-content {
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--border-color);
    animation: fadeInDetails 0.3s ease-out;
}

.references-content a {
    color: var(--accent-navy);
    text-decoration: underline;
    font-weight: 700;
}

.references-content a:hover {
    color: #122A52;
}

@keyframes fadeInDetails {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- LIVE SEARCH DROPDOWN --- */
.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
    background: rgba(6, 10, 30, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    z-index: 9999;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sug-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.12s;
}

.sug-item:last-of-type { border-bottom: none; }

.sug-item:hover,
.sug-item:focus {
    background: rgba(255,255,255,0.07);
    outline: none;
}

.sug-cat {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.sug-title {
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.82);
}

.sug-title mark {
    background: rgba(255,200,50,0.3);
    color: #ffd96a;
    border-radius: 2px;
    padding: 0 1px;
}

.sug-all {
    display: block;
    padding: 9px 14px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: background 0.12s, color 0.12s;
}

.sug-all:hover,
.sug-all:focus {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    outline: none;
}

.sug-all strong { color: rgba(255,255,255,0.75); }

.sug-empty {
    padding: 16px 14px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.38);
    text-align: center;
}

.sug-empty strong { color: rgba(255,255,255,0.65); }

@media (max-width: 768px) {
    .search-suggestions { width: 100%; right: auto; left: 0; }
}

/* --- LANGUAGE TOGGLE --- */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 6px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .lang-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .lang-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .lang-btn { font-size: 0.58rem; padding: 2px 6px; }
}
