/* ===== HOME LANDING PAGE - EVALUASI JABATAN ===== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --home-primary: #2a7d5f;
    --home-primary-light: #3da87a;
    --home-accent: #f7c948;
    --home-bg-start: #c8e6c0;
    --home-bg-end: #a8d8ea;
    --home-card-bg: rgba(255, 255, 255, 0.92);
    --home-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    --home-radius: 18px;
    --home-radius-sm: 12px;
    --home-btn-radius: 30px;
    --home-blue: #3c75d7;
}

body {
    color: #37393c;
}

* {
    box-sizing: border-box;
}

body.home-page {
    margin: 0;
    padding: 0;
    font-family: 'Figtree', sans-serif;
    min-height: 100vh;
    background: white;
    background-attachment: fixed;
    overflow-x: hidden;
    display: flex;
    align-items: center;
}

body.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    /* opacity: 0.125; */
    background-image: url(../img/bg-home.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== WRAPPER ===== */
.home-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

/* ===== HEADER ===== */
.home-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.home-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 220px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12));
    pointer-events: none;
}

.home-header-logo {
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
    height: 64px;
}

.home-header-text {
    flex: 1;
}

.home-header-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
    line-height: 1.2;
    /* color: white; */
}

.home-header-title {
    gap: 1rem;
}

.home-header-text p {
    /* color: white; */
    font-size: 0.85rem;
    margin: 2px 0 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.home-header-building {
    width: 90px;
    height: auto;
    opacity: 0.85;
    flex-shrink: 0;
}

/* ===== YEAR BADGE ===== */
.home-year-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--home-accent) 0%, #f9db6d 100%);
    color: #333;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 8px 1rem;
    border-radius: var(--home-btn-radius);
    box-shadow: 0 2px 10px rgba(247, 201, 72, 0.35);
    letter-spacing: 1px;
}

/* ===== HEADER INFO BOX ===== */
.home-header-info {
    border: 2px solid #dc3545;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    max-width: 280px;
    margin: 0 0 0 auto;
}

.home-header-info p {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

/* ===== MAIN CONTENT ===== */
.home-main {
    display: flex;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    position: relative;
}

/* -- Left Panel -- */
.home-left-panel {
    background: var(--home-card-bg);
    border-radius: var(--home-radius);
    padding: 22px 18px 18px;
    min-width: 260px;
    max-width: 290px;
    box-shadow: var(--home-shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.home-left-panel h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 2px;
}

.home-left-panel .panel-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin: 0 0 10px;
    font-weight: 500;
}

/* Steps */
.home-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
}

.home-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: linear-gradient(180deg, var(--home-primary-light), #c8e6c0);
    border-radius: 4px;
    z-index: 0;
}

.home-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--home-radius-sm);
    background: #f0f4f0;
    font-weight: 600;
    font-size: 0.82rem;
    color: #333;
    position: relative;
    z-index: 1;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.home-step .step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: #aaa;
}

.home-step.step-done .step-icon {
    background: var(--home-primary);
}

.home-step.step-active .step-icon {
    background: #e65100;
}

.home-step.step-pending .step-icon {
    background: #aaa;
}

.home-step.step-final .step-icon {
    background: var(--home-primary);
    font-size: 0.85rem;
}

.home-step.step-done {
    background: #e8f5e9;
    border-color: var(--home-primary-light);
}

.home-step.step-active {
    background: #fff3e0;
    border-color: #e65100;
    color: #e65100;
}

.home-step.step-pending {
    background: #f5f5f5;
}

.home-step.step-final {
    background: #e8f5e9;
    border-color: var(--home-primary);
}

.home-step-note {
    font-size: 0.68rem;
    color: #888;
    font-weight: 400;
    font-style: italic;
    margin-top: 6px;
    line-height: 1.3;
}

/* Character Illustrations */
.home-character {
    position: relative;
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
}

.home-character .char-emoji {
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

/* -- Right Panel (Chart) -- */
.home-right-panel {
    flex: 1;
    background: var(--home-card-bg);
    border-radius: var(--home-radius);
    padding: 22px 24px;
    box-shadow: var(--home-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.home-right-panel h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #222;
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}

.home-chart-container {
    flex: 1;
    position: relative;
    min-height: 320px;
}

.home-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===== BOTTOM BUTTONS ===== */
.home-bottom-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--home-btn-radius);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.home-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    color: #fff;
}

.home-nav-btn .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-pengertian {
    background: var(--home-blue)
}

