/**
 * TULMS Blog & Guides Modern Design System
 * Tiêu chuẩn UI/UX cao cấp cho Trung tâm Hướng dẫn & Bài viết chuẩn SEO
 */

/* ==========================================================================
   1. THANH TIẾN TRÌNH ĐỌC BÀI VIẾT (READING PROGRESS BAR)
   ========================================================================== */
#tulms-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #06b6d4);
    width: 0%;
    z-index: 99999;
    transition: width 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* KHUNG VIDEO RESPONSIVE CHUẨN 16:9 */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    margin: 26px 0;
    background: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}
.video-responsive-wrapper:empty {
    display: none !important;
}
.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   2. BREADCRUMB (ĐƯỜNG DẪN TRANG)
   ========================================================================== */
.tulms-breadcrumb {
    margin-bottom: 22px;
}
.tulms-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #64748b;
}
.tulms-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tulms-breadcrumb__link {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tulms-breadcrumb__link:hover {
    color: #2563eb;
}
.tulms-breadcrumb__separator {
    color: #cbd5e1;
    font-size: 11px;
}
.tulms-breadcrumb__current {
    color: #0f172a;
    font-weight: 500;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   3. TRANG TỔNG QUAN HƯỚNG DẪN (PAGE-HUONG-DAN.PHP)
   ========================================================================== */
.tulms-guide-hub {
    padding-top: 40px;
    padding-bottom: 80px;
}
.tulms-guide-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
}
.tulms-guide-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.tulms-guide-hero__title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.tulms-guide-hero__desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 28px;
}

/* Thanh tìm kiếm & Bộ lọc chuyên mục */
.tulms-guide-toolbar {
    max-width: 680px;
    margin: 0 auto 36px;
}
.tulms-guide-search {
    position: relative;
    margin-bottom: 16px;
}
.tulms-guide-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.tulms-guide-search__input {
    width: 100%;
    height: 52px;
    padding: 0 46px 0 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.tulms-guide-search__input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Nút xóa từ khóa tìm kiếm */
.tulms-guide-search__clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}
.tulms-guide-search__clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Dropdown gợi ý tức thì (Live Autocomplete) */
.tulms-guide-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    z-index: 120;
    overflow: hidden;
    text-align: left;
    animation: tulmsFadeInDown 0.18s ease-out;
}
@keyframes tulmsFadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tulms-guide-search-dropdown__list {
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tulms-guide-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease, border-left-color 0.15s ease;
    border-left: 3px solid transparent;
}
.tulms-guide-dropdown-item:last-child {
    border-bottom: none;
}
.tulms-guide-dropdown-item:hover,
.tulms-guide-dropdown-item.is-selected {
    background: #f8fafc;
    border-left-color: #2563eb;
}

.tulms-guide-dropdown-item__thumb {
    width: 54px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.tulms-guide-dropdown-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tulms-guide-dropdown-item__thumb-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.tulms-guide-dropdown-item__info {
    flex-grow: 1;
    min-width: 0;
}
.tulms-guide-dropdown-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    margin-bottom: 3px;
}
.tulms-guide-dropdown-item__cat {
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tulms-guide-dropdown-item__sep {
    color: #cbd5e1;
}
.tulms-guide-dropdown-item__time {
    color: #64748b;
}

.tulms-guide-dropdown-item__title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tulms-guide-dropdown-item:hover .tulms-guide-dropdown-item__title {
    color: #2563eb;
}

.tulms-guide-dropdown-item__arrow {
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.15s ease, color 0.15s ease;
}
.tulms-guide-dropdown-item:hover .tulms-guide-dropdown-item__arrow {
    transform: translateX(3px);
    color: #2563eb;
}

.tulms-guide-dropdown-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}

.tulms-guide-search-dropdown__footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
}
.tulms-guide-dropdown-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}
.tulms-guide-dropdown-footer-hint {
    color: #94a3b8;
    font-style: italic;
}

/* Highlight từ khóa tìm kiếm */
.tulms-search-highlight,
mark.tulms-search-highlight {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}

/* Thẻ từ khóa gợi ý tìm kiếm nhanh */
.tulms-guide-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.tulms-guide-quick-tags__label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}
.tulms-guide-quick-tags__list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tulms-quick-tag {
    padding: 5px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.tulms-quick-tag:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

/* Thanh trạng thái kết quả tìm kiếm */
.tulms-guide-search-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 28px;
}
.tulms-guide-search-status__info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
}
.tulms-guide-search-status__info svg {
    flex-shrink: 0;
    color: #2563eb;
}
.tulms-guide-search-status__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tulms-guide-search-status__reset:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

