/* ==============================
 * Page Hero
 * ============================== */
.page__hero {
    background-color: #141414;
    min-height: 20em;
    padding: 2em 0;
}

.page__hero > .container {
    width: 100%;
}

.page__hero--light {
    background-color: #f7f8f6;
}

.page__hero--detail {
    text-align: left;
}

.page__hero--detail .page__hero-title {
    font-size: clamp(1.25rem, 3vw, 2rem);
    max-width: 100%;
    margin: 0;
}

.page__hero--detail .breadcrumb {
    justify-content: flex-start;
}

.page__hero--detail .article__meta {
    justify-content: flex-start !important;
}

.page__hero--bg {
    background-color: #141414;
    overflow: hidden;
}

.page__hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.page__hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    margin-bottom: 0.75em;
    line-height: 1.15;
}

.page__hero--light .page__hero-title {
    color: var(--t4s-text-head-color);
}

.page__hero .breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.page__hero .breadcrumb-item,
.page__hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem;
}

.page__hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

.page__hero .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.page__hero--light .breadcrumb-item,
.page__hero--light .breadcrumb-item a {
    color: var(--t4s-text-content-color) !important;
}

.page__hero--light .breadcrumb-item + .breadcrumb-item::before {
    color: var(--t4s-text-content-color);
    opacity: 0.4;
}

.page__hero--light .breadcrumb-item a:hover {
    color: var(--t4s-text-head-color) !important;
}

/* ==============================
 * Page Layout
 * ============================== */
.page__page {
    min-height: 400px;
}

.page__section {
    padding: 4em 0;
}

.page__section--dark {
    background-color: #141414;
    color: #fff;
}

.page__section--light {
    background-color: #f7f8f6;
}

.page__content .ck-content {
    max-width: 48em;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==============================
 * Table of Contents
 * ============================== */
.toc-container {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1em;
    border-radius: 0.75em;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.toc-container .text__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0;
    cursor: pointer;
}

.toc-container .text__head svg {
    cursor: pointer;
    transition: transform 0.3s;
}

.toc-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-container li {
    margin: 0.2em 0;
    list-style: none;
}

.toc-container a {
    text-decoration: none;
    color: var(--t4s-text-content-color);
    font-size: 0.875rem;
    display: block;
    padding: 0.3em 0.625em;
    border-radius: 0.25em;
    transition: background-color 0.3s, color 0.3s;
}

.toc-container a:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--t4s-text-head-color) !important;
}

.toc-container .toc-list ul {
    list-style-type: none;
    padding-left: 1.25em;
    margin: 0;
}

.toc-container .toc-list ul li a {
    font-size: 0.8125rem;
    padding: 0.3em 0.75em;
}

.toc-container .toc-list ul .toc-dropdown {
    padding-left: 1.875em;
}

.toc-container[style*="--toc-level: 1"] ul ul { display: none; }
.toc-container[style*="--toc-level: 2"] ul ul ul { display: none; }
.toc-container[style*="--toc-level: 3"] ul ul ul ul { display: none; }
.toc-container[style*="--toc-level: 4"] ul ul ul ul ul { display: none; }
.toc-container[style*="--toc-level: 5"] ul ul ul ul ul ul { display: none; }

/* ==============================
 * Empty States
 * ============================== */
.empty__content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
}

.empty__content > p {
    margin-top: -1.5em;
    font-weight: 500;
    font-style: italic;
}

.empty-state {
    width: 100%;
    margin: 2.5em auto;
}

.empty-state__content {
    padding: 3em;
}

.empty-state__content .empty-state__icon {
    width: 12em;
}

.empty-state__content .empty-state__icon img {
    width: 10em;
}

/* ==============================
 * Social Share
 * ============================== */
.share__social a {
    width: 2.25em;
    height: 2.25em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--t4s-text-content-color);
    transition: all 0.3s ease;
}

.share__social a:hover {
    border-color: var(--t4s-text-head-color);
    color: var(--t4s-text-head-color) !important;
    transform: translateY(-2px);
}

/* ==============================
 * Sidebar
 * ============================== */
.page__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    width: 100%;
}

