/* Brand orange (logo / main site #ef5623) */
:root {
    --color-primary: 239 86 35;
    --color-primary-soft: 255 240 235;
    /* Wider left sidebar (default was 18rem / 16rem) */
    --w-side: 20rem;
    --w-side-sm: 18rem;
}
/* Use CSS vars — Tailwind build lacks 2xl:w-80 / sm:w-72 */
@media (min-width: 640px) {
    .site__sidebar-inner {
        width: var(--w-side-sm);
    }
}
@media (min-width: 1536px) {
    .site__sidebar-inner {
        width: var(--w-side);
    }
}
.border-primary {
    --tw-border-opacity: 1;
    border-color: rgb(var(--color-primary) / var(--tw-border-opacity));
}
.bg-primary-soft\/60 {
    background-color: rgb(var(--color-primary-soft) / 0.6);
}
.hover\:bg-primary-soft:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-primary-soft) / var(--tw-bg-opacity));
}
.stroke-primary {
    stroke: rgb(var(--color-primary));
}
.fill-primary-soft {
    fill: rgb(var(--color-primary-soft));
}
.dark .dark\:bg-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--color-primary) / var(--tw-bg-opacity));
}

img{
    object-fit: cover;
}

/* Finance utility box (match main site box_finance) */
.box-finance .tab-title {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 4px;
    border-bottom: 1px solid #eee;
}
.dark .box-finance .tab-title {
    border-bottom-color: rgb(51 65 85);
}
.box-finance .box-finance-heading {
    margin-bottom: 12px;
}
.box-finance .tab-title li {
    flex: 1;
}
.box-finance .tab-title a {
    display: block;
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.dark .box-finance .tab-title a {
    color: rgb(148 163 184);
}
.box-finance .tab-title li.active a,
.box-finance .tab-title a:hover {
    color: #ef5623;
    border-bottom-color: #ef5623;
}
.box-finance .content_tab {
    min-height: 240px;
    padding-top: 8px;
}
.box-finance .content_tab .tab.is-hidden {
    display: none;
}
.box-finance-gold {
    min-height: 280px;
}

/* Active tab underline / accents */
.nav__underline ul li a[aria-expanded=true] {
    border-color: #ef5623;
    color: #ef5623;
}
.dark .nav__underline ul li a[aria-expanded=true] {
    border-color: #ef5623;
    color: #ef5623;
}
.post-comment-area iframe{
	border-radius: 12px;
}
.exp_qc_share .exp_qc_one {display: none;}
.exp_qc_share .exp_qc_one.active {display: block;}

.auth-form .middle-divider {
    background-color: rgb(var(--color-bgbody) / var(--tw-bg-opacity));
    height: 20px;
    left: 0;
    line-height: 20px;
    margin: 0 auto;
    position: absolute;
    right: 0;
    text-align: center;
    top: -10px;
    width: 62px;
    z-index: 9;
    font-size: 13px;
}

.auth-form .input-group-form label {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.auth-form .input-group-form .input-default {
    border: 1px solid #B4B4B4;
    border-radius: 3px;
    display: block;
    height: 42px;
    width: 100%;
    padding: 0 10px;
}

.auth-form .input-group-form .input-number-group {
    margin: 20px 0 30px;
    display: -ms-grid;
    display: grid;
    grid-gap: 10px;
    -ms-grid-columns: (minmax(45px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
}

.auth-form .input-group-form .input-number-group .input-number {
    border: none;
    border-bottom: 2px solid #9A9A9A;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
}

.auth-form .input-group-form .input-number-group .input-number:focus {
    border-bottom: 2px solid #1E376D;
}

.auth-form .input-group-form .input-number-group .input-number:last-child {
    margin-right: 0;
}


#side-chat{
    top: 63px;
}

.content_detail a{
    color: #ef5623;
}
.content_detail p, 
.content_detail span,
.content_detail li{
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0 auto 15px;
    word-wrap: break-word !important;
}
.content_detail .mce-toc > ul > li > a{
    font-weight: 600;
}
.content_detail li *{
    display: inline;
}
.content_detail li ul, .content_detail li ul li{
    display: block;
}

.content_detail figure > a{
    overflow: hidden;
    display: block;
}
.content_detail figure h2{
    font-size: 16px;
}
.content_detail strong,
.content_detail h2,
.content_detail h3,
.content_detail h4,
.content_detail h5,
.content_detail h6,
.content_detail h2 *,
.content_detail h3 *,
.content_detail h4 *,
.content_detail h5 *,
.content_detail h6 *
{
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.55;
}
.content_detail figure.cmxNonEdit {
    border-radius: 4px;
    margin-bottom: 20px;
}
.content_detail figure.cmxNonEdit img {
    width: 100%;
    transition: transform .5s ease;
}
.content_detail table {
    width: 100%!important;
}
.content_detail table td{
    line-height: 1.6;
    font-family: Arial;
}
.content_detail table td ul,
.content_detail table td li,
.content_detail table td p{
    margin-bottom: 10px;
}
.content_detail table td p:last-child{
    margin-bottom: 0px;
}
.content_detail table td{
    padding: 10px!important;
}
.content_detail figure figcaption{
    color: #757575;
    font-size: 15px;
    font-style: normal;
    font-weight: 300;
    line-height: 24px;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.content_detail figure figcaption:empty{
    display: none;
}
.iframe-responsive {
    width: 100%;
    aspect-ratio: var(--aspect-ratio, 16 / 9);
    position: relative;
    max-height: 630px;
}
.iframe-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (min-width: 768px) {
    .content_detail figure.cmxNonEdit {
        width: 100%;
        overflow: hidden;
    }
}
@media (max-width: 480px) {
    .content_detail p, 
    .content_detail span,
    .content_detail li{
        font-size: 17px;
    }
}



.chatbot-input-container {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 5px 10px;
    background-image: linear-gradient(#fff, #fff), linear-gradient(to right, #7b61ff, #ff8826);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 10px);
}

.chatbot-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
    box-shadow: none!important;
}

.chatbot-suggestion {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.chatbot-suggestion:hover {
    background-color: #e0e0e0;
}

.chatbot-icon {
    font-size: 18px;
    margin-right: 8px;
    color: #7b61ff;
}

.chatbot-send-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    padding: 0 5px 5px;
}
.chatbot-loading {
    font-size: 14px;
    color: #7b61ff;
    margin-left: 10px;
}

.chatbot-response {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.fadenews .content_detail{
    max-height: 220px;
    overflow: hidden;
}
.content_detail .bg-fade-news{
    display: none;
}
.fadenews .content_detail .bg-fade-news{
    display: block;
    height: 100px; 
    background-image: linear-gradient(rgb(255 255 255 / 0%), #ffffff);
}
.dark .fadenews .content_detail .bg-fade-news{
    background-image: linear-gradient(rgb(255 255 255 / 0%), #1e293b);
}
.modal_loading {
    display: none;
}
body.loading .modal_loading {
    display: block;
}
.modal_loading .loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.17);
    z-index: 9999;
}

.modal_loading .loading-text {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    width: 100%;
    height: 100px;
    line-height: 100px;
}
.modal_loading .loading-text span {
    display: inline-block;
    margin: 0 5px;
    color: #fff;
}
.modal_loading .loading-text span:nth-child(1) {
    filter: blur(0px);
    -webkit-animation: blur-text 1.5s 0s infinite linear alternate;
    animation: blur-text 1.5s 0s infinite linear alternate;
}
.modal_loading .loading-text span:nth-child(2) {
    filter: blur(0px);
    -webkit-animation: blur-text 1.5s 0.2s infinite linear alternate;
    animation: blur-text 1.5s 0.2s infinite linear alternate;
}
.modal_loading .loading-text span:nth-child(3) {
    filter: blur(0px);
    -webkit-animation: blur-text 1.5s 0.4s infinite linear alternate;
    animation: blur-text 1.5s 0.4s infinite linear alternate;
}
.modal_loading .loading-text span:nth-child(4) {
    filter: blur(0px);
    -webkit-animation: blur-text 1.5s 0.6s infinite linear alternate;
    animation: blur-text 1.5s 0.6s infinite linear alternate;
}
.modal_loading .loading-text span:nth-child(5) {
    filter: blur(0px);
    -webkit-animation: blur-text 1.5s 0.8s infinite linear alternate;
    animation: blur-text 1.5s 0.8s infinite linear alternate;
}
.modal_loading .loading-text span:nth-child(6) {
    filter: blur(0px);
    -webkit-animation: blur-text 1.5s 1s infinite linear alternate;
    animation: blur-text 1.5s 1s infinite linear alternate;
}
.modal_loading .loading-text span:nth-child(7) {
    filter: blur(0px);
    -webkit-animation: blur-text 1.5s 1.2s infinite linear alternate;
    animation: blur-text 1.5s 1.2s infinite linear alternate;
}

@-webkit-keyframes blur-text {
    0% {
        filter: blur(0px);
    }
    100% {
        filter: blur(4px);
    }
}

@keyframes blur-text {
    0% {
        filter: blur(0px);
    }
    100% {
        filter: blur(4px);
    }
}
@media (max-width: 768px) {
    .topbar {
        z-index: 9999;
    }
    .card-body {
        padding: 12px;
    }
    #datatable_1_wrapper {
        overflow: auto;
    }
    .form-control {
        margin-bottom: 15px;
    }
    .col-8,
    .col-4 {
        width: 100%;
    }
    .page-title-box {
        padding: 10px;
    }
}

/* Layout density: reduce empty space & optimize mobile */
#js-oversized {
    width: 100%;
}
#js-oversized > .flex-1,
#js-oversized > [class*="lg:w-"] {
    min-width: 0;
}
.post-item + .post-item {
    margin-top: 0;
}
.content_detail p,
.content_detail span,
.content_detail li {
    margin-bottom: 12px;
}
.content_detail figure.cmxNonEdit {
    margin-bottom: 14px;
}
.content_detail strong,
.content_detail h2,
.content_detail h3,
.content_detail h4,
.content_detail h5,
.content_detail h6 {
    margin-bottom: 10px;
}
.side-list-item {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.box-finance .content_tab {
    min-height: 200px;
}
.box-finance-gold {
    min-height: 220px;
}

@media (max-width: 1023px) {
    #js-oversized {
        gap: 0.75rem;
    }
    #site__main {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
    .post-item .content_detail p,
    .post-item .content_detail span,
    .post-item .content_detail li {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 10px;
    }
    .box {
        border-radius: 0.75rem;
    }
    .side-list-item {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 640px) {
    #logo img {
        max-width: 110px;
        height: auto;
    }
    .story-item-box {
        height: 150px !important;
    }
    .uk-slider-items .card-media {
        height: 6.5rem;
    }
}