.btn-kenapa {
    background: var(--home-blue);
}

.btn-kapan {
    background: var(--home-blue);
}

.btn-hasil {
    background: var(--home-blue);
}

.btn-download {
    background: var(--home-blue);
}

/* ===== CHARACTERS (side decorations) ===== */
/* ===== CHARACTERS (side decorations) ===== */
.home-char-left,
.home-char-right {
    position: absolute;
    bottom: -12px;
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

.home-char-left img,
.home-char-right img {
    height: 200px;
    /* Slightly smaller to fit better */
    width: auto;
}

.home-char-left {
    left: -70px;
}

.home-char-right {
    right: -70px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .home-main {
        flex-direction: column;
    }

    .home-left-panel {
        max-width: 100%;
        min-width: unset;
    }

    .home-char-left,
    .home-char-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .home-header {
        padding: 14px 16px;
        gap: 12px;
    }

    .home-header-text h1 {
        font-size: 1rem;
    }

    .home-header-logo {
        width: 40px;
        height: 40px;
    }

    .home-bottom-nav {
        gap: 8px;
    }

    .home-nav-btn {
        padding: 10px 14px;
        font-size: 0.72rem;
    }

    .home-wrapper {
        padding: 12px 8px 20px;
    }
}

/* ===== MODAL STYLES ===== */
.home-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-modal-overlay.active {
    display: flex;
}

.home-modal {
    background: #fff;
    border-radius: var(--home-radius);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 28px 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-modal h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-modal p,
.home-modal ul {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.75;
}

.home-modal ul {
    padding-left: 20px;
}

.home-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.home-modal-close:hover {
    color: #333;
}

/* ===== DOWNLOAD SECTIONS (modal-surat-menteri-list) ===== */
.download-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.download-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #344054;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 6px;
}

.download-list li:last-child {
    margin-bottom: 0;
}

.download-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a56db;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}

.download-list a:hover {
    color: #1239a0;
    text-decoration: underline;
}

.download-empty {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    font-style: italic;
}

/* ===== VIDEO TUTORIAL BUTTON ===== */
.btn-video-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(26,86,219,0.25);
}

.btn-video-tutorial:hover {
    background: #1239a0;
    transform: translateY(-1px);
}

.btn-video-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* ===== VIDEO MODAL ===== */
.home-modal-video {
    max-width: 820px;
    width: 94%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== LOGIN BUTTON ===== */
.home-login-btn {
    color: white;
    border: none;
    padding: 8px 22px;
    border-radius: var(--home-btn-radius);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    border: 2px solid var(--home-blue);
    background-color: var(--home-blue);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: white;
}

.home-login-btn:hover {
    color: #fff;
    text-decoration: none;
    background-color: var(--home-blue);
    color: var();
}

#pns-nengok {
    position: absolute;
    bottom: 35%;
    left: -6.88%;
    width: clamp(100px, 10vw, 140px);
    height: auto;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 1200px) {
    #pns-nengok {
        left: -6.3%;
        width: clamp(80px, 8vw, 120px);
    }
}

@media (max-width: 768px) {
    #pns-nengok {
        display: none;
    }
}

/* ===== RESPONSIVE: DELL 22 INCH MONITOR (1920x1080) ===== */
@media (min-width: 1920px) and (max-width: 1920px) {
    .home-wrapper {
        max-width: 1600px;
        padding: 32px 24px;
    }

    .home-header-logo {
        height: 72px;
    }

    .home-header-text h1 {
        font-size: 1.65rem;
    }

    .home-header-text p {
        font-size: 1rem;
    }

    .home-left-panel h3,
    .home-right-panel h2 {
        font-size: 1.5rem;
    }

    .home-chart-container {
        height: 450px;
    }

    .home-nav-btn {
        font-size: 0.95rem;
        padding: 14px 22px;
    }
}