.page__sidebar li a {
    color: var(--t4s-text-content-color);
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
    padding: 0.625em 0.875em;
    border-radius: 0.5em;
    justify-content: space-between;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.page__sidebar li a:hover,
.page__sidebar li a.active {
    border-left-color: var(--t4s-text-head-color);
    color: var(--t4s-text-head-color) !important;
    background: rgba(0, 0, 0, 0.03);
}

/* ==============================
 * Filter & Sort
 * ============================== */
.filter__remove svg {
    color: var(--t4s-text-content-color) !important;
}

.page__sort {
    padding: 1em 1.25em;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(0.5em);
    -webkit-backdrop-filter: blur(0.5em);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75em;
    margin-bottom: 2em;
}

.page__sort--light {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.page__sort select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.4em 2em 0.4em 0.75em;
    border-radius: 0.5em;
    font-size: 0.8125rem;
    outline: none;
}

.page__sort--light select {
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--t4s-text-head-color);
}

.page__sort label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.5em;
}

.page__sort--light label {
    color: var(--t4s-text-content-color);
}

.product__filter {
    padding: 1em 1.25em;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75em;
}

.product__filter .page__filter-select + .select2-container--default .select2-selection--single {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    border-radius: 0.5em;
    height: 36px;
}

.product__filter .page__filter-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--t4s-text-head-color);
    font-size: 0.8125rem;
    line-height: 36px;
    padding-left: 0.75em;
}

.product__filter .page__filter-select + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.product__filter .page__filter-select + .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--t4s-text-content-color);
}

.product__filter-btn {
    white-space: nowrap;
    height: 36px;
    padding: 0 1.25em !important;
    font-size: 0.8125rem;
    border-radius: 0.5em;
    line-height: 34px;
}

.product__filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5em;
    border: 1px solid #dc2626;
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.05);
    transition: all 0.3s ease;
}

.product__filter-clear:hover {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626 !important;
}

.filter__actions .dropdown-menu {
    width: 22em;
    box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75em;
    border-radius: 0.75em;
}

.filter__actions .flex-wrap {
    gap: 0.75em;
}

.filter__actions .dropdown-menu .btn-secondary,
.filter__actions.small .btn-secondary {
    padding: 0.4em 1em;
    border-radius: 1.25em;
    outline: none !important;
    min-width: 3em;
    font-size: 0.8125rem;
}

.filter__actions .dropdown-menu .actions .btn {
    padding: 0.4em 0.75em;
    font-size: 0.75rem;
    border-radius: 0.75em;
    width: 50%;
}

.contact__info-item {
    gap: 0.75em;
    margin-bottom: 1.25em;
}

.contact__info-icon {
    width: 2.5em;
    height: 2.5em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    color: var(--t4s-text-content-color);
}

.contact__info-text {
    font-size: 0.875rem;
    color: var(--t4s-text-content-color);
    line-height: 1.5;
}

.contact__info-text strong {
    display: block;
    color: var(--t4s-text-head-color);
    margin-bottom: 0.15em;
}

/* ==============================
 * Consultant Card
 * ============================== */
.consultant__avatar {
    width: 6em;
    height: 6em;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.consultant__card .consultant__name {
    color: var(--t4s-text-head-color);
}

.consultant__card .consultant__role {
    font-size: 0.6875rem;
    color: var(--t4s-text-content-color);
    letter-spacing: 0.05em;
}

.consultant__contact a {
    gap: 0.5em;
    padding: 0.4em 0;
    font-size: 0.8125rem;
    color: var(--t4s-text-content-color) !important;
    transition: color 0.3s ease !important;
}

.consultant__contact a:hover {
    color: var(--t4s-text-head-color) !important;
}

.consultant__contact svg {
    stroke: var(--t4s-text-content-color);
}

/* Allow sticky inside section__box */
.section__box:has(.sticky-top) {
    overflow: visible;
}

/* ==============================
 * Article Body
 * ============================== */
.article__body {
    max-width: 48em;
    margin: 0 auto;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 2em;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.article__meta--light {
    color: var(--t4s-text-content-color);
}

.article__tag {
    display: inline-block;
    padding: 0.2em 0.75em;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 1em;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.page__section--light .article__tag {
    background: rgba(0, 0, 0, 0.05);
    color: var(--t4s-text-content-color);
}

/* ==============================
 * Pagination Dark
 * ============================== */
.page__section--dark .page-item .page-link {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.page__section--dark .page-item .page-link:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.page__section--dark .page-item.active .page-link {
    background-color: #fff !important;
    border-color: #fff !important;
    color: #141414 !important;
}

.page__section--dark .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.2);
}

/* ==============================
 * Video Preview
 * ============================== */
.video-preview .bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* ==============================
 * FAQ Section
 * ============================== */
.section__faq .card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75em;
}

.related__link a {
    color: var(--t4s-text-content-color) !important;
    transition: color 0.3s ease;
}

.related__link a:hover {
    color: var(--t4s-text-head-color) !important;
}

/* ==============================
 * Page Banner (legacy)
 * ============================== */
.page__banner .box-thumbnail {
    padding-top: 19.153%;
    height: 0;
}

.page__overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 0 1em;
}

