/* =========================================
   PAYROLL MANAGEMENT PAGE
========================================= */

.payroll-hero {
    background: #eef7fc;
    padding: 90px 7%;
}

.payroll-hero-container {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.payroll-hero-content {
    max-width: 580px;
}

.payroll-tag {
    display: inline-block;
    color: #15577d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.payroll-hero-content h1 {
    color: #15577d;
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 22px;
}

.payroll-hero-content p {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.payroll-hero-image {
    width: 100%;
}

.payroll-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.payroll-btn {
    display: inline-block;
    background: #15577d;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s ease;
}

.payroll-btn:hover {
    background: #0d405d;
    transform: translateY(-2px);
}


/* =========================================
   SECTION HEADING
========================================= */

.payroll-section-heading {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
}

.payroll-section-heading span {
    color: #15577d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.payroll-section-heading h2 {
    color: #15577d;
    font-size: 36px;
    line-height: 1.25;
    margin: 12px 0 15px;
}

.payroll-section-heading p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================
   FEATURES
========================================= */

.payroll-features {
    padding: 90px 7%;
    background: #fff;
}

.payroll-feature-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.payroll-feature-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
    background: #302f2f;
}

.payroll-feature-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.payroll-feature-card:hover img {
    transform: scale(1.05);
}

.payroll-feature-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgba(48, 47, 47, .68);

    transform: translateY(100%);
    transition: transform .45s ease;
}

.payroll-feature-card:hover .payroll-feature-overlay {
    transform: translateY(0);
}

.payroll-feature-overlay h3 {
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
    margin: 0 0 16px;
    font-weight: 700;
}

.payroll-feature-overlay p {
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================
   BENEFITS
========================================= */

.payroll-benefits {
    padding: 90px 7%;
    background: #f5f9fc;
}

.payroll-benefit-grid {
    max-width: 1000px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.payroll-benefit-card {
    background: #fff;
    padding: 35px 30px;
    text-align: center;

    border: 1px solid #e5edf2;

    transition: transform .3s ease, box-shadow .3s ease;
}

.payroll-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(21, 87, 125, .12);
}

.payroll-benefit-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f4fa;
    color: #15577d;

    font-size: 27px;
}

.payroll-benefit-card h3 {
    color: #15577d;
    font-size: 21px;
    margin-bottom: 12px;
}

.payroll-benefit-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================
   CONTACT
========================================= */

.payroll-contact {
    padding: 90px 7%;
    background: #15577d;
}

.payroll-contact-container {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 250px;
    align-items: center;
    gap: 60px;
}

.payroll-contact-content span {
    color: #bfe4f5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.payroll-contact-content h2 {
    color: #fff;
    font-size: 38px;
    line-height: 1.25;
    margin: 12px 0 20px;
}

.payroll-contact-content p {
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.payroll-contact .payroll-btn {
    margin-top: 15px;
    background: #fff;
    color: #15577d;
}

.payroll-contact .payroll-btn:hover {
    background: #eaf5fa;
}

.payroll-contact-icon {
    width: 190px;
    height: 190px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgba(255, 255, 255, .45);

    color: #fff;
    font-size: 75px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .payroll-hero {
        padding: 70px 5%;
    }

    .payroll-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .payroll-hero-content {
        max-width: 100%;
        text-align: center;
        margin: auto;
    }

    .payroll-hero-content h1 {
        font-size: 40px;
    }

    .payroll-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payroll-contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .payroll-hero {
        padding: 55px 5%;
    }

    .payroll-hero-content h1 {
        font-size: 32px;
    }

    .payroll-hero-content p {
        font-size: 15px;
    }

    .payroll-features,
    .payroll-benefits,
    .payroll-contact {
        padding: 65px 5%;
    }

    .payroll-section-heading {
        margin-bottom: 35px;
    }

    .payroll-section-heading h2 {
        font-size: 28px;
    }

    .payroll-feature-grid {
        grid-template-columns: 1fr;
    }

    .payroll-benefit-grid {
        grid-template-columns: 1fr;
    }

    .payroll-contact-content h2 {
        font-size: 30px;
    }

    .payroll-contact-icon {
        width: 150px;
        height: 150px;
        font-size: 55px;
    }
}