/* ===== RESPONSIVE: LAPTOP 14 INCH (1366x768 - 1920x1080) ===== */
@media (min-width: 1366px) and (max-width: 1599px) {
    .home-wrapper {
        max-width: 1280px;
        padding: 20px 16px;
    }

    .home-header {
        gap: 0.875rem;
    }

    .home-header-logo {
        height: 56px;
    }

    .home-header-text h1 {
        font-size: 1.25rem;
    }

    .home-header-text p {
        font-size: 0.85rem;
    }

    .home-main {
        gap: 1.5rem;
    }

    .home-left-panel,
    .home-right-panel {
        padding: 1.75rem;
    }

    .home-left-panel h3,
    .home-right-panel h2 {
        font-size: 1.25rem;
    }

    .home-chart-container {
        height: 380px;
    }

    .home-step {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .home-bottom-nav {
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .home-nav-btn {
        font-size: 0.85rem;
        padding: 11px 18px;
    }

    .nav-icon {
        font-size: 1.15rem;
    }

    #pns-nengok {
        width: clamp(85px, 8.5vw, 125px);
        bottom: 33%;
        left: -5.8%;
    }
}

/* ===== RESPONSIVE: LAPTOP 13 INCH (1280x800 - 1440x900) ===== */
@media (min-width: 1280px) and (max-width: 1365px) {
    .home-wrapper {
        max-width: 1200px;
        padding: 18px 14px;
    }

    .home-header {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .home-header-logo {
        height: 52px;
    }

    .home-header-text h1 {
        font-size: 1.15rem;
    }

    .home-header-text p {
        font-size: 0.8rem;
    }

    .home-year-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .home-main {
        gap: 1.25rem;
        grid-template-columns: 1fr 1.8fr;
    }

    .home-left-panel,
    .home-right-panel {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .home-left-panel h3,
    .home-right-panel h2 {
        font-size: 1.15rem;
    }

    .panel-subtitle {
        font-size: 0.8rem;
    }

    .home-chart-container {
        height: 340px;
    }

    .home-step {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .home-char-left img,
    .home-char-right img {
        height: 180px;
    }

    .home-bottom-nav {
        gap: 0.625rem;
        padding: 0.75rem;
    }

    .home-nav-btn {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .nav-icon {
        font-size: 1rem;
    }

    .btn-video-tutorial {
        font-size: 0.85rem;
        padding: 10px 18px;
    }

    #pns-nengok {
        width: clamp(75px, 7.5vw, 110px);
        bottom: 32%;
        left: -6.5%;
    }
}

/* ===== RESPONSIVE: LAPTOP 10-11 INCH (1024x600 - 1280x800) ===== */
@media (min-width: 1024px) and (max-width: 1279px) {
    .home-wrapper {
        max-width: 100%;
        padding: 16px 12px;
    }

    .home-header {
        gap: 0.625rem;
        margin-bottom: 1.25rem;
    }

    .home-header-logo {
        height: 48px;
    }

    .home-header-text h1 {
        font-size: 1rem;
    }

    .home-header-text p {
        font-size: 0.75rem;
    }

    .home-year-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .home-login-btn {
        font-size: 0.75rem;
        padding: 7px 16px;
    }

    .home-main {
        gap: 1rem;
        grid-template-columns: 1fr 1.5fr;
    }

    .home-left-panel,
    .home-right-panel {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .home-left-panel h3,
    .home-right-panel h2 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .panel-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .home-header-info p {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .home-chart-container {
        height: 300px;
    }

    .home-steps {
        gap: 0.625rem;
    }

    .home-step {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .step-icon {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .home-step-note {
        font-size: 0.7rem;
        padding: 8px;
    }

    .btn-video-tutorial {
        font-size: 0.8rem;
        padding: 9px 16px;
    }

    .btn-video-icon {
        font-size: 1rem;
    }

    .home-char-left,
    .home-char-right {
        bottom: -45px;
    }

    .home-char-left img,
    .home-char-right img {
        height: 160px;
    }

    .home-bottom-nav {
        gap: 0.5rem;
        padding: 0.625rem;
    }

    .home-nav-btn {
        font-size: 0.75rem;
        padding: 9px 14px;
    }

    .nav-icon {
        font-size: 0.95rem;
    }

    #pns-nengok {
        width: clamp(70px, 7vw, 100px);
        bottom: 30%;
    }
}

/* ===== RESPONSIVE: TABLET & SMALL SCREENS (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-wrapper {
        padding: 14px 10px;
    }

    .home-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .home-header-logo {
        height: 56px;
        margin: 0 auto;
    }

    .home-header-text {
        text-align: center;
    }

    .home-header-text h1 {
        font-size: 1.15rem;
    }

    .home-header-text p {
        font-size: 0.8rem;
    }

    .home-login-btn {
        margin: 0 auto;
        font-size: 0.8rem;
    }

    .home-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-left-panel,
    .home-right-panel {
        padding: 1.5rem;
    }

    .home-chart-container {
        height: 350px;
    }

    .home-char-left,
    .home-char-right {
        display: none;
    }

    .home-bottom-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-nav-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }
}