main {

    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Roboto';
}

body,
html,
h1,
h2 {
    font-family: 'Kanit';
    font-weight: normal;
}

h1 {
    font-size: 40px;
    color: #0056a6;

}

.line {
    border-bottom: 1px solid #0056a6;
    width: 1240px;
    margin-left: 120px;
    padding-bottom: 5px;
}

p {
    padding-left: 125px;
    font-size: 18px;
    font-weight: normal;
    font-family: 'Kanit';
    width: 1230px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 12px;
    justify-content: center;
    /* เปลี่ยนจาก flex-start เป็น center */
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
}

.card {
    background: #fff;
    color: #0056a6;
    border-radius: 16px;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    min-width: 340px;
    max-width: 400px;
    flex: 1 1 30%;
    height: 120px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0 32px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.16);
}

.card img,
.card .material-symbols-outlined {
    width: 100px;
    height: 100px;
    margin-right: 24px;
    color: #ffc107;
    font-size: 56px;
    flex-shrink: 0;
}

.card-content {
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h2 {
    position: static;
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Kanit', 'Roboto Condensed', sans-serif; /* เพิ่ม Kanit ด้านหน้า */
    font-weight: 500;
    color: black;
    text-transform: none;
    line-height: 1.3;
    text-align: center;
}

.card p,
.card a {
    display: none;
}

@media (max-width: 1100px) {
    .d-flex {
        gap: 24px 24px;
    }

    .card {
        min-width: 260px;
        max-width: 100%;
        height: 110px;
        padding: 0 16px;
    }
}

@media (max-width: 800px) {
    .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}