.tulms-guide-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.tulms-guide-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tulms-guide-cat-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.tulms-guide-cat-pill.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Bài viết nổi bật (Featured Spotlight) */
.tulms-featured-spotlight {
    margin-bottom: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.tulms-featured-spotlight__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
}
.tulms-featured-spotlight__content {
    padding: 44px;
}
.tulms-featured-spotlight__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.tulms-featured-spotlight__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px;
}
.tulms-featured-spotlight__title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tulms-featured-spotlight__title a:hover {
    color: #38bdf8;
}
.tulms-featured-spotlight__excerpt {
    font-size: 14.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 24px;
}
.tulms-featured-spotlight__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #94a3b8;
    margin-bottom: 24px;
}
.tulms-featured-spotlight__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tulms-featured-spotlight__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tulms-featured-spotlight__btn:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.tulms-featured-spotlight__media {
    position: relative;
    height: 100%;
    min-height: 320px;
}
.tulms-featured-spotlight__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lưới bài viết (Card Grid) */
.tulms-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
.tulms-guide-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.tulms-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}
.tulms-guide-card__thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}
.tulms-guide-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.tulms-guide-card:hover .tulms-guide-card__thumb {
    transform: scale(1.04);
}
/* NHÃN CHỦ ĐỀ TRONG NỘI DUNG CARD (KHÔNG NỀN, MỜ NHẠT, CLICK ĐƯỢC LINK) */
.tulms-guide-card__topic {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}
.tulms-guide-card__category-link,
.tulms-guide-card__category-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}
.tulms-guide-card__category-link:hover,
.tulms-guide-card__category-badge:hover,
.tulms-guide-card:hover .tulms-guide-card__category-link {
    color: #2563eb;
    text-decoration: underline;
}
.tulms-guide-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tulms-guide-card__meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}
.tulms-guide-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tulms-guide-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.015em;
}
.tulms-guide-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tulms-guide-card__title a:hover {
    color: #2563eb;
}
.tulms-guide-card__excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tulms-guide-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12.5px;
}
.tulms-guide-card__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #334155;
}
.tulms-guide-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.tulms-guide-card__readmore:hover {
    gap: 7px;
}

/* Empty State & Pagination */
.tulms-guide-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    grid-column: 1 / -1;
}
.tulms-guide-empty__icon {
    display: inline-flex;
    padding: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    margin-bottom: 14px;
}
.tulms-guide-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
}
.tulms-guide-empty p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.tulms-guide-empty__suggestions {
    margin: 20px auto 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tulms-guide-empty__sugg-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.tulms-guide-empty__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.tulms-guide-empty__action {
    margin-top: 18px;
}
.tulms-guide-empty__reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.tulms-guide-empty__reset-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.tulms-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.tulms-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
}
.tulms-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tulms-pagination .page-numbers:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.tulms-pagination .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* ==========================================================================
   4. TRANG CHI TIẾT BÀI VIẾT (SINGLE.PHP)
   ========================================================================== */
.tulms-single-article {
    padding-top: 36px;
    padding-bottom: 72px;
}
.tulms-article-header {
    max-width: 860px;
    margin: 0 auto 36px;
}
.tulms-article-header__category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.09);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}
.tulms-article-header__category:hover {
    background: #2563eb;
    color: #ffffff;
}
.tulms-article-header__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.28;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
}
.tulms-article-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13.5px;
    color: #64748b;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e8f0;
}
.tulms-article-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tulms-article-header__author {
    font-weight: 600;
    color: #0f172a;
}

/* Ảnh bìa bài viết */
.tulms-article-featured-media {
    max-width: 980px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.tulms-article-featured-media img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Bố cục 2 cột (Content + Sticky Sidebar) */
.tulms-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
}
.tulms-article-main {
    min-width: 0;
}

/* TYPOGRAPHY NỘI DUNG BÀI VIẾT */
.tulms-article-body {
    font-size: 17px;
    line-height: 1.82;
    color: #1e293b;
    word-break: break-word;
}
.tulms-article-body > :first-child {
    margin-top: 0;
}
.tulms-article-body h2 {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #f1f5f9;
    scroll-margin-top: 90px;
}
.tulms-article-body h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin: 32px 0 12px;
    scroll-margin-top: 90px;
}
.tulms-article-body h4 {
    font-size: 17.5px;
    font-weight: 650;
    color: #1e293b;
    margin: 24px 0 10px;
}
.tulms-article-body p {
    margin: 0 0 20px;
}
.tulms-article-body a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.tulms-article-body a:hover {
    color: #1d4ed8;
}
.tulms-article-body ul,
.tulms-article-body ol {
    margin: 0 0 24px;
    padding-left: 26px;
}
.tulms-article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.tulms-article-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 12px 12px 0;
    font-size: 16.5px;
    font-style: italic;
    color: #334155;
}
.tulms-article-body blockquote p:last-child {
    margin-bottom: 0;
}
.tulms-article-body pre {
    margin: 26px 0;
    padding: 20px 22px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #1e293b;
}
.tulms-article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    padding: 3px 6px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #0f172a;
}
.tulms-article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.tulms-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.tulms-article-body figcaption {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-top: -14px;
    margin-bottom: 24px;
}
.tulms-article-body table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 14.5px;
}
.tulms-article-body th,
.tulms-article-body td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.tulms-article-body th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

