body {
    overflow: unset;
}
.sticky-menu, a.next, .scroll {
    display: none !important;
}
.bottom-menu {
    bottom: 0px;
    position: fixed;
}
.news-room{
    /*height: 100vh;*/
    display: flex;
    flex-direction: column;
    /*overflow: hidden;*/
    position: relative;
    font-family: 'Roboto-Regular';
    font-size: 20px;
    color: #343435;
    /*background-image: url("/wp-content/uploads/2018/11/bg-newsroom.jpg");*/
    background-position: 10px center;
    background-repeat: no-repeat;
    background-size: cover;
}
.blog-spot {
    /*height: 100vh;*/
    display: flex;
    flex-direction: column;
    /*overflow: hidden;*/
    position: relative;
    font-family: 'Roboto-Regular';
    font-size: 20px;
    color: #343435;
    /*background-image: url(/wp-content/uploads/2018/11/bg-blospot.jpg);*/
    background-position: 16px -9px;
    background-repeat: no-repeat;
    background-size: cover;
}
.push .blog-spot {
    background-position: left 5px bottom -50px;
}
img.scroll {
    position: absolute;
    bottom: 18%;
    right: 2.5%;
    cursor: pointer;
    border-radius: 40px;
    padding: 10px 0;
    width: 70px;
}
.scroll {
    position: absolute;
    bottom: 130px;
    right: 32px;
    cursor: pointer;
    background: #464646;
    border-radius: 40px;
    padding: 10px 0;
    width: 65px;
    height: 125px;
    display: flex;
    align-items: center;
}
.post-loop {
    width: 90%;
    margin: 0 auto 35px;
    background-color: #fff;
    display: flex;
    flex-flow: row wrap;
    padding-left: 20px;
}
body[id|="id-site"] .post-loop {
    margin-bottom: 0;
}
.post-loop .post-items {
    max-width: 28%;
    -ms-flex-preferred-size: 28%;
    flex-basis: 28%;
    margin: 0 2.6% 20px;
    text-align: center;
    position: relative;
}
.post-loop .post-items img.wp-post-image {
    height: auto;
    width: 460px;
    object-fit: contain;
    max-height: 240px;
}
.post-loop .post-items p.title-post {
    color: #00ac2b;
    font-size: 16px;
}
.post-loop .post-items .entry-meta {
    margin-top: 6px;
    font-size: 15px;
    font-family: Roboto-Regular;
}
.post-loop .post-items ul.post-categories, .post-loop .post-items ul.post-categories li {
    display: inline-block;
}
.alm-reveal {
    display: flex;
    flex-flow: row wrap;
}
div#ajax-load-more {
    width: 100%;
}
.main-page, .content {
    overflow: unset;
}
.post-loop a {
    color: #000;
}
.post-loop .sticky-post.post-items:after {
    content: "";
    background-image: url(/wp-content/uploads/2018/12/features-post-2.svg);
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 0;
}
.ajax-load-more-wrap.green .alm-load-more-btn.btn-loadmore {
    background-color: #00ac2b;
    padding: 0 37px;
    height: 40px;
    line-height: 40px;
    font-size: 21px;
    border-radius: 6px;
    font-family: 'Roboto-Regular';
    font-weight: 100;
}
#search-social-box {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    width: 90%;
    margin: 20px auto;
    padding-left: 6%;
}
button.alm-load-more-btn.more.btn-loadmore {
    text-indent: 99999px;
    width: 200px;
    overflow: hidden;
}
button.alm-load-more-btn.more.btn-loadmore:after {
    content: "More Results";
    position: absolute;
    text-indent: 0px;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
}
#th-site button.alm-load-more-btn.more.btn-loadmore:after {
    content: "เพิ่มเติม";
    position: absolute;
    text-indent: 0px;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
}
#id-site button.alm-load-more-btn.more.btn-loadmore:after {
    content: "Lebih Banyak";
    position: absolute;
    text-indent: 0px;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
}
button.alm-load-more-btn.more.btn-loadmore.done:after {
    content: "Less Results";
    position: absolute;
    text-indent: 0px;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
}
#th-site button.alm-load-more-btn.more.btn-loadmore.done:after {
    content: "ไม่มีบล็อกเพิ่มเติม";
    position: absolute;
    text-indent: 0px;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
}
#id-site button.alm-load-more-btn.more.btn-loadmore.done:after {
    content: "Lebih Sedikit";
    position: absolute;
    text-indent: 0px;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
}
.form-box {
    max-width: 76.5%;
    -ms-flex-preferred-size: 76.5%;
    flex-basis: 76.5%;
}
form.search-form {
    width: 58%;
    float: left;
    display: flex;
}
.form-box input.search-field {
    height: 35px;
    width: 98%;
    border: 1px solid #ced0d6;
    border-radius: 5px;
    padding-left: 15px;
    font-size: 15px;
    font-family: Roboto-Regular;
    outline: none;
}
.form-box button.search-submit {
    /* margin-left: -44px; */
    height: 35px;
    padding: 0 12px;
    border: none;
    background: #8E9EA4;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items:center;
}
.form-box i.fas.fa-search {
    transform: rotate(90deg);
}
.social-icon-box {
    max-width: 23.5%;
    -ms-flex-preferred-size: 23.5%;
    flex-basis: 23.5%;
    justify-content: center;
    display: flex;
}
.social-icon-content a {
    margin-right: 10px;
}
button.search-submit {
    margin-left: -36px;
}
.l-container {
    /*height: inherit;*/
    background-color: #fff;
}
.sticky-menu {
    position: sticky;
    top: 0;
    height: 120px;
    width: 100%;
    z-index: 99;
}
.sticky-menu-content {
    position: relative;
    height: 100%;
}
.sticky-menu .sticky-menu-content .sticky-menu-left {
    background: #cbd7dd;
    width: 45%;
    padding: 0 48px;
    box-sizing: border-box;
    width: 49%;
    padding: 0 100px 0 48px;
}
.sticky-menu-list {
    align-items: center;
    height: 100%;
}
.sticky-menu-list .sticky-menu-item-1 {
    text-align: center;
    font-size: 16px;
    color: #2c753d;
}
.sticky-menu-list .sticky-menu-item-1 img {
    width: 60px;
    height: 60px;
}
.sticky-menu-content .sticky-menu-right {
    background: #8d9da3;
    z-index: 3;
    width: 51%;
    height: 100%;
    position: relative;
}
.sticky-menu-content .sticky-menu-right::before {
    content: "";
    width: 0;
    height: 0;
    border-bottom: 120px solid #8d9da3;
    border-left: 92px solid transparent;
    position: absolute;
    z-index: 0;
    left: -92px;
}
.sticky-menu-list-2 {
    padding: 0 0 0 18px;
    align-items: center;
    height: 100%;
    /* color: #d3d3d3; */
    color: #e8e7e7
}
.sticky-menu-list-2 .sticky-menu-item-2 {
    width: 165px;
    text-align: center;
    font-size: 16px;
}
.sticky-menu-list-2 .sticky-menu-item-2 img {
    width: 90px;
    height: 60px;
    margin-bottom: 5px;
}
.cat-custom-select {
  position: relative;
  font-family: Arial;
}
.form-box .cat-custom-select, .ul-dropdown.dropdown {
    height: 33px;
    width: 30%;
    border: 1px solid #ced0d6;
    border-radius: 5px;
    padding-left: 15px;
    margin-right: 20px;
    font-size: 15px;
    font-family: Roboto-Medium;
    float: right;
    position: relative;
}
.cat-custom-select select {
  display: none;
}
.cat-select-selected, .ul-dropdown.dropdown .ul-select {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  color: #616b6f;
  cursor: pointer;
}
.cat-select-selected:after, .ul-dropdown.dropdown .ul-select:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-color: #fff transparent transparent transparent;
}
.cat-select-selected.select-arrow-active:after, .ul-dropdown.dropdown .ul-select.dropdown-open:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}
.cat-select-items div, .ul-dropdown.dropdown ul.alm-filter-nav.dropdown-menu li {
  color: #000;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  user-select: none;
}
.cat-select-items a, .ul-dropdown.dropdown ul.alm-filter-nav.dropdown-menu li a {
    color: unset;
    padding: 11px 16px 12px;
    display: block;
  }
