/*
Theme Name:  Kerjaya Bold v9
Theme URI:   https://kerjaya.co
Author:      Zeo
Author URI:  https://kerjaya.co
Description: The Best Bold Theme for Malaysia Job Site
Version:     9.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kerjaya
Tags:        career, jobs, brutalism, malaysia, blog, custom-colors, full-width-template
*/

/* ============================================================
   KERJAYA BOLD — DESIGN SYSTEM v2
   Sophisticated Brutalism + Tactical UI
   Palette: Warm Sand #fcfaf2 | Soft Indigo #4f46e5 | Slate Ink #0f172a
============================================================ */

:root {
    --warm-sand:    #fcfaf2;
    --soft-indigo:  #4f46e5;
    --slate-ink:    #0f172a;
    --pastel-blue:  #eff6ff;
    --border-color: #000000;
    /* Transition speed — dikawal oleh prefers-reduced-motion */
    --t-fast:  0.15s;
    --t-med:   0.25s;
    --t-slow:  0.4s;
}

/* ── Font Fallback Metrics — CLS Fix ─────────────────────── */
/* Fallback fonts dengan metrics diselaraskan supaya layout tak "jump"
   semasa Archivo Black & Plus Jakarta Sans sedang load dari Google Fonts.
   Ini hanya aktif untuk fraction-of-a-second sebelum font sebenar load. */

@font-face {
    font-family: 'Archivo Black Fallback';
    src: local('Arial Black'), local('Arial Bold'), local('Arial');
    ascent-override:   90%;
    descent-override:  22%;
    line-gap-override: 0%;
    size-adjust:       106%;
}

