/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/

.blog-post__item {
    display: flex;
    flex-direction: column;
    margin: 0 auto 50px auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    height: calc(100% - 50px);
    max-width: 420px;
    transition: all 0.3s ease-in-out;
}

.blog-post__item.blog-post__featured {
    display: block;
    max-width: 100%;
}

.blog-post__img-container {
    position: relative;
    width: 100%;
    /* padding-top: 56.25%; */
    /* for 16:9 aspect ratio */
    overflow: hidden;
}

@media (min-width: 1200px) and (max-height: 800px) {
    .blog-post__img-container {
        max-width: 700px;
        margin-inline: auto;
    }
}

.blog-post__img-container img {
    position: relative;
    width: 100%;
    height: auto;
}

.blog-post__title {
    margin-bottom: 15px;
}

.blog-post__title a {
    display: block;
    text-decoration: none;
    color: #000000;
}

.blog-post__link,
.blog-post__item .btn,
.blog-post__item .btn-primary {
    margin-top: 10px;
}

.search-result__link,
.blog-post__link {
    width: fit-content;
    text-decoration: none;
    color: #FFFFFF;
    border-radius: 5px;
}


.blog-post__link:hover {
    color: #FFFFFF;
}

.blog-post__meta {
    font-size: .8em;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post__tag {
    /*padding: 5px;*/
    /*margin-right: 5px;*/
    /*background-color: #f0f0f0;*/
    /*border-radius: 5px;*/
    margin-bottom: 5px;
    text-decoration: none;
    color: #0a58ca;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.blog-post__bottom__date,
.blog-post__featured_label {
    padding-bottom: 5px;
}

.blog-post__excerpt {
    flex-grow: 1;
    font-size: 16px;
    font-weight: normal;
    padding-bottom: 20px;
    color: #002745;
    text-decoration: none;
    line-height: 28px;
    font-family: 'Kanit';
}

.blog-post__featured .blog-post__excerpt {
    padding-bottom: 60px;
}

.blog-post__featured .blog-post__img-container,
.blog-post__featured .show {
    height: 100%;
}

.blog-post__featured .blog-post__meta {
    position: relative;
}

.blog-post__featured .blog-post__bottom {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 20px);
}

.blog-post__bottom {
    display: flex;
    justify-content: space-between;
    border-top: solid 1px #ddd;
    padding-top: 20px;
    text-decoration: none;
    color: #000000;
}

.blog-post__title a {
    color: #002745;
    font-weight: 600;
}

.blog-post__title {
    font-size: 18px;
    color: #002745;
}

.tab-accordion .load-more__counter.js-load-more-counter {
    color: #002745;
}

body.search-results .tab-accordion {
    background: #fff;
    color: #002745;
}

@media( min-width: 768px ) {
    .blog-post__title {
        font-size: 22px;
    }
}

@media (min-width: 1025px) {
    .blog-post__featured .blog-post__meta {
        padding: 20px 20px 20px 0;
    }
}


@media (min-width: 1200px) {
    .dummy-link:hover {
        color: #002745;
    }

    .blog-post__tag:hover {
        color: #002745;
    }

    .blog-post__item:hover {
        box-shadow: 5px 5px 60px rgb(235, 235, 235), -5px -5px 60px rgb(237, 237, 237);
        transition: all .5s;
        transform : translateY(-10px);
    }
}


        /**
         * Sidebar
         */

/* Blog Sidebar */

.blog .page-sidebar .widget {
    margin-bottom: 50px;
}



/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more {
    text-align: center;
}

.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 10px;
    border: 0;
    border-radius: 0;
    min-width: 250px;
}

progress::-webkit-progress-bar,
progress::-webkit-progress-value,
progress::-moz-progress-bar {
    height: 10px;
    border: 0;
    border-radius: 0;
}

progress::-webkit-progress-bar {
    background-color: #ddd;
}

progress::-webkit-progress-value {
    background-color: #4a4a4a;
    /* TODO: Please add a branded background color for progress bar value */
}

/* Loading Indicator */
.is-loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: #E3E3E3 #E3E3E3 transparent;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: simpleSpin 1.5s linear infinite;
    animation: simpleSpin 1.5s linear infinite;
}

/* Load More Button */
.load-more__btn {
    border: 0;
    display: block;
    padding: 11px 30px 12px 30px;
    margin: 20px auto;
    color: #fff;
    border-radius: 5px;
    color: #002745;
}

.load-more__btn:after {
    content: none;
}