.page__box {
    margin-top: -5em;
    padding: 1.5em;
    background-color: #fff;
    position: relative;
    z-index: 10;
    box-shadow: 0 0.25em 1.5em rgba(0, 0, 0, 0.06);
    border-radius: 0.75em;
}

/* ==============================
 * Product Gallery Slide
 * ============================== */
.product-gallery__preview {
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-gallery__preview img {
    transition: opacity 0.3s ease;
}

.product-gallery__thumb {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    opacity: 1;
}

.product-gallery__thumb .card-image {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease;
}

.product-gallery__thumb.active .card-image {
    border-color: var(--t4s-primary-color);
}

.product-gallery__thumbs .owl-nav {
    position: absolute;
    top: 50%;
    left: -0.5em;
    right: -0.5em;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    margin: 0;
}

.product-gallery__thumbs .owl-nav button {
    pointer-events: auto;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.5) !important;
    backdrop-filter: blur(0.5em);
    -webkit-backdrop-filter: blur(0.5em);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem !important;
    color: #fff !important;
    line-height: 1;
    transition: all 0.3s ease;
}

.product-gallery__thumbs .owl-nav button:hover {
    background: rgba(20, 20, 20, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.25);
}

.product-gallery__thumbs .owl-nav .disabled {
    opacity: 0.3;
    pointer-events: none;
}

.product-gallery__video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1.25em;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fff !important;
    border: none;
    border-radius: 0.5em;
    transition: all 0.3s ease !important;
}

.product-gallery__video-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-gallery__video-btn svg {
    flex-shrink: 0;
}

.product-gallery__video-btn--tiktok {
    background: #010101;
}

.product-gallery__video-btn--tiktok:hover {
    box-shadow: 0 4px 12px rgba(1, 1, 1, 0.4);
}

.product-gallery__video-btn--youtube {
    background: #FF0000;
}

.product-gallery__video-btn--youtube:hover {
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

/* ==============================
 * Responsive
 * ============================== */
@media (max-width: 991px) {
    .page__hero {
        min-height: 16em;
    }
}

@media (max-width: 767px) {
    .page__hero {
        min-height: 13em;
    }

    .page__hero-title {
        font-size: 1.5rem;
    }

    .page__section {
        padding: 3em 0;
    }

    .page__sort {
        flex-direction: column;
        gap: 0.75em;
        align-items: flex-start;
    }

}

@media (max-width: 575px) {
    .page__hero {
        min-height: 11em;
    }

    .page__hero-title {
        font-size: 1.25rem;
    }

    .page__section {
        padding: 2.5em 0;
    }

    .product-gallery__video-btn {
        font-size: 0.75rem;
        padding: 0.4em 1em;
    }

    .product__filter {
        padding: 0.75em;
    }

    .toc-container {
        background: transparent !important;
        padding: 0;
        border: 0;
    }

    .page__about .ck-content .image-style-side {
        width: 100%;
        float: none;
        margin: 0 0 1em 0;
    }

    .ck-content .image-style-side {
        max-width: 100% !important;
    }

    .page__content .ck-content {
        font-size: 0.9375rem;
    }
}