@font-face {
    font-family: 'Plus Jakarta Sans Fallback';
    src: local('Trebuchet MS'), local('Helvetica Neue'), local('Arial');
    ascent-override:   96%;
    descent-override:  24%;
    line-gap-override: 0%;
    size-adjust:       98%;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', sans-serif;
    background-color: var(--warm-sand);
    color: var(--slate-ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* picture = wrapper transparent — img dalam kekal control layout sepenuhnya */
picture { display: contents; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
.font-huge {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
}

/* Utility — label kecil uppercase (guna semula merata theme) */
.label-xs {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.label-sm {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Utility — brutal border box (konsisten 3px dgn .brutal-card) */
.brutal-box {
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.brutal-box:hover {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000;
}

.text-mega {
    font-size: clamp(3rem, 9vw, 11rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
}

/* Outline text — stroke + white fill (bukan transparent)
   transparent menyebabkan dot-grid bleed-through → nampak pecah */
.outline-text {
    -webkit-text-stroke: 3px var(--slate-ink);
    color: #fff;
    paint-order: stroke fill; /* stroke di belakang fill */
}

@media (max-width: 1024px) {
    .outline-text { -webkit-text-stroke: 2px var(--slate-ink); }
}
@media (max-width: 768px) {
    .outline-text { -webkit-text-stroke: 1.5px var(--slate-ink); }
}

/* ── Navigation ──────────────────────────────────────────── */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 4px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 2.5rem;
}

@media (max-width: 768px) {
    .site-nav-inner { padding: 0 1.5rem; }
}

.site-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-logo-badge {
    padding: 0.5rem;
    background: var(--soft-indigo);
    border-radius: 0.25rem;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.site-logo-text {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    font-style: italic;
    text-transform: uppercase;
}

/* Desktop nav links */
.nav-links {
    display: none;
    gap: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #64748b;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a { transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--soft-indigo); }
.nav-links .nav-with-dot { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Nav CTA Button */
.nav-cta {
    background: #000;
    color: #fff;
    padding: 0.625rem 2rem;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 var(--soft-indigo);
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    display: inline-block;
    min-height: 44px; /* touch target minimum */
    line-height: 1.2;
}
.nav-cta:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--soft-indigo); }
.nav-cta:focus-visible {
    outline: 3px solid var(--soft-indigo);
    outline-offset: 3px;
}

/* Mobile hamburger */
.nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid #000;
    background: #fff;
    cursor: pointer;
}
.nav-mobile-toggle:focus-visible {
    outline: 3px solid var(--soft-indigo);
    outline-offset: 2px;
}
@media (min-width: 1024px) { .nav-mobile-toggle { display: none; } }

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 3px solid #000;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 199;
}
.nav-mobile-menu.is-open { display: flex; }
.nav-mobile-menu a {
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: #64748b; padding: 6px 0;
}
.nav-mobile-menu a:hover { color: var(--soft-indigo); }

/* ── Status Dot ──────────────────────────────────────────── */
.status-dot {
    width: 8px; height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: 0.5; }
}

/* ── Dot Grid ────────────────────────────────────────────── */
.bg-dot-grid {
    background-image: radial-gradient(var(--slate-ink) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.08;
    pointer-events: none;
}

/* ── Brutal Card ─────────────────────────────────────────── */
.brutal-card {
    background: #fff;
    border: 3px solid var(--border-color);
    box-shadow: 8px 8px 0 var(--border-color);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brutal-card:hover {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 var(--border-color);
}

/* ── Marquee Ticker ──────────────────────────────────────── */
.marquee-wrap {
    background: var(--slate-ink);
    padding: 1.5rem 0;
    border-top: 4px solid var(--border-color);
    border-bottom: 4px solid var(--border-color);
    overflow: hidden;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.02em;
    color: #fff;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Hero Stats Strip (3 social proof items) ─────────────── */
.hero-stats {
    display: flex;
    flex-direction: column;   /* stacked pada mobile */
    gap: 0;
    margin-top: 2rem;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .hero-stats {
        flex-direction: row;  /* berjejer pada desktop */
        width: fit-content;
        align-items: flex-start;
    }
}

.hero-stat-item {
    border-left: 4px solid var(--slate-ink);
    padding: 0.75rem 2rem 0.75rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform var(--t-fast);
    display: block;
    position: relative;
    min-width: 0;
}
.hero-stat-item:hover { transform: translateY(-2px); }

/* Pada mobile: gap kecil antara item */
.hero-stat-item + .hero-stat-item { margin-top: 0.625rem; }

/* Pada desktop: baris mengufuk, divider nipis */
@media (min-width: 768px) {
    .hero-stat-item + .hero-stat-item {
        margin-top: 0;
        margin-left: 1px;
    }
    .hero-stat-item + .hero-stat-item::before {
        content: '';
        position: absolute;
        left: -1px; top: 10%; height: 80%;
        width: 1px;
        background: rgba(15, 23, 42, 0.12);
    }
}

.hero-stat-eyebrow {
    display: block;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.hero-stat-num {
    display: block;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--slate-ink);
    line-height: 1;
    letter-spacing: -0.02em;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.hero-stat-title {
    display: block;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--slate-ink);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

.hero-stat-desc {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}
.hero-stat-desc.c-indigo  { color: var(--soft-indigo); }
.hero-stat-desc.c-telegram { color: #229ED9; }
.hero-stat-desc.c-whatsapp { color: #25D366; }

.hero-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #15803d;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 2px 7px 2px 5px;
    margin-bottom: 0.35rem;
}

.hero-stat-badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #16a34a;
    animation: stat-dot-blink 1.4s infinite;
    flex-shrink: 0;
}
@keyframes stat-dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ── Categories Section ──────────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2-col dari 320px */
    border-bottom: 8px solid #000;
    background: #fff;
}
@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-cell {
    padding: clamp(1.25rem, 3vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(180px, 35vw, 320px); /* responsif — 320px pada desktop */
    min-width: 0; /* prevent overflow dalam grid */
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background var(--t-med), color var(--t-med), transform var(--t-fast);
}
.category-cell:hover { transform: translateY(-2px); }

/* Mobile 2-col borders */
.category-cell { border-right: 4px solid #000; border-bottom: 4px solid #000; }
.category-cell:nth-child(2n)      { border-right: 0; }
.category-cell:nth-last-child(-n+2) { border-bottom: 0; }

/* Desktop 4-col borders — override mobile */
@media (min-width: 768px) {
    .category-cell { border-bottom: 0; border-right: 4px solid #000; }
    .category-cell:nth-child(2n)        { border-right: 4px solid #000; } /* reset */
    .category-cell:nth-last-child(-n+2) { border-bottom: 0; }             /* reset */
    .category-cell:last-child           { border-right: 0; }
}

.category-cell h3 {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 2.5rem);
    line-height: 0.95;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.02em;
}

.category-cell .cat-meta {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.65;
    margin-top: 0.75rem;
}

/* Kerjaya — Indigo */
.cat-kerjaya { background: #dde3ff; }
.cat-kerjaya:hover { background: var(--soft-indigo); color: #fff; }
.cat-kerjaya .cat-icon,
.cat-kerjaya i[data-lucide],
.cat-kerjaya svg { color: var(--soft-indigo); transition: color var(--t-med); }
.cat-kerjaya:hover .cat-icon,
.cat-kerjaya:hover i[data-lucide],
.cat-kerjaya:hover svg { color: #fff; }

/* Psiko — Emerald */
.cat-psiko { background: #bbf7d0; }
.cat-psiko:hover { background: #059669; color: #fff; }
.cat-psiko .cat-icon,
.cat-psiko i[data-lucide],
.cat-psiko svg { color: #059669; transition: color var(--t-med); }
.cat-psiko:hover .cat-icon,
.cat-psiko:hover i[data-lucide],
.cat-psiko:hover svg { color: #fff; }

/* Misi — Amber */
.cat-misi { background: #fde68a; }
.cat-misi:hover { background: #d97706; color: #fff; }
.cat-misi .cat-icon,
.cat-misi i[data-lucide],
.cat-misi svg { color: #d97706; transition: color var(--t-med); }
.cat-misi:hover .cat-icon,
.cat-misi:hover i[data-lucide],
.cat-misi:hover svg { color: #fff; }

/* Resume — Rose */
.cat-resume { background: #fecdd3; }
.cat-resume:hover { background: #e11d48; color: #fff; }
.cat-resume .cat-icon,
.cat-resume i[data-lucide],
.cat-resume svg { color: #e11d48; transition: color var(--t-med); }
.cat-resume:hover .cat-icon,
.cat-resume:hover i[data-lucide],
.cat-resume:hover svg { color: #fff; }

/* ── Job Feed ────────────────────────────────────────────── */
.feed-section {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .feed-section { grid-template-columns: 80px 1fr; }
}

.feed-sidebar-label {
    display: none;
    border-right: 4px solid #000;
    background: #fff;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}
@media (min-width: 1024px) { .feed-sidebar-label { display: flex; } }

.feed-sidebar-label span {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--soft-indigo);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.feed-main { background: #fff; }

.feed-header {
    padding: 2.5rem;
    border-bottom: 4px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: var(--slate-ink);
    color: #fff;
}

.feed-header h2 {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
}

.feed-count {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
}

/* Job Row */
.job-row {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.3s, border-left 0.15s, padding-left 0.3s;
    border-left: 5px solid transparent;
    text-decoration: none;
    color: inherit;
}
@media (min-width: 768px) {
    .job-row {
        flex-direction: row;
        align-items: center;
        padding: 2rem 2.5rem;
    }
}
.job-row:hover {
    background: #fff;
    border-left-color: var(--soft-indigo);
    padding-left: 3rem;
}

.job-row-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.job-logo {
    width: 64px; height: 64px;
    flex-shrink: 0;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 4px 4px 0 #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.job-title {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    font-style: italic;
    color: var(--slate-ink);
    transition: color var(--t-med);
    /* elak overflow pada tajuk panjang */
    word-break: break-word;
    overflow-wrap: break-word;
}
.job-row:hover .job-title { color: var(--soft-indigo); }

.job-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.job-tag {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.tag-permanent { background: #e0e7ff; color: #4338ca; }
.tag-contract  { background: #d1fae5; color: #065f46; }
.tag-part-time { background: #fef3c7; color: #92400e; }

.job-ref {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
}

.job-meta {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.5rem;
}

.job-arrow {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--soft-indigo);
}
.job-row:hover .job-arrow { transform: translateX(1rem); }

/* Feed CTA */
.feed-cta {
    padding: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    background: #fff;
    border-top: 4px solid #000;
}

.btn-feed-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: #000;
    color: #fff;
    padding: clamp(1rem, 2.5vw, 2rem) clamp(1.5rem, 4vw, 4rem);
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    text-transform: uppercase;
    border: 4px solid #000;
    box-shadow: 10px 10px 0 var(--soft-indigo);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    width: 100%;
    box-sizing: border-box;
    max-width: 560px;
}
@media (min-width: 768px) {
    .btn-feed-more {
        width: auto;
        max-width: none;
    }
}
.btn-feed-more:hover {
    background: var(--soft-indigo);
    box-shadow: 4px 4px 0 var(--soft-indigo);
    transform: translate(4px, 4px);
}

/* ── Bento / Employer Grid ───────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 8px solid #000;
    border-bottom: 8px solid #000;
    background: #fff;
}
@media (min-width: 768px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
}

.bento-cell {
    padding: clamp(1.5rem, 3vw, 3rem);
    border-bottom: 4px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(280px, 50vw, 500px);
    min-width: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s, color 0.3s;
}
@media (min-width: 768px) {
    .bento-cell { border-bottom: 0; border-right: 4px solid #000; }
    .bento-cell:last-child { border-right: 0; }
}

.bento-cell-accent { background: var(--soft-indigo); color: #fff; }
.bento-cell:hover   { background: var(--slate-ink); color: #fff; }
.bento-cell-accent:hover { background: #000; }

.bento-cell h3 {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 0.9;
    text-transform: uppercase;
    font-style: italic;
}

.bento-sector-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* ── Intel Lab Cards ─────────────────────────────────────── */
.intel-card {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.intel-card:hover {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 #000;
}

.intel-card h3 {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    text-transform: uppercase;
    font-style: italic;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.intel-card p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.7;
    /* BUANG: text-transform uppercase + italic pada body text — sukar dibaca */
}

.intel-module-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 1.5rem;
}

/* ── Floating Command Center ─────────────────────────────── */
#progress-bar {
    position: fixed; top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    width: 0; z-index: 9999;
    transition: width 0.1s linear;
}

.command-center {
    position: fixed;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255,255,255,.12);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    display: flex; align-items: center; gap: 0.25rem;
    z-index: 1000;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.6);
    transition: transform 0.45s cubic-bezier(0.23,1,0.32,1), opacity 0.3s;
    white-space: nowrap;
    max-width: calc(100vw - 3rem);
}
.command-center.hidden-fcc {
    transform: translateX(-50%) translateY(200%);
    opacity: 0;
    pointer-events: none;
}

.fcc-btn {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.75rem; border-radius: 99px;
    font-size: 9px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255,255,255,.6);
    transition: all 0.2s; text-decoration: none;
    cursor: pointer; border: none; background: transparent;
    flex-shrink: 0;
}
.fcc-btn:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Mobile — sembunyikan label teks, tunjuk ikon sahaja */
@media (max-width: 640px) {
    .command-center { padding: 0.45rem 0.75rem; gap: 0; }
    .fcc-btn { padding: 0.4rem 0.6rem; }
    .fcc-btn span { display: none; }
    .fcc-btn.fcc-next span { display: inline; }
    .fcc-btn.fcc-next { padding: 0.4rem 0.85rem; }
}

.fcc-btn.fcc-next {
    background: var(--soft-indigo) !important;
    color: #fff !important;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
}

.fcc-divider { width: 1px; height: 16px; background: rgba(255,255,255,.12); margin: 0 0.15rem; flex-shrink: 0; }

.prose-zone blockquote,
.wp-block-quote {
    background: var(--pastel-blue);
    border: 3px solid var(--soft-indigo);
    box-shadow: 8px 8px 0 var(--soft-indigo);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
}
.wp-block-quote p,
.prose-zone blockquote p {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--slate-ink);
    line-height: 1.6;
    margin: 0;
}

.wp-block-pullquote {
    background: var(--slate-ink); border: 4px solid #000;
    box-shadow: 10px 10px 0 #000; padding: 3rem; margin: 3rem 0;
}
.wp-block-pullquote blockquote p {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic; text-transform: uppercase;
    color: #fff; line-height: 1.1; letter-spacing: -0.02em;
}
.wp-block-pullquote cite { color: var(--soft-indigo); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.2em; font-style: normal; }

.prose-zone figure,
.wp-block-image { margin: 2.5rem 0; }
.prose-zone figure img,
.wp-block-image img {
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}
.wp-block-image img:hover { transform: translate(4px,4px); box-shadow: 2px 2px 0 #000; }
figcaption, .wp-block-image figcaption {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.15em; color: #94a3b8; text-align: center; margin-top: 0.75rem; font-style: italic;
}

.prose-zone table,
.wp-block-table table { width: 100%; border-collapse: collapse; border: 2px solid #000; margin: 2rem 0; }
.prose-zone table thead,
.wp-block-table thead { background: var(--slate-ink); }
.prose-zone table th,
.wp-block-table th {
    color: #fff; font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em;
    padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.1); font-style: italic; text-align: left;
}
.prose-zone table td,
.wp-block-table td { padding: 0.875rem 1.25rem; border: 2px solid #e2e8f0; font-weight: 500; }
.prose-zone table tbody tr:nth-child(even) td { background: #fafaf8; }

.wp-block-button__link,
.btn-brutal {
    background: var(--soft-indigo) !important;
    color: #fff !important;
    border: 2px solid #000 !important;
    box-shadow: 4px 4px 0 #000 !important;
    border-radius: 0 !important;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 0.6rem 1.4rem !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    text-decoration: none;
}
.wp-block-button__link:hover,
.btn-brutal:hover { transform: translate(2px,2px) !important; box-shadow: 2px 2px 0 #000 !important; }

/* ── TOC ─────────────────────────────────────────────────── */
.toc-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 7px 0; text-decoration: none; transition: all 0.2s;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em; color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
}
.toc-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #cbd5e1; margin-top: 3px; flex-shrink: 0;
    transition: all 0.3s;
}
.toc-item:hover .toc-dot,
.toc-item.is-active .toc-dot {
    background: var(--soft-indigo);
    transform: scale(1.6);
    box-shadow: 0 0 8px rgba(79,70,229,.5);
}
.toc-item:hover,
.toc-item.is-active { color: var(--soft-indigo); }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
    padding: 10rem 1.5rem;
    background: var(--soft-indigo);
    color: #fff;
    text-align: center;
    border-top: 8px solid #000;
    border-bottom: 8px solid #000;
    position: relative;
    overflow: hidden;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #fff;
    padding: 5rem 2.5rem;
    border-top: 4px solid #000;
}
.site-footer-inner {
    max-width: 1800px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 768px) {
    .site-footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-brand {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 1.875rem; font-style: italic;
    text-transform: uppercase; letter-spacing: -0.04em; margin-bottom: 0.5rem;
}
.footer-tagline {
    font-size: 10px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.4em; color: #94a3b8;
}
.footer-links {
    display: flex; flex-wrap: wrap; gap: 2.5rem;
    list-style: none;
}
.footer-links a {
    font-size: 10px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: #64748b; text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--slate-ink); }

/* ── Hidden FCC ──────────────────────────────────────────── */
.hidden-fcc {
    transform: translateX(-50%) translateY(200%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Search form ─────────────────────────────────────────── */
.search-box {
    border: 3px solid #000; box-shadow: 8px 8px 0 #000;
    background: #fff; display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem; transition: box-shadow 0.2s, transform 0.2s;
}
.search-box:focus-within {
    box-shadow: 4px 4px 0 var(--soft-indigo);
    transform: translate(2px, 2px);
}
.search-box input {
    flex: 1; background: transparent; outline: none; border: none;
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    font-style: italic; color: var(--slate-ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.search-box input::placeholder { color: #cbd5e1; }

/* ── Badges ──────────────────────────────────────────────── */
.badge-baru,
.badge-segera,
.badge-hampir {
    border: 1.5px solid #000;
    padding: 2px 8px;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.badge-baru   { background: #ccff00; color: #000; }
.badge-segera { background: #ff3e00; color: #fff; }
.badge-hampir { background: #fef3c7; color: #92400e; }

/* ── WordPress Core ──────────────────────────────────────── */
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter{ text-align: center; margin: 0 auto 1.5rem; }
.wp-block-separator, hr { border: none; border-top: 3px solid #000; margin: 3rem 0; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.kerjaya-breadcrumbs {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 2.5rem;
}
.kerjaya-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; max-width: 1800px; margin: 0 auto; padding: 0; }
.kerjaya-breadcrumbs a { color: #64748b; text-decoration: none; }
.kerjaya-breadcrumbs a:hover { color: var(--soft-indigo); }

/* ── Mobile TOC Trigger/Panel ────────────────────────────── */
#toc-mobile-trigger {
    position: fixed;
    bottom: 9rem;
    right: 1.5rem;
    width: 48px; height: 48px;
    background: var(--soft-indigo);
    border: 2px solid #000;
    box-shadow: 4px 4px 0 #000;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}
#toc-mobile-panel {
    position: fixed;
    bottom: 13.5rem;
    right: 1.5rem;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.25rem;
    min-width: 240px;
    max-width: min(300px, calc(100vw - 3rem));
    max-height: calc(100vh - 16rem);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.88) translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: bottom right;
}
#toc-mobile-panel.is-open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}
/* Bila FCC bar tersembunyi semasa scroll, TOC boleh turun */
.fcc-hidden #toc-mobile-trigger {
    bottom: 2rem;
}
.fcc-hidden #toc-mobile-panel {
    bottom: 6.5rem;
}
@media (min-width: 1024px) {
    #toc-mobile-trigger,
    #toc-mobile-panel { display: none !important; }
}

/* ── Z-index stack (jelas, tanpa konflik) ────────────────── */
.glass-nav          { z-index: 200;  }
.command-center     { z-index: 1000; }
#toc-mobile-panel   { z-index: 9000; }
#toc-mobile-trigger { z-index: 9001; }
#progress-bar       { z-index: 9999; } /* sentiasa paling atas */




/* ============================================================
   SINGLE POST — HYBRID APEX EDITION
   CSS dari HTML rujukan mutlak
   Sophisticated Brutalism: border tebal, shadow offset, Archivo Black
============================================================ */

/* ── Highlighter / intel-link — marker pen biru lembut ──── */
.highlighter,
.intel-link,
.prose-zone a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(rgba(79, 70, 229, 0.15), rgba(79, 70, 229, 0.15));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 700;
    border-bottom: 2px solid var(--soft-indigo);
}
.highlighter:hover,
.intel-link:hover,
.prose-zone a:hover { background-size: 100% 100%; }

/* ── Prose Zone — Readability Pro ───────────────────────── */
.prose-zone {
    font-size: 1.2rem;
    line-height: 1.85;
    color: #334155;
}

.prose-zone p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.prose-zone h2 {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 2.25rem;
    text-transform: uppercase;
    font-style: italic;
    margin: 4rem 0 1.5rem;
    line-height: 1;
    color: var(--slate-ink);
    letter-spacing: -0.03em;
    scroll-margin-top: 6rem;
}

.prose-zone h3 {
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-style: italic;
    margin: 2.5rem 0 1rem;
    line-height: 1.1;
    color: var(--slate-ink);
    scroll-margin-top: 6rem;
}

/* Gutenberg images — auto border 3px hitam */
.prose-zone img,
.prose-zone .wp-block-image img,
.prose-zone figure img {
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
    transition: transform 0.25s, box-shadow 0.25s;
}
.prose-zone img:hover { transform: translate(4px,4px); box-shadow: 2px 2px 0 #000; }

.prose-zone figcaption {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: #94a3b8; text-align: center;
    margin-top: 0.5rem; font-style: italic;
}

.prose-zone ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.prose-zone ul li { padding-left: 1.75rem; margin-bottom: 0.5rem; position: relative; }
.prose-zone ul li::before {
    content: '→'; position: absolute; left: 0;
    color: var(--soft-indigo);
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif; font-size: 0.85rem;
}

.prose-zone ol { counter-reset: prose-ol; padding: 0; margin-bottom: 1.5rem; list-style: none; }
.prose-zone ol li { padding-left: 2.25rem; margin-bottom: 0.6rem; position: relative; counter-increment: prose-ol; }
.prose-zone ol li::before {
    content: counter(prose-ol);
    position: absolute; left: 0;
    width: 22px; height: 22px;
    background: var(--soft-indigo); color: #fff;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 9px; font-style: italic;
    display: flex; align-items: center; justify-content: center; top: 2px;
}

/* Blockquote — dark box dari rujukan HTML */
.prose-zone blockquote {
    background: var(--slate-ink);
    color: #a5b4fc;
    padding: 2.5rem 3rem;
    border-radius: 3rem;
    margin: 3rem 0;
    border-left: 8px solid var(--soft-indigo);
    font-weight: 500;
    font-style: italic;
}
.prose-zone blockquote p { color: #a5b4fc; margin: 0; font-size: 1.1rem; line-height: 1.7; }

/* ── Author Dossier Card ─────────────────────────────────── */
.author-card {
    border: 3px solid var(--slate-ink);
    background: #fff;
    box-shadow: 10px 10px 0 var(--slate-ink);
}

/* ── Share Buttons ───────────────────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #000;
    font-size: 9px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: #fff; text-decoration: none;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.15s, box-shadow 0.15s;
    background: #1e293b;
}
.share-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 #000;
    color: #fff;
    text-decoration: none;
}
.share-btn--telegram  { background: #229ED9; }
.share-btn--whatsapp  { background: #25D366; }
.share-btn--facebook  { background: #1877F2; }

/* ── TOC Hybrid Dot ──────────────────────────────────────── */
.toc-active .dot-indicator,
#toc-list li a.is-active .dot-indicator {
    transform: scale(1.5);
    background-color: var(--soft-indigo) !important;
    box-shadow: 0 0 10px var(--soft-indigo);
}

/* ── Related Articles — grayscale effect in CSS ──────────── */
.group .grayscale { filter: grayscale(1); }
.group:hover .grayscale { filter: grayscale(0); }


/* ============================================================
   PENAMBAHBAIKAN v3.0
   1. Focus-Visible — Keyboard Accessibility
   2. CTA Buttons — dipindah dari footer.php inline <style>
   3. Archive Row Hover — dipindah dari archive.php inline handlers
   4. prefers-reduced-motion — henti semua animasi
   5. Print Styles — output bercetak yang bersih
============================================================ */

/* ── 1. Focus-Visible — Keyboard Navigation ─────────────── */
:focus-visible {
    outline: 3px solid var(--soft-indigo);
    outline-offset: 3px;
    border-radius: 2px;
}
/* Khusus untuk butang dan pautan dark background */
.command-center :focus-visible,
#toc-mobile-panel :focus-visible {
    outline-color: #a5b4fc;
}
/* Skip link untuk screen reader */
.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    background: var(--soft-indigo);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10000;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── 2. CTA Buttons (dari footer.php) ───────────────────── */
.cta-btn-tg {
    display: block;
    background: #000;
    color: #fff;
    padding: 2rem 3.5rem;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    border: 4px solid #000;
    box-shadow: 12px 12px 0 #000;
    text-decoration: none;
    text-align: center;
    transition: background var(--t-med), color var(--t-med),
                box-shadow var(--t-med), transform var(--t-med);
}
.cta-btn-tg:hover {
    background: #fff;
    color: #000;
    box-shadow: 4px 4px 0 #000;
    transform: translate(4px, 4px);
}
.cta-btn-wa {
    display: block;
    background: #fff;
    color: #000;
    padding: 2rem 3.5rem;
    font-family: 'Archivo Black', 'Archivo Black Fallback', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    border: 4px solid #000;
    box-shadow: 12px 12px 0 var(--soft-indigo);
    text-decoration: none;
    text-align: center;
    transition: background var(--t-med), color var(--t-med),
                box-shadow var(--t-med), transform var(--t-med);
}
.cta-btn-wa:hover {
    background: #000;
    color: #fff;
    box-shadow: 4px 4px 0 var(--soft-indigo);
    transform: translate(4px, 4px);
}
.cta-btn-tg:focus-visible,
.cta-btn-wa:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}
@media (min-width: 768px) {
    .cta-btns { flex-direction: row !important; }
}

/* ── 3. Archive Row Hover (dari archive.php inline handlers) */
.archive-post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    border-left: 5px solid transparent;
    transition: background var(--t-med), border-left-color var(--t-fast),
                padding-left var(--t-med);
}
.archive-post-row:hover {
    background: #fff;
    border-left-color: var(--soft-indigo);
    padding-left: 3rem;
}
.archive-post-row:focus-visible {
    outline: 3px solid var(--soft-indigo);
    outline-offset: -3px;
}

/* ── 4. prefers-reduced-motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    /* Henti semua animasi dan transitions */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* Marquee — pause & tunjuk dari kiri */
    .marquee-content {
        animation: none !important;
    }
    /* Status dot — statik sahaja */
    .status-dot {
        animation: none !important;
    }
    /* Grayscale hover — tunjuk warna terus */
    .grayscale,
    .group .grayscale {
        filter: grayscale(0) !important;
    }
    /* Disable parallax/scale on images */
    .scale-105,
    .group-hover\:scale-100 {
        transform: none !important;
    }
    /* FCC — sorok terus tanpa slide animation */
    .command-center.hidden-fcc {
        display: none;
    }
}

/* ── 5. Print Styles ─────────────────────────────────────── */
@media print {
    /* Sorok elemen yang tidak perlu dicetak */
    .glass-nav,
    .command-center,
    #toc-mobile-trigger,
    #toc-mobile-panel,
    #progress-bar,
    .marquee-wrap,
    .share-btn,
    .cta-section,
    .site-footer,
    .feed-cta,
    #toc-sidebar,
    #discovery-sidebar {
        display: none !important;
    }
    /* Cetak dengan latar putih */
    body {
        background: #fff !important;
        color: #000 !important;
    }
    /* Tajuk mudah dibaca */
    .font-huge, h1, h2, h3 {
        color: #000 !important;
        -webkit-text-stroke: 0 !important;
    }
    /* Buang shadows untuk cetakan */
    .brutal-card,
    .brutal-box,
    .intel-card,
    .author-card {
        box-shadow: none !important;
        border: 1px solid #999 !important;
    }
    /* Paparkan URL pautan */
    .prose-zone a::after {
        content: " (" attr(href) ")";
        font-size: 0.75em;
        color: #666;
    }
    /* Elak page break dalam kad */
    .intel-card,
    .job-row,
    .prose-zone p {
        page-break-inside: avoid;
    }
    /* Lebar penuh untuk kandungan */
    main,
    .prose-zone,
    .max-w-\[1600px\] {
        max-width: 100% !important;
    }
}

/* ── Responsive overrides (dipindah dari inline <style> dalam index.php) ── */
@media (min-width: 768px) {
    #feed-count       { display: block !important; }
    #intel-subheading { display: block !important; }
}
@media (min-width: 1024px) {
    #intel-grid { grid-template-columns: repeat(3, 1fr); }
}