ul.alm-filter-nav.dropdown-menu.category-list li a {
    color: #000!important;
}
ul.alm-filter-nav.dropdown-menu.category-list li a:hover {
    color: #fff!important;
}
.cat-select-items, .ul-dropdown.dropdown ul.alm-filter-nav.dropdown-menu {
    position: absolute;
    background-color: #fff;
    top: 135%;
    left: 0;
    right: 0;
    z-index: 99;
    border-radius: 5px;
    border: 1px solid #ced0d6;
}
.cat-select-items:after, .ul-dropdown.dropdown ul.alm-filter-nav.dropdown-menu:after {
    content: "";
    position: absolute;
    display: block;
    top: -10px;
    right: 5px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #8e9ea4;
}
.select-hide {
  display: none;
}
.cat-select-items div:hover, .cat-select-items .cat-same-as-selected, .ul-dropdown.dropdown ul li:hover {
  background-color: var(--main-dark-color);
  color: #fff !important;
}
.cat-select-selected:before, .ul-dropdown.dropdown .ul-select:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 100%;
    background-color: #8e9ea4;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.cat-select-items div:first-of-type, .ul-dropdown.dropdown ul li:first-of-type {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}
.cat-select-items div:last-of-type, .ul-dropdown.dropdown ul li:last-of-type {
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
.ul-hide{
    display:none;
}
.blogspot-page .entry-meta {
    display: none;
}
.social-icon-content img {
    width: 33px;
}
a.button-live-chat.icon-open {
    cursor: pointer !important;
    pointer-events: auto !important;
}
.button-live-chat.icon-open img {
    height: auto;
    margin: 0;
}

.load-more-post-wrapper,
.th-category-load-more,
.id-category-load-more {
    text-align: center;
}
#load-more-post,
.load-more-post-button {
    background-color: #00ac2b;
    padding: 0 37px;
    height: 40px;
    line-height: 40px;
    font-size: 21px;
    border-radius: 6px;
    font-family: 'Roboto-Regular';
    font-weight: 100;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all .35s ease;
    margin: 10px 0 25px;
}
#load-more-post:hover,
.load-more-post-button:hover {
    background-color: #64b95e;
}
#load-more-post .fa-spinner,
.load-more-post-button .fa-spinner {
    margin-right: 4px;
    visibility: hidden;
}
.load-more-post-icon {
    display: none;
    position: relative;
}
.load-more-post-icon:after {
    content: "";
    width: 92px;
    height: 92px;
    background-image: url("/wp-content/themes/deliveree/assets/images/loading_small.gif");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: -54px;
    left: -64px;
}
#load-more-post.done,
.load-more-post-button.done {
    background-color: #64b95e;
    opacity: .15;
    cursor: default;
}
#load-more-post span.text-done,
#load-more-post.done span.text-active,
.load-more-post-button span.text-done,
.load-more-post-button.done span.text-active {
    display: none;
}
#load-more-post.done span.text-done,
.load-more-post-button.done span.text-done {
    display: inline;
}

.showwithcategori{display: none; text-align: center; width: 100%;}
.showwithcategori .cls_cater{ display: flex; flex-flow: row wrap;}
.showallpost{width: 100%; background-color: #fff; display: flex; flex-flow: row wrap; }
.alm-load-more-btn.done{display: none!important;}
.load-more-post-wrapper.cater{display: none;}
.load-more-post {
    background-color: #00ac2b;
    padding: 0 37px;
    height: 40px;
    line-height: 40px;
    font-size: 21px;
    border-radius: 6px;
    font-family: 'Roboto-Regular';
    font-weight: 100;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all .35s ease;
    margin: 10px 0 25px;
}
.load-more-post span.text-done, .load-more-post.done span.text-active{display: none;}
.load-more-post.done{display: none;}

/* Show posts by category */
.th-show-post-by-categories-wrapper .posts-wrapper,
.id-show-post-by-categories-wrapper .posts-wrapper {
    /* display: flex; */
    display: flex;
    flex-wrap: wrap;
}
/* .th-posts {
    display: none;
} */
.th-show-post-by-categories {
    display: none;
}
body[id|="th"] .load-more-post-wrapper.cater {
    display: none!important;
}

.post-block {
    display: flex;
    flex-wrap: wrap;
}

/* pagination bar */
.pagination-bar-posts {
    text-align: center;
    padding: 0px 0px 35px 0px;
}
.pagination-bar-posts a {
    text-decoration: none;
    margin-right: 6px;
    display: inline-block!important;
    font-size: 16px;
}
#th-site .pagination-bar-posts a {
    font-size: 22px;
}
.pagination-bar-posts a,
.pagination-bar-posts a:link,
.pagination-bar-posts a:visited,
.pagination-bar-posts a:active,
.pagination-bar-posts .extend {
    color:#434343;
}
.pagination-bar-posts span {
    margin-right: 6px;
    display: inline-block;
    color: #252f38;
}
.pagination-bar-posts a.active {
    background-color: #d1e0c7;
    padding: 3px 8px;
    border-radius: 50%;
}
#th-site .pagination-bar-posts a.active {
    padding: 3px 10px;
}
.pagination-bar-posts a.prev {
    margin-right: 12px;
    margin-left: 0;
}
.pagination-bar-posts a.next {
    margin-left: 12px;
    margin-right: 0;
}
.pagination-bar-posts a.prev,
.pagination-bar-posts a.next {
    position: relative;
    padding: 6px 11px;
    background-color: #00751a;
    border-radius: 5px;
}
#th-site .pagination-bar-posts a.prev,
#th-site .pagination-bar-posts a.next {
    padding: 4px 11px;
}
.pagination-bar-posts a.prev span.icon,
.pagination-bar-posts a.next span.icon {
    width: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    top: 2px;
    margin-right: 0px;
    position: relative;
    top: 50%;
    transform: translateX(-50%);
}
.pagination-bar-posts a.prev span.icon {
    border-right: 8px solid #fff;
    position: relative;
    left: calc(50% - 1px);
}
.pagination-bar-posts a.next span.icon {
    border-left: 8px solid #fff;
    left: calc(50% + 1px);
}
.pagination-bar-posts a.prev.prevent,
.pagination-bar-posts a.next.prevent {
    background-color: #8E9EA4;
    pointer-events: none;
}
/* end pagination bar */