/* HỘP MỤC LỤC TỰ ĐỘNG (TABLE OF CONTENTS) */
.tulms-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 32px 0 40px;
}
.tulms-toc--sidebar {
    margin: 0 0 28px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.tulms-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 14px;
}
.tulms-toc__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #0f172a;
}
.tulms-toc__icon {
    color: #2563eb;
    display: flex;
    align-items: center;
}
.tulms-toc__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    font-size: 12.5px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.tulms-toc__toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.tulms-toc__list {
    margin: 0;
    padding-left: 18px;
    list-style: decimal;
    font-size: 14px;
    line-height: 1.65;
}
.tulms-toc__item {
    margin-bottom: 8px;
}
.tulms-toc__item--level-3 {
    margin-left: 16px;
    list-style: circle;
    font-size: 13.5px;
}
.tulms-toc__link {
    color: #334155;
    text-decoration: none;
    transition: color 0.15s ease;
}
.tulms-toc__link:hover,
.tulms-toc__link.is-active {
    color: #2563eb;
    font-weight: 600;
}

/* THANH CHIA SẺ BÀI VIẾT */
.tulms-social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0;
    margin: 36px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.tulms-social-share__label {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
}
.tulms-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tulms-share-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.tulms-share-btn--copy:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* HỘP TÁC GIẢ E-E-A-T (AUTHOR BOX) */
.tulms-author-box {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    margin: 44px 0;
}
.tulms-author-box__avatar {
    flex-shrink: 0;
}
.tulms-author-box__avatar img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.tulms-author-box__content {
    flex-grow: 1;
}
.tulms-author-box__header {
    margin-bottom: 10px;
}
.tulms-author-box__badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    margin-bottom: 4px;
}
.tulms-author-box__name {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.tulms-author-box__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ea580c;
    margin-top: 4px;
}
.tulms-author-box__bio {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 16px;
}
.tulms-author-box__summary {
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
}
.tulms-author-box__points {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.tulms-author-box__points li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
}
.tulms-author-box__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea580c;
}
.tulms-author-box__quote {
    padding: 12px 16px;
    background: #ffffff;
    border-left: 3px solid #ea580c;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.6;
    color: #0f172a;
    margin: 12px 0 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.tulms-author-box__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.tulms-author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}
.tulms-author-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* HỘP PHỄU LEAD MAGNET ZALO (CTA CARD) */
.tulms-guide-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 18px;
    padding: 32px;
    margin: 44px 0;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}
.tulms-guide-cta__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.tulms-guide-cta__icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}
.tulms-guide-cta__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.tulms-guide-cta__title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 6px;
}
.tulms-guide-cta__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}
.tulms-guide-cta__action {
    text-align: right;
    min-width: 220px;
}
.tulms-guide-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    background: #0068ff;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.35);
    transition: all 0.2s ease;
}
.tulms-guide-cta__btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 104, 255, 0.45);
}
.tulms-guide-cta__note {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: #64748b;
}

/* KHỐI BÀI VIẾT LIÊN QUAN */
.tulms-related-section {
    margin-top: 54px;
    padding-top: 44px;
    border-top: 1.5px solid #e2e8f0;
}
.tulms-related-section__title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px;
}

/* SIDEBAR KHÓA HỌC THỰC CHIẾN GỢI Ý */
.tulms-sidebar-course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.tulms-sidebar-course-card__eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    display: block;
    margin-bottom: 6px;
}
.tulms-sidebar-course-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 10px;
}
.tulms-sidebar-course-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.tulms-sidebar-course-card__btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* TOAST THÔNG BÁO SAO CHÉP */
#tulms-share-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    z-index: 999999;
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
#tulms-share-toast.is-show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (TỐI ƯU MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    .tulms-article-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .tulms-article-sidebar {
        display: none; /* Ẩn sidebar trên tablet, dùng TOC inline trong bài */
    }
    .tulms-featured-spotlight__grid {
        grid-template-columns: 1fr;
    }
    .tulms-featured-spotlight__media {
        min-height: 240px;
        order: -1;
    }
    .tulms-featured-spotlight__content {
        padding: 28px;
    }
    .tulms-guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tulms-guide-hub {
        padding-top: 24px;
        padding-bottom: 50px;
    }
    .tulms-guide-hero__title {
        font-size: 28px;
    }
    .tulms-guide-hero__desc {
        font-size: 15px;
    }
    .tulms-guide-grid {
        grid-template-columns: 1fr;
    }
    .tulms-article-header__title {
        font-size: 26px;
    }
    .tulms-article-body {
        font-size: 16px;
        line-height: 1.75;
    }
    .tulms-article-body h2 {
        font-size: 21px;
    }
    .tulms-article-body h3 {
        font-size: 18px;
    }
    .tulms-guide-cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }
    .tulms-guide-cta__icon {
        margin: 0 auto;
    }
    .tulms-guide-cta__action {
        text-align: center;
        width: 100%;
    }
    .tulms-guide-cta__btn {
        width: 100%;
    }
    .tulms-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 22px 18px;
    }
    .tulms-author-box__summary,
    .tulms-author-box__points,
    .tulms-author-box__quote {
        text-align: left;
    }
    .tulms-author-box__links {
        justify-content: center;
    }
}
