/* ============================================================ */
/* TimesBull Unified Core CSS - ELITE PRODUCTION READY
/* Version: 10.1.1 - April 2026 Compliant
/* Optimized for: INP, CLS, LCP & E-E-A-T
/* ============================================================ */

/* ======================================== */
/* CSS VARIABLES - ONLY ONE :ROOT */
/* ======================================== */
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #fee2e2;
    --text-dark: #222;
    --text-medium: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --border-light: #eee;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
    
    /* ELITE POLISH: Property-specific transitions instead of 'all' */
    --transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    --transition-fast: transform 0.15s ease, opacity 0.15s ease;
    --transition-slow: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    
    --border-radius: 8px;
    --header-height: 60px;
    --font-primary: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    
    /* Z-INDEX ARCHITECTURE */
    --z-index-header: 1000;
    --z-index-scroll: 1100;
    --z-index-overlay: 10000;
    --z-index-menu: 10001;
    --z-index-popup: 10002;
    
    --container-width: 1280px;
    --footer-bg: #000000;
    --footer-text: #ffffff;
}

/* ======================================== */
/* RESET & BASE STYLES */
/* ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-medium);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    /* ELITE POLISH: Priority on text speed for news reading */
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tb-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.tb-container a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
/* ======================================== */
/* ACCESSIBILITY */
/* ======================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.tb-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 1001;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.tb-skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .tb-post-card,
    .tb-cat-card,
    .tb-horizontal-card {
        border: 2px solid CanvasText;
    }
    
    .tb-category-badge,
    .tb-read-more,
    .tb-share-icon {
        border: 1px solid CanvasText;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hide H1 default styles on homepage logo only */
.home .tb-logo-h1,
.front-page .tb-logo-h1 {
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    border: none;
}
/* ============================================ */
/* NEW CSS FOR UPDATED HEADER.PHP */
/* ============================================ */

/* 1. Visible H1 for pages (not hidden like homepage) */
.tb-page-h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 20px 0;
    padding: 0 20px;
    color: var(--text-dark, #222);
    max-width: var(--container-width, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Homepage H1 - Hidden but accessible (not screen-reader-text) */
.home .tb-page-h1,
.front-page .tb-page-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* 3. Ensure main content starts clean after ad */
.tb-main-content {
    clear: both;
    position: relative;
    z-index: 1;
}

/* 4. Screen reader text for skip link (already exists, ensure it works) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* 5. Fix any potential spacing issues after header */
.tb-header {
    position: relative;
    z-index: 100;
}

/* 6. Ensure scroll menu doesn't overlap with ad */
.tb-scroll-menu {
    position: relative;
    z-index: 50;
}

/* 7. Category/Tag/Archive page title styling (uses tb-page-h1) */
.tb-archive-title,
.tb-cat-title,
.tb-tag-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark, #222);
}

/* 8. Responsive H1 sizes */
@media (max-width: 768px) {
    .tb-page-h1 {
        font-size: 24px;
        margin: 15px 0;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .tb-page-h1 {
        font-size: 22px;
        margin: 12px 0;
        padding: 0 12px;
    }
}
/* ======================================== */
/* BADGES */
/* ======================================== */
.tb-update-badge,
.tb-published-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}

.tb-update-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    animation: pulse 2s infinite;
}

.tb-published-badge {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: #fff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ======================================== */
/* HEADER STYLES */
/* ======================================== */
.tb-header {
    position: relative;
    width: 100%;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    background: #fff;
    transform: translateZ(0);
    contain: paint;
}

.tb-header-top {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.tb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.tb-logo {
    flex: 0 0 auto;
}

.tb-logo img {
    display: block;
    max-height: 40px;
    width: auto;
}

.tb-site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.tb-site-title:hover {
    color: var(--primary-color);
}

/* Desktop Navigation */
.tb-nav-desktop {
    flex: 1;
    margin: 0 30px;
}

.tb-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.tb-nav-menu li {
    position: relative;
    margin: 0;
}

.tb-nav-menu a {
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    display: block;
}

.tb-nav-menu a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.tb-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.tb-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.tb-nav-menu .sub-menu li {
    display: block;
}

.tb-nav-menu .sub-menu a {
    padding: 8px 15px;
    font-size: 14px;
}

/* Header Right Icons */
.tb-header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tb-search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.tb-search-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Toggle */
.tb-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.tb-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #333;
    transition: var(--transition);
}

/* Scroll Menu */
.tb-scroll-menu {
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: transform 0.3s ease;
    background: var(--primary-color);
    transform: translateZ(0);
    will-change: transform;
    list-style: none;
}

.tb-scroll-menu.tb-hidden {
    transform: translateY(-100%);
    list-style: none;
}

.tb-scroll-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    list-style: none;
}

.tb-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    list-style: none;
}

.tb-scroll-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* FIX 1: Complete cross-browser scrollbar hiding */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge/Windows Touch */
    padding: 2px 0;
    transform: translateZ(0);
    list-style: none;
}

.tb-scroll-items::-webkit-scrollbar {
    display: none;  /* Chrome/Safari/Opera */
    width: 0;
    height: 0;
}

/* Scroll Menu Items */
.tb-scroll-items a,
.tb-scroll-items .menu-item a,
.tb-scroll-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    border: none;
    outline: none;
    cursor: pointer;
    line-height: 1;
    background: #fff;
    color: var(--primary-color);
    list-style: none;
}

.tb-scroll-items a:hover,
.tb-scroll-items .menu-item a:hover,
.tb-scroll-item:hover {
    background: #fff5f5;
    will-change: background;
    list-style: none;
}

.tb-scroll-items .current-menu-item a,
.tb-scroll-items .current-menu-parent a,
.tb-scroll-items .current_page_item a,
.tb-scroll-item.active {
    background: #fee2e2;
    color: var(--primary-dark);
    list-style: none;
}

/* Scroll Arrows */
.tb-scroll-arrow {
    flex: 0 0 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.tb-scroll-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.tb-scroll-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Search Overlay */
.tb-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    will-change: opacity, visibility;
    transform: translateZ(0);
}

.tb-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tb-search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.tb-search-container form {
    display: flex;
    gap: 10px;
}

.tb-search-container input {
    flex: 1;
    height: 60px;
    padding: 0 20px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    outline: none;
}

.tb-search-container button[type="submit"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.tb-search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* ======================================== */
/* MOBILE MENU - COMPLETE FIXED VERSION */
/* ======================================== */

/* Menu Toggle Button */
.tb-menu-toggle,
.tb-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    z-index: 100;
}

.tb-menu-toggle:hover,
.tb-menu-toggle:focus,
.tb-mobile-toggle:hover,
.tb-mobile-toggle:focus {
    color: #e74c3c;
    outline: none;
}

/* Mobile Menu Container - FIXED */
.tb-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    background: #fff;
    z-index: 999999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
}

/* When menu is open */
.tb-mobile-menu.active,
.tb-mobile-menu.open {
    right: 0 !important;
    z-index: 2147483647 !important;
}

/* Mobile Menu Header */
.tb-mobile-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 60px;
}

.tb-mobile-header .tb-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Close button */
.tb-mobile-close {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.tb-mobile-close:hover,
.tb-mobile-close:focus {
    background: #e74c3c;
    color: white;
}

/* Mobile Content - FIXED */
.tb-mobile-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    min-height: 0;
    height: auto;
    max-height: calc(100vh - 60px);
}

/* Mobile Navigation */
.tb-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.tb-mobile-nav li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.tb-mobile-nav a {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    transition: all 0.2s;
}

.tb-mobile-nav a:hover,
.tb-mobile-nav a:focus {
    background: #f8f8f8;
    color: #e74c3c;
    padding-left: 25px;
}

/* Submenu styles */
.tb-mobile-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
}

.tb-mobile-nav .sub-menu li {
    border-bottom: 1px solid #eee;
}

.tb-mobile-nav .sub-menu a {
    padding: 12px 20px 12px 35px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
}

.tb-mobile-nav .sub-menu a:hover {
    background: #f0f0f0;
    padding-left: 40px;
}

/* Dropdown arrow */
.tb-mobile-nav .menu-item-has-children > a {
    position: relative;
    padding-right: 40px;
}

.tb-mobile-nav .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

/* Overlay */
.tb-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.tb-mobile-overlay.active,
.tb-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Body scroll lock */
body.tb-mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .tb-mobile-menu {
        width: 280px;
    }
}

@media screen and (max-width: 360px) {
    .tb-mobile-menu {
        width: 260px;
    }
    
    .tb-mobile-nav a {
        padding: 12px 15px;
    }
    
    .tb-mobile-nav .sub-menu a {
        padding: 10px 15px 10px 30px;
    }
}

