@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@100..900&display=swap');

/* =================== GLOBAL =================== */
:root {
    --full-size: 1920px;
    --full-minisize: 1200px;
    --fit-height: 1080px;
    --bg_santa_main: #C00000;
    --santa_main: #4D3809;
    --santa_2main: #21AB99;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: var(--full-size);
    font-family: "Noto Sans Thai", serif;
    background-color: #fff;
    overflow-x: hidden;
}

/* =================== BANNER =================== */

#banner {
    position: relative;
    width: var(--full-size);
    height: 400px;
    overflow: hidden;
}

.banner-background img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
}


.context_banner {
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.context_banner h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
}

.context_banner p {
    font-size: 22px;
    margin-top: 10px;
}


.container {
    width: var(--full-minisize);
}

.review-page-content {

    padding: 40px 0;
    position: relative;
    /* ทำให้ curve อยู่ภายในส่วนนี้ */
    z-index: 1;
    /* ทำให้เนื้อหาอยู่เหนือ curve */
    margin-top: 50px;
    /* เว้นระยะจากด้านบนสำหรับ curve */
    margin-bottom: 50px;
    /* เว้นระยะจากด้านล่างสำหรับ curve */
    overflow: hidden;
    /* ป้องกัน curve ล้น */
}

.container {
    width: var(--full-minisize);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;

}

/* --- Breadcrumb --- */
.breadcrumb-nav {
    margin-bottom: 20px;
    font-size: 0.9em;

}

.breadcrumb {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;

}

.breadcrumb-item {
    display: flex;
    /* ช่วยจัด separator */
    align-items: center;
    /* จัดกลางแนวตั้ง */
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    /* ตัวคั่น */
    padding: 0 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--bg_santa_main);
    /* สีแดงตามภาพ */
    text-decoration: none;
    font-size: 16px;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #000;
        font-size: 16px;
    /* สีเทาสำหรับหน้าที่อยู่ */
}

/* --- Title --- */
.section-title {
    text-align: center;
    color: var(--bg_santa_main);
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 30px;
}

.section-title span {
    color: #000;
}

/* --- Review Grid --- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* สร้าง 3 คอลัมน์ */
    gap: 25px;
    /* ระยะห่างระหว่าง item */
    margin-bottom: 40px;
}

.review-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.review-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.3s ease;
}


.review-item:hover img {
    transform: scale(1.1);
}

/* ทำให้ responsive สำหรับหน้าจอเล็ก */
@media (min-width:1101px) and (max-width: 1919px) {
    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
        #banner {
        width: 100%;
        height: auto;
    }
        .container {
        width: 90%;
    }
}

@media (max-width:1100px) {


    .context_banner h1 {
        font-size: 20px;
    }


    .context_banner p {
        font-size: 14px;
    }

    #banner {
        width: 100%;
        height: auto;
    }


    .context_banner {
        top: 65%;
    }

    .banner-background img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .container {
        width: 90%;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-page-content {
        margin: 0px;
    }

    .curve {
        height: 60px;
        border-radius: 50% / 30px;
    }

    .top-curve {
        top: -30px;
    }

    .bottom-curve {
        bottom: -30px;
    }

    .pagination {
        display: flex;
        justify-content: center;
        padding-left: 0;
        list-style: none;
        margin: 0;
    }

    .page-item {
        margin: 0 4px;
    }

    .page-link {
        position: relative;
        display: block;
        color: #6c757d;
        text-decoration: none;
        background-color: #e9ecef;
        border: 1px solid #dee2e6;
        min-width: 38px;
        height: 38px;
        line-height: 36px;
        text-align: center;
        border-radius: 50%;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    }

    .page-link:hover {
        color: #0056b3;
        background-color: #ced4da;
        border-color: #b4bdc6;
    }

    .page-item.active .page-link {
        z-index: 3;
        color: #fff;
        background-color: #d93636;
        border-color: #d93636;
    }

    .page-link.next-link {
        background-color: transparent;
        border: none;
        color: #d93636;
        font-weight: bold;
        font-size: 1.1em;
        line-height: 38px;
    }

    .page-link.next-link:hover {
        background-color: transparent;
        color: #a71d1d;
    }

    .section-title {
        font-size: 18px;
    }
}