﻿.top-title-area-restate {
    text-align: center;
}

    .top-title-area-restate h3 {
        text-transform: uppercase;
        color: #dc2321;
        font-size: 30px;
        font-family: 'MonB';
        line-height: normal;
        margin: 0;
        margin-bottom: 6px;
        font-weight: normal;
    }

    .top-title-area-restate span {
        color: #787878;
        font-size: 16px;
        display: block;
        font-family: 'MonM';
    }

.p-area-restate-img img {
    display: block;
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 10px;
}

ul.p-area-restate-list.rs {
    margin-top: 36px;
}

a.p-area-restate-item-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 10px;
}

.decor-title-area-restate h3 {
    margin: 0;
    color: #ffffff;
    font-weight: normal;
    font-size: 16px;
    font-family: 'MonM';
}

.decor-title-area-restate span {
    display: block;
    color: #ffffff;
    font-weight: normal;
    font-size: 14px;
    font-family: 'MonR';
    font-style: italic;
    margin-top: 4px;
}

.decor-title-area-restate {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    text-align: center;
    background: rgb(3 3 3 / 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.home-area-restate {
    padding: 70px 0;
    background: hsl(0deg 0% 96.86%);
}
/* Container tổng */
.p-area-restate-list {
    display: flex;
    gap: 15px; /* Khoảng cách giữa các item */
    overflow-x: auto; /* Cho phép cuộn ngang */
    scroll-snap-type: x mandatory; /* Bám sát item khi cuộn */
    -webkit-overflow-scrolling: touch; /* Mượt hơn trên iOS */
    padding: 10px;
    list-style: none;
    margin: 0;
}

    /* Ẩn thanh cuộn trên trình duyệt */
    .p-area-restate-list::-webkit-scrollbar {
        display: none;
    }

.p-area-restate-list {
    -ms-overflow-style: none; /* IE */
    scrollbar-width: none; /* Firefox */
}

/* Item */
.p-area-restate-item {
    flex: 0 0 auto; /* Giữ nguyên kích thước, không co giãn */
    scroll-snap-align: start;
    width: 218px; /* Chiều rộng item trên mobile */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

    .p-area-restate-item:hover {
        transform: translateY(-3px);
    }

/* Responsive: Desktop sẽ hiển thị dạng lưới */
@media (min-width: 768px) {
    .p-area-restate-list {
        flex-wrap: wrap;
        /* Không cần cuộn ngang */
    }

    .p-area-restate-item {
        /* 4 cột */
    }
}

@media(max-width:1023px) {
    .top-title-area-restate h3 {
        font-size: 18px;
    }

    .decor-title-area-restate span {
        font-size: 12px;
    }

    .home-area-restate {
        padding: 32px 0;
    }

    .p-area-restate-list {
        gap: 10px;
    }

    .p-area-restate-item {
        width: 166px;
    }

    .decor-title-area-restate h3 {
        font-size: 13px;
    }

    ul .p-area-restate-list.rs {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 12px;
    }
}

@media(max-width:739px) {
    .top-title-area-restate h3 {
        font-size: 16px;
        text-align: left;
    }

    .top-title-area-restate span {
        font-size: 15px;
        text-align: left;
    }
}