/* iOS Safari fix */
@supports (-webkit-touch-callout: none) {
    .tb-mobile-menu {
        height: -webkit-fill-available;
    }
    
    .tb-mobile-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* ======================================== */
/* ROW 1: THREE COLUMN LAYOUT */
/* ======================================== */
.tb-row-1 {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.tb-col {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.tb-col-header {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.tb-col-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======================================== */
/* STACK CARD */
/* ======================================== */
.tb-stack-card {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.tb-stack-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
}

.tb-stack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

.tb-stack-card:hover .tb-stack-image img {
    transform: scale(1.03);
}

.tb-stack-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.tb-stack-title a {
    color: var(--text-dark);
    display: block;
}

.tb-stack-title a:hover {
    color: var(--primary-color);
}

/* ======================================== */
/* HORIZONTAL CARD */
/* ======================================== */
.tb-horizontal-card {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    min-height: 90px;
}

.tb-horizontal-card:last-child {
    border-bottom: none;
}

.tb-horizontal-card:hover {
    background: #f9f9f9;
}

.tb-horizontal-image {
    flex: 0 0 110px;
    height: 75px;
    overflow: hidden;
    border-radius: 4px;
}

.tb-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

.tb-horizontal-card:hover .tb-horizontal-image img {
    transform: scale(1.05);
}

.tb-horizontal-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.tb-horizontal-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.2em;
}

.tb-horizontal-title a {
    color: var(--text-medium);
    display: block;
}

.tb-horizontal-title a:hover {
    color: var(--primary-color);
}

.tb-horizontal-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ======================================== */
/* ROWS 2 & 3 */
/* ======================================== */
.tb-row-2, .tb-row-3 {
    margin-bottom: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.tb-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.tb-row-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.tb-row-viewall {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 15px;
}

.tb-row-viewall:hover {
    text-decoration: underline;
}

/* 3-Column Grid */
.tb-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tb-grid-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ======================================== */
/* CATEGORY SECTIONS */
/* ======================================== */
.tb-section {
    padding: 25px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Section Colors */
.tb-section-red { background: #fee9e7; border-left: 4px solid var(--primary-color); }
.tb-section-blue { background: #e7f0fd; border-left: 4px solid #3498db; }
.tb-section-purple { background: #f3e8ff; border-left: 4px solid #9b59b6; }
.tb-section-orange { background: #ffefe3; border-left: 4px solid #f39c12; }
.tb-section-green { background: #e3f4e9; border-left: 4px solid #27ae60; }
.tb-section-yellow { background: #fef7e0; border-left: 4px solid #f1c40f; }
.tb-section-teal { background: #e0f7fa; border-left: 4px solid #008080; }

/* Category Section Headers */
.tb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    width: 100%;
}

.tb-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    flex: 0 1 auto;
}

.tb-view-all {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 15px;
}

.tb-view-all:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Category Grid */
.tb-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Category Cards */
.tb-cat-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    contain: content;
}

.tb-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
}

.tb-cat-image {
    height: 150px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.tb-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

.tb-cat-card:hover .tb-cat-image img {
    transform: scale(1.05);
}

.tb-cat-content {
    padding: 15px;
}

.tb-cat-title-full {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.tb-cat-title-full a {
    color: var(--text-medium);
    display: block;
}

.tb-cat-title-full a:hover {
    color: var(--primary-color);
}

.tb-cat-date {
    color: var(--text-lighter);
    font-size: 12px;
}

/* ======================================== */
/* ARCHIVE PAGES (Category, Tag, Author) */
/* ======================================== */
.tb-archive-header,
.tb-cat-header,
.tb-tag-header {
    background: #f8f9fa;
    padding: 50px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
}

.tb-archive-header[data-type="tag"] { background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%); }
.tb-archive-header[data-type="category"] { background: linear-gradient(135deg, #f8f9fa 0%, #fff3e0 100%); }
.tb-archive-header[data-type="author"] { background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%); }
.tb-archive-header[data-type="date"] { background: linear-gradient(135deg, #f8f9fa 0%, #f3e5f5 100%); }

.tb-archive-header-content,
.tb-cat-header-content,
.tb-tag-header-content {
    max-width: 800px;
}

.tb-archive-label,
.tb-cat-label,
.tb-tag-label {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 15px;
}

.tb-archive-title,
.tb-cat-title,
.tb-tag-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tb-archive-desc,
.tb-cat-desc,
.tb-tag-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 600px;
}

.tb-archive-stats,
.tb-cat-stats,
.tb-tag-stats {
    margin-top: 15px;
}

.tb-archive-count,
.tb-cat-count,
.tb-tag-count {
    background: rgba(0,0,0,0.05);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: #555;
}

/* Posts Grid */
.tb-posts-grid,
.tb-posts-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* Post Card */
.tb-post-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    contain: content;
}

.tb-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
}

/* Card Image */
.tb-card-img {
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.tb-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

.tb-post-card:hover .tb-card-img img {
    transform: scale(1.05);
}

.tb-card-img.tb-no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-card-img.tb-no-image .tb-placeholder {
    font-size: 40px;
    opacity: 0.5;
}

/* Card Content */
.tb-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tb-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tb-card-title a {
    color: var(--text-dark);
}

.tb-card-title a:hover {
    color: var(--primary-color);
}

.tb-card-meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-lighter);
}

.tb-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.tb-read-more {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
    margin-top: auto;
}

.tb-read-more:hover {
    gap: 10px;
    text-decoration: underline;
}

/* Card Tags/Badges */
.tb-card-archive-tag,
.tb-card-tag {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    margin-left: 8px;
}

.tb-card-date time {
    color: inherit;
}

/* ======================================== */
/* PAGINATION */
/* ======================================== */
.tb-pagination {
    margin: 60px 0 50px;
    text-align: center;
    width: 100%;
    clear: both;
}

.tb-pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
}

.tb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    background: #f5f5f5;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
    line-height: 1;
}

.tb-pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231,76,60,0.3);
}

.tb-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(231,76,60,0.3);
}

.tb-pagination .page-numbers.prev,
.tb-pagination .page-numbers.next {
    padding: 0 16px;
}

/* ======================================== */
/* NO POSTS FOUND */
/* ======================================== */
.tb-no-posts,
.tb-no-posts-found,
.tb-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.tb-no-posts h3,
.tb-no-posts-found h3,
.tb-no-results h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
}

.tb-no-posts p,
.tb-no-posts-found p,
.tb-no-results p {
    color: var(--text-lighter);
}

/* ======================================== */
/* AUTHOR PAGE */
/* ======================================== */
.tb-author-header {
    background: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
}

.tb-author-box {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tb-author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.tb-author-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.tb-author-bio {
    color: var(--text-light);
    margin-bottom: 10px;
    max-width: 600px;
}

.tb-author-count {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* ======================================== */
/* AUTHORS LIST PAGE */
/* ======================================== */
.tb-authors-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-bottom: 50px;
    color: #fff;
    text-align: center;
}

.tb-authors-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.tb-authors-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.tb-authors-stats {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 24px;
    border-radius: 40px;
}

/* Authors Grid */
.tb-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Author Card */
.tb-author-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    contain: content;
}

.tb-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
    will-change: transform, box-shadow;
}

.tb-author-card-avatar {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 25px 0;
}

.tb-author-card-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
}

.tb-author-card-info {
    padding: 20px;
    text-align: center;
}

.tb-author-card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tb-author-card-name a {
    color: var(--text-dark);
}

.tb-author-card-name a:hover {
    color: #667eea;
}

.tb-author-card-badge {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tb-author-role {
    background: #667eea;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tb-author-posts {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.tb-author-card-bio {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-author-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tb-author-view-link {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.tb-author-view-link:hover {
    transform: translateX(5px);
    color: #764ba2;
}

/* ======================================== */
/* REGULAR PAGES */
/* ======================================== */
.tb-regular-page {
    padding: 40px 0 60px;
    background: #fff;
}

.tb-page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

/* Page Content */
.tb-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    overflow-x: hidden;
    max-width: 100%;
    word-wrap: break-word;
}

.tb-page-content h1 { font-size: 32px; margin: 40px 0 20px; }
.tb-page-content h2 { font-size: 28px; margin: 35px 0 15px; }
.tb-page-content h3 { font-size: 24px; margin: 30px 0 15px; }
.tb-page-content h4 { font-size: 20px; margin: 25px 0 10px; }
.tb-page-content h5 { font-size: 18px; margin: 20px 0 10px; }
.tb-page-content h6 { font-size: 16px; margin: 15px 0 10px; font-weight: 600; }

.tb-page-content p { margin-bottom: 20px; }

.tb-page-content a {
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
}

.tb-page-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

.tb-page-content ul,
.tb-page-content ol {
    margin: 0 0 20px 25px;
}

.tb-page-content li {
    margin-bottom: 8px;
}

.tb-page-content ul li { list-style-type: disc; }
.tb-page-content ol li { list-style-type: decimal; }

.tb-page-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    font-size: 18px;
    color: #555;
}

.tb-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.tb-page-content .alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
}

.tb-page-content .alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
}

.tb-page-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Page Links */
.tb-page-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 16px;
}

.tb-page-links a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background: #f8f9fa;
    color: var(--text-medium);
    border-radius: 4px;
    transition: var(--transition);
}

.tb-page-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ======================================== */
/* SINGLE POST STYLES */
/* ======================================== */
.tb-single-post {
    font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-light);
    padding: 10px 0;
    width: 100%;
    overflow-x: hidden;
}

/* Breadcrumbs */
.tb-breadcrumbs-wrapper {
    margin-bottom: 10px;
    width: 100%;
    contain: paint;
}

.tb-breadcrumbs {
    font-size: 12px;
    color: #666;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tb-breadcrumbs a {
    color: var(--primary-color);
}

.tb-breadcrumb-sep {
    margin: 0 5px;
    color: #999;
}

/* Main Layout Grid */
.tb-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    width: 100%;
}

/* Main Content Area */
.tb-post-main {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Post Categories */
.tb-post-categories {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    contain: paint;
}

.tb-category-badge {
    display: inline-block;
    color: #000;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 16px;
    text-decoration: none;
    background: #f0f0f0;
}

/* Post Title */
.tb-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-rendering: optimizeLegibility;
}

/* Post Meta */
.tb-post-meta {
    background: #f9f9f9;
    border-radius: 30px;
    padding: 2px 15px;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    contain: paint;
}

.tb-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.tb-meta-secondary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

/* Author Wrapper */
.tb-meta-author-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 3px 12px 3px 3px;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    flex-shrink: 1;
    min-width: 0;
}

.tb-author-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.tb-author-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-author-mini-default {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.tb-author-info-mini {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
}

.tb-meta-label {
    color: var(--text-lighter);
    font-size: 11px;
    flex-shrink: 0;
}

.tb-author-name-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Share Icons */
.tb-share-compact {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}

.tb-share-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 12px;
    transition: transform 0.2s ease !important;
}

