.sec-slide,
.sec-top-child {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    color: #fff;
    padding-block: 42px;
}

.sec-slide .bg-single,
.sec-top-child .bg-single {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    object-fit: cover;
}

.sec-slide .block-carousel-post {
    width: 100%;
}

.sec-slide .warpper,
.sec-top-child .warpper {
    width: 100%;
    margin: 0;
}

.sec-top-child .group-post,
.sec-remain-post .group-post,
.sec-popular-post .group-post {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.sec-remain-post {
    padding-block: 32px;
}

.sec-popular-post {
    background-color: #000000;
    padding-block: 32px;
}

.sec-popular-post .heading {
    color: #fff;
    font-size: 1.875rem;
}


@media ( min-width: 992px ) {
    .sec-top-child .group-post {
        grid-template-columns: 1fr 1fr;
    }

    .sec-remain-post .group-post {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .sec-popular-post .group-post {
        grid-template-columns: repeat(4, 1fr);
    }
}

.children-tabs {
    background-color: #F6F6F6;
}

.children-tabs.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    background: #fff; /* หรือใส่ background ที่กลืนกับหน้า */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-categrory-child {
    margin: 0;
    position: relative;
    padding-block: 32px;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1
}

.scroll-bar-container {
    overflow: auto;
    overflow-x: auto;
	overflow-y: hidden;
}

.tab-buttons {
    display: flex;
    column-gap: 36px;
    row-gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    white-space: nowrap;
}

.tab-buttons .tab-button {
    flex: 0 0 auto;
	white-space: nowrap;
	min-width: max-content;
}

.tab-buttons .tab-button:last-child {
    padding-right: 16px;
}

.tab-buttons .tab-button a {
    color: #000;
    padding-block: 16px;
    display: block;
}

@media ( min-width: 992px ) {
    .tab-buttons .tab-button a {
        padding-block: 25px;
    }
}

.tab-buttons .tab-button.active a,
.tab-buttons .tab-button:hover a {
    cursor: pointer;
    border-bottom: 2px solid #ED1C24;
}

.sec-remain-post .pagination {
    text-align: end;
}

.sec-remain-post .pagination .page-numbers {
    border: 1px solid #000;
    padding-inline: 8px;
    color: #000;
}

.sec-remain-post .pagination .page-numbers:hover,
.sec-remain-post .pagination .page-numbers.current {
    background-color: #000;
    color: #fff;
}

.sec-top-child .breadcrumbs,
.sec-top-child .group-post,
.sec-top-child .ads,
.sec-top-child .heading {
    grid-column: span 2;
}

.sec-top-child .heading {
    margin: 0;
}

@media ( min-width: 992px ) {
    .sec-top-child .group-post,
    .sec-top-child .ads {
        grid-column: auto;
    }
}

.post-type-archive-ud-book .item-post img {
    aspect-ratio: unset;
}

::-webkit-scrollbar {
    width: 10px;
    height: 5px;
  }
  
  /* Track */
  /* ::-webkit-scrollbar-track {
    background: #f1f1f1;
    opacity: 0.3;
  } */
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    transition: 0.3s all ease;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    cursor: pointer;
    background: #555;
    transition: 0.3s all ease;
  }