/* ==========================================
   INFOGRAPHIC WORKFLOW - MASTER CONSTRUCTION
   Style: Zigzag 5 Column with Hover Interactions
========================================== */

:root {
    --navy-deep: #001a41;      /* */
    --orange-accent: #ff6b00;  /* */
    --white: #ffffff;
    --bg-light: #fcfcfd;
    --text-slate: #475569;
}

.infographic-how-section {
    padding: 100px 0;
    background: var(--bg-light);
    overflow: hidden;
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
}

.infographic-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.infographic-header {
    text-align: center;
    margin-bottom: 80px;
}

.infographic-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--navy-deep);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

/* PATH WRAPPER */
.infographic-path-wrapper {
    position: relative;
    padding: 80px 0;
    min-height: 550px;
}

.path-line-desktop {
    position: absolute;
    top: 80px; 
    left: 0;
    width: 100%;
    height: 240px; 
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.path-line-desktop path {
    stroke: var(--orange-accent);
    stroke-opacity: 0.6;
}

/* Animasi mengalir pada garis putus-putus */
.animate-path {
    animation: flowDash 25s linear infinite;
}

@keyframes flowDash {
    to { stroke-dashoffset: -300; }
}

/* GRID SYSTEM */
.infographic-steps-grid-fit {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* NEXT.JS STYLE FADE-IN ANIMATION */
.infographic-step-item-fit {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.infographic-step-item-fit.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ZIGZAG ALIGNMENT */
@media (min-width: 992px) {
    .align-top { transform: translateY(-60px) scale(1); }
    .align-top.is-visible { transform: translateY(-60px); }
    
    .align-bottom { transform: translateY(60px) scale(1); }
    .align-bottom.is-visible { transform: translateY(60px); }
}

/* --- HOVER INTERACTION (PERGERAKAN IKON) --- */
.infographic-step-item-fit:hover {
    cursor: pointer;
}

.infographic-step-item-fit:hover .step-blob {
    background: var(--navy-deep); /* Berubah ke Navy saat hover */
    color: var(--white);
    border-color: var(--navy-deep);
    transform: scale(1.15) rotate(8deg); /* Pergerakan Membesar & Memutar */
    box-shadow: 0 20px 40px rgba(0, 26, 65, 0.25);
}

.infographic-step-item-fit:hover .step-floating-number {
    background: var(--navy-deep);
    transform: scale(1.1);
}

.infographic-step-item-fit:hover .step-info-box {
    border-color: var(--orange-accent);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.08);
}

/* BLOB ICON BOX */
.step-blob-wrapper {
    position: relative;
    margin-bottom: 35px;
    background: var(--bg-light); /* Menutup garis agar tidak menembus ikon */
    padding: 10px;
    border-radius: 50%;
}

.step-blob {
    width: 95px;
    height: 95px;
    background: var(--white);
    border: 3px solid var(--orange-accent); /* */
    color: var(--navy-deep);
    border-radius: 35% 65% 65% 35% / 35% 35% 65% 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.step-blob svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5px;
    transition: transform 0.4s ease;
}

.infographic-step-item-fit:hover .step-blob svg {
    transform: scale(1.1);
}

.step-floating-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: var(--orange-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    border: 3px solid var(--white);
    transition: all 0.3s ease;
    z-index: 4;
}

/* INFO BOX */
.step-info-box {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
    min-height: 160px;
    transition: all 0.3s ease;
}

.step-info-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin-bottom: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .infographic-steps-grid-fit { grid-template-columns: repeat(3, 1fr); }
    .path-line-desktop { display: none; }
}

@media (max-width: 768px) {
    .infographic-steps-grid-fit { grid-template-columns: 1fr; gap: 40px; }
    .infographic-step-item-fit { flex-direction: row; text-align: left; gap: 20px; transform: none !important; opacity: 1; }
    .step-info-box { min-height: auto; flex: 1; }
    .step-blob-wrapper { margin-bottom: 0; padding: 0; }
}