/*===========Hero section================= */

#payroll-hero.payroll-hero-sec {
    --payroll-blue: #009fe3;
    --payroll-dark-blue: #142b6f;
    --payroll-light-blue: #eef8fe;
    --payroll-soft-blue: #d9effb;
    --payroll-yellow: #f8c94a;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        /* Soft blue glow */
        radial-gradient(
            circle at 12% 20%,
            rgba(0, 159, 227, 0.10) 0,
            rgba(0, 159, 227, 0.04) 18%,
            transparent 38%
        ),

        /* Yellow glow */
        radial-gradient(
            circle at 88% 12%,
            rgba(248, 201, 74, 0.10) 0,
            rgba(248, 201, 74, 0.04) 18%,
            transparent 38%
        ),

        /* Small dot pattern */
        radial-gradient(
            circle,
            rgba(0, 159, 227, 0.16) 1.3px,
            transparent 1.5px
        ) 0 0 / 28px 28px,

        /* Main background */
        linear-gradient(
            135deg,
            #f2faff 0%,
            #edf8fe 48%,
            #f7fbff 100%
        );

    min-height: 620px;
}

/*DECORATIVE LAYER*/
 
#payroll-hero.payroll-hero-sec::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 420px;
    height: 420px;

    top: -190px;
    right: -100px;

    border-radius: 50%;

    border: 70px solid rgba(0, 159, 227, 0.045);

    box-shadow:
        0 0 0 35px rgba(0, 159, 227, 0.025),
        0 0 0 95px rgba(0, 159, 227, 0.018);

    pointer-events: none;
}

/*SECOND DECORATIVE LAYER*/


#payroll-hero.payroll-hero-sec::after {
    content: "";
    position: absolute;
    z-index: -1;

    width: 240px;
    height: 240px;

    left: -80px;
    bottom: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 159, 227, 0.12) 0 32%,
            transparent 33%
        );

    border: 2px solid rgba(0, 159, 227, 0.08);

    box-shadow:
        0 0 0 25px rgba(0, 159, 227, 0.035),
        0 0 0 55px rgba(0, 159, 227, 0.025),
        0 0 0 85px rgba(0, 159, 227, 0.018);

    pointer-events: none;
}

/*FLOATING SQUARE / DOT / CIRCLE PATTERN*/


#payroll-hero.payroll-hero-sec {
    background-image:

        /* Large soft circle */
        radial-gradient(
            circle at 8% 78%,
            rgba(0, 159, 227, 0.07) 0,
            rgba(0, 159, 227, 0.07) 55px,
            transparent 56px
        ),

        /* Small squares */
        linear-gradient(
            45deg,
            transparent 47%,
            rgba(0, 159, 227, 0.10) 48%,
            rgba(0, 159, 227, 0.10) 52%,
            transparent 53%
        ) 88% 24% / 18px 18px,

        /* Tiny dots */
        radial-gradient(
            circle,
            rgba(20, 43, 111, 0.13) 1px,
            transparent 1.5px
        ) 7% 35% / 18px 18px,

        /* Main gradient */
        linear-gradient(
            135deg,
            #f2faff 0%,
            #edf8fe 50%,
            #f8fcff 100%
        );
}
/*CONTENT SHOULD STAY ABOVE PATTERN*/


#payroll-hero.payroll-hero-sec > .elementor-container,
#payroll-hero.payroll-hero-sec > .e-con,
#payroll-hero.payroll-hero-sec .elementor-container,
#payroll-hero.payroll-hero-sec .e-con {
    position: relative;
    z-index: 2;
}

/*RIGHT PAYROLL FLOW CARD*/
 

#payroll-hero.payroll-hero-sec .payroll-flow-card {
    position: relative;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(20, 43, 111, 0.08);

    border-radius: 22px;

    box-shadow:
        0 15px 45px rgba(20, 43, 111, 0.08),
        0 3px 12px rgba(0, 159, 227, 0.05);

    backdrop-filter: blur(8px);
}

 /*OPTIONAL: ADD A SMALL TRIANGLE THROUGH CSS*/


#payroll-hero.payroll-hero-sec .payroll-triangle {
    position: absolute;

    width: 0;
    height: 0;

    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(0, 159, 227, 0.07);

    top: 15%;
    right: 4%;

    transform: rotate(25deg);

    pointer-events: none;
    z-index: 1;
}

