.akia-2col-desc-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.akia-2col-desc-left {
    flex: 1;
    min-width: 0;
    position: relative;
    /* transition removed to avoid height jumping before final height is calculated */
}

.akia-2col-desc-left.has-right-col {
    /* Let flexbox naturally size the left column without hard max-width limits */
}

.akia-2col-desc-left>* {
    max-width: 100% !important;
}

.akia-2col-desc-right {
    width: 340px;
    position: sticky;
    top: 20px;
    flex-shrink: 0;
    /* Box styling was removed to allow floating elements like 'Thông tin hay' title to sit directly on the page background */
    background: transparent;
    padding: 0;
}

.akia-desc-heading {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.akia-manual-link {
    font-size: 14px;
    color: #104C87;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.akia-manual-link:hover {
    text-decoration: underline;
}

.akia-desc-content-box {
    position: relative;
    overflow: hidden;
    max-height: 800px;
}

.akia-desc-content-box.expanded {
    max-height: none;
}

.akia-desc-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 90%);
    pointer-events: none;
}

.akia-desc-content-box.expanded .akia-desc-fade {
    display: none;
}

.akia-desc-action {
    text-align: center;
    margin-top: 15px;
}

.akia-btn-read-more {
    background: #fff;
    border: 1px solid #104C87;
    color: #104C87;
    padding: 8px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.akia-btn-read-more:hover {
    background: #104C87;
    color: #fff;
}

/* Tabs & Right Column */
.akia-info-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.akia-tab-btn {
    border: none !important;
    background-color: transparent !important;
    background: none;
    font-weight: 600;
    font-size: 14px;
    color: #666 !important;
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
    outline: none;
}

.akia-tab-btn.active {
    color: #104C87 !important;
}

.akia-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #104C87;
}

.akia-tab-content {
    display: none;
}

.akia-tab-content.active {
    display: block;
}

/* YouTube Shorts Swiper */
.akia-shorts-swiper {
    width: 100%;
    padding-bottom: 30px;
}

.akia-short-slide {
    display: flex;
    justify-content: center;
}

.akia-short-link {
    display: block;
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.akia-short-thumb {
    width: 100%;
    padding-top: 177.78%;
    /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    position: relative;
}

.akia-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.akia-short-link:hover .akia-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: white;
}

.akia-nav-btn {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.akia-nav-btn::after {
    font-size: 14px;
}

/* Related Articles */
.akia-related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.akia-related-article-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: center;
}

.akia-article-thumb {
    width: 90px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.akia-article-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.akia-article-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.akia-related-article-item:hover .akia-article-title {
    color: #104C87;
}

/* Mobile Responsive */
@media screen and (max-width: 991px) {
    .akia-2col-desc-wrapper {
        flex-direction: column;
    }

    .akia-2col-desc-left.has-right-col {
        max-width: 100%;
    }

    .akia-2col-desc-right {
        width: 100%;
        position: static;
        margin-top: 30px;
    }
}
/* ========================================================
   CATEGORY PAGE: Header Optimization (Phase 5)
   ======================================================== */
.archive.woocommerce .page-header {
    background: transparent !important;
    padding: 10px 0 20px 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    text-align: left !important;
}

.archive.woocommerce .page-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
}

.archive.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 10px !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
}

/* Sort and result count optimizations */
.woocommerce-products-header {
    margin-bottom: 0;
}
.archive.woocommerce .woocommerce-result-count {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}
.archive.woocommerce .woocommerce-ordering {
    margin-bottom: 30px;
}

/* ========================================================
   KEY FEATURES BOX (Đặc điểm nổi bật)
   ======================================================== */
.akia-key-features {
    background: linear-gradient(135deg, #f0fff4 0%, #f8fffc 100%);
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.akia-kf-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #1a7a35;
}

.akia-kf-title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1a7a35 !important;
    line-height: 1.3 !important;
}

.akia-kf-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 16px;
}

.akia-kf-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13.5px;
    color: #333;
    line-height: 1.5;
}

.akia-kf-check {
    flex-shrink: 0;
    fill: #28a745;
    margin-top: 2px;
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .akia-kf-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .akia-key-features {
        padding: 12px 14px;
        margin-bottom: 12px;
    }
    .akia-kf-title {
        font-size: 14px !important;
    }
}

/* ========================================================
   TABLE OF CONTENTS (Mục lục tự động)
   ======================================================== */
.akia-toc {
    background: #f8f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.akia-toc-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: #eef2f7;
    border-bottom: 1px solid #e2e8f0;
    cursor: default;
    user-select: none;
}

.akia-toc-header svg { color: #475569; fill: #475569; }
.akia-toc-header span {
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    flex: 1;
}

.akia-toc-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    color: #64748b;
    border-radius: 4px;
    transition: background 0.15s;
}
.akia-toc-toggle:hover { background: #d8e4f0; }

.akia-toc-arrow {
    fill: currentColor;
    transition: transform 0.2s ease;
}

.akia-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    counter-reset: toc-counter;
}

.akia-toc-item {
    padding: 0 !important;
    margin: 0 !important;
}

.akia-toc-link {
    display: block;
    padding: 5px 14px 5px 14px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.1s, color 0.1s;
    border-left: 3px solid transparent;
}

.akia-toc-link:hover {
    background: #e8f0fb;
    color: #104C87;
    border-left-color: #104C87;
}

.akia-toc-link.active {
    background: #dbeafe;
    color: #104C87;
    font-weight: 600;
    border-left-color: #104C87;
}

/* H3 subheadings — indented */
.akia-toc-sub .akia-toc-link {
    padding-left: 28px;
    font-size: 12.5px;
    color: #475569;
}

.akia-toc-sub .akia-toc-link:hover,
.akia-toc-sub .akia-toc-link.active {
    color: #104C87;
}

/* Mobile TOC: compact */
@media (max-width: 768px) {
    .akia-toc {
        margin-bottom: 14px;
    }
    .akia-toc-link {
        padding: 6px 12px;
        font-size: 12.5px;
    }
    .akia-toc-sub .akia-toc-link {
        padding-left: 24px;
    }
}

/* ========================================================
   STICKY BAR — Messenger button color
   ======================================================== */
.akia-stb-left svg {
    fill: currentColor;
}

/* Messenger blue accent on hover */
.akia-stb-left:hover {
    color: #0099ff !important;
}
