﻿.service {
    max-width: 850px;
    padding: 2rem;
}
.service .intropageess {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    max-width: 1000px;
    width: 100%;
    align-items: center;
    height: 50vh;
}
.service .intropageess label {
    font-size: 2rem;
    color: #B4002B;
}
.service .intropageess .intrologo {
    width: 100%;
    max-width: 500px;
}
.service .topser {
    background-color: #FFF0FF;
    box-shadow: 0px 4px 4px 0px #00000040;
    padding: 30px 10px;
    margin-bottom: 40px;
        align-items: center;
    row-gap: 25px;
}
    .service .topser .card {
        color: black;
        display: flex;
        flex-direction: column;
        padding: 10px;
        align-items: center;
        background: #FFC7F5;
        box-shadow: 0px 4px 4px 0px #00000040;
        border-radius: 42px;
        height: 230px; /* ✅ กำหนดความสูงคงที่ */
        min-height: 230px;
        width: 100%;
    }
    /* ✅ ปรับ layout ให้แถวเท่ากัน */
    .service .topser .col-6 {
        display: flex;
        justify-content: center;
    }
.topser .card img{
    width: 70%;
    max-width: 150px;
    height: auto;
    margin: 10px;
}
.service .topser .card label {
    font-family: psuStidi-Bold;
    font-size: 1.1rem;
    word-wrap: break-word; /* ห่อคำยาว */
    white-space: normal; /* ให้ตัดบรรทัดได้ */
    overflow: hidden; /* ป้องกันล้นกล่อง */
    text-overflow: ellipsis;
    text-align: center;
}
.service .toptopic {
    margin-bottom: 20px;
    font-family: psuStidi-Bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
    .service .toptopic img {
        width: 50px;
        margin-right: 20px;
    }
.service .news .data {
    background: #FFD3EE;
    box-shadow: 0px 4px 4px 0px #00000040;
    padding: 10px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin-bottom: 40px;
}
.service .news .rowdata {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #FFFFFF;
    border-radius: 9px;
}
.service .news .rowdata .topic {
    font-size: 1rem;
}
.service .news .rowdata .detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}
.service .news .data .readmore {
    align-self: end;
}
.service .contactchannel {
    display: flex;
    flex-direction: column;
}
.service .contactchannel .contact {
    display: flex;
        align-items: center;
        margin-bottom: 10px;
        color: black;
        text-decoration: underline;
        font-weight: bold;
}

.service .contactchannel .contact img{
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.service .announcement {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}
.service .announcement .icon-wrapper {
    position: relative;
    display: inline-block;
}
.service .announcement img {
    width: 2rem;
    height: 2rem;
}

.service .announcement .table-ann {
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    padding: 10px;
    background-color: #FFC7F5;
    box-shadow: 0px 4px 4px 0px #00000040;
    row-gap: 10px;
}

.service .announcement .table-ann .label{
    font-weight: bold;
}

.service .announcement .e-row {
    background-color: white;
    padding: 5px;
    border-radius: 6px;
}

.service .announcement .e-row .etc {
    font-size: 0.8rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-radius: 5px;
}

.service .announcement .e-row .etc a {
    color: black;
    text-decoration: underline;
}

.service .announcement .table-ann .collapse.show {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
    .service .announcement .table-ann .collapsing {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
    }
@media (max-width: 768px) {
    .service .topser .card {
        height: 180px;
        min-height: 180px;
    }
}
