/**
 * 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: 20px;
    padding-bottom: 60px;
}
.tulms-guide-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 20px;
}
.tulms-guide-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3.5px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.tulms-guide-hero__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
}
.tulms-guide-hero__desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 auto 16px;
    max-width: 660px;
}

/* Thanh tìm kiếm & Bộ lọc chuyên mục */
.tulms-guide-toolbar {
    max-width: 740px;
    margin: 0 auto 20px;
}
.tulms-guide-search-wrapper {
    position: relative;
    margin-bottom: 12px;
}
.tulms-guide-search {
    position: relative;
}
.tulms-guide-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 2;
}
.tulms-guide-search__input {
    width: 100%;
    height: 46px;
    padding: 0 255px 0 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    color: #0f172a;
    box-shadow: 0 2px 8px 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 3.5px rgba(37, 99, 235, 0.12);
}
.tulms-guide-search__input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

/* Nút xóa từ khóa tìm kiếm */
.tulms-guide-search__clear {
    position: absolute;
    right: 242px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    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;
    z-index: 3;
}
.tulms-guide-search__clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* Bộ chọn chế độ tìm kiếm tích hợp trong thanh search */
.tulms-guide-search-modes {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #f1f5f9;
    padding: 2.5px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    z-index: 3;
}
.tulms-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
    line-height: 1;
}
.tulms-mode-btn svg {
    flex-shrink: 0;
}
.tulms-mode-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}
.tulms-mode-btn.is-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}
.tulms-mode-btn.is-active svg {
    stroke: #ffffff;
}

/* 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: 460px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.tulms-guide-search-dropdown__list::-webkit-scrollbar {
    width: 6px;
}
.tulms-guide-search-dropdown__list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.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;
    flex-wrap: wrap;
}
.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;
}

/* Huy hiệu vị trí khớp trong dropdown */
.tulms-guide-dropdown-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.3;
    margin-left: auto;
}
.tulms-badge--content {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.tulms-badge--title {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.tulms-badge--excerpt {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}
.tulms-badge--exact {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}
.tulms-badge--partial {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.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__snippet {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0 4px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tulms-guide-quick-hints::-webkit-scrollbar {
    display: none;
}
.tulms-guide-quick-hints__label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}
.tulms-guide-quick-hints__list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.tulms-quick-hint-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tulms-quick-hint-tag:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.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: 10px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 22px;
}
.tulms-guide-search-status__info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-size: 13.5px;
    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: 5px 12px;
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 7px;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.tulms-guide-search-status__reset:hover {
    background: #dbeafe;
    border-color: #60a5fa;
}

/* Thanh chuyên mục cuộn ngang tinh gọn */
.tulms-guide-categories-wrap {
    overflow-x: auto;
    padding: 2px 0 6px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tulms-guide-categories-wrap::-webkit-scrollbar {
    display: none;
}
.tulms-guide-categories {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.tulms-guide-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.tulms-guide-cat-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
.tulms-guide-cat-pill.is-active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

/* 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;
}

/* Trích đoạn ngữ cảnh nội dung tìm thấy (Deep Snippet) */
.tulms-guide-card__snippet-box {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #2563eb;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.55;
    flex-grow: 1;
}
.tulms-guide-card__snippet-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}
.tulms-guide-card__snippet-text {
    margin: 0;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -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-guide-switch-deep-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 9px 20px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}
.tulms-guide-switch-deep-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   TDACADEMY MODERN PAGINATION (CHUẨN ĐẸP 1, 2, 3...)
   ========================================================================== */
.screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    word-wrap: normal !important;
}

.tulms-guide-pagination,
.tulms-pagination,
.pagination,
.navigation.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 40px auto 30px !important;
    padding: 0 !important;
    clear: both !important;
    gap: 8px !important;
}

/* Reset ul and li if generated as list */
.tulms-guide-pagination ul,
.tulms-pagination ul,
.pagination ul,
.navigation.pagination ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: wrap !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tulms-guide-pagination ul li,
.tulms-pagination ul li,
.pagination ul li,
.navigation.pagination ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-flex !important;
}

.tulms-pagination .nav-links,
.navigation.pagination .nav-links,
.pagination .nav-links {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Individual page number buttons (a and span) */
.tulms-guide-pagination .page-numbers:not(ul),
.tulms-pagination .page-numbers:not(ul),
.pagination .page-numbers:not(ul),
.navigation.pagination .page-numbers:not(ul) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    user-select: none !important;
    line-height: 1 !important;
}

/* Hover state */
.tulms-guide-pagination a.page-numbers:hover,
.tulms-pagination a.page-numbers:hover,
.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

/* Active / Current page number */
.tulms-guide-pagination .page-numbers.current,
.tulms-pagination .page-numbers.current,
.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transform: scale(1.04) !important;
    cursor: default !important;
}

/* Previous / Next buttons */
.tulms-guide-pagination .page-numbers.prev,
.tulms-guide-pagination .page-numbers.next,
.tulms-pagination .page-numbers.prev,
.tulms-pagination .page-numbers.next,
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 16px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
}

.tulms-guide-pagination .page-numbers.prev svg,
.tulms-guide-pagination .page-numbers.next svg,
.tulms-pagination .page-numbers.prev svg,
.tulms-pagination .page-numbers.next svg {
    transition: transform 0.2s ease !important;
    flex-shrink: 0 !important;
}

