/* ==========================================================================
   WHY PAYROLL.SG PAGE STYLES - payroll.sg
   Scoped specifically for /why-payroll-sg without affecting Homepage
   ========================================================================== */

.pg-why-wrapper {
    background-color: #080c14;
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Hero Section */
.pg-why-hero {
    position: relative;
    padding-top: calc(var(--header-height, 72px) + 24px);
    padding-bottom: 0;
    min-height: 360px;
    overflow: hidden;
    background-color: #080c14;
}

.pg-why-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    min-height: 320px;
}

.pg-why-hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 48%;
    max-width: 540px;
    padding-bottom: 28px;
    align-self: center;
}

.pg-why-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.pg-why-hero-sub {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 0;
}

.pg-why-hero-graphic,
.pg-why-hero-image-box,
.pg-hero-graphic,
.pg-hero-image-box {
    position: relative;
    flex: 1 1 52%;
    max-width: 660px;
    height: 320px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
    pointer-events: auto;
}

.pg-why-hero-img,
.pg-hero-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: right bottom;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.85) 45%, #000 70%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.85) 45%, #000 70%);
}

.pg-why-hero-bg {
    display: none;
}

/* 6 Reason Cards Stack */
.pg-why-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    margin: 30px auto 50px auto;
    position: relative;
    z-index: 3;
}

.pg-why-card {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.25s ease;
}

.pg-why-card:hover {
    background: #111827;
    border-color: #334155;
    transform: translateX(4px);
}

.pg-why-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 223, 137, 0.08);
    border: 1.5px solid rgba(0, 223, 137, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00DF89;
    font-size: 19px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pg-why-card:hover .pg-why-icon-box {
    background: rgba(0, 223, 137, 0.2);
    border-color: #00DF89;
    box-shadow: 0 0 15px rgba(0, 223, 137, 0.3);
}

.pg-why-info {
    flex-grow: 1;
}

.pg-why-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.pg-why-desc {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Testimonial Quote Card */
.pg-why-testimonial {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 920px;
    margin: 0 auto 30px auto;
    text-align: center;
    position: relative;
}

.pg-why-quote-icon {
    font-size: 40px;
    color: #334155;
    line-height: 1;
    margin-bottom: 12px;
}

.pg-why-quote-text {
    font-size: 18px;
    font-style: italic;
    color: #f1f5f9;
    line-height: 1.5;
    max-width: 680px;
    margin: 0 auto 16px auto;
}

.pg-why-quote-author {
    font-size: 16px;
    font-weight: 600;
    color: #00DF89;
    margin-bottom: 20px;
}

.pg-why-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pg-why-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #334155;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.pg-why-dot.active {
    background: #00DF89;
    box-shadow: 0 0 8px #00DF89;
    width: 22px;
    border-radius: 9999px;
}

/* Bottom CTA */
.pg-why-cta {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 38px 30px;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.pg-why-cta-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.pg-why-cta-sub {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 22px;
}

.pg-why-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: #00DF89;
    color: #080c14;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pg-why-cta-btn:hover {
    background: #00fca0;
    box-shadow: 0 4px 15px rgba(0, 223, 137, 0.4);
    color: #080c14;
}

/* Responsive */
@media (max-width: 991px) {
    .pg-why-hero {
        min-height: auto;
        padding-bottom: 30px;
    }
    .pg-why-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 20px;
    }
    .pg-why-hero-graphic,
    .pg-why-hero-image-box,
    .pg-hero-graphic,
    .pg-hero-image-box {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 260px;
        justify-content: center;
    }
    .pg-why-hero-img,
    .pg-hero-img {
        max-height: 260px;
        object-position: center;
        -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    }
}

@media (max-width: 768px) {
    .pg-why-hero-title {
        font-size: 32px;
    }
}
