.slideshow_detail {
    position: relative;
    max-width: 800px;
    height: 500px;
    background-color: rgb(192, 192, 192) !important;
}

.slideshow_detail .items {
    max-width: 800px;
    max-height: 500px;
    background-color: aliceblue !important;
    display: none;
}

.slideshow_detail .items img {
    width: 800px;
    height: 500px;
    object-fit: cover;
}

.slideshow_detail .slick-prev {
    position: absolute;
    top: 240px;
    left: 20px;
    z-index: 10;
}

.slideshow_detail .slick-next {
    position: absolute;
    top: 240px;
    right: 20px;
    z-index: 10;
}

.slideshow_detail .slick-arrow {
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: rgba(240, 248, 255, 0.151);
}

.slideshow_detail .slick-arrow:hover {
    background-color: rgba(240, 248, 255, 0.562);
    transition: all ease 0.3s;
}

.slideshow_detail .slick-dots {
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(calc(-50% - 10px));
}

.slideshow_detail .slick-dots li {
    list-style: none;
    margin: 0 4px;
    width: 15px;
    height: 5px;
    background-color: rgb(226, 226, 226);
    cursor: pointer;
}



.activity_detail{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.activity_detail .header {
    text-align: center;
    font-size: 30px;
    margin: 40px 0 0 0;
    font-weight: 600;
}

.activity_detail .date_header {
    font-size: 20px;
    margin: 10px 0 0 0;
    font-weight: 600;
    color: rgb(216, 216, 216);
}
.activity_detail .detail{
    margin: 30px 0 100px 0;
}


.content-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* สำคัญมาก */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.content-body img {
    height: auto !important;
    display: block;
    margin: 1em auto;
    object-fit: contain;
}

.content-body > * {
    min-width: 0;
}

/* ตารางเต็ม container พร้อมเลื่อนแนวนอน */
.content-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

/* ป้องกันข้อความล้น */
.content-body p,
.content-body div,
.content-body span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* iframe responsive */
.content-body iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
}

/* Responsive สำหรับมือถือ */
@media (max-width: 768px) {
    .content-body {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 10px;
    }

    .content-body img {
        width: auto !important;
        max-width: 100%;
        height: auto !important;
    }

    .content-body table {
        font-size: 14px;
    }
}

















.slideshow {
    position: relative;
    margin: auto;
    margin-top: 90px;
    max-width: 100vw;
    max-height: 200px;
}

.slideshow .items {
    max-width: 100vw;
    max-height: 200px;
}

.slideshow .items img {
    width: 100vw;
    height: 200px;
    object-fit: cover;
}


.slideshow .slick-prev {
    position: absolute;
    top: 90px;
    left: 20px;
    z-index: 10;
}

.slideshow .slick-next {
    position: absolute;
    top: 90px;
    right: 20px;
    z-index: 10;
}

.slideshow .slick-arrow {
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: rgba(240, 248, 255, 0.151);
}

.slideshow .slick-arrow:hover {
    background-color: rgba(240, 248, 255, 0.562);
    transition: all ease 0.3s;
}

.slideshow .slick-dots {
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 2px;
}

.slideshow .slick-dots li {
    list-style: none;
    margin: 0 4px;
    width: 15px;
    height: 5px;
    background-color: rgb(226, 226, 226);
    cursor: pointer;
}

.slideshow .slick-active {
    /* background-color: rgb(255, 124, 31) !important; */
}

.search_ac {
    /* background-color: aqua; */
    width: 1200px;
    /* height: 60px; */
    margin: auto;
    margin-top: 30px;
    border-radius: 10px;
    position: relative;
    /* outline: 3px rgb(223, 223, 223) solid ; */
}

.search_ac .icon {
    position: absolute;
    right: 20px;
    top: 8px;
    font-size: 30px;
    color: rgb(190, 190, 190);

}

.search_ac input {
    width: calc(100% - 70px);
    padding: 10px;
    padding-right: 50px;
    border: none;
    font-size: 16px;
    /* outline: 3px rgb(228, 228, 228) solid ; */
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 5px;
}

.search_ac input:focus {
    outline: 3px rgb(255, 144, 17) solid;
    transition: all ease 0.3s;
}

.body_activity {
    width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 60px;
}

.body_activity .card_ac {
    overflow: hidden;
    position: relative;
    flex: 0 1 calc(24% - 1em);
    height: 280px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.body_activity .card_ac .main_img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: rgb(224, 224, 224);
}