/* new layout */
.category-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    width: 100%;
}
.category-tab {
    background: #ABDB9D;
    border-radius: 30px;
    padding: 0;
    transition: all 0.3s ease;
    width: 340px;
    text-align: center;
    border: 2px solid #2F7F51;
}
.category-tab.active {
    background: #2F7F51;
}
.category-tab.active a .tab-name{
    color: #fff;
    font-weight: 600;
}
.category-tab a {
    color: #2F7F51;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    gap: 10px;
    font-family: 'Roboto-Medium';;
}
.tab-name {
    font-size: 25px;
    font-weight: 500;
    color: #2F7F51;
}

.category-title {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.category-title h1 {
    color: #00a000;
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    text-transform: none;
}

.article-category {
    margin-bottom: 8px;
}
.article-category span {
    display: inline-block;
    color: #24603C;
    padding:0;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}
/* Most Viewed Posts Section Styling */
.most-viewed-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}
@media (max-width: 768px) {
    .category-tab {
        width: 100%;
        max-width: 300px;
    }
}
@media (max-width: 480px) {
    .category-section {
        padding: 15px;
    }
    
}
/* Hide navigation when not needed */
.hide-navigation {
    display: none !important;
}
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    margin-bottom: 15px;
}
.article-header {
    margin-bottom: 15px;
}
.mostview-posts-container {
    width: 100%;
    float: left;
}
.mostview-posts-container .article-title {
    color: #06AB2B;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 24px;
    min-height: 60px;
}
.mostview-posts-container .article-title a {
    color: #06AB2B;
    text-decoration: none;
}

