:root {
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --brand-blue: #004AAD;
    --brand-blue-hover: #003a88;
    --brand-lime: #99CC33;
    --brand-lime-hover: #86b828;
    --brand-lime-glow: rgba(153, 204, 51, 0.35);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-base: #0a0f1d;
    --bg-surface: #111827;
    --bg-card: #162032;
    --bg-card-inner: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(10, 15, 29, 0.95);
    --input-bg: #1e293b;
    --input-border: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] {
    --bg-base: #edf2f7;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-inner: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-subtle: rgba(0, 74, 173, 0.12);
    --header-bg: rgba(237, 242, 247, 0.95);
    --input-bg: #f8fafc;
    --input-border: rgba(0, 74, 173, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.background-decor {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 74, 173, 0.18) 0%, rgba(153, 204, 51, 0.08) 45%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

/* READING PROGRESS BAR */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
    display: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-lime));
    transition: width 0.1s ease-out;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6%;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    color: var(--brand-lime);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.back-link:hover {
    transform: translateX(-4px);
    color: #fff;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    object-fit: contain;
}

[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- INTERACTIVE DUAL-PILL THEME SWITCH TOGGLE --- */
.theme-switch-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card-inner, rgba(255, 255, 255, 0.08));
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 3px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: var(--transition-smooth);
}

.theme-switch-toggle:hover {
    border-color: var(--brand-lime);
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

[data-theme="light"] .theme-switch-toggle .theme-light {
    background: #ffffff;
    color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    font-weight: 700;
}

[data-theme="light"] .theme-switch-toggle .theme-dark {
    color: var(--text-muted);
    opacity: 0.45;
}

[data-theme="dark"] .theme-switch-toggle .theme-dark {
    background: var(--brand-blue);
    color: #38bdf8;
    box-shadow: 0 2px 8px rgba(0, 74, 173, 0.5);
    font-weight: 700;
}

[data-theme="dark"] .theme-switch-toggle .theme-light {
    color: var(--text-muted);
    opacity: 0.4;
}

/* --- FRAMELESS STAFF PORTAL ICON AT VERY RIGHT --- */
.btn-staff-frameless {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.35rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 4px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn-staff-frameless:hover {
    color: var(--brand-lime);
    transform: scale(1.18);
}

.btn-tracker-header {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-tracker-header:hover {
    border-color: var(--brand-blue);
    color: var(--brand-lime);
}

/* ===================================================
   MAIN CONTAINER & HERO
   =================================================== */
.blog-container {
    max-width: 1180px;
    width: 100%;
    margin: 40px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.blog-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 35px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(153, 204, 51, 0.12);
    border: 1px solid rgba(153, 204, 51, 0.3);
    color: var(--brand-lime);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CATEGORY FILTERS */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.cat-pill {
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.cat-pill:hover {
    border-color: var(--brand-lime);
    color: var(--text-main);
    transform: translateY(-2px);
}

.cat-pill.active {
    background: linear-gradient(135deg, var(--brand-blue), #003072);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.35);
}

/* FEATURED HERO ARTICLE */
.featured-article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.featured-article-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-lime);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-thumb {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-tag {
    color: var(--brand-lime);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--text-main);
}

.featured-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ARTICLES SECTION HEADER & GRID */
.articles-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.articles-section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 30px;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 12px rgba(0, 74, 173, 0.25);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-lime);
    box-shadow: 0 16px 36px rgba(0,0,0,0.25);
}

.card-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-thumb {
    transform: scale(1.06);
}

.card-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    color: var(--brand-lime);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ===================================================
   FULL-PAGE ARTICLE READER STYLING (BUKAN POP-UP)
   =================================================== */
.full-article-reader {
    max-width: 900px;
}

.reader-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 15px;
}

.btn-back-hub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 25px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-back-hub:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    transform: translateX(-4px);
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
    color: var(--brand-lime);
}

.breadcrumbs span.active {
    color: var(--brand-lime);
    font-weight: 700;
}

.article-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    margin-bottom: 50px;
}

.reader-header {
    margin-bottom: 30px;
}

.reader-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(153, 204, 51, 0.12);
    border: 1px solid rgba(153, 204, 51, 0.3);
    color: var(--brand-lime);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.reader-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-main);
}

.author-byline-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 16px 20px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
}

.author-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-lime));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.author-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.author-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.reader-cover-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 18px;
    margin: 30px 0;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.reader-content {
    font-size: 1.06rem;
    line-height: 1.9;
    color: #cbd5e1;
}

[data-theme="light"] .reader-content {
    color: #334155;
}

.reader-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 35px 0 14px 0;
    border-left: 4px solid var(--brand-lime);
    padding-left: 14px;
}

.reader-content p {
    margin-bottom: 20px;
}

.reader-content strong {
    color: var(--text-main);
}

.reader-content ul, .reader-content ol {
    padding-left: 26px;
    margin-bottom: 22px;
}

.reader-content li {
    margin-bottom: 10px;
}

/* SHARE SOCIAL BAR */
.share-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    margin: 40px 0 20px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.share-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.btn-share {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-share.wa { background: #25d366; }
.btn-share.li { background: #0077b5; }
.btn-share.tw { background: #1da1f2; }
.btn-share.copy { background: var(--bg-card-inner); border: 1px solid var(--border-subtle); color: var(--text-main); }

.btn-share:hover {
    transform: translateY(-3px) scale(1.08);
}

/* READER CTA CONVERSION BOX */
.reader-cta-box {
    margin-top: 40px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.22), rgba(153, 204, 51, 0.1));
    border: 1px solid rgba(0, 74, 173, 0.4);
    border-radius: 20px;
    text-align: center;
}

.reader-cta-box h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.reader-cta-box p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--brand-lime), #86b828);
    color: #0a0f1d;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(153, 204, 51, 0.35);
    transition: var(--transition-smooth);
}

.btn-cta-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(153, 204, 51, 0.5);
}

/* RELATED ARTICLES */
.related-articles-section {
    margin-top: 50px;
}

.related-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--header-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 50px 6% 25px 6%;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-top-grid {
    max-width: 1050px;
    margin-right: auto;
    margin-bottom: 35px;
    padding-right: 110px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo-img {
    height: 32px;
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--brand-lime);
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-contact-info a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info a:hover {
    color: var(--brand-lime);
}

.footer-bottom-bar {
    max-width: 1050px;
    margin-right: auto;
    padding-top: 20px;
    padding-right: 110px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.footer-badges a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-badges a:hover {
    color: var(--brand-lime);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .featured-article-card {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
        padding-right: 0;
        gap: 30px;
    }
    .footer-bottom-bar {
        padding-right: 0;
    }
    .article-detail-card {
        padding: 30px 20px;
    }
    .reader-title {
        font-size: 1.7rem;
    }
}
