﻿section {
    scroll-margin-top: 110px; /* match header height */
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

/* ================= PAYROLL FLOW SECTION ================= */

.payroll-flow-section {
    padding: 100px 20px;
    background: #ffffff;
    font-family: "Poppins", sans-serif;
    margin-bottom: -80px;
}

/* Timeline container */
.payroll-flow {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

    /* Vertical line */
    .payroll-flow::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 3px;
        background: linear-gradient(180deg, #1f6fe5, #dbeafe);
        transform: translateX(-50%);
    }

/* Flow item */
.flow-item {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

    /* Left / Right positioning */
    .flow-item.left {
        justify-content: flex-start;
        padding-right: 55%;
    }

    .flow-item.right {
        justify-content: flex-end;
        padding-left: 55%;
    }

/* Dot on the line */
.flow-dot {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 4px solid #1f6fe5;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}


/* Content box */
.flow-content {
    margin: 0 30px;
    background: #ffffff;
    padding: 6px 8px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    max-width: 360px;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(31,111,229,0.18);
}

    .flow-content h4 {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .flow-content p {
        font-size: 14.5px;
        color: #555;
        line-height: 1.6;
    }


.flow-item:hover .flow-content {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(31,111,229,0.18);
}

/* Highlight final step */
.flow-item.highlight .flow-content {
    box-shadow: 0 12px 30px rgba(31,111,229,0.18);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .payroll-flow::before {
        left: 20px;
    }

    .flow-item {
        padding: 0 0 0 50px !important;
        justify-content: flex-start !important;
    }

    .flow-dot {
        left: 11px;
        transform: none;
    }

    .flow-content {
        max-width: 100%;
    }
}




/* ================= WORKFLOW ================= */
.payroll-workflow {
    padding: 80px 20px;
    background: linear-gradient(180deg, #eef9fb 0%, #f7feff 100%);
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.workflow-step {
    background: #ffffff;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    min-width: 160px;
    text-align: center;
}

    .workflow-step i {
        font-size: 30px;
        color: #1f6fe5;
        margin-bottom: 8px;
    }

    .workflow-step span {
        display: block;
        font-size: 14px;
        font-weight: 500;
    }

    .workflow-step.highlight {
        background: linear-gradient(180deg, #e8f1ff, #ffffff);
        border-color: #1f6fe5;
    }

.workflow-arrow {
    font-size: 22px;
    color: #9ca3af;
}


/* Benefits */
.payroll-benefits {
    margin-top: 70px;
    text-align: center;
}

    .payroll-benefits h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .payroll-benefits ul {
        list-style: none;
        padding: 0;
        max-width: 720px;
        margin: 0 auto;
    }

    .payroll-benefits li {
        font-size: 15px;
        color: #444;
        margin-bottom: 10px;
    }

/* ================= COMMON TITLES ================= */
.heading-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #1d1b1b;
}

.heading-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
    color: #555;
}

/* ================= PAYROLL COMPARISON ================= */

.payroll-comparison {
    padding: 100px 20px;
    font-family: "Poppins", sans-serif;
}

.comparison-cards {
    max-width: 1000px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Common column */
.comparison-column {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid #e5e7eb;
}

    .comparison-column h4 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 24px;
        text-align: center;
    }

    /* Lists */
    .comparison-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .comparison-column li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 15px;
        color: #444;
        margin-bottom: 16px;
        line-height: 1.5;
    }

        /* Icons */
        .comparison-column li i {
            font-size: 20px;
            margin-top: 2px;
        }

    /* Manual */
    .comparison-column.manual {
        background: #fafafa;
    }

        .comparison-column.manual h4 {
            color: #6b7280;
        }

        .comparison-column.manual i {
            color: #ef4444;
        }

    /* ERP */
    .comparison-column.erp {
        border: 2px solid #1f6fe5;
        box-shadow: 0 18px 45px rgba(31,111,229,0.15);
    }

        .comparison-column.erp h4 {
            color: #1f6fe5;
        }

        .comparison-column.erp i {
            color: #22c55e;
        }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .comparison-cards {
        grid-template-columns: 1fr;
    }
}

/* ================= COMPLIANCE ================= */
.payroll-compliance {
    padding: 70px 20px;
    background: linear-gradient(180deg, #eef9fb 0%, #f7feff 100%);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

    .compliance-grid i {
        font-size: 36px;
        color: #1f6fe5;
        margin-bottom: 10px;
    }

    .compliance-grid h4 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .compliance-grid p {
        font-size: 14px;
        color: #555;
    }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .workflow-arrow {
        display: none;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .compliance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .compliance-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA */
.payroll-cta {
    margin-top: 50px;
    text-align: center;
}

.payroll-btn {
    background: #1677ff;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

    .payroll-btn:hover {
        background: #125fd0;
    }

/* Responsive */
@media (max-width: 768px) {
    .payroll-header h2 {
        font-size: 30px;
    }
}
