.page-content {
    background: #f6f6fb;
    min-height: 100vh;
}

.services-hero {
    background:
        linear-gradient(rgba(47, 67, 111, 0.25), rgba(47, 67, 111, 0.25)),
        url("/images/applicationIMG/banner.png") center center / cover no-repeat;
    min-height: 240px;
    padding: 60px 24px 0;
    position: relative;
    overflow: visible;
}


.hero {
    position: relative;
}

.hero-card {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    padding: 28px 24px 20px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.04);
    transform: translateY(90%);
    z-index: 10;


}

.hero-card h1 {
    margin: 0;
    color: #2f436f;
    font-size: 3.2rem;
    line-height: 1.05;
    font-weight: 800;
}

.hero-card p {
    margin: 8px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}

.services-section {
    padding-top: 120px;
}

.services-intro {
    text-align: center;
    color: #7d8799;
    max-width: 1060px;
    margin: 0 auto 28px;
}

.services-intro h2 {
    margin: 0 0 10px;
    color: #2f436f;
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 800;
}

.services-intro p {
    margin: 0 auto 10px;
    max-width: 1080px;
    font-size: 0.92rem;
    line-height: 1.25;
}

.services-grid {
    max-width: 1100px;   /* or 1000px for even bigger side margins */
    margin: 0 auto;      /* centers the grid */
    padding: 0 40px;     /* left/right spacing */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 2px;

    /* Smaller card */
    padding: 18px 14px;

    /* More space around each card */
    margin: 20px;

    text-align: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.service-image {
    width: 78%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 10px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
}

.service-card h3 {
    margin: 4px 0 6px;
    color: #2f436f;
    font-size: 1.08rem;
    line-height: 1.1;
    font-weight: 800;
}

.service-card p {
    margin: 0 auto 16px;
    max-width: 92%;
    color: #8a93a4;
    font-size: 0.76rem;
    line-height: 1.14;
}

.learn-more {
    display: inline-block;
    min-width: 94px;
    padding: 8px 18px;
    border: 1.5px solid #2f436f;
    border-radius: 999px;
    color: #2f436f;
    background: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    line-height: 1;
}

.learn-more:hover {
    background: #f4f7ff;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-card h1 {
        font-size: 2.4rem;
    }

    .hero-card p {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .services-hero {
        padding-top: 42px;
    }

    .hero-card {
        transform: translateY(24px);
        padding: 24px 18px 16px;
    }

    .services-section {
        padding-top: 78px;
    }

    .service-image {
        width: 86%;
    }
}