.mostview-posts-container .article-title a:hover {
    color: #28a745;
}

.article-excerpt {
    flex-grow: 1;
    margin-bottom: 15px;
}

.article-excerpt p {
    color: #000;
    font-size: 16px;
    line-height: 20px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Roboto-Regular';
}

.article-image {
    overflow: hidden;
    margin-top: auto;
    border-radius: 0 0 15px 15px;
    flex-shrink: 0;
    float: left;
    width: 100%;
    clear: both;
}

.article-image img {
    width: 100%; 
    object-fit: cover;
    display: block;
    min-height: 150px;
}



.article-img {
    width: 100%;
    object-fit: cover;
}

.article-placeholder-image img {
    width: 100%;
    object-fit: cover;
}

/* latest posts */
.latest-posts-container {
    width: 100%;
}
.latest-posts-container .section-title {
    margin-bottom: 30px;
    text-align: center;
}
.latest-posts-container .section-title h1 {
    color: #0a7d00;
    font-size: 25px;
    font-weight: bold;
    margin: 0;
    position: relative;
    text-align: center;
    font-family: 'Roboto-Medium';
}
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
.latest-post-card {
    position: relative;
    margin-bottom: 0;
    background: none;
    box-shadow: none;
}
.latest-post-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.latest-post-image {
    width: 109px;
    height: 89px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 0;
    background: #f7f7f7;
}
.latest-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.latest-post-card:hover .latest-post-image img {
    transform: scale(1.05);
}
.latest-post-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.latest-post-category {
    margin-bottom: 2px;
}
.latest-post-category span {
    display: inline-block;
    background: none;
    color: #24603C;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 0;
}
.latest-post-title {
    margin: 0;
}
.latest-post-title a {
    color: #06AB2B;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    display: block;
    transition: color 0.3s;
}
.latest-post-title a:hover {
    color: #086900;
}

.top-main-header .header .title a {
    color: #007500;
}
#latest-posts-loading {
    display: none; 
    text-align: center;
    padding: 40px;
    position: absolute;
    left: 0;
    right: 0;
}
.loading-spinner {
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #3fae29; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    animation: spin 2s linear infinite; 
    margin: 0 auto;
}
@media (max-width: 768px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .latest-post-image {
        width: 60px;
        height: 60px;
    }
    .latest-post-title a {
        font-size: 1em;
    }
}
@media (max-width: 480px) {
    .latest-posts-section {
        padding: 15px;
    }
    .latest-post-image {
        width: 45px;
        height: 45px;
    }
    .latest-post-title a {
        font-size: 0.95em;
    }
}

/* Author Glossary - 3 column grid (desktop only, this file not loaded on mobile) */
.author-glossary-items.glossary-items {
    display: flex;
    flex-flow: row wrap;
    padding: 0;
}
.author-glossary-items .glossary-item {
    max-width: 30%;
    flex-basis: 30%;
    margin: 0 1.6% 20px;
    box-sizing: border-box;
}
