/* =========================================================
   Modul Pelatihan Pra-Sertifikasi: Pengoperasian IoT
   Style mengikuti seri modul WISE-4000 (BEST Lab POLINES)
   ========================================================= */
:root {
    --primary: #004280;   /* Biru utama */
    --primary-dark: #003366;
    --accent: #F39800;    /* Oranye aksen */
    --green: #79BD28;
    --bg: #f4f7f6;
    --text: #333;
    --code-bg: #2d2d2d;
    --code-text: #f8f8f2;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* =================== INDEX: HEADER =================== */
header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex; justify-content: space-between; align-items: center;
}
.logo-container { display: flex; align-items: center; gap: 20px; }
.logo-container img { height: 50px; width: auto; object-fit: contain; }
.collab-text {
    font-size: 1rem; color: #666; margin-left: 15px;
    border-left: 2px solid #ddd; padding-left: 15px; line-height: 1.3;
}
.collab-text strong { color: var(--primary); display: block; }

/* =================== INDEX: HERO =================== */
.hero {
    display: flex; flex-direction: row; padding: 4rem 10%; align-items: center;
    background: linear-gradient(135deg, #004280 0%, #002a52 100%);
    color: white; min-height: 60vh;
}
.hero-text { flex: 1; padding-right: 2rem; }
.hero-kicker { display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 1rem; }
.hero h1 { font-size: 3.2rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; line-height: 1.6; }
.hero-image { flex: 1; display: flex; justify-content: center; }
.hero-image img { max-width: 100%; height: auto; border-radius: 10px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
.hero .ph-box { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); color: #e3f2fd; min-height: 300px; }
.hero .ph-box .ph-file { color: #F39800; }

/* =================== INDEX: LEARNING PATH =================== */
.learning-path { padding: 4rem 10%; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 3rem; color: #004280; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: #F39800; margin: 10px auto; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.module-card {
    background: white; border-radius: 12px; padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #004280; cursor: pointer; position: relative; overflow: hidden;
}
.module-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.module-number { font-size: 0.9rem; font-weight: bold; color: #F39800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.module-title { font-size: 1.4rem; font-weight: 600; color: #333; margin-bottom: 0.6rem; }
.module-unit { display: inline-block; font-family: 'Consolas', monospace; font-size: 0.8rem; background: #e3f2fd; color: #0d47a1;
    padding: 2px 8px; border-radius: 4px; margin-bottom: 0.8rem; }
.module-desc { font-size: 0.95rem; color: #666; margin-bottom: 1.5rem; line-height: 1.5; }
.btn-start {
    display: inline-block; padding: 0.5rem 1rem; background-color: #004280; color: white;
    border-radius: 5px; font-weight: 500; transition: background 0.2s;
}
.btn-start:hover { background-color: #003366; }
.badge-ar { background-color: #79BD28; color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; vertical-align: middle; margin-left: 5px; }

/* =================== INDEX: UNIT TABLE =================== */
.unit-section { background: #fff; padding: 4rem 10%; border-top: 1px solid #eee; }
.unit-section .spec-table { min-width: 720px; }
.unit-section .intro { text-align: center; max-width: 760px; margin: -1.5rem auto 2rem auto; color: #555; font-size: 1.05rem; }

/* =================== INDEX: CERTIFICATION =================== */
.certification-section { background-color: #ffffff; padding: 4rem 10%; border-top: 1px solid #eee; }
.cert-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; color: #555; font-size: 1.1rem; line-height: 1.6; }
.steps-container { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-card {
    background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 10px; padding: 1.5rem 1.2rem;
    width: 215px; text-align: center; position: relative; transition: transform 0.3s;
}
.step-card:hover { transform: translateY(-5px); border-color: #004280; box-shadow: 0 10px 20px rgba(0,66,128,0.1); }
.step-icon {
    width: 50px; height: 50px; background-color: #004280; color: white; border-radius: 50%;
    font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto;
}
.step-card h3 { color: #333; margin-bottom: 0.5rem; }
.step-card p { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; min-height: 4.5rem; }
.btn-cert { display: inline-block; padding: 10px 20px; border-radius: 5px; font-weight: 600; transition: opacity 0.2s; }
.btn-register { background-color: #333; color: white; }
.btn-exam { background-color: #F39800; color: white; }
.btn-validation { background-color: #e40e0e; color: white; }
.btn-cert:hover { opacity: 0.9; }
.step-arrow { font-size: 2rem; color: #ccc; font-weight: bold; }

/* =================== MODULE: NAV =================== */
nav {
    background-color: var(--primary); padding: 1rem 5%; color: white;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.nav-title { font-weight: bold; font-size: 1.1rem; }
.btn-home { color: white; text-decoration: none; font-size: 0.85rem; border: 1px solid white; padding: 6px 12px; border-radius: 4px; display: inline-block; }

/* =================== MODULE: TYPOGRAPHY =================== */
.container { max-width: 900px; margin: 2rem auto; padding: 0 20px; }
.container h1 { color: var(--primary); margin-bottom: 0.5rem; font-size: 2rem; line-height: 1.25; }
.container h2 { color: var(--text); margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.6rem; border-left: 5px solid var(--accent); padding-left: 15px; }
.container h3 { color: var(--primary); margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.3rem; }
.container h4 { color: #444; margin-top: 1.2rem; margin-bottom: 0.4rem; font-size: 1.05rem; }
.container p { margin-bottom: 1rem; color: #555; text-align: justify; }
.container ul, .container ol { padding-left: 22px; margin-bottom: 1rem; color: #555; }
.container li { margin-bottom: 5px; }
.container code, .options label, .q-text { overflow-wrap: anywhere; }
code { background-color: #eee; padding: 2px 5px; border-radius: 3px; font-family: 'Consolas', monospace; color: #d63384; font-size: 0.9em; }
.unit-tag { display: inline-block; font-family: 'Consolas', monospace; font-size: 0.85rem; background: var(--primary); color: #fff;
    padding: 3px 10px; border-radius: 4px; margin-bottom: 1rem; }

/* =================== OUTCOME BOX =================== */
.outcome-box { background: #e3f2fd; border: 1px solid #bbdefb; padding: 1.5rem; border-radius: 8px; margin: 1rem 0 2rem 0; }
.outcome-box h3 { margin-top: 0; color: #0d47a1; }
.outcome-box ul { padding-left: 20px; }
.outcome-box li { margin-bottom: 5px; }

/* =================== RESOURCE BAR =================== */
.resource-bar {
    margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
}
.btn-download-manual {
    display: inline-flex; align-items: center; background-color: white; color: var(--primary);
    border: 2px solid var(--primary); padding: 8px 16px; text-decoration: none; border-radius: 6px;
    font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; cursor: pointer;
}
.btn-download-manual:hover { background-color: var(--primary); color: white; }
.btn-download-manual .icon { margin-right: 8px; }
.time-badge {
    background-color: #e3f2fd; color: #0d47a1; padding: 8px 12px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center;
}
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 2rem; }
.btn-resource {
    display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 6px;
    text-decoration: none; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; color: white; text-align: center;
}
.btn-resource:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn-mqtt { background-color: #009688; }
.btn-nodered { background-color: #8f0000; }
.btn-app { background-color: var(--primary); }
.btn-tool { background-color: #455a64; }

/* =================== TABLES & GRIDS =================== */
.table-responsive { overflow-x: auto; margin-bottom: 1rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: white; min-width: 600px; }
.spec-table th, .spec-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; vertical-align: top; }
.spec-table th { background-color: var(--primary); color: white; }
.spec-table tr:nth-child(even) { background-color: #f9f9f9; }
.spec-table td code { white-space: nowrap; }
.spec-table.compact th, .spec-table.compact td { padding: 8px 12px; font-size: 0.92rem; }
.spec-table input[type="text"], .spec-table input[type="number"] {
    width: 100%; padding: 4px 6px; border: 1px dashed #bbb; border-radius: 3px; font-size: 0.9rem; background: #fffdf5;
}
.use-case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 1rem; }
.case-card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border-top: 4px solid var(--accent); }
.case-card h3 { margin-top: 0; font-size: 1.15rem; }
.case-card p { text-align: left; margin-bottom: 0.5rem; }

/* =================== CALLOUTS =================== */
.note-box, .warn-box, .kuk-box {
    padding: 1rem 1.25rem; border-radius: 8px; margin: 1rem 0 1.5rem 0; font-size: 0.95rem;
}
.note-box { background: #fff8e1; border-left: 5px solid var(--accent); }
.warn-box { background: #fdecea; border-left: 5px solid #c62828; }
.kuk-box { background: #ffffff; border: 1px solid #bbdefb; border-left: 5px solid var(--primary); }
.note-box p, .warn-box p, .kuk-box p { margin-bottom: 0.4rem; text-align: left; }
.note-box p:last-child, .warn-box p:last-child, .kuk-box p:last-child { margin-bottom: 0; }
.kuk-box .kuk-label { font-family: 'Consolas', monospace; font-weight: bold; color: var(--primary); font-size: 0.85rem; }

/* =================== TECH SPEC BOX =================== */
.tech-spec-box {
    background-color: var(--code-bg); color: var(--code-text); padding: 1.5rem; border-radius: 8px;
    font-family: 'Consolas', monospace; margin-bottom: 2rem; overflow-x: auto; border-left: 5px solid var(--accent);
}
.spec-row { margin-bottom: 10px; border-bottom: 1px solid #444; padding-bottom: 5px; }
.spec-row:last-child { border-bottom: none; margin-bottom: 0; }
.spec-label { color: #66d9ef; font-weight: bold; margin-right: 10px; }
.spec-value { color: #a6e22e; }
.spec-note { color: #75715e; font-size: 0.85rem; font-style: italic; display: block; margin-top: 2px; }

/* =================== CODE BLOCK =================== */
.code-wrap { position: relative; margin: 0.8rem 0 1.5rem 0; }
.code-head {
    display: flex; justify-content: space-between; align-items: center; background: #1e1e1e; color: #bbb;
    font-family: 'Consolas', monospace; font-size: 0.8rem; padding: 6px 12px; border-radius: 8px 8px 0 0; border-left: 5px solid var(--accent);
}
.btn-copy { background: transparent; border: 1px solid #666; color: #ddd; padding: 2px 10px; border-radius: 4px; cursor: pointer; font-size: 0.78rem; }
.btn-copy:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
pre.code {
    background: var(--code-bg); color: var(--code-text); padding: 1rem 1.2rem; border-radius: 0 0 8px 8px;
    overflow-x: auto; font-family: 'Consolas', monospace; font-size: 0.85rem; line-height: 1.5; border-left: 5px solid var(--accent);
    max-height: 520px; tab-size: 4;
}
pre.code.short { max-height: none; }

/* =================== COLLAPSIBLE JOBS =================== */
details { background: white; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #eee; }
summary {
    padding: 1.2rem; background-color: #fff; cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--primary);
    display: flex; align-items: center; justify-content: space-between; list-style: none; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary:hover { background-color: #f8f9fa; }
summary::after { content: '+'; font-size: 1.5rem; font-weight: bold; color: var(--accent); flex-shrink: 0; }
details[open] summary::after { content: '-'; }
details[open] summary { border-bottom: 1px solid #eee; }
.job-content { padding: 1.5rem; background-color: #fafafa; }
.step-block { margin-bottom: 2rem; padding-left: 20px; border-left: 3px solid #ddd; }
.step-block:last-child { margin-bottom: 0; }
.step-title { font-weight: bold; margin-bottom: 0.5rem; display: block; color: #444; }
.step-img { max-width: 100%; border-radius: 6px; margin-top: 10px; border: 1px solid #ddd; display: block; }

/* =================== IMAGE PLACEHOLDER =================== */
figure.ph { margin: 1.5rem 0 2rem 0; text-align: center; }
figure.ph.small { max-width: 520px; margin-left: auto; margin-right: auto; }
figure.ph img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #ddd; }
.ph-box {
    border: 2px dashed #9fb6cc; border-radius: 8px; background: repeating-linear-gradient(45deg, #f7fafc, #f7fafc 12px, #eef3f8 12px, #eef3f8 24px);
    min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; color: #546e7a;
}
.ph-box .ph-icon { width: 54px; height: 42px; border: 3px solid currentColor; border-radius: 6px; position: relative; margin-bottom: 0.8rem; opacity: 0.7; }
.ph-box .ph-icon::before { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: currentColor; top: 6px; right: 8px; }
.ph-box .ph-icon::after { content: ''; position: absolute; left: 6px; bottom: 5px; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 16px solid currentColor; }
.ph-box .ph-desc { font-weight: 600; max-width: 520px; font-size: 0.95rem; }
.ph-box .ph-file { font-family: 'Consolas', monospace; font-size: 0.8rem; color: #d63384; margin-top: 6px; }
figure.ph figcaption { font-size: 0.9rem; color: #666; margin-top: 10px; }


/* =================== ANIMASI ALUR =================== */
figure.anim { margin: 1.5rem 0 2rem 0; background: #fff; border: 1px solid #dde3ea; border-top: 4px solid var(--accent, #F39800); border-radius: 10px; padding: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
figure.anim iframe { width: 100%; height: 760px; border: 0; display: block; }
.anim-tag { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 6px 6px; font-size: 0.85rem; font-weight: 700; color: #b26a00; }
.anim-tag a { color: var(--primary, #004280); font-weight: 600; }
figure.anim figcaption { font-size: 0.9rem; color: #666; margin-top: 6px; text-align: center; }
@media (max-width: 600px) { figure.anim { padding: 4px; margin-left: -4px; margin-right: -4px; } figure.anim iframe { height: 620px; } }

/* =================== INTERACTIVE TOOLS =================== */
.tool-box { background: white; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); padding: 1.5rem; margin: 1.5rem 0 2rem 0; border-top: 4px solid var(--primary); }
.tool-box h3 { margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.tool-grid label { font-size: 0.85rem; font-weight: 600; color: #444; display: block; }
.tool-grid input, .tool-grid select, .tool-box textarea {
    width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 0.95rem; margin-top: 4px; font-family: inherit;
}
.tool-box textarea { font-family: 'Consolas', monospace; font-size: 0.85rem; min-height: 120px; }
.tool-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.metric { background: #f4f7f6; border-radius: 8px; padding: 0.8rem 1rem; border-left: 4px solid var(--accent); }
.metric .m-label { font-size: 0.78rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.metric .m-value { font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.metric.good { border-left-color: #2e7d32; } .metric.warn { border-left-color: #F39800; } .metric.bad { border-left-color: #c62828; }
.btn-action { background: var(--primary); color: #fff; border: none; padding: 10px 18px; border-radius: 5px; font-weight: 600; cursor: pointer; font-size: 0.95rem; }
.btn-action:hover { background: var(--primary-dark); }
.btn-action.alt { background: #fff; color: var(--primary); border: 2px solid var(--primary); }

/* =================== SELF-ASSESSMENT =================== */
.sa-unit { background: white; border-radius: 8px; margin-bottom: 1.2rem; border: 1px solid #e3e8ee; overflow: hidden; }
.sa-unit-head { background: var(--primary); color: #fff; padding: 0.8rem 1.2rem; font-weight: 600; }
.sa-unit-head code { background: rgba(255,255,255,0.15); color: #fff; margin-right: 8px; }
.sa-row { display: grid; grid-template-columns: 70px 1fr 150px; gap: 10px; align-items: center; padding: 0.6rem 1.2rem; border-bottom: 1px solid #eee; font-size: 0.93rem; }
.sa-row:last-child { border-bottom: none; }
.sa-row .kuk-no { font-family: 'Consolas', monospace; font-weight: bold; color: var(--primary); }
.sa-choice { display: flex; gap: 6px; justify-content: flex-end; }
.sa-choice label { border: 1px solid #ccc; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.sa-choice input { display: none; }
.sa-choice input[value="K"]:checked + span { color: #2e7d32; }
.sa-choice label:has(input[value="K"]:checked) { background: #e8f5e9; border-color: #2e7d32; }
.sa-choice label:has(input[value="BK"]:checked) { background: #fdecea; border-color: #c62828; color: #c62828; }
.sa-summary { position: sticky; bottom: 0; background: #fff; border-top: 3px solid var(--accent); padding: 0.8rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; box-shadow: 0 -4px 10px rgba(0,0,0,0.05); border-radius: 8px 8px 0 0; }

/* =================== QUIZ =================== */
.quiz-container { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-top: 2rem; }
.quiz-header { text-align: center; margin-bottom: 2rem; }
.quiz-header h2 { border-left: none !important; padding-left: 0 !important; margin-top: 0 !important; }
.quiz-header p { text-align: center !important; }
.question-block { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.q-number { color: var(--accent); font-weight: bold; font-size: 0.9rem; text-transform: uppercase; }
.q-text { font-weight: 600; font-size: 1.1rem; display: block; margin: 0.5rem 0 1rem 0; }
.options label { display: block; padding: 10px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 8px; cursor: pointer; transition: background 0.2s; }
.options label:hover { background-color: #f0f4f8; }
.options input { margin-right: 10px; }
.options label.is-correct { background: #d4edda; border-color: #c3e6cb; }
.options label.is-wrong { background: #f8d7da; border-color: #f5c6cb; }
.btn-submit { background-color: var(--primary); color: white; border: none; padding: 15px 30px; font-size: 1.2rem; border-radius: 5px; cursor: pointer; width: 100%; margin-top: 1rem; }
.btn-submit:hover { background-color: #003366; }
.score-display { text-align: center; font-size: 1.5rem; font-weight: bold; padding: 20px; margin-top: 20px; border-radius: 8px; display: none; }
.pass { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.fail { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.next-wrap { text-align: center; margin-top: 3rem; }
.btn-next { background-color: var(--accent); color: #fff; border: none; padding: 12px 24px; font-size: 1rem; border-radius: 4px; display: inline-block; font-weight: 600; }
.btn-next:hover { background-color: #e68900; }

/* =================== FOOTER =================== */
footer { background-color: #2c3e50; color: #ecf0f1; padding: 3rem 10%; margin-top: 4rem; border-top: 5px solid #F39800; width: 100%; }
body.home footer { margin-top: 0; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-col { flex: 1; min-width: 280px; }
.footer-col h4 { color: #F39800; margin-bottom: 1rem; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }
footer p { text-align: left; margin-bottom: 0.2rem; color: #bdc3c7; }
.author-name { color: #ffffff !important; font-weight: 700; font-size: 1.1rem; }
.author-role, .lab-name, .institution { font-size: 0.9rem; line-height: 1.4; }
.legal-info { text-align: right; }
.legal-info p { text-align: right; }
.disclaimer { font-size: 0.85rem; color: #95a5a6 !important; margin-bottom: 1rem !important; }
.legal-buttons { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn-copyright {
    display: inline-flex; align-items: center; background-color: transparent; border: 1px solid #bdc3c7; color: #ffffff;
    padding: 8px 16px; border-radius: 4px; font-size: 0.9rem; transition: all 0.3s ease;
}
.btn-copyright:hover { background-color: #F39800; border-color: #F39800; color: #fff; }

/* =================== SIDEBAR =================== */
.sidebar {
    position: fixed; left: 20px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9);
    border-radius: 20px; padding: 15px 10px; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: 1px solid #e0e0e0;
}
.sidebar-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sidebar-item { display: flex; justify-content: center; align-items: center; }
.sidebar-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 600; transition: all 0.3s; }
.circle-number {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #f0f0f0; color: #666;
    border-radius: 50%; font-size: 1rem; font-weight: 600; transition: all 0.3s;
}
.sidebar-link.active .circle-number { background: #F39800; color: white; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(243,152,0,0.2); }
.sidebar-link:hover .circle-number { background: #e0e0e0; color: #333; }
.sidebar-link.active:hover .circle-number { background: #e68900; color: white; }
.sidebar-link .home-ico { width: 16px; height: 14px; position: relative; display: block; }
.sidebar-link .home-ico::before { content: ''; position: absolute; left: -1px; top: -6px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 8px solid currentColor; }
.sidebar-link .home-ico::after { content: ''; position: absolute; left: 3px; top: 2px; width: 10px; height: 9px; background: currentColor; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) { .sidebar { left: 8px; } }
@media (max-width: 900px) {
    .steps-container { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
    .step-card { width: 100%; max-width: 400px; }
}
@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; padding: 1rem; }
    .logo-container { flex-direction: column; gap: 10px; }
    .collab-text { border-left: none; padding-left: 0; margin-left: 0; text-align: center; }
    .hero { flex-direction: column-reverse; text-align: center; padding: 3rem 16px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-text { padding-right: 0; margin-top: 2rem; }
    .learning-path, .unit-section, .certification-section { padding: 3rem 16px; }
    .container { padding: 0 16px 80px 16px; }
    .container p { text-align: left; }
    .footer-container { flex-direction: column; }
    footer { padding: 3rem 16px 6rem 16px; }
    .legal-info { text-align: left; margin-top: 1rem; border-top: 1px solid #465a6e; padding-top: 1rem; width: 100%; }
    .legal-info p { text-align: left; }
    .legal-buttons { justify-content: flex-start; }
    .resource-bar { flex-direction: column; align-items: flex-start; }
    .btn-download-manual, .time-badge { width: 100%; justify-content: center; }
    .sidebar { left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); padding: 8px 12px; border-radius: 25px; max-width: calc(100vw - 24px); }
    .sidebar-nav { flex-direction: row; gap: 6px; }
    .circle-number, .sidebar-link { width: 32px; height: 32px; font-size: 0.85rem; }
    .sa-row { grid-template-columns: 52px 1fr; }
    .sa-choice { grid-column: 1 / -1; justify-content: flex-start; }
    nav { padding: 0.8rem 16px; }
    .nav-title { font-size: 0.95rem; }
}
@media print {
    .sidebar, nav, footer, .resource-bar, .btn-copy, .quiz-container, .next-wrap { display: none !important; }
    details { box-shadow: none; } details:not([open]) .job-content { display: block; }
    body { background: #fff; }
}

/* =========================================================
   V2: TAMPILAN RAMAH SENIOR
   ========================================================= */
html { font-size: 17px; }
html.fs-1 { font-size: 19px; }
html.fs-2 { font-size: 21px; }
body.module .container { max-width: 860px; }
body.module .container p, body.module .container li { line-height: 1.75; color: #3a3a3a; }

/* tombol ukuran huruf di nav */
.nav-right { display: flex; gap: 8px; align-items: center; }
.btn-font { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 4px; padding: 5px 10px; font-weight: 700; cursor: pointer; font-size: 0.85rem; }
.btn-font:hover { background: rgba(255,255,255,0.15); }

/* peta HW - SW - Infra */
.layer-map { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 1.2rem 0; }
.layer { flex: 1; min-width: 150px; border: 2px solid #dde3ea; border-radius: 10px; padding: 0.6rem 0.9rem; background: #fff; color: #999; }
.layer b { display: block; font-size: 1.05rem; }
.layer span { font-size: 0.85rem; }
.layer.on { border-color: var(--primary); color: var(--primary); background: #e3f2fd; }
.layer.on.hw { border-color: #2e7d32; color: #2e7d32; background: #e8f5e9; }
.layer.on.infra { border-color: #e68900; color: #b26a00; background: #fff3e0; }

/* kotak analogi */
.analogy { background: #fff; border: 1px solid #e3e8ee; border-left: 6px solid #79BD28; border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0 1.5rem 0; }
.analogy .a-label { font-weight: 700; color: #4f8a10; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; display: block; margin-bottom: 0.3rem; }
.analogy p { margin-bottom: 0.3rem; text-align: left; }

/* langkah besar bernomor dengan centang */
.steps { counter-reset: step; margin: 1rem 0 1.5rem 0; }
.step { background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); border: 1px solid #eef1f4; padding: 1.1rem 1.25rem 1.1rem 4.2rem; margin-bottom: 0.9rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.step.done::before { content: '\2713'; background: #2e7d32; }
.step h4 { margin: 0.2rem 0 0.4rem 0 !important; color: var(--primary) !important; font-size: 1.1rem !important; }
.step p:last-child { margin-bottom: 0; }
.step .check { display: inline-flex; align-items: center; gap: 8px; margin-top: 0.6rem; font-weight: 600; color: #2e7d32; cursor: pointer; font-size: 0.95rem;
    border: 2px solid #c8e6c9; border-radius: 6px; padding: 4px 12px; background: #f1f8e9; }
.step .check input { width: 18px; height: 18px; accent-color: #2e7d32; }
.progress { background: #fff; border-radius: 10px; padding: 0.8rem 1rem; margin: 1rem 0 1.5rem 0; border: 1px solid #e3e8ee; display: flex; align-items: center; gap: 12px; }
.progress .bar { flex: 1; height: 12px; background: #eef1f4; border-radius: 6px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: #2e7d32; width: 0; transition: width 0.3s; }
.progress .txt { font-weight: 700; color: var(--primary); white-space: nowrap; font-size: 0.95rem; }

/* kalau macet */
.stuck { background: #fdf6ec; border: 1px dashed #e0b57a; border-radius: 8px; padding: 0.7rem 1rem; margin-top: 0.7rem; font-size: 0.93rem; }
.stuck b { color: #b26a00; }
.stuck ul { margin: 0.3rem 0 0 0; }

/* kaitan uji kompetensi */
.exam-link { background: #e3f2fd; border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; border: 1px solid #bbdefb; }
.exam-link h4 { margin: 0 0 0.5rem 0 !important; color: #0d47a1 !important; }
.exam-link table { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: #fff; border-radius: 6px; overflow: hidden; }
.exam-link td { padding: 7px 10px; border-bottom: 1px solid #e3eef9; vertical-align: top; }
.exam-link td:first-child { font-family: 'Consolas', monospace; color: var(--primary); font-weight: 700; white-space: nowrap; width: 1%; }

/* tanya asesor */
details.ask summary { font-size: 1rem; color: #333; font-weight: 600; }
details.ask summary::after { color: var(--primary); }
details.ask .job-content p { margin-bottom: 0; }

/* kamus istilah */
dfn { font-style: normal; border-bottom: 2px dotted var(--accent); cursor: help; }
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 1rem 0 1.5rem 0; }
.glossary div { background: #fff; border-radius: 8px; padding: 0.8rem 1rem; border: 1px solid #e3e8ee; }
.glossary b { color: var(--primary); display: block; }
.glossary span { font-size: 0.92rem; color: #555; }

/* info akses (alamat yang dibuka) */
.access { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 1rem 0 1.5rem 0; }
.access div { background: var(--code-bg); color: #f8f8f2; border-radius: 8px; padding: 0.8rem 1rem; border-left: 5px solid var(--accent); }
.access b { color: #66d9ef; display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.access code { background: transparent; color: #a6e22e; padding: 0; font-size: 1rem; }

/* matriks KUK */
.matrix td, .matrix th { text-align: center !important; }
.matrix td:first-child, .matrix th:first-child { text-align: left !important; }
.matrix .dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); }
.matrix .dot.part { background: #fff; border: 3px solid var(--primary); }

/* agenda */
.agenda td:first-child { white-space: nowrap; font-weight: 600; color: var(--primary); }

/* tombol flash */
.flash-box { background: #fff; border-radius: 10px; padding: 1.25rem; border: 2px solid var(--primary); text-align: center; margin: 1rem 0 1.5rem 0; }
.flash-box p { text-align: center !important; }
esp-web-install-button button { font-size: 1.1rem; }
.flash-fallback { display: inline-block; background: var(--primary); color: #fff; padding: 12px 24px; border-radius: 6px; font-weight: 700; font-size: 1.05rem; }

@media (max-width: 768px) {
    .step { padding-left: 3.6rem; }
    .step::before { left: 0.8rem; width: 2rem; height: 2rem; }
    .nav-title { font-size: 0.85rem; }
}

/* =================== SIMPAN HASIL MODUL =================== */
.save-box { margin: 2.5rem 0 1.5rem; background: #fff; border: 2px solid var(--primary); border-radius: 10px; padding: 1.2rem 1.4rem; box-shadow: 0 4px 12px rgba(0,66,128,0.08); }
.save-box h3 { color: var(--primary); margin: 0 0 .5rem; font-size: 1.15rem; border-left: 5px solid var(--accent); padding-left: 10px; }
.save-box p { margin: .4rem 0; line-height: 1.6; }
.sb-row { display: flex; gap: 12px; flex-wrap: wrap; margin: .8rem 0; }
.sb-row label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; flex: 1 1 220px; }
.sb-row input { font-size: 1rem; padding: 10px; border: 1px solid #bbb; border-radius: 6px; font-family: inherit; }
.sb-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sb-btns .btn-action { font-size: 1rem; padding: 12px 18px; }
.sb-status { font-size: .9rem; color: #555; background: #f4f7f6; border-radius: 6px; padding: 8px 12px; }
.sidebar-link.saved .circle-number { box-shadow: 0 0 0 3px #2e7d32; }
@media print { .save-box { display: none; } }
