.services {
    padding: 90px 0;
    background: #f5f7fa;
    color: #172033;
    overflow: hidden;
}

.services .container {
    display: block;
    width: min(1200px, calc(100% - 40px));
    height: auto;
    margin: 0 auto;
}

.section-heading {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 12px;
    color: #f39c12;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 100%;
    margin: 0 0 16px;
    color: #082544;
    font-size: 42px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.section-heading p {
    max-width: 850px;
    margin: 0 auto;
    color: #607080;
    font-size: 17px;
    line-height: 1.8;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.service-card {
    min-width: 0;
    padding: 34px 28px;
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(8, 37, 68, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(8, 37, 68, 0.16);
}

.service-icon {
    display: flex;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    align-items: center;
    justify-content: center;
    background: #f5b82e;
    border-radius: 12px;
    font-size: 28px;
}

.service-card h3 {
    margin: 0 0 14px;
    color: #082544;
    font-size: 22px;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.service-card p {
    margin: 0;
    color: #607080;
    font-size: 15px;
    line-height: 1.75;
}

/* Máy tính bảng */
@media (max-width: 1050px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Điện thoại */
@media (max-width: 650px) {
    .services {
        padding: 42px 0;
    }

    .services .container {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
        box-sizing: border-box;
    }

    .section-heading {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 28px;
        padding: 0;
        text-align: center;
        box-sizing: border-box;
    }

    .section-heading span {
        display: block;
        margin-bottom: 8px;
        font-size: 11px;
        line-height: 1.4;
        letter-spacing: 1px;
    }

    .section-heading h2 {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 12px;
        padding: 0;
        font-size: 25px;
        line-height: 1.28;
        letter-spacing: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .section-heading p {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        font-size: 14px;
        line-height: 1.65;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .service-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 20px 16px;
        box-sizing: border-box;
        border-radius: 12px;

    }

    .service-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
        border-radius: 10px;
        font-size: 22px;
    }

    .service-card h3 {
        margin-bottom: 9px;
        font-size: 18px;
        line-height: 1.35;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .service-card:hover {
        transform: none;
    }
}


/* Điện thoại nhỏ */
@media (max-width: 390px) {
    .services {
        padding: 36px 0;
    }

    .services .container {
        padding: 0 12px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .section-heading p {
        font-size: 13.5px;
    }

    .service-card {
        padding: 18px 14px;
    }
}