.load-more__btn.is-loading {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more__btn.is-loading:before {
    width: 20px;
    height: 20px;
}

.load-more__btn.is-disabled {
    cursor: not-allowed;
    background-color: #f0f0f0;
    display: none;
}

/* Placeholder Space */
.placeholder-block {
    position: relative;
    display: flex;
}

.placeholder-block__inner {
    flex-grow: 1;
    background-color: #fafafa;
}

.placeholder-block.is-loading:before {
    width: 50px;
    height: 50px;
}

.content-wrapper__cpt .wysiwyg .col-md-10 {
    width: 100%;
    margin: 0;
}

.content-wrapper__cpt > .section-padding:first-child {
    padding-top: 0;
}

nav.toc-container {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Scroll offset for anchor links to account for fixed header */
html {
    scroll-padding-top: 120px; /* Default offset for mobile */
    scroll-behavior: smooth; /* Smooth scrolling for all anchor links */
}

@media (min-width: 1200px) {
    html {
        scroll-padding-top: 100px; /* Adjust for desktop header height */
    }
}

/* Ensure table of contents links are styled properly */
nav.toc-container ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

nav.toc-container li {
    margin-bottom: 8px;
}

nav.toc-container a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

nav.toc-container a:hover {
    color: #1f7dea;
}

@-webkit-keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

/* Single Post Pagination */
.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.btn-post-pagination {
    background: #dadada;
    font-size: 15px;
    padding: 10px 20px;
    color: #747474;
    position: relative;
}

.post-pagination-text {
    display: none;
}

.btn-post-pagination:hover {
    background: #ebebeb;
}

.btn-post-pagination strong {
    display: block;
    font-size: 12px;
}

.btn-previous-post,
.btn-next-post {
    max-width: 48%;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.btn-previous-post {
    padding-left: 40px;
}

.btn-next-post {
    padding-right: 40px;
}

.mobile-arrow:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #747474;
}

.mobile-arrow {
    position: absolute;
}

.btn-previous-post .mobile-arrow {
    left: 19px;
}

.btn-next-post .mobile-arrow {
    right: 19px;
}

.btn-previous-post .mobile-arrow:after {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align: inherit;
    }
}


/* Search Results */

.search-results {
    display: flex;
    flex-direction: column;
    gap: 40px;
    color: #002745;
}

.search-result {
    text-decoration: none;
    display: flex;
    justify-content: normal;
    gap: 20px;
    padding: 15px 35px 15px 35px;
}

.search-result__title {
    margin-bottom: 16px;
    color: #002745;
}

.search-result__excerpt {
    margin-bottom: 20px;
    color: #000000;
}

.search-result__img-container img {
    max-width: 280px;
    max-height: 280px;
    object-fit: cover;
    width: 100%;
    min-width: 280px;
}

.search_bar,
.blog_title_bar {
    padding: 0px 0 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

@media( min-width: 1200px ) {
    .search_bar,
    .blog_title_bar {
        padding: 40px 0 20px 0;
    }
}

.blog_title_bar {
    margin-bottom: 20px;
}

.blog_title_bar input,
.blog_title_bar select,
.search_bar input,
.search_bar select {
    height: 35px;
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 5px;
    padding-left: 10px;
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .search-result {
        flex-direction: column-reverse;
    }
}

.blog_title_bar select {
    width: 100%;
    margin-bottom: 5px;
}

.blog_title_bar input.search_bar_input {
    position: initial;
    width: 100%;
    margin-bottom: 5px;
}

.blog_title_bar input.search_bar_submit,
.search_bar input.search_bar_submit {
    position: initial;
    width: 100%;
    background-color: #1f7dea;
    color: #FFFFFF;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    border-radius: 5px;
}


.search_bar input.search_bar_input,
.search_form input.search_bar_input {
    height: 50px;
}

.search_bar input.search_bar_submit,
.search_form input.search_bar_submit {
    height: 50px;
    border: solid 1px #1f7dea;
}

.search_bar .choices__inner,
.blog_title_bar .choices__inner {
    height: 50px;
    background: #fff;
}

.search_bar .choices__inner .choices__list,
.blog_title_bar .choices__inner .choices__list {
    height: 40px;
    line-height: 22px;
}


.right-title-bar {
    display: flex;
    justify-content: flex-end;
}

.right-title-bar input.search_bar_submit {
    height: 50px;
    border: solid 1px #1f7dea;
}

.right-title-bar .choices,
.right-title-bar .search_form {
    width: 50%;
}

.right-title-bar .search_form form {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.search_bar .choices__list--single .choices__item,
.right-title-bar .choices__list--single .choices__item {
    width: 100%;
    font-size: 18px;
    color: #002745;
    opacity: 1;
}

@media( min-width: 600px ) {

}

.toc-container {
    margin: 20px 0;
}

@media (min-width: 600px) {

    .blog_title_bar input.search_bar_input,
    .search_bar input.search_bar_input {
        position: relative;
        top: 1px;
        left: 10px;
    }

    .right-title-bar input.search_bar_input {
        top: 1px;
    }


    .blog_title_bar input.search_bar_submit,
    .search_bar input.search_bar_submit {
        position: relative;
        background-color: #1f7dea;
        color: #FFFFFF;
        padding-left: 20px;
        padding-right: 20px;
        width: auto;
        border-radius: 0 5px 5px 0;
    }
}

.popular-posts {
    padding-top: var(--section-margins);
}

.single-container__post-type {
    margin-bottom: 0;
}

.popular-posts h2 {
    text-align: center;
    padding-bottom: 20px;
    margin-top: 35px;
}

.blog-single-container {
    padding-bottom: 0;
}

.blog-single-container .blog-post__img-container {
    margin-bottom: 20px;
}

.blog-single-meta {
    padding-bottom: 20px;
}

.blog-single-meta .social-share-row {
    padding: 0 !important;
    text-align: right;
}

.blog-listing__pagination {
    padding-top: 20px;
    padding-bottom: 25px;
}

.section-margins .popular-posts {
    margin-top: 0;
    padding-top: 0;
}

p.no-search--result {
    text-align: center;
    margin-bottom: 25px;
    color: #002745;
}

.search-form-search__wrapper form {
    position: relative;
    overflow: hidden;
}

.search-form-search__wrapper form input.search_bar_input {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
}

.search-form-search__wrapper,
.cat-dropdown__wrapper {
    margin-bottom: 10px;
}

@media( min-width:600px ) {
    .search-form-search__wrapper .search_bar_submit.btn-blue {
        position: absolute;
        right: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
}

@media( min-width:992px ) {

    .search-form-search__wrapper form input.search_bar_input,
    .search_bar input.search_bar_input,
    .search_form input.search_bar_input {
        max-width: 363px;
    }

    .search_bar .choices,
    .blog_title_bar .choices {
        width: 363px;
        max-width: 363px;
    }
}

/* ========================================
   SEARCH PAGE ACCORDION STYLING
   ======================================== */

/* Base accordion container styling - scoped to search pages only */
body.search .tab-accordion {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 39, 69, 0.12), 0 2px 8px rgba(0, 39, 69, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(245, 108, 43, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab navigation styling for desktop */
body.search .tab-accordion__tabs {
    background: linear-gradient(90deg, #0F74C2 19.41%, #002745 157.69%);
    padding: 0;
    margin: 0;
    display: flex;
    border: none;
}

body.search .tab-accordion__tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

body.search .tab-accordion__tab:last-child {
    border-right: none;
}

body.search .tab-accordion__tab::before {
    content: none;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

body.search .tab-accordion__tab:hover::before {
    left: 100%;
}

body.search .tab-accordion__tab:hover {
    background: rgba(245, 108, 43, 0.2);
    color: #fff;
}

body.search .tab-accordion__tab.is-active {
    background: #F56C2B;
    color: #002745;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 #F56C2B;
}

body.search .tab-accordion__tab.is-active::after {
    content: none;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #F56C2B;
    animation: triangleSlide 0.3s ease-out;
}

@keyframes triangleSlide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Panel styling */
body.search .tab-accordion__panel {
    background: #fff;
    margin: 0;
    border-radius: 0;
}

body.search .tab-accordion__panel.is-active {
    display: block;
}

body.search .tab-accordion__panel__content {
    padding: 30px;
    position: relative;
    scroll-behavior: smooth;
}

body.search .tab-accordion__panel__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Mobile accordion toggle styling */
body.search .tab-accordion__panel__toggle {
    background: linear-gradient(90deg, #0F74C2 19.41%, #002745 157.69%);
    color: #fff;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    width: 100%;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
}

body.search .tab-accordion__panel__toggle::after {
    content: '\e913';
    font-family: 'lat-icon';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s ease;
}

body.search .tab-accordion__panel__toggle.is-active::after {
    content: '\e90f';
    transform: translateY(-50%) rotate(180deg);
}

body.search .tab-accordion__panel__toggle.is-active {
    background: #F56C2B;
    color: #002745;
}

/* Search results within accordion */
body.search .tab-accordion .search-results {
    gap: 30px;
}

body.search .tab-accordion .search-result {
    background: #fff;
    border: 1px solid #E3E3E3;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 39, 69, 0.05);
    position: relative;
    overflow: hidden;
}

body.search .tab-accordion .search-result:hover::before {
    transform: scaleX(1);
}

body.search .tab-accordion .search-result:hover {
    border-color: #F56C2B;
    box-shadow: 0 8px 25px rgba(245, 108, 43, 0.2), 0 4px 12px rgba(0, 39, 69, 0.1);
    transform: translateY(-4px);
}

body.search .tab-accordion .search-result__title {
    color: #002745;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

body.search .tab-accordion .search-result__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F56C2B, #FF9A6B);
    transition: width 0.3s ease;
}

body.search .tab-accordion .search-result:hover .search-result__title::after {
    width: 100%;
}

body.search .tab-accordion .search-result__title:hover {
    color: #F56C2B;
}

body.search .tab-accordion .search-result__excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

body.search .tab-accordion .search-result__link {
    background: linear-gradient(90deg, #F56C2B 0%, #F56C2B 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

body.search .tab-accordion .search-result__link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

body.search .tab-accordion .search-result__link:hover::before {
    width: 120px;
    height: 120px;
}

body.search .tab-accordion .search-result__link:hover {
    background: linear-gradient(90deg, #F56C2B 0%, #FF9A6B 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Load more button styling */
body.search .tab-accordion .load-more__btn {
    background: linear-gradient(90deg, #0F74C2 19.41%, #002745 157.69%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}

body.search .tab-accordion .load-more__btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

body.search .tab-accordion .load-more__btn:hover::after {
    left: 100%;
}

body.search .tab-accordion .load-more__btn:hover {
    background: linear-gradient(90deg, #0081D5 -15.64%, #002745 81.34%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 116, 194, 0.3);
}



/* Pagination styling within accordion */
body.search .tab-accordion .blog-listing__pagination {
    border-top: 1px solid #E3E3E3;
    margin-top: 30px;
    padding-top: 25px;
}

/* No results message styling */
body.search .tab-accordion .search-results:empty::before {
    content: '🔍';
    display: block;
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0.5;
}

body.search .tab-accordion .search-results:empty::after {
    content: "No results found for your search.";
    display: block;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 2px dashed #E3E3E3;
    position: relative;
    font-size: 16px;
    font-weight: 500;
}

/* Search highlighting within results */
body.search .tab-accordion .search-highlight {
    background: linear-gradient(90deg, rgba(245, 108, 43, 0.2) 0%, rgba(245, 108, 43, 0.1) 100%);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #002745;
}

/* Loading states */
body.search .tab-accordion.is-loading {
    position: relative;
    opacity: 0.7;
}

body.search .tab-accordion.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #E3E3E3;
    border-top: 3px solid #F56C2B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* Text selection styling */
body.search .tab-accordion *::selection {
    background: rgba(245, 108, 43, 0.2);
    color: #002745;
}

body.search .tab-accordion *::-moz-selection {
    background: rgba(245, 108, 43, 0.2);
    color: #002745;
}

/* Smooth transitions for all interactive elements */
body.search .tab-accordion * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    body.search .tab-accordion__tabs {
        display: none;
    }
    
    body.search .tab-accordion__panel__toggle {
        display: block;
        border-radius: 0;
        margin-bottom: 2px;
        position: relative;
    }
    
    body.search .tab-accordion__panel__toggle:last-child {
        border-radius: 0 0 12px 12px;
        margin-bottom: 0;
    }
    
    body.search .tab-accordion__panel__content {
        padding: 20px;
    }
    
    body.search .tab-accordion .search-result {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    body.search .tab-accordion__panel__toggle {
        /* display: none; */
    }
    
    body.search .tab-accordion__tabs {
        display: flex;
        gap: 0;
    }
}

@media (min-width: 992px) {
    body.search .tab-accordion__tab {
        font-size: 18px;
        padding: 20px 30px;
    }
    
    body.search .tab-accordion__panel__content {
        padding: 40px;
    }
    
    body.search .tab-accordion .search-result {
        padding: 30px;
    }
}

/* ========================================
   SEARCH ACCORDION STYLING
   ======================================== */

/* Base accordion container styling */
.tab-accordion {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 39, 69, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Tab navigation styling for desktop */
.tab-accordion__tabs {
    background: linear-gradient(90deg, #0F74C2 19.41%, #002745 157.69%);
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 3px solid #F56C2B;
}

.tab-accordion__tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-accordion__tab:last-child {
    border-right: none;
}

.tab-accordion__tab:hover {
    background: rgba(245, 108, 43, 0.2);
    color: #fff;
}

.tab-accordion__tab.is-active {
    background: #F56C2B;
    color: #002745;
    font-weight: 700;
}

.tab-accordion__tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #F56C2B;
}

/* Panel styling */
.tab-accordion__panel {
    background: #fff;
    margin: 0;
    border-radius: 0;
}

.tab-accordion__panel.is-active {
    display: block;
}


.tab-accordion__panel__content {
    padding: 30px;
}

/* Mobile accordion toggle styling */
.tab-accordion__panel__toggle {
    background: linear-gradient(90deg, #0F74C2 19.41%, #002745 157.69%);
    color: #fff;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    width: 100%;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
}

.tab-accordion__panel__toggle::after {
    content: '\e913';
    font-family: 'lat-icon';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.tab-accordion__panel__toggle.is-active::after {
    content: '\e90f';
    transform: translateY(-50%) rotate(180deg);
}

.tab-accordion__panel__toggle.is-active {
    background: #F56C2B;
    color: #002745;
}

/* Search results within accordion */
.tab-accordion .search-results {
    gap: 30px;
}

.tab-accordion .search-result {
    background: #fff;
    border: 1px solid #E3E3E3;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 39, 69, 0.05);
}

.tab-accordion .search-result:hover {
    border-color: #F56C2B;
    box-shadow: 0 4px 16px rgba(245, 108, 43, 0.15);
    transform: translateY(-2px);
}

.tab-accordion .search-result__title {
    color: #002745;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tab-accordion .search-result__title:hover {
    color: #F56C2B;
}

.tab-accordion .search-result__excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tab-accordion .search-result__link {
    background: linear-gradient(90deg, #F56C2B 0%, #F56C2B 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.tab-accordion .search-result__link:hover {
    background: linear-gradient(90deg, #F56C2B 0%, #FF9A6B 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Load more button styling */
.tab-accordion .load-more__btn {
    background: linear-gradient(90deg, #0F74C2 19.41%, #002745 157.69%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Kanit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto 0;
}

.tab-accordion .load-more__btn:hover {
    background: linear-gradient(90deg, #0081D5 -15.64%, #002745 81.34%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 116, 194, 0.3);
}

.tab-accordion .load-more__counter {
    text-align: center;
    margin-top: 20px;
}

/* Pagination styling within accordion */
.tab-accordion .blog-listing__pagination {
    border-top: 1px solid #E3E3E3;
    margin-top: 30px;
    padding-top: 25px;
}

/* No results message styling */
.tab-accordion .search-results:empty::after {
    content: "No results found for your search.";
    display: block;
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #E3E3E3;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .tab-accordion__tabs {
        display: none;
    }
    
    .tab-accordion__panel__toggle {
        display: block;
    }
    
    .tab-accordion__panel__content {
        padding: 20px;
    }
    
    .tab-accordion .search-result {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .tab-accordion__panel__toggle {
        display: none;
    }
    
    .tab-accordion__tabs {
        display: flex;
    }
}

@media (min-width: 992px) {
    .tab-accordion__tab {
        font-size: 18px;
        padding: 20px 30px;
    }
    
    .tab-accordion__panel__content {
        padding: 40px;
    }
    
    .tab-accordion .search-result {
        padding: 30px;
    }
}

/* Search highlighting within results */
.tab-accordion .search-highlight {
    background: linear-gradient(90deg, rgba(245, 108, 43, 0.2) 0%, rgba(245, 108, 43, 0.1) 100%);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #002745;
}

/* Loading states */
.tab-accordion.is-loading {
    position: relative;
    opacity: 0.7;
}

.tab-accordion.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #E3E3E3;
    border-top: 3px solid #F56C2B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.blog-single-container {
    .wysiwyg:first-of-type,
    .bg-white:first-of-type {
        padding-top: 0;
    }

    .wysiwyg .container {
        padding-inline: 0;

        .row > * {
            width: 100%;
            margin: 0;
        }
    }
}

.event-details-container + .blog-single-container {
    padding-top: 50px;
}

.search .choices__list--dropdown {
    z-index: 10;
}