.main_img .header {
    padding: 15px 10px;
    margin-top: -10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
}

.main_img .footer_card {
    margin: auto;
    text-align: center;
    margin-top: -10px;
    color: rgb(255, 150, 53);
    font-weight: 600;
}

.body_activity .card_ac .main_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view_more_bg {
    opacity: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.116);
    top: 0;
    left: 0;
    z-index: 10;
    transition: ease all 0.3s;
}

.body_activity .card_ac:hover .view_more_bg {
    opacity: 1;
}

.viemore_bt {
    background-color: aliceblue;
    height: 80px;
    width: 80px;
    margin: auto;
    border-radius: 50%;
    margin-top: 80px;
    transition: all ease 0.3s;
    position: relative;
}

.viemore_bt:hover {
    height: 90px;
    width: 90px;
    margin-top: 75px;
    cursor: pointer;
}

.viemore_bt .icon {
    font-size: 40px;
    color: rgb(219, 219, 219);
    position: absolute;
    top: 54%;
    left: 53%;
    margin: -25px 0 0 -25px;
}

.viemore_bt:hover .icon {
    color: rgb(255, 155, 42);
    transition: all ease 0.3s;
}

.not_found {
    display: flex;
    flex-direction: column;
    margin: auto;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    color: rgb(218, 218, 218);
}

.not_found .icon {
    font-size: 60px
}

.pagination_custom {
    width: fit-content;
    margin: auto;
}

.circle_bt {
    background-color: rgb(224, 224, 224);
    height: 50px;
    width: 50px;
    border-radius: 50%;
    margin: 0 30px;

}

.circle_bt.active:hover {
    transition: all ease 0.3s;
    background-color: rgb(255, 139, 62);
    cursor: pointer;
}

.circle_bt .icon {
    font-size: 40px;
    margin-top: 5px;
    margin-left: 5px;
    color: rgb(255, 255, 255);
}

.paginate_cus {
    display: flex;
    flex-direction: row;
}

li {
    list-style-type: none;
    display: inline;
    margin-top: 20px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 18px;
}

.paginate_num {
    margin-top: 13px;
    margin-bottom: 60px;
}

.activity_detail {
    width: 1200px;
    /* min-height: 100px;
    background-color: red; */
    margin: auto;
    margin-top: 90px;
}


@media only screen and (max-width: 1200px) {
    .slideshow {
        margin-top: 80px;
    }
    .activity_detail{
        width: calc(100vw - 160px);
    }
    .search_ac{
        width: calc(100vw - 160px);
    }
    .body_activity {
        width: calc(100vw - 160px);
        grid-template-columns: repeat(3, 1fr);
    }
}
@media only screen and (max-width: 800px) {
    .body_activity {
        width: calc(100vw - 160px);
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 700px) {
    .slideshow_detail {
        position: relative;
        max-width: 100vw;
        max-height: 400px;
        background-color: aliceblue !important;
    }
    
    .slideshow_detail .items {
        max-width: 100vw;
        max-height: 400px;
        background-color: aliceblue !important;
    }
    
    .slideshow_detail .items img {
        width: 100vw;
        height: 400px;
        object-fit: cover;
    }
    .slideshow_detail .slick-prev {
        position: absolute;
        top: 200px;
        left: 20px;
        z-index: 10;
    }
    
    .slideshow_detail .slick-next {
        position: absolute;
        top: 200px;
        right: 20px;
        z-index: 10;
    }
    .search_ac{
        width: calc(100vw - 80px);
    }
    .body_activity {
        width: calc(100vw - 80px);
        grid-template-columns: repeat(1, 1fr);
    }
    
}

@media only screen and (max-width: 650px) {
    .activity_detail .header {
        font-size: 20px !important;
        margin: 10px 0 0 0;
        font-weight: 600;
    }
    .activity_detail{
        width: calc(100vw - 80px);
    }
    .slideshow_detail {
        position: relative;
        max-width: 100vw;
        max-height: 350px;
        background-color: aliceblue !important;
    }
    
    .slideshow_detail .items {
        max-width: 100vw;
        max-height: 350px;
        background-color: aliceblue !important;
    }
    
    .slideshow_detail .items img {
        width: 100vw;
        height: 350px;
        object-fit: cover;
    }
    .slideshow_detail .slick-prev {
        position: absolute;
        top: 170px;
        left: 20px;
        z-index: 10;
    }
    
    .slideshow_detail .slick-next {
        position: absolute;
        top: 170px;
        right: 20px;
        z-index: 10;
    }
}