.tb-share-icon:hover { transform: scale(1.1); }
.tb-share-fb { background: #4267B2; }
.tb-share-tw { background: #1DA1F2; }
.tb-share-li { background: #0077b5; }
.tb-share-wa { background: #25D366; }

/* Date & Reading Time */
.tb-meta-date-wrapper,
.tb-meta-reading-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    padding: 3px 10px;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    font-size: 12px;
    color: #555;
}

.tb-meta-date-wrapper i,
.tb-meta-reading-wrapper i {
    color: var(--primary-color);
    font-size: 11px;
}

/* Featured Image */
.tb-post-featured {
    margin: 15px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
}

.tb-featured-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    background: #f5f5f5;
    content-visibility: auto;
    contain-intrinsic-size: 1200px 630px;
}

/* ============================================
   POST CONTENT STYLES - FIXED (No Vertical Scroll, Responsive Embeds)
   ============================================ */

.tb-post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.tb-post-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.tb-post-content * {
    max-height: none !important;
    overflow-y: visible !important;
}

.tb-post-content p {
    margin-bottom: 15px;
    word-wrap: break-word;
}

.tb-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 10px;
}

.tb-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 18px 0 8px;
}

.tb-post-content a {
    color: #e74c3c !important;
    text-decoration: underline;
}

/* ============================================ */
/* RESPONSIVE EMBEDS (YouTube, Instagram, Twitter) */
/* ============================================ */

.tb-post-content iframe[src*="youtube"],
.tb-post-content iframe[src*="youtu.be"],
.wp-block-embed-youtube iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
}

.tb-post-content .instagram-media,
.wp-block-embed-instagram,
.wp-block-embed-instagram iframe,
.tb-post-content iframe[src*="instagram"] {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 550px !important;
    margin: 20px auto !important;
    display: block !important;
    border-radius: 12px !important;
}

.wp-block-embed-instagram .wp-block-embed__wrapper {
    width: 100% !important;
    overflow: visible !important;
}

.tb-post-content .twitter-tweet,
.wp-block-embed-twitter iframe,
.tb-post-content iframe[src*="twitter"] {
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
}

.tb-post-content .fb-post,
.tb-post-content .fb-video,
.wp-block-embed-facebook iframe,
.tb-post-content iframe[src*="facebook"] {
    max-width: 100% !important;
    width: 100% !important;
}

.tb-post-content .tiktok-embed,
.wp-block-embed-tiktok iframe,
.tb-post-content iframe[src*="tiktok"] {
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
}

.tb-post-content iframe,
.tb-post-content embed,
.tb-post-content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .tb-post-content .instagram-media,
    .wp-block-embed-instagram iframe {
        min-height: 500px !important;
    }
}

@media (max-width: 480px) {
    .tb-post-content .instagram-media,
    .wp-block-embed-instagram iframe {
        min-height: 450px !important;
    }
}

/* ============================================ */
/* IMAGES CAPTION STYLES */
/* ============================================ */

.tb-post-content .wp-caption,
.tb-page-content .wp-caption {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px 0;
    background: transparent;
    position: relative;
}

.tb-post-content .wp-caption-text,
.tb-post-content .wp-element-caption,
.tb-page-content .wp-caption-text,
.tb-page-content .wp-element-caption {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    border-radius: 0 0 8px 8px;
}

.tb-post-content .wp-caption.alignleft {
    float: left;
    margin-right: 20px;
    max-width: 50%;
}

.tb-post-content .wp-caption.alignright {
    float: right;
    margin-left: 20px;
    max-width: 50%;
}

.tb-post-content .wp-caption.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tb-post-content figure.wp-block-image,
.tb-page-content figure.wp-block-image {
    margin: 20px 0;
    max-width: 100%;
}

.tb-post-content figure.wp-block-image img {
    margin: 0;
}

.tb-post-content figcaption,
.tb-page-content figcaption {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.tb-featured-caption {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    margin-top: -5px;
}

@media (max-width: 768px) {
    .tb-post-content .wp-caption-text,
    .tb-post-content .wp-element-caption,
    .tb-post-content figcaption {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .tb-post-content .wp-caption.alignleft,
    .tb-post-content .wp-caption.alignright {
        float: none;
        max-width: 100%;
        margin: 15px 0;
    }
}

/* ======================================== */
/* FORCE OVERRIDE INLINE WIDTH STYLES */
/* ======================================== */

.tb-post-content figure[style*="width"],
.tb-page-content figure[style*="width"],
.tb-post-content .wp-caption[style*="width"],
.tb-page-content .wp-caption[style*="width"],
.tb-post-content img[style*="width"],
.tb-page-content img[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.tb-post-content img,
.tb-page-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block;
    margin: 2px 0;
    border-radius: 8px;
}

.tb-post-content figure,
.tb-page-content figure {
    max-width: 100% !important;
    width: auto !important;
    margin: 2px 0;
}

.tb-post-content .wp-caption,
.tb-page-content .wp-caption {
    max-width: 100% !important;
    width: auto !important;
}

.tb-post-content .wp-caption img,
.tb-page-content .wp-caption img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .tb-post-content img,
    .tb-page-content img {
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .tb-post-content img,
    .tb-page-content img {
        margin: 10px 0;
    }
}

/* Interlinks */
.tb-interlinks-box {
    background: #f0f7ff;
    border: 1px solid #d4e3fd;
    border-radius: var(--border-radius);
    padding: 12px;
    margin: 15px 0;
}

.tb-interlinks-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0066cc;
}

.tb-interlinks-list {
    list-style: none;
    margin: 0;
}

.tb-interlinks-list li {
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
    font-size: 14px;
}

.tb-interlinks-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Google Preferred Compact */
.tb-preferred-compact {
    background: #f0f7ff;
    border: 1px solid #cfe2ff;
    border-radius: 30px;
    padding: 10px 15px;
    margin: 20px 0;
}

.tb-preferred-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.tb-preferred-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #0a58ca;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tb-preferred-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: #fff;
    padding: 4px 12px;
    border-radius: 30px;
}

.tb-preferred-link span {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tb-preferred-trust {
    color: #28a745;
    font-size: 12px;
    background: #d4edda;
    padding: 2px 10px;
    border-radius: 30px;
    white-space: nowrap;
}

/* Bottom Share */
.tb-share-compact-bottom {
    margin: 20px 0;
    text-align: center;
}

.tb-share-buttons-compact {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tb-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: transform 0.2s ease !important;
}

.tb-share-btn:hover { transform: scale(1.1); }

/* Author Compact */
.tb-author-compact {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
    align-items: center;
    contain: paint;
}

.tb-author-avatar-sm {
    flex: 0 0 48px;
}

.tb-author-img-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.tb-author-img-default-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.tb-author-info-compact {
    flex: 1;
    min-width: 0;
}

.tb-author-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
    flex-wrap: wrap;
    gap: 5px;
}

.tb-author-name-sm {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.tb-author-name-sm a {
    color: var(--text-dark);
}

.tb-author-name-sm a:hover {
    color: var(--primary-color);
}

.tb-author-bio-sm {
    color: #555;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 5px;
}

/* Popular Posts */
.tb-popular-compact {
    margin: 20px 0;
}

.tb-popular-list-compact {
    list-style: none;
    margin: 0;
}

.tb-popular-list-compact li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tb-popular-number {
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.tb-popular-link {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
}

.tb-popular-link:hover {
    color: var(--primary-color);
}

/* Related Posts */
.tb-related-compact {
    margin: 20px 0;
}

.tb-related-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tb-related-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
}

.tb-related-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
}

.tb-related-link {
    display: flex;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
}

.tb-related-image-sm {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.tb-related-image-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-related-content {
    flex: 1;
    min-width: 0;
}

.tb-related-title-sm {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.4;
    word-break: break-word;
}

.tb-related-title-sm:hover {
    color: var(--primary-color);
}

/* Navigation Compact */
.tb-nav-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.tb-nav-prev,
.tb-nav-next {
    flex: 1;
    min-width: 0;
}

.tb-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 5px 10px;
    background: #f9f9f9;
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-medium);
    transition: background 0.2s ease;
}

.tb-nav-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.tb-nav-link i {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.tb-nav-link:hover i {
    background: #fff;
    color: var(--primary-color);
}

.tb-nav-link span {
    word-break: break-word;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.tb-home-icon {
    width: 34px;
    height: 34px;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease !important;
}

.tb-home-icon:hover {
    transform: rotate(360deg);
    background: var(--primary-dark);
}

/* Comments */
.tb-comments-compact {
    margin: 20px 0;
}

.tb-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.tb-comment-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.tb-comment-form-compact textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 8px;
    font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    resize: vertical;
}

.tb-comment-form-compact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tb-comment-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tb-comment-submit:hover {
    background: var(--primary-dark);
}

/* ======================================== */
/* SIDEBAR */
/* ======================================== */
.tb-single-sidebar {
    width: 100%;
}

.tb-sidebar-widget {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

.tb-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-dark);
}

.tb-latest-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tb-latest-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.tb-latest-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tb-latest-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: flex-start;
}

.tb-latest-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.tb-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.tb-latest-thumb.tb-no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-latest-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.tb-latest-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.tb-latest-link:hover .tb-latest-title {
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .tb-single-sidebar {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .tb-single-sidebar {
        display: none !important;
    }
}

/* ======================================== */
/* FOOTER */
/* ======================================== */
.tb-site-footer {
    text-align: center;
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 2px solid var(--primary-color);
    transform: translateZ(0);
    background: #000000 !important;
    color: #ffffff !important;
}

.tb-footer-nav {
    margin-bottom: 15px;
}

.tb-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.tb-footer-menu a {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tb-footer-menu a:hover {
    color: var(--primary-color) !important;
}

.tb-footer-copyright {
    color: #ffffff !important;
    font-size: 13px;
    padding: 10px 0;
    opacity: 0.8;
}

/* ======================================== */
/* HEADER ACTIONS - SEARCH & MENU ICONS */
/* ======================================== */

.tb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
}

.tb-logo {
    flex-shrink: 0;
}

.tb-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.tb-nav-desktop {
    flex: 1;
}

.tb-nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.tb-nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.tb-nav-menu a:hover {
    color: #e74c3c;
}

.tb-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tb-search-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: #333;
}