/*OPTIONAL: RING CIRCLE*/


#payroll-hero.payroll-hero-sec .payroll-ring {
    position: absolute;

    width: 90px;
    height: 90px;

    border: 2px solid rgba(0, 159, 227, 0.12);

    border-radius: 50%;

    left: 42%;
    top: 12%;

    box-shadow:
        0 0 0 10px rgba(0, 159, 227, 0.025),
        0 0 0 20px rgba(0, 159, 227, 0.015);

    pointer-events: none;
    z-index: 1;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1024px) {

    #payroll-hero.payroll-hero-sec {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    #payroll-hero.payroll-hero-sec::before {
        width: 300px;
        height: 300px;

        right: -120px;
        top: -130px;

        border-width: 50px;
    }

    #payroll-hero.payroll-hero-sec::after {
        width: 180px;
        height: 180px;

        left: -80px;
        bottom: -90px;
    }
}

   /*RESPONSIVE - MOBILE*/


@media (max-width: 767px) {

    #payroll-hero.payroll-hero-sec {
        min-height: auto;

        padding-top: 50px;
        padding-bottom: 50px;

        background-size: auto, auto, 22px 22px, auto;
    }

    /* Reduce decorative elements */
    #payroll-hero.payroll-hero-sec::before {
        width: 220px;
        height: 220px;

        right: -120px;
        top: -100px;

        border-width: 35px;
    }

    #payroll-hero.payroll-hero-sec::after {
        width: 130px;
        height: 130px;

        left: -70px;
        bottom: -70px;

        box-shadow:
            0 0 0 18px rgba(0, 159, 227, 0.035),
            0 0 0 38px rgba(0, 159, 227, 0.02);
    }

    #payroll-hero.payroll-hero-sec .payroll-triangle,
    #payroll-hero.payroll-hero-sec .payroll-ring {
        display: none;
    }
}   

.arrow-down {
    display: inline-block;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* =================== CTA ====================== */

.payroll-cta {
    --blue: #002B4D;
    --dark-blue: #172B4D;
    --light-blue: #EA2B4D;
    --yellow: #F8C94A;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 400px;
    height: 400px;

    display: flex;
    align-items: center;

    background:
        /* Soft yellow glow */
        radial-gradient(
            circle at 78% 35%,
            rgba(248, 201, 74, 0.22) 0,
            rgba(248, 201, 74, 0.10) 90px,
            transparent 190px
        ),

        /* Blue glow */
        radial-gradient(
            circle at 15% 80%,
            rgba(0, 159, 227, 0.35) 0,
            rgba(0, 159, 227, 0.12) 120px,
            transparent 280px
        ),

        /* Main gradient */
        linear-gradient(
            120deg,
            #0D2B4D 0%,
            #002B4D 45%,
            #082B4D 100%
        );

    border-radius: 0;
}

.payroll-cta::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background-image:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        );

    background-size:
        45px 45px,
        45px 45px;

    opacity: 0.65;

    pointer-events: none;
}


/* =========================================================
   LARGE RING PATTERN
   ========================================================= */

.payroll-cta::after {
    content: "";

    position: absolute;

    width: 560px;
    height: 560px;

    right: -170px;
    top: -80px;

    border-radius: 50%;

    border: 2px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 0 0 35px rgba(255, 255, 255, 0.055),
        0 0 0 75px rgba(255, 255, 255, 0.035),
        0 0 0 120px rgba(255, 255, 255, 0.025);

    pointer-events: none;

    z-index: -1;
}


/* =========================================================
   CTA CONTENT
   ========================================================= */

.payroll-cta .elementor-container,
.payroll-cta .e-con {
    position: relative;
    z-index: 5;
}


/* =========================================================
   FLOATING DOT FIELD
   ========================================================= */

.payroll-cta .payroll-cta-dots {
    position: absolute;

    width: 180px;
    height: 120px;

    left: 5%;
    top: 15%;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.45) 2px,
            transparent 2.5px
        );

    background-size: 24px 24px;

    opacity: 0.45;

    pointer-events: none;
}


/* =========================================================
   SMALL CIRCLE
   ========================================================= */

.payroll-cta .payroll-cta-circle {
    position: absolute;

    width: 75px;
    height: 75px;

    right: 32%;
    top: 18%;

    border-radius: 50%;

    border: 2px solid rgba(255, 255, 255, 0.22);

    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.04),
        0 0 0 20px rgba(255, 255, 255, 0.025);

    pointer-events: none;
}