.tulms-guide-pagination .page-numbers.prev:hover svg,
.tulms-pagination .page-numbers.prev:hover svg {
    transform: translateX(-3px) !important;
}

.tulms-guide-pagination .page-numbers.next:hover svg,
.tulms-pagination .page-numbers.next:hover svg {
    transform: translateX(3px) !important;
}

/* Ellipsis / Dots (...) */
.tulms-guide-pagination .page-numbers.dots,
.tulms-pagination .page-numbers.dots,
.pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    min-width: 28px !important;
    cursor: default !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .tulms-guide-pagination,
    .tulms-pagination,
    .pagination,
    .navigation.pagination {
        margin: 28px 0 20px !important;
        gap: 6px !important;
    }
    .tulms-pagination .nav-links,
    .navigation.pagination .nav-links,
    .tulms-guide-pagination ul,
    .tulms-pagination ul {
        gap: 6px !important;
    }
    .tulms-guide-pagination .page-numbers:not(ul),
    .tulms-pagination .page-numbers:not(ul),
    .pagination .page-numbers:not(ul),
    .navigation.pagination .page-numbers:not(ul) {
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
    .tulms-guide-pagination .page-numbers.prev,
    .tulms-guide-pagination .page-numbers.next,
    .tulms-pagination .page-numbers.prev,
    .tulms-pagination .page-numbers.next {
        padding: 0 12px !important;
        font-size: 12.5px !important;
    }
}

/* ==========================================================================
   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 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    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 Ý & BANNER */
.tulms-sidebar-courses-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.tulms-sidebar-courses-widget__header {
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}
.tulms-sidebar-courses-widget__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.tulms-sidebar-courses-widget__title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 4px;
}
.tulms-sidebar-courses-widget__sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}
.tulms-sidebar-courses-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tulms-sidebar-course-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.22s ease;
}
.tulms-sidebar-course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.tulms-sidebar-course-item__thumb-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}
.tulms-sidebar-course-item__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.tulms-sidebar-course-item:hover .tulms-sidebar-course-item__thumb {
    transform: scale(1.04);
}
.tulms-sidebar-course-item__tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.tulms-tag--free {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
}
.tulms-tag--bestseller {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
}
.tulms-tag--vip {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #ffffff;
}
.tulms-sidebar-course-item__body {
    padding: 12px 14px 14px;
}
.tulms-sidebar-course-item__name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
.tulms-sidebar-course-item__name a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}
.tulms-sidebar-course-item__name a:hover {
    color: #2563eb;
}
.tulms-sidebar-course-item__price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.tulms-sidebar-course-item__price {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}
.tulms-price--free {
    color: #059669;
}
.tulms-price--vip {
    color: #7c3aed;
}
.tulms-sidebar-course-item__original-price {
    font-size: 11.5px;
    color: #94a3b8;
    text-decoration: line-through;
}
.tulms-sidebar-course-item__badge-sub {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #ede9fe;
    color: #6d28d9;
}
.tulms-sidebar-course-item__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.tulms-btn--free {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.tulms-btn--free:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}
.tulms-btn--pro {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.tulms-btn--pro:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.tulms-btn--vip {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}
.tulms-btn--vip:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

/* SIDEBAR ZALO CARD */
.tulms-sidebar-zalo-card {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0056cc 0%, #0077ff 100%);
    color: #ffffff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 6px 16px rgba(0, 102, 238, 0.2);
}
.tulms-sidebar-zalo-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}
.tulms-sidebar-zalo-card__content {
    flex: 1;
}
.tulms-sidebar-zalo-card__tag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 2px;
}
.tulms-sidebar-zalo-card__title {
    font-size: 13.5px;
    font-weight: 800;
    margin: 0 0 3px;
    color: #ffffff;
}
.tulms-sidebar-zalo-card__desc {
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.92;
    margin: 0 0 10px;
    color: #ffffff;
}
.tulms-sidebar-zalo-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: #0056cc;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tulms-sidebar-zalo-card__btn:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* 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: block;
        margin-top: 20px;
    }
    .tulms-article-sidebar .tulms-toc--sidebar {
        display: none; /* Dùng TOC inline ở đầu bài trên mobile/tablet */
    }
    .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;
    }
}

@media (max-width: 640px) {
    .tulms-guide-hub {
        padding-top: 16px;
        padding-bottom: 40px;
    }
    .tulms-guide-hero {
        margin-bottom: 16px;
    }
    .tulms-guide-hero__title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .tulms-guide-hero__desc {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    .tulms-guide-toolbar {
        margin-bottom: 14px;
    }
    .tulms-guide-search {
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .tulms-guide-search__input {
        height: 44px;
        padding: 0 36px 0 38px;
        font-size: 13.5px;
        border-radius: 10px;
    }
    .tulms-guide-search__icon {
        left: 12px;
    }
    .tulms-guide-search__clear {
        right: 12px;
        width: 20px;
        height: 20px;
    }
    .tulms-guide-search-modes {
        position: static;
        transform: none;
        margin-top: 6px;
        width: 100%;
        display: flex;
        justify-content: stretch;
        padding: 3px;
        border-radius: 8px;
        gap: 3px;
        box-sizing: border-box;
    }
    .tulms-mode-btn {
        flex: 1;
        justify-content: center;
        padding: 5px 6px;
        font-size: 11px;
        gap: 3px;
    }
    .tulms-guide-quick-hints {
        margin-top: 6px;
    }
    .tulms-guide-cat-pill {
        padding: 5px 12px;
        font-size: 12px;
    }
}