.tb-search-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tb-search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    display: block;
}

.tb-mobile-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    transition: background-color 0.2s;
    z-index: 10001;
}

.tb-mobile-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tb-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.2s ease;
}

@media (max-width: 992px) {
    .tb-mobile-toggle {
        display: flex;
    }
}

@media (max-width: 576px) {
    .tb-search-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .tb-mobile-toggle span {
        width: 18px;
    }
}

/* ======================================== */
/* MOBILE MENU OVERLAY - COMPLETE FIXED */
/* ======================================== */

.tb-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tb-mobile-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.tb-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: #fff;
    z-index: 100000;
    transition: right 0.3s ease-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.tb-mobile-overlay.active .tb-mobile-menu {
    right: 0 !important;
}

.tb-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tb-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tb-mobile-close {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    color: #666;
    line-height: 1;
    transition: color 0.2s;
}

.tb-mobile-close:hover {
    color: #e74c3c;
}

.tb-mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tb-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.tb-mobile-nav li:last-child {
    border-bottom: none;
}

.tb-mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tb-mobile-nav a:hover {
    color: #e74c3c;
}

.tb-mobile-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 15px;
    display: none;
}

.tb-mobile-nav .menu-item-has-children.tb-dropdown-open > .sub-menu {
    display: block;
}

.tb-mobile-nav .sub-menu a {
    font-weight: normal;
    font-size: 14px;
    padding: 10px 0;
}

.tb-mobile-nav .menu-item-has-children > a {
    position: relative;
    padding-right: 30px;
}

.tb-mobile-nav .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.tb-mobile-nav .menu-item-has-children.tb-dropdown-open > a::after {
    transform: translateY(-50%) rotate(180deg);
}

body.tb-mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

body.tb-mobile-menu-open .tb-mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

body.tb-mobile-menu-open .tb-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

body.tb-mobile-menu-open .tb-mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ======================================== */
/* SEARCH OVERLAY - FIXED */
/* ======================================== */

.tb-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tb-search-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.tb-search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.tb-search-container form {
    display: flex;
    gap: 10px;
}

.tb-search-container input {
    flex: 1;
    height: 60px;
    padding: 0 20px;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    outline: none;
    background: #fff;
}

.tb-search-container button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-search-container button:hover {
    transform: scale(1.05);
}

.tb-search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.tb-search-close:hover {
    color: #e74c3c;
}

/* ======================================== */
/* SEARCH PAGE */
/* ======================================== */
.tb-search-header {
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
}

.tb-search-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tb-search-title span {
    color: var(--primary-color);
}

.tb-search-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.tb-search-form-wrapper form {
    display: flex;
    gap: 10px;
}

.tb-search-form-wrapper input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: border-color 0.3s ease;
}

.tb-search-form-wrapper input:focus {
    border-color: var(--primary-color);
}

.tb-search-form-wrapper button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tb-search-form-wrapper button:hover {
    transform: scale(1.1);
}

.tb-search-results {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.tb-search-card {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tb-search-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
}

.tb-search-card-img {
    flex: 0 0 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.tb-search-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    aspect-ratio: 4/3;
}

.tb-search-card:hover .tb-search-card-img img {
    transform: scale(1.05);
}

.tb-search-card-img.tb-no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-search-card-content {
    flex: 1;
    padding: 20px 20px 20px 0;
}

.tb-search-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tb-search-card-title a {
    color: var(--text-dark);
}

.tb-search-card-title a:hover {
    color: var(--primary-color);
}

.tb-search-card-meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: #888;
}

.tb-post-type {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.tb-search-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ======================================== */
/* 404 PAGE */
/* ======================================== */
.tb-error-page {
    padding: 60px 0;
    min-height: 60vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tb-error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.tb-error-icon {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: 5px 5px 0 rgba(231,76,60,0.2);
    margin-bottom: 20px;
}

.tb-error-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.tb-error-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tb-error-search form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 30px;
}

.tb-error-search input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
}

.tb-error-search input:focus {
    border-color: var(--primary-color);
}

.tb-error-search button {
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tb-error-search button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.tb-error-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tb-error-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.tb-btn-home {
    background: var(--primary-color);
    color: #fff;
}

.tb-btn-home:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.tb-btn-contact {
    background: #f8f9fa;
    color: var(--text-medium);
    border: 2px solid #ddd;
}

.tb-btn-contact:hover {
    background: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tb-error-suggestions {
    max-width: 1200px;
    margin: 0 auto;
}

.tb-suggestion-section {
    margin-bottom: 50px;
}

.tb-suggestion-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.tb-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tb-suggestion-card {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tb-suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
}

.tb-suggestion-image {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.tb-suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.tb-suggestion-content {
    flex: 1;
}

.tb-suggestion-post-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.tb-suggestion-post-title a {
    color: var(--text-medium);
}

.tb-suggestion-post-title a:hover {
    color: var(--primary-color);
}

.tb-suggestion-date {
    font-size: 12px;
    color: var(--text-lighter);
}

.tb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.tb-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #fff;
    border-radius: 8px;
    color: var(--text-medium);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tb-category-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    will-change: transform, background;
}

.tb-category-item:hover .tb-category-count {
    background: #fff;
    color: var(--primary-color);
}

.tb-category-name {
    font-weight: 500;
}

.tb-category-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 12px;
    transition: var(--transition);
}

.tb-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.tb-help-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #fff;
    border-radius: 12px;
    color: var(--text-medium);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tb-help-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    will-change: transform, background;
}

.tb-help-item i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Table Responsive */
.tb-post-content table,
.tb-page-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
    border-collapse: collapse;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tb-post-content table td,
.tb-post-content table th,
.tb-page-content table td,
.tb-page-content table th {
    white-space: nowrap;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
}

.tb-post-content table th,
.tb-page-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ======================================== */
/* RESPONSIVE DESIGN */
/* ======================================== */

