/* ==========================================================================
   RESOURCES PAGE STYLES - payroll.sg
   Scoped specifically for /resources without affecting Homepage
   ========================================================================== */

.pg-res-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-res-hero {
    position: relative;
    padding-top: calc(var(--header-height, 72px) + 24px);
    padding-bottom: 0;
    min-height: 360px;
    overflow: hidden;
    background-color: #080c14;
}

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

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

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

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

.pg-res-hero-graphic,
.pg-res-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-res-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-res-hero-bg {
    display: none;
}

/* 2-Column Grid of 6 Resource Cards */
.pg-res-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 100%;
    margin: 35px auto 60px auto;
    position: relative;
    z-index: 3;
}

.pg-res-card {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    text-decoration: none;
}

.pg-res-card:hover {
    background: #111827;
    border-color: #00DF89;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 223, 137, 0.1);
}

.pg-res-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.pg-res-card-desc {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 24px;
}

.pg-res-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00DF89;
    font-size: 16px;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.pg-res-card:hover .pg-res-card-link {
    gap: 12px;
}

/* Disabled / Coming Soon Card */
.pg-res-card-disabled {
    cursor: default;
    opacity: 0.88;
    background: rgba(13, 19, 31, 0.65);
    border-color: #1e293b;
    pointer-events: none;
}

.pg-res-card-disabled:hover {
    background: rgba(13, 19, 31, 0.65);
    border-color: #1e293b;
    transform: none;
    box-shadow: none;
}

.pg-res-card-header-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.pg-res-card-header-badge .pg-res-card-title {
    margin-bottom: 0;
}

.pg-res-badge-soon {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pg-res-card-link-disabled {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

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

.pg-res-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

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

.pg-res-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: #111827;
    border: 1px solid #334155;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pg-res-cta-btn:hover {
    background: #1f2937;
    border-color: #00DF89;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .pg-res-hero {
        min-height: auto;
        padding-bottom: 30px;
    }
    .pg-res-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 20px;
    }
    .pg-res-hero-graphic,
    .pg-res-hero-image-box,
    .pg-hero-graphic,
    .pg-hero-image-box {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 260px;
        justify-content: center;
    }
    .pg-res-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-res-grid {
        grid-template-columns: 1fr;
    }
    .pg-res-hero-title {
        font-size: 32px;
    }
}
