
.successful-list,
.news-list
{
    display: flex;
    align-items: flex-start;
    border-top: 1px solid #a91f23;
    padding: 10px 0;
    flex-wrap: wrap;
    list-style: none;
}

.successful-item,
.news-item {
    width: 33.33333333%;
}

.successful-details:hover,
.news-details:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.successful-details,
.news-details {
    margin: 5px;
    padding: 1.5em;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: .3s;
    border-radius: 10px;
}

.successful-details {
    min-height: 220px;
}

.news-details {
    min-height: 100px;
}

h3.successful-title,
h3.news-title {
    font-size: 16px !important;
}

.successful,
.news {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.successful a,
.news a {
    color: #a91f23;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
}
.hidden {
    opacity: 0;
    pointer-events: none; /* ป้องกันการคลิกขณะจางหาย */
}

#loader {
    height: 100vh;
    display: flex;
    position: fixed;
    inset: 0px;
    background: rgb(255, 255, 255);
    z-index: 99999;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    transition: opacity 0.75s, visibility 0.75s;
    gap: 10px;
    user-select: none;

}

@media (max-width: 1200px) {
    .successful-item, .news-item {
        width: 50% !important;
    }
}

@media (max-width: 770px) {
    .successful-item, .news-item {
        width: 100% !important;
    }
}

.news a:hover,
.successful a:hover {
    padding-right: 10px;
    transition: 0.3s;
}