@media (max-width: 1200px) {
    .tb-container {
        max-width: 960px;
    }
    .tb-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tb-container {
        max-width: 720px;
    }
    .tb-row-1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tb-grid-3col,
    .tb-posts-grid,
    .tb-posts-grid-full,
    .tb-grid-4,
    .tb-authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .tb-post-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .tb-nav-desktop {
        display: none;
    }
    .tb-mobile-toggle {
        display: flex;
    }
    .tb-archive-title,
    .tb-cat-title,
    .tb-tag-title {
        font-size: 30px;
    }
    .tb-search-card {
        flex-direction: column;
    }
    .tb-search-card-img {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }
    .tb-search-card-content {
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 768px) {
    .tb-container {
        padding: 0 15px;
    }
    .tb-grid-3col,
    .tb-posts-grid,
    .tb-posts-grid-full,
    .tb-grid-4,
    .tb-authors-grid,
    .tb-related-grid-compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tb-row-2, .tb-row-3 {
        padding: 15px;
    }
    .tb-section {
        padding: 15px;
    }
    .tb-stack-image {
        height: 220px;
    }
    .tb-horizontal-image {
        flex: 0 0 100px;
        height: 70px;
    }
    .tb-section-header {
        flex-wrap: wrap;
    }
    .tb-archive-header,
    .tb-cat-header,
    .tb-tag-header {
        padding: 40px 0;
    }
    .tb-archive-title,
    .tb-cat-title,
    .tb-tag-title {
        font-size: 24px;
    }
    .tb-page-title {
        font-size: 28px;
    }
    .tb-author-box {
        flex-direction: column;
        text-align: center;
    }
    .tb-authors-title {
        font-size: 32px;
    }
    .tb-post-title {
        font-size: 24px;
    }
    .tb-meta-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .tb-meta-author-wrapper {
        max-width: 100%;
        flex: 1;
        min-width: 0;
    }
    .tb-author-name-link {
        max-width: 120px;
    }
    .tb-update-badge,
    .tb-published-badge {
        margin-left: 0;
        margin-right: auto;
        white-space: normal;
        font-size: 10px;
        padding: 2px 8px;
    }
    .tb-meta-secondary {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    .tb-preferred-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .tb-preferred-badge,
    .tb-preferred-link,
    .tb-preferred-trust {
        width: 100%;
        justify-content: center;
    }
    .tb-author-compact {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .tb-author-name-row {
        justify-content: center;
    }
    .tb-nav-compact {
        flex-direction: column;
        gap: 10px;
    }
    .tb-nav-prev,
    .tb-nav-next {
        width: 100%;
    }
    .tb-nav-home {
        order: -1;
        margin-bottom: 5px;
    }
    .tb-error-content {
        padding: 30px 20px;
    }
    .tb-error-icon {
        font-size: 80px;
    }
    .tb-error-title {
        font-size: 24px;
    }
    .tb-error-search form {
        flex-direction: column;
    }
    .tb-error-links {
        flex-direction: column;
    }
    .tb-post-content table {
        font-size: 14px;
    }
    .tb-post-content table td,
    .tb-post-content table th {
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    .tb-container {
        padding: 0 12px;
    }
    .tb-col {
        padding: 15px;
    }
    .tb-horizontal-card {
        padding: 10px 0;
        gap: 12px;
        min-height: 85px;
    }
    .tb-horizontal-image {
        flex: 0 0 90px;
        height: 65px;
    }
    .tb-horizontal-title {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
    .tb-stack-image {
        height: 200px;
    }
    .tb-stack-title {
        font-size: 18px;
    }
    .tb-section {
        padding: 15px;
    }
    .tb-cat-image {
        height: 180px;
    }
    .tb-archive-header,
    .tb-cat-header,
    .tb-tag-header {
        padding: 30px 0;
    }
    .tb-archive-title,
    .tb-cat-title,
    .tb-tag-title {
        font-size: 22px;
    }
    .tb-page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .tb-page-content {
        font-size: 15px;
    }
    .tb-page-content h1 { font-size: 26px; }
    .tb-page-content h2 { font-size: 22px; }
    .tb-page-content h3 { font-size: 20px; }
    .tb-authors-title {
        font-size: 28px;
    }
    .tb-post-title {
        font-size: 22px;
    }
    .tb-meta-author-wrapper {
        padding: 2px 8px 2px 2px;
    }
    .tb-author-name-link {
        font-size: 11px;
        max-width: 100px;
    }
    .tb-share-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .tb-meta-date-wrapper,
    .tb-meta-reading-wrapper {
        font-size: 11px;
        padding: 2px 6px;
    }
    .tb-related-image-sm {
        width: 60px;
        height: 60px;
    }
    .tb-related-title-sm {
        font-size: 13px;
    }
    .tb-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .tb-container {
        padding: 0 10px;
    }
    .tb-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .tb-view-all {
        margin-left: 0;
        margin-top: 8px;
    }
    .tb-horizontal-image {
        flex: 0 0 80px;
        height: 60px;
    }
    .tb-horizontal-title {
        font-size: 14px;
    }
    .tb-stack-image {
        height: 180px;
    }
    .tb-stack-title {
        font-size: 16px;
    }
    .tb-cat-image {
        height: 160px;
    }
    .tb-cat-title-full {
        font-size: 15px;
    }
    .tb-page-title {
        font-size: 22px;
    }
    .tb-authors-title {
        font-size: 24px;
    }
    .tb-post-title {
        font-size: 20px;
    }
    .tb-author-name-link {
        max-width: 80px;
        font-size: 10px;
    }
    .tb-share-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    .tb-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
    .tb-pagination .page-numbers.prev,
    .tb-pagination .page-numbers.next {
        padding: 0 10px;
    }
    .tb-suggestion-grid,
    .tb-category-grid,
    .tb-help-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================== */
/* UNIFIED ARCHIVE STYLES */
/* ======================================== */
.tb-archive-page-full {
    width: 100%;
}

.tb-archive-header-centered {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.tb-archive-header-centered[data-type="tag"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.tb-archive-header-centered[data-type="category"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff3e0 100%);
}

.tb-archive-header-centered[data-type="author"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
}

.tb-archive-header-centered[data-type="date"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #f3e5f5 100%);
}

.tb-archive-header-centered[data-type="search"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e0e0e0 100%);
}

.tb-container-narrow {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.tb-archive-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.tb-archive-breadcrumb a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.tb-archive-breadcrumb a:hover {
    text-decoration: underline;
}

.tb-archive-breadcrumb .tb-current {
    color: #999;
    font-weight: 500;
}

.tb-archive-breadcrumb .tb-separator {
    margin: 0 8px;
    color: #ccc;
}

.tb-archive-title {
    font-size: 3rem;
    font-weight: 900;
    color: #111;
    margin: 20px 0;
    text-transform: capitalize;
}

.tb-archive-title span {
    color: #e74c3c;
}

.tb-archive-stats {
    margin-bottom: 20px;
    text-align: left;
}

.tb-count-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(211,47,47,0.2);
}

.tb-archive-expert-intro {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 35px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tb-live-indicator {
    font-size: 12px;
    font-weight: 900;
    color: #e74c3c;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 1px;
    background: rgba(211,47,47,0.1);
    padding: 6px 18px;
    border-radius: 40px;
    border: 1px solid rgba(211,47,47,0.2);
}

.tb-pulse {
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

.tb-description-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.tb-description-content a {
    color: #e74c3c;
    text-decoration: underline;
    font-weight: 700;
}

.tb-description-content a:hover {
    color: #b71c1c;
}

.tb-description-content strong {
    color: #000;
    font-weight: 800;
}

.tb-archive-meta-info {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.tb-archive-meta-info a {
    color: #e74c3c;
    text-decoration: underline;
    font-weight: 700;
}

.tb-archive-meta-info a:hover {
    color: #b71c1c;
}

.tb-archive-meta-info ul {
    margin: 15px 0 20px 25px;
    list-style-type: disc;
}

.tb-archive-meta-info li {
    margin-bottom: 8px;
}

.tb-source-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    font-size: 14px;
}

.tb-divider {
    margin: 0 10px;
    color: #ddd;
}

/* ===== RESPONSIVE ARCHIVE POSTS GRID ===== */

.tb-archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

@media screen and (max-width: 992px) {
    .tb-archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin: 30px 0;
    }
}

@media screen and (max-width: 768px) {
    .tb-archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 25px 0;
    }
    .tb-archive-card-content {
        padding: 15px;
    }
    .tb-archive-card-title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    .tb-archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 0;
    }
    .tb-archive-card-content {
        padding: 12px;
    }
    .tb-archive-card-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .tb-archive-card-meta {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .tb-archive-card-excerpt {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media screen and (max-width: 480px) {
    .tb-archive-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    .tb-archive-card-content {
        padding: 15px;
    }
    .tb-archive-card-title {
        font-size: 1.2rem;
    }
    .tb-archive-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }
}

@media screen and (max-width: 360px) {
    .tb-archive-posts-grid {
        gap: 15px;
    }
    .tb-archive-card-content {
        padding: 12px;
    }
    .tb-archive-card-title {
        font-size: 1.1rem;
    }
    .tb-archive-card-meta {
        font-size: 10px;
    }
    .tb-archive-card-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
}

.tb-archive-post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tb-archive-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.tb-archive-card-img {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f5f5f5;
}

.tb-archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tb-archive-post-card:hover .tb-archive-card-img img {
    transform: scale(1.05);
}

.tb-archive-card-img.tb-no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.tb-archive-card-img.tb-no-image .tb-placeholder {
    font-size: 40px;
    opacity: 0.5;
}

.tb-archive-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tb-archive-card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 700;
}

.tb-archive-card-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tb-archive-card-title a:hover {
    color: #e74c3c;
}

.tb-archive-card-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tb-archive-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    flex: 1;
}

/* ===== RESPONSIVE PAGINATION ===== */
.tb-archive-pagination {
    margin: 60px 0 50px;
    text-align: center;
    width: 100%;
    clear: both;
}

.tb-archive-pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
}

.tb-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .tb-archive-pagination {
        margin: 40px 0 30px;
    }
    .tb-archive-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .tb-archive-pagination {
        margin: 30px 0 25px;
    }
    .tb-archive-pagination .nav-links {
        gap: 5px;
    }
    .tb-archive-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        border-radius: 6px;
    }
    .tb-archive-pagination .page-numbers.prev,
    .tb-archive-pagination .page-numbers.next {
        padding: 0 10px;
        min-width: auto;
    }
}

@media screen and (max-width: 360px) {
    .tb-archive-pagination .page-numbers:not(.prev):not(.next):not(.current) {
        display: none;
    }
    .tb-archive-pagination .page-numbers.prev,
    .tb-archive-pagination .page-numbers.next,
    .tb-archive-pagination .page-numbers.current {
        display: inline-flex;
    }
    .tb-archive-pagination .nav-links {
        gap: 8px;
    }
}

.tb-archive-pagination .page-numbers:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(211,47,47,0.3);
}

.tb-archive-pagination .page-numbers.current {
    background: #e74c3c;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(211,47,47,0.3);
}

.tb-archive-pagination .page-numbers.prev,
.tb-archive-pagination .page-numbers.next {
    padding: 0 16px;
}

/* ======================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* ======================================== */

.tb-post-card,
.tb-cat-card,
.tb-horizontal-card,
.tb-author-card,
.tb-search-card,
.tb-suggestion-card,
.tb-related-item,
.tb-sidebar-widget,
.tb-popular-compact,
.tb-related-compact,
.tb-author-compact,
.tb-posts-grid > *,
.tb-grid-3col > *,
.tb-grid-4 > * {
    content-visibility: auto;
    contain-intrinsic-size: 200px 150px;
}

.tb-featured-image {
    content-visibility: auto;
    contain-intrinsic-size: 1200px 630px;
    background: #f5f5f5;
}

.tb-scroll-items,
.tb-header,
.tb-footer,
.tb-scroll-menu,
.tb-mobile-menu,
.tb-search-overlay {
    transform: translateZ(0);
    will-change: transform;
}

.tb-post-card:hover,
.tb-cat-card:hover,
.tb-horizontal-card:hover,
.tb-author-card:hover,
.tb-search-card:hover,
.tb-related-item:hover,
.tb-category-item:hover,
.tb-help-item:hover,
.tb-scroll-item:hover {
    will-change: transform, box-shadow, background;
}

img {
    transition: opacity 0.2s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

img[loading="lazy"] {
    animation: fadeIn 0.3s ease forwards;
}

.tb-post-title,
.tb-card-title,
.tb-horizontal-title,
.tb-section-title,
.tb-widget-title,
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tb-post-meta,
.tb-author-compact,
.tb-share-compact,
.tb-breadcrumbs-wrapper,
.tb-post-categories {
    contain: paint;
}

/* ======================================== */
/* PREFERRED UNIVERSAL STYLES */
/* ======================================== */
.tb-preferred-universal {
    text-align: center;
    margin: 30px auto 40px;
    padding: 15px;
    max-width: 750px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    border-radius: 60px;
    border: 1px solid #1a73e8;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
}

.tb-preferred-universal a {
    background: #1a73e8;
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #0d5bba;
}

.tb-preferred-universal a:hover {
    background: #0d5bba;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.4);
}

.tb-preferred-universal .star-icon {
    font-size: 20px;
    animation: starTwinkle 2s infinite;
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.tb-preferred-universal .small-text {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: white;
}

@media (max-width: 768px) {
    .tb-preferred-universal a {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* ======================================== */
/* ARTICLE HIGHLIGHTS */
/* ======================================== */
.tb-article-highlights {
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e7 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 30px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.tb-highlights-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tb-highlights-header i {
    color: var(--primary-color);
    font-size: 20px;
}

.tb-highlights-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.tb-highlights-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.tb-highlights-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.tb-highlights-list li {
    margin: 10px 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tb-highlights-list li i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tb-article-highlights {
        padding: 15px;
    }
    .tb-highlights-list li {
        font-size: 14px;
    }
    .tb-highlights-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tb-article-highlights {
        padding: 12px;
    }
    .tb-highlights-list {
        padding-left: 0;
    }
    .tb-highlights-list li {
        font-size: 13px;
    }
}
/* ============================================ */
/* AUTHOR VERIFICATION PROFILE - ELITE DESIGN
/* E-E-A-T Visual Identity for Google 2026
/* ============================================ */

/* Main Container */
.tb-author-verification-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid rgba(231, 76, 60, 0.15);
    padding: 40px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Element */
.tb-author-verification-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tb-author-verification-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Verification Box */
.tb-author-verification-box {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tb-author-verification-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Avatar Section */
.tb-author-verification-avatar {
    flex-shrink: 0;
    position: relative;
}

.tb-author-verification-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tb-author-verification-box:hover .tb-author-verification-img {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.2);
}

/* Verification Badge */
.tb-verification-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    border: 2px solid #fff;
}

.tb-verification-badge i {
    font-size: 10px;
}

/* Author Info Section */
.tb-author-verification-info {
    flex: 1;
}

/* Author Name */
.tb-author-verification-name {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Job Title */
.tb-author-verification-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 15px;
}

.tb-author-verification-title i {
    font-size: 12px;
}

/* Stats Section */
.tb-author-verification-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tb-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    background: #f8f9fa;
    padding: 6px 14px;
    border-radius: 30px;
}

.tb-stat-item i {
    color: #e74c3c;
    font-size: 13px;
}

.tb-stat-item strong {
    color: #1a1a2e;
    font-weight: 700;
}

.tb-stat-divider {
    color: #ddd;
    font-size: 14px;
}

/* Author Bio */
.tb-author-verification-bio {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    border-left: 4px solid #e74c3c;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.tb-author-verification-bio i {
    color: #e74c3c;
    font-size: 18px;
    margin-right: 10px;
    opacity: 0.7;
}

/* Social Profiles */
.tb-author-verification-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tb-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #f0f0f0;
    color: #555;
    font-size: 16px;
    text-decoration: none;
}

.tb-social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
}

.tb-social-fb:hover { background: #4267B2; color: #fff; }
.tb-social-tw:hover { background: #1DA1F2; color: #fff; }
.tb-social-ig:hover { background: linear-gradient(135deg, #833AB4, #E4405F, #FD1D1D); color: #fff; }
.tb-social-li:hover { background: #0077b5; color: #fff; }
.tb-social-web:hover { background: #e74c3c; color: #fff; }
.tb-social-email:hover { background: #28a745; color: #fff; }

/* Expertise Tags */
.tb-author-expertise-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tb-expertise-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tb-expertise-tag {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tb-expertise-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Author Articles Header */
.tb-author-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
    flex-wrap: wrap;
    gap: 15px;
}

.tb-author-articles-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-author-articles-title i {
    color: #e74c3c;
    font-size: 22px;
}

.tb-author-articles-count {
    font-size: 14px;
    color: #888;
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 30px;
}

/* Author Archive Footer */
.tb-author-archive-footer {
    text-align: center;
    margin: 50px 0 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.tb-back-to-authors {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    border: 2px solid #e74c3c;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tb-back-to-authors:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================ */
/* RESPONSIVE DESIGN FOR AUTHOR PROFILE */
/* ============================================ */

@media (max-width: 768px) {
    .tb-author-verification-header {
        padding: 25px 0;
    }
    
    .tb-author-verification-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }
    
    .tb-author-verification-name {
        font-size: 26px;
    }
    
    .tb-author-verification-stats {
        justify-content: center;
    }
    
    .tb-author-verification-social {
        justify-content: center;
    }
    
    .tb-author-expertise-tags {
        justify-content: center;
    }
    
    .tb-author-verification-bio {
        text-align: left;
    }
    
    .tb-author-articles-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tb-author-articles-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .tb-author-verification-box {
        padding: 20px;
    }
    
    .tb-author-verification-name {
        font-size: 22px;
    }
    
    .tb-author-verification-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .tb-stat-divider {
        display: none;
    }
    
    .tb-author-verification-bio {
        padding: 15px;
        font-size: 14px;
    }
    
    .tb-social-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .tb-author-articles-title {
        font-size: 18px;
    }
}
/* ============================================ */
/* AUTHORS DIRECTORY - E-E-A-T HUB DESIGN
/* Central authority showcase for Times Bull
/* Version: 3.3 - Added aspect-ratio for CLS prevention
/* ============================================ */

/* Page Header */
.tb-authors-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tb-authors-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.tb-authors-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.tb-authors-badge {
    display: inline-block;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.tb-authors-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.tb-authors-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tb-authors-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tb-stat-box {
    text-align: center;
}

.tb-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #e74c3c;
}

.tb-stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.tb-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Author Sections */
.tb-author-section {
    margin-bottom: 60px;
}

.tb-section-header {
    margin-bottom: 30px;
    text-align: center;
}

.tb-section-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #e74c3c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tb-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tb-section-title i {
    color: #e74c3c;
    font-size: 24px;
}

.tb-section-description {
    font-size: 15px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Authors Grid */
.tb-authors-grid {
    display: grid;
    gap: 30px;
}

.tb-grid-senior {
    grid-template-columns: repeat(3, 1fr);
}

.tb-grid-staff {
    grid-template-columns: repeat(4, 1fr);
}

.tb-grid-contributors {
    grid-template-columns: repeat(5, 1fr);
}

/* Author Cards */
.tb-author-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
}

.tb-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15);
    border-color: rgba(231, 76, 60, 0.2);
}

.tb-author-card-inner {
    padding: 25px 20px;
    text-align: center;
}

/* Senior Card Specific */
.tb-author-card-senior {
    border-top: 4px solid #e74c3c;
}

.tb-author-card-senior .tb-author-card-name {
    font-size: 20px;
}

/* Staff Card Specific */
.tb-author-card-staff .tb-author-card-inner {
    padding: 20px;
}

/* Contributor Card Specific */
.tb-author-card-contributor .tb-author-card-inner {
    padding: 18px;
}

.tb-author-card-contributor .tb-author-card-name {
    font-size: 16px;
}

/* Avatar - CRITICAL CLS FIX */
.tb-author-card-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

/* FIX: Force aspect-ratio to prevent layout shift */
.tb-author-avatar-img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    display: block;
    /* CRITICAL: Prevents CLS during image load */
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

/* Size-specific dimensions with aspect-ratio preserved */
.tb-author-card-senior .tb-author-avatar-img {
    width: 120px;
    max-width: 120px;
}

.tb-author-card-staff .tb-author-avatar-img {
    width: 100px;
    max-width: 100px;
}

.tb-author-card-contributor .tb-author-avatar-img {
    width: 80px;
    max-width: 80px;
}

/* Verified Badge */
.tb-author-verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Author Name */
.tb-author-card-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.tb-author-card-name a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.tb-author-card-name a:hover {
    color: #e74c3c;
}

/* Job Title */
.tb-author-card-title {
    font-size: 12px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.tb-author-card-title i {
    font-size: 10px;
    margin-right: 4px;
}

/* Stats */
.tb-author-card-stats {
    margin-bottom: 12px;
}

.tb-stat {
    font-size: 12px;
    color: #888;
}

.tb-stat i {
    color: #e74c3c;
    margin-right: 4px;
}

/* Bio */
.tb-author-card-bio {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
}

/* Social Icons */
.tb-author-card-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tb-author-card-social .tb-social-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
}

.tb-author-card-social .tb-social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
}

.tb-author-card-social .tb-social-fb:hover { background: #4267B2; color: #fff; }
.tb-author-card-social .tb-social-tw:hover { background: #1DA1F2; color: #fff; }
.tb-author-card-social .tb-social-li:hover { background: #0077b5; color: #fff; }

/* Card Link */
.tb-author-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    text-decoration: none;
    transition: gap 0.2s;
}

.tb-author-card-link:hover {
    gap: 8px;
    text-decoration: underline;
}

.tb-link-sm {
    font-size: 12px;
}

/* E-E-A-T Trust Banner */
.tb-e-e-a-t-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 60px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-left: 4px solid #e74c3c;
}

.tb-e-e-a-t-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 2;
}

.tb-e-e-a-t-content i {
    font-size: 40px;
    color: #e74c3c;
}

.tb-e-e-a-t-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1a1a2e;
}

.tb-e-e-a-t-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.tb-e-e-a-t-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tb-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tb-trust-badge i {
    color: #e74c3c;
}

/* No Authors Found */
.tb-no-authors {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    margin: 40px 0;
}

.tb-no-authors i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 15px;
}

.tb-no-authors h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.tb-no-authors p {
    color: #888;
    margin-bottom: 20px;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 1200px) {
    .tb-grid-senior {
        grid-template-columns: repeat(2, 1fr);
    }
    .tb-grid-staff {
        grid-template-columns: repeat(3, 1fr);
    }
    .tb-grid-contributors {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .tb-authors-title {
        font-size: 36px;
    }
    .tb-grid-staff {
        grid-template-columns: repeat(2, 1fr);
    }
    .tb-grid-contributors {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tb-authors-header {
        padding: 40px 0;
    }
    .tb-authors-title {
        font-size: 28px;
    }
    .tb-authors-subtitle {
        font-size: 16px;
    }
    .tb-authors-stats {
        gap: 15px;
    }
    .tb-stat-number {
        font-size: 24px;
    }
    .tb-section-title {
        font-size: 24px;
    }
    .tb-grid-senior,
    .tb-grid-staff,
    .tb-grid-contributors {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tb-e-e-a-t-banner {
        flex-direction: column;
        text-align: center;
    }
    .tb-e-e-a-t-content {
        flex-direction: column;
        text-align: center;
    }
    .tb-e-e-a-t-badges {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .tb-grid-senior,
    .tb-grid-staff,
    .tb-grid-contributors {
        grid-template-columns: 1fr;
    }
    .tb-authors-stats {
        flex-direction: column;
        gap: 10px;
    }
    .tb-stat-divider {
        display: none;
    }
    .tb-author-card-senior .tb-author-avatar-img {
        width: 100px;
        max-width: 100px;
    }
    .tb-author-card-staff .tb-author-avatar-img {
        width: 80px;
        max-width: 80px;
    }
    .tb-author-card-contributor .tb-author-avatar-img {
        width: 70px;
        max-width: 70px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .tb-author-card,
    .tb-author-card-social .tb-social-icon,
    .tb-author-card-link {
        transition: none;
    }
    
    .tb-author-card:hover {
        transform: none;
    }
    
    .tb-author-card-social .tb-social-icon:hover {
        transform: none;
    }
}
/* ============================================ */
/* SIDEBAR - HIGH VELOCITY V2.0
/* Optimized for Core Web Vitals
/* ============================================ */

/* Main Sidebar Container */
.tb-single-sidebar {
    width: 100%;
    position: relative;
}

/* Sticky Sidebar for Desktop (GPU Accelerated) */
@media (min-width: 769px) {
    .tb-single-sidebar {
        position: sticky;
        top: 20px;
        align-self: flex-start;
        /* GPU Layer Promotion - prevents paint stuttering */
        transform: translateZ(0);
        will-change: transform;
        /* Containment for performance */
        contain: layout style paint;
    }
}

/* Sidebar Wrapper - Content Visibility */
.tb-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Content visibility for off-screen widgets */
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

/* Individual Widgets */
.tb-sidebar-widget {
    background: #fff;
    border-radius: var(--border-radius, 8px);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    /* Performance optimization */
    contain: content;
    transition: box-shadow 0.2s ease;
}

.tb-sidebar-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Widget Titles */
.tb-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid var(--primary-color, #e74c3c);
    color: var(--text-dark, #222);
    position: relative;
}

.tb-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color, #e74c3c);
}

/* Latest Posts Widget */
.tb-latest-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tb-latest-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    transition: transform 0.2s ease;
}

.tb-latest-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tb-latest-item:hover {
    transform: translateX(3px);
}

.tb-latest-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: flex-start;
}

.tb-latest-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    /* CLS Prevention */
    aspect-ratio: 1 / 1;
}

.tb-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tb-latest-content {
    flex: 1;
    min-width: 0;
}

.tb-latest-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: var(--text-dark, #222);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-latest-link:hover .tb-latest-title {
    color: var(--primary-color, #e74c3c);
}

/* Popular Posts Widget */
.tb-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-popular-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    counter-increment: popular-counter;
}

.tb-popular-list li:last-child {
    border-bottom: none;
}

.tb-popular-list li::before {
    content: counter(popular-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color, #e74c3c);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.tb-popular-list {
    counter-reset: popular-counter;
}

.tb-popular-link {
    color: var(--text-medium, #333);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    flex: 1;
}

.tb-popular-link:hover {
    color: var(--primary-color, #e74c3c);
}

/* Category Widget */
.tb-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-category-list li {
    margin-bottom: 8px;
}

.tb-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-medium, #333);
    font-size: 14px;
    transition: all 0.2s ease;
}

.tb-category-list a:hover {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    transform: translateX(3px);
}

.tb-category-count {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.tb-category-list a:hover .tb-category-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Tag Cloud Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 12px !important;
    text-decoration: none;
    color: var(--text-medium, #333);
    transition: all 0.2s ease;
}

.tagcloud a:hover {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    transform: translateY(-2px);
}

/* Search Widget */
.tb-search-form {
    display: flex;
    gap: 10px;
}

.tb-search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.tb-search-form input:focus {
    border-color: var(--primary-color, #e74c3c);
}

.tb-search-form button {
    background: var(--primary-color, #e74c3c);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tb-search-form button:hover {
    transform: scale(1.05);
}

/* Newsletter Widget */
.tb-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tb-newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.tb-newsletter-form input:focus {
    border-color: var(--primary-color, #e74c3c);
}

.tb-newsletter-form button {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tb-newsletter-form button:hover {
    background: var(--primary-dark, #c0392b);
    transform: translateY(-2px);
}

/* ============================================ */
/* RESPONSIVE SIDEBAR */
/* ============================================ */

@media (max-width: 768px) {
    .tb-single-sidebar {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .tb-sidebar-widget {
        padding: 15px;
    }
    
    .tb-widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .tb-sidebar-widget {
        padding: 12px;
    }
    
    .tb-latest-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .tb-latest-title {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .tb-single-sidebar {
        display: none !important;
    }
}
/* ============================================ */
/* SEARCH PAGE - DISCOVERY SHIELD V3.0
/* Optimized for zero-bounce strategy
/* ============================================ */

/* Search Header */
.tb-search-header-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 40px 0 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.tb-search-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tb-search-title i {
    color: #e74c3c;
    font-size: 28px;
}

.tb-search-title span {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 4px 15px;
    border-radius: 30px;
    font-size: 28px;
}

.tb-search-stats {
    margin-bottom: 20px;
}

.tb-search-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Search Form */
.tb-search-form-wrapper {
    max-width: 600px;
}

.tb-search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tb-search-input-group:focus-within {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.tb-search-input-group i {
    padding-left: 18px;
    color: #999;
    font-size: 16px;
}

.tb-search-input {
    flex: 1;
    padding: 15px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.tb-search-submit {
    background: #e74c3c;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin: 4px;
    transition: all 0.3s ease;
}

.tb-search-submit:hover {
    background: #c0392b;
    transform: scale(1.02);
}

/* Search Results Grid */
.tb-search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

/* Search Card */
.tb-search-card {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 20px;
}

.tb-search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
}

.tb-search-card-img {
    flex: 0 0 180px;
    border-radius: 12px;
    overflow: hidden;
}

.tb-search-card-img img,
.tb-search-card-img .tb-placeholder {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.tb-search-card-img .tb-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ccc;
}

.tb-search-card-content {
    flex: 1;
}

.tb-search-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
}

.tb-search-card-meta i {
    color: #e74c3c;
}

.tb-meta-divider {
    color: #ddd;
}

.tb-search-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.tb-search-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.tb-search-card-title a:hover {
    color: #e74c3c;
}

/* Search Highlighting */
.tb-search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 500;
}

.tb-search-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tb-search-card-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* No Results State */
.tb-no-results-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 24px;
    margin-bottom: 50px;
}

.tb-no-results-icon {
    font-size: 70px;
    color: #e74c3c;
    margin-bottom: 20px;
    opacity: 0.5;
}

.tb-no-results-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.tb-no-results-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.tb-no-results-suggestion {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

.tb-no-results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tb-btn-primary {
    background: #e74c3c;
    color: #fff;
}

.tb-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.tb-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.tb-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Trending Section (Zero-Bounce Strategy) */
.tb-trending-section {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 50px;
}

.tb-trending-header {
    text-align: center;
    margin-bottom: 30px;
}

.tb-trending-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tb-trending-title i {
    color: #e74c3c;
}

.tb-trending-subtitle {
    font-size: 14px;
    color: #888;
}

.tb-trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.tb-trending-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.tb-trending-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
}

.tb-trending-card-img {
    height: 150px;
    overflow: hidden;
}

.tb-trending-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tb-trending-card:hover .tb-trending-card-img img {
    transform: scale(1.05);
}

.tb-trending-card-content {
    padding: 15px;
}

.tb-trending-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.tb-trending-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.tb-trending-card-title a:hover {
    color: #e74c3c;
}

.tb-trending-card-meta {
    font-size: 12px;
    color: #888;
}

.tb-trending-footer {
    text-align: center;
    margin-top: 20px;
}

/* Category Suggestions */
.tb-category-suggestions {
    margin: 50px 0;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
}

.tb-suggestions-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-suggestions-title i {
    color: #e74c3c;
}

.tb-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tb-suggestion-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tb-suggestion-cat:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

.tb-suggestion-cat:hover .tb-cat-name {
    color: #fff;
}

.tb-suggestion-cat:hover .tb-cat-count {
    color: rgba(255, 255, 255, 0.8);
}

.tb-cat-name {
    font-weight: 600;
    color: #333;
}

.tb-cat-count {
    font-size: 12px;
    color: #888;
}

/* ============================================ */
/* RESPONSIVE SEARCH PAGE */
/* ============================================ */

@media (max-width: 992px) {
    .tb-trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tb-suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tb-search-title {
        font-size: 24px;
    }
    
    .tb-search-title span {
        font-size: 20px;
    }
    
    .tb-search-card {
        flex-direction: column;
        padding: 15px;
    }
    
    .tb-search-card-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
    }
    
    .tb-trending-section {
        padding: 20px;
    }
    
    .tb-trending-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tb-suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .tb-no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .tb-no-results-title {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .tb-search-header-wrapper {
        padding: 25px 0 20px;
    }
    
    .tb-search-title {
        font-size: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .tb-search-title span {
        font-size: 18px;
    }
    
    .tb-search-input-group i {
        display: none;
    }
    
    .tb-search-input {
        padding: 12px 15px;
    }
    
    .tb-search-submit {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .tb-search-card-title {
        font-size: 18px;
    }
}

/* ============================================ */
/* 404 ERROR PAGE - SAFETY NET V3.0
/* Optimized for retention engineering
/* ============================================ */

/* Error Page Container */
.tb-error-page {
    padding: 60px 0 80px;
    min-height: 70vh;
}

/* Error Content Box */
.tb-error-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 50px 40px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* Error Icon */
.tb-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.tb-error-icon i {
    font-size: 60px;
    color: #e74c3c;
    opacity: 0.7;
}

.tb-error-icon span {
    font-size: 72px;
    font-weight: 800;
    color: #e74c3c;
    letter-spacing: -2px;
}

/* Error Title */
.tb-error-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

/* Error Message */
.tb-error-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Error Search Form */
.tb-error-search {
    margin-bottom: 30px;
}

.tb-error-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.tb-error-search-form .tb-search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 60px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tb-error-search-form .tb-search-input-group:focus-within {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.tb-error-search-form .tb-search-input-group i {
    padding-left: 20px;
    color: #999;
    font-size: 16px;
}

.tb-error-search-form .tb-search-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.tb-error-search-form .tb-search-submit {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    padding: 0 24px;
    height: 52px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tb-error-search-form .tb-search-submit:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateX(2px);
}

/* Error Buttons */
.tb-error-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tb-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tb-error-btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.tb-error-btn-primary:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.tb-error-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.tb-error-btn-secondary:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

/* Helpful Links Section */
.tb-error-helpful-links {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
}

.tb-helpful-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-helpful-title i {
    color: #e74c3c;
}

.tb-helpful-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tb-helpful-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tb-helpful-link:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

.tb-helpful-link:hover .tb-cat-icon i,
.tb-helpful-link:hover .tb-cat-name,
.tb-helpful-link:hover .tb-cat-count {
    color: #fff;
}

.tb-helpful-link .tb-cat-icon i {
    color: #e74c3c;
    font-size: 14px;
}

.tb-helpful-link .tb-cat-name {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tb-helpful-link .tb-cat-count {
    font-size: 12px;
    color: #888;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 20px;
}

.tb-helpful-link:hover .tb-cat-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Trending Section (Reuses search page styles) */
.tb-error-page .tb-trending-section {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 40px;
}

/* ============================================ */
/* RESPONSIVE
/* ============================================ */

@media (max-width: 992px) {
    .tb-helpful-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tb-error-page {
        padding: 40px 0 60px;
    }
    
    .tb-error-content {
        padding: 35px 25px;
    }
    
    .tb-error-icon i {
        font-size: 45px;
    }
    
    .tb-error-icon span {
        font-size: 55px;
    }
    
    .tb-error-title {
        font-size: 26px;
    }
    
    .tb-error-message {
        font-size: 14px;
    }
    
    .tb-error-search-form .tb-search-submit span {
        display: none;
    }
    
    .tb-error-search-form .tb-search-submit {
        padding: 0 16px;
        width: 50px;
        justify-content: center;
    }
    
    .tb-helpful-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .tb-error-content {
        padding: 25px 20px;
    }
    
    .tb-error-title {
        font-size: 22px;
    }
    
    .tb-error-links {
        flex-direction: column;
    }
    
    .tb-error-btn {
        justify-content: center;
    }
    
    .tb-trending-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================ */
/* PAGE TEMPLATE - TRUST ANCHOR V3.0
/* Optimized for E-E-A-T and readability
/* ============================================ */

/* Regular Page Container */
.tb-regular-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

/* Trust Page Special Background */
.tb-regular-page.tb-trust-page {
    background: #fff;
}

/* Page Layout */
.tb-page-layout {
    display: flex;
    gap: 40px;
}

/* Standard Layout (with sidebar potential) */
.tb-page-layout-standard {
    flex-direction: row;
}

.tb-page-layout-standard .tb-page-main {
    flex: 1;
}

/* Centered Layout for Trust Pages (E-E-A-T Focus) */
.tb-page-layout-centered {
    display: block;
    max-width: 850px;
    margin: 0 auto;
}

.tb-page-layout-centered .tb-page-main {
    width: 100%;
}

/* Featured Image */
.tb-page-featured {
    margin: 20px 0 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.tb-page-featured-figure {
    margin: 0;
    position: relative;
}

.tb-page-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.tb-page-featured-caption {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    text-align: center;
}

/* Page Title */
.tb-page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Page Meta (Last Updated for Trust Pages) */
.tb-page-meta {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tb-meta-last-updated {
    font-size: 13px;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tb-meta-last-updated i {
    color: #e74c3c;
}

/* Page Content - Optimized for Readability */
.tb-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
}

/* Trust Page Content - Narrower for Better Readability */
.tb-trust-page .tb-page-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

/* Content Typography */
.tb-page-content h1,
.tb-page-content h2,
.tb-page-content h3,
.tb-page-content h4,
.tb-page-content h5,
.tb-page-content h6 {
    margin: 1.5em 0 0.5em;
    font-weight: 600;
    color: #1a1a2e;
}

.tb-page-content h1 { font-size: 32px; }
.tb-page-content h2 { font-size: 28px; }
.tb-page-content h3 { font-size: 24px; }
.tb-page-content h4 { font-size: 20px; }
.tb-page-content h5 { font-size: 18px; }
.tb-page-content h6 { font-size: 16px; }

.tb-page-content p {
    margin-bottom: 1.2em;
}

.tb-page-content a {
    color: #e74c3c;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tb-page-content a:hover {
    color: #c0392b;
}

/* Lists */
.tb-page-content ul,
.tb-page-content ol {
    margin: 0 0 1.2em 1.5em;
}

.tb-page-content li {
    margin-bottom: 0.5em;
}

/* Blockquotes */
.tb-page-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    font-style: italic;
    color: #555;
}

/* Tables */
.tb-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.tb-page-content th,
.tb-page-content td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.tb-page-content th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Images inside content */
.tb-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
}

/* Page Links (Pagination) */
.tb-page-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.tb-page-links-label {
    font-weight: 600;
    margin-right: 10px;
}

.tb-page-link {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    background: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.tb-page-link:hover {
    background: #e74c3c;
    color: #fff;
}

/* Edit Link */
.tb-page-edit-link {
    margin-top: 30px;
    text-align: right;
}

.tb-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    color: #555;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.tb-edit-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* Page Comments */
.tb-page-comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* ============================================ */
/* RESPONSIVE DESIGN
/* ============================================ */

@media (max-width: 992px) {
    .tb-page-layout {
        flex-direction: column;
    }
    
    .tb-page-layout-centered {
        max-width: 100%;
    }
    
    .tb-page-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .tb-regular-page {
        padding: 30px 0 40px;
    }
    
    .tb-page-title {
        font-size: 26px;
    }
    
    .tb-page-content {
        font-size: 15px;
    }
    
    .tb-trust-page .tb-page-content {
        font-size: 15px;
    }
    
    .tb-page-content h1 { font-size: 28px; }
    .tb-page-content h2 { font-size: 24px; }
    .tb-page-content h3 { font-size: 20px; }
    .tb-page-content h4 { font-size: 18px; }
}

@media (max-width: 576px) {
    .tb-page-title {
        font-size: 22px;
    }
    
    .tb-page-content {
        font-size: 14px;
    }
    
    .tb-trust-page .tb-page-content {
        font-size: 14px;
    }
    
    .tb-page-content h1 { font-size: 24px; }
    .tb-page-content h2 { font-size: 20px; }
    .tb-page-content h3 { font-size: 18px; }
    .tb-page-content h4 { font-size: 16px; }
    
    .tb-page-featured-caption {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Print Styles for Legal Pages */
@media print {
    .tb-header,
    .tb-footer,
    .tb-breadcrumbs-wrapper,
    .tb-page-edit-link,
    .tb-page-comments,
    .tb-scroll-menu {
        display: none !important;
    }
    
    .tb-regular-page {
        padding: 0;
        background: #fff;
    }
    
    .tb-page-title {
        font-size: 24px;
        color: #000;
    }
    
    .tb-page-content {
        color: #000;
        font-size: 12px;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
}
/* ============================================ */
/* INDEX PAGE - NO RESULTS STATE
/* ============================================ */

.tb-no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 24px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tb-no-posts-icon {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
    opacity: 0.6;
}

.tb-no-posts h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.tb-no-posts p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.tb-no-posts-search {
    max-width: 500px;
    margin: 0 auto 25px;
}

.tb-no-posts-links {
    margin-top: 20px;
}

/* Zero Results Badge */
.tb-count-badge.tb-zero-results {
    background: #fff3cd;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .tb-no-posts {
        padding: 40px 20px;
    }
    
    .tb-no-posts h3 {
        font-size: 20px;
    }
    
    .tb-no-posts p {
        font-size: 14px;
    }
    
    .tb-no-posts-icon {
        font-size: 45px;
    }
}
/* ======================================== */
/* PRINT STYLES - OPTIMIZED */
/* ======================================== */
@media print {
    .tb-scroll-menu,
    .tb-search-overlay,
    .tb-mobile-toggle,
    .tb-search-toggle,
    .tb-post-meta,
    .tb-share-compact,
    .tb-share-compact-bottom,
    .tb-author-compact,
    .tb-popular-compact,
    .tb-related-compact,
    .tb-nav-compact,
    .tb-comments-compact,
    .tb-sidebar-compact,
    .tb-preferred-compact,
    .tb-update-badge,
    .tb-published-badge,
    .tb-footer-nav,
    .tb-pagination,
    .tb-preferred-universal {
        display: none !important;
    }
    
    body {
        background: #fff;
    }
    
    .tb-container {
        max-width: 100%;
        padding: 0;
    }
    
    .tb-post-main,
    .tb-page-content,
    .tb-regular-page,
    .tb-single-post {
        background: #fff;
        box-shadow: none;
        padding: 0;
    }
    
    .tb-post-card,
    .tb-cat-card,
    .tb-horizontal-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}