/* =========================================================
   SQUARE DECORATION
   ========================================================= */

.payroll-cta .payroll-cta-square {
    position: absolute;

    width: 22px;
    height: 22px;

    left: 42%;
    bottom: 18%;

    border: 2px solid rgba(255, 255, 255, 0.35);

    transform: rotate(45deg);

    pointer-events: none;
}


/* =========================================================
   TRIANGLE DECORATION
   ========================================================= */

.payroll-cta .payroll-cta-triangle {
    position: absolute;

    width: 0;
    height: 0;

    left: 12%;
    bottom: 12%;

    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 42px solid rgba(255, 255, 255, 0.12);

    transform: rotate(-15deg);

    pointer-events: none;
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.payroll-cta .elementor-button {
    position: relative;

    background: #FFFFFF;

    color: #142B6F;

    border: 2px solid #FFFFFF;

    border-radius: 8px;

    padding: 14px 30px;

    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(0, 40, 80, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.payroll-cta .elementor-button:hover {
    background: #F8C94A;

    color: #142B6F;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 40, 80, 0.25);
}


/* =========================================================
   CTA HEADING
   ========================================================= */

.payroll-cta h2,
.payroll-cta h3 {
    color: #FFFFFF;

    position: relative;
    z-index: 5;
}


/* =========================================================
   CTA TEXT
   ========================================================= */

.payroll-cta p {
    color: rgba(255, 255, 255, 0.88);

    position: relative;
    z-index: 5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .payroll-cta {
        height: auto;
        min-height: 400px;

        padding-top: 60px;
        padding-bottom: 60px;
    }

    .payroll-cta::after {
        width: 360px;
        height: 360px;

        right: -180px;
        top: 20px;

        border-width: 1px;

        box-shadow:
            0 0 0 25px rgba(255, 255, 255, 0.045),
            0 0 0 55px rgba(255, 255, 255, 0.025);
    }

    .payroll-cta .payroll-cta-dots {
        left: 3%;
        top: 8%;

        width: 120px;
        height: 80px;

        background-size: 20px 20px;
    }

    .payroll-cta .payroll-cta-circle {
        right: 12%;
        top: 12%;

        width: 55px;
        height: 55px;
    }

    .payroll-cta .payroll-cta-square,
    .payroll-cta .payroll-cta-triangle {
        display: none;
    }
}    
/*======= Arrow move up down continues=============*/
.arrow-down {
    display: inline-block;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}


 /* ==================================================================================
   Payroll Industry Section
   ============== */
#payrolladapts {
    position: relative;
    overflow: hidden;
    padding: 70px 40px 60px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #f7f9ff 100%);
    border: 1px solid #e5eaf3;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(30, 55, 90, 0.08);
    text-align: center;
}

/* Top decorative line */
#payrolladapts::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #087bea, #5b35d5);
    border-radius: 0 0 10px 10px;
}

/* Soft background decoration (top-right circle) */
#payrolladapts::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    top: -100px;
    background: rgba(8, 123, 234, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* ==========
   Main Content
   ============== */
#payrolladapts .payroll-industry {
    position: relative;
    z-index: 2;
}



#payrolladapts .elementor-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(8, 123, 234, 0.20);
}

/* Button 1 – Explore Payroll Solution (blue outline) */
#payrolladapts .btn-payroll .elementor-button {
    background: #ffffff;
    color: #087bea;
    border: 1.5px solid #087bea;
}

#payrolladapts .btn-payroll .elementor-button:hover {
    background: #087bea;
    color: #ffffff;
}

/* Button 2 – Explore HRM Solution (dark outline) */
#payrolladapts .btn-hrm .elementor-button {
    background: #ffffff;
    color: #101B3B;
    border: 1.5px solid #101B3B;
}

#payrolladapts .btn-hrm .elementor-button:hover {
    background: #101B3B;
    color: #ffffff;
}

/* ============
   Mobile
   ============== */
@media (max-width: 767px) {
    #payrolladapts {
        padding: 50px 20px 45px;
        border-radius: 18px;
    }
    #payrolladapts p {
        font-size: 15px;
        line-height: 1.7;
    }
    #payrolladapts .elementor-button {
        width: 100%;
        min-width: auto;
    }
    #payrolladapts .elementor-button-wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}