/* ======================================== */
/* CSS VARIABLES - EASY THEME MANAGEMENT */
/* ======================================== */
: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);
    --transition: all 0.2s ease;
    --border-radius: 8px;
    --container-width: 1280px;
}

/*
 * TimesBull Main Stylesheet
 * Version: 10.0.0 - Google 2026 April Compliant
 * All original design preserved
 */

/* ======================================== */
/* FONT IMPORTS - REMOVED EXTERNAL FONTS */
/* ======================================== */

/* ======================================== */
/* CSS VARIABLES - EASY THEME MANAGEMENT */
/* ======================================== */
: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);
    --transition: all 0.2s ease;
    --border-radius: 8px;
    --header-height: 60px;
    --footer-height: 100px;
    --font-primary: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-headings: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --container-width: 1280px;
    --z-index-header: 1000;
    --z-index-overlay: 2000;
    --z-index-popup: 9999;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.3s ease;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --footer-text-light: #888888;
}

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

body {
    font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
    color: var(--text-medium);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-display: swap;
}

.tb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.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;
}

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

/* ======================================== */
/* ADS - OPTIMIZED */
/* ======================================== */
.tb-ad-container,
.tb-content-ad,
.tb-sidebar-widget.tb-ad-widget,
.tb-header-ad {
    text-align: center;
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
}

/* AdSense Ins - With min-height for CLS prevention */
ins.adsbygoogle {
    display: block;
    text-align: center;
    max-width: 100%;
    min-height: 280px;
    background: #f5f5f5;
    margin: 0 auto;
    transition: opacity 0.2s ease;
}

.tb-sidebar-widget ins.adsbygoogle {
    min-height: 250px;
}

/* Sticky Ad */
.tb-sticky-ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    text-align: center;
    background: rgba(255,255,255,0.95);
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    transform: translateZ(0);
    will-change: transform;
}

.tb-sticky-ad-container ins {
    display: inline-block;
    width: 320px;
    height: 100px;
    margin: 0 auto;
    min-height: auto;
    background: transparent;
}

/* Ad Labels */
.tb-ad-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
}

/* In-Content Ads */
.tb-content-ad {
    margin: 25px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    contain: paint;
}

/* Sidebar Ads */
.tb-sidebar-widget.tb-ad-widget {
    background: #f9f9f9;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

/* Mobile ad adjustments */
@media (max-width: 768px) {
    ins.adsbygoogle {
        min-height: 250px;
    }
    .tb-sticky-ad-container ins {
        width: 300px;
        height: 90px;
    }
    .tb-sidebar-widget ins.adsbygoogle {
        min-height: 200px;
    }
}

/* ======================================== */
/* 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;
    scrollbar-width: none;
    padding: 2px 0;
    transform: translateZ(0);
    list-style: none;
}

.tb-scroll-items::-webkit-scrollbar {
    display: none;
    list-style: none;
}

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

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

/* ============================================
   UNIFIED CAPTION STYLES (Featured + Content Images)
   ============================================ */

/* All captions look identical */
.tb-featured-caption,
.wp-element-caption,
.wp-caption-text,
.tb-content-figure figcaption {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-style: italic;
    text-align: center;
    word-wrap: break-word;
}

/* Optional: Add camera icon to all captions */
.tb-featured-caption:before,
.wp-element-caption:before,
.tb-content-figure figcaption:before {
    content: "📷 ";
    font-size: 11px;
}

/* Optional: Hover effect */
.tb-featured-caption:hover,
.wp-element-caption:hover,
.tb-content-figure figcaption:hover {
    background: rgba(0,0,0,0.8);
    transition: background 0.3s ease;
}

/* ============================================
   POST CONTENT STYLES
   ============================================ */

.tb-post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    width: 100%;
    overflow-x: hidden !important;
    max-width: 100%;
    word-wrap: break-word;
}

.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;
}

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

/* Override any inline width on figures, images, and captions */
.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;
}

/* Make all content images fully responsive */
.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;
}

/* Fix figure containers with inline width */
.tb-post-content figure,
.tb-page-content figure {
    max-width: 100% !important;
    width: auto !important;
    margin: 2px 0;
}

/* Fix caption containers with inline width */
.tb-post-content .wp-caption,
.tb-page-content .wp-caption {
    max-width: 100% !important;
    width: auto !important;
}

/* Caption images - force full width */
.tb-post-content .wp-caption img,
.tb-page-content .wp-caption img {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* Mobile responsive margins */
@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%;
}

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

/* Widget Title */
.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);
}

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

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

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

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

/* Header Actions Container */
.tb-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Search Toggle Button */
.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;
}

/* ======================================== */
/* MOBILE MENU TOGGLE (HAMBURGER) - FIXED */
/* ======================================== */

.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);
}

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

/* Show hamburger on tablet/mobile */
@media (max-width: 992px) {
    .tb-mobile-toggle {
        display: flex;
    }
}

/* Small mobile adjustments */
@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;
}

/* Mobile Menu Container */
.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;
}

/* Mobile Menu Header */
.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;
}

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

/* Mobile Menu Content */
.tb-mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

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

/* Dropdown Arrow */
.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 Scroll Lock */
body.tb-mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Animate Hamburger to X when menu is open */
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);
}

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

/* Category Grid */
.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);
}

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

/* ======================================== */
/* SOCIAL EMBEDS */
/* ======================================== */
.tb-post-content .fb-post,
.tb-post-content .fb-video,
.wp-block-embed-facebook iframe {
    max-width: 100% !important;
    width: 100% !important;
    margin: 25px 0 !important;
}

.tb-post-content .tiktok-embed,
.wp-block-embed-tiktok iframe {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 250px !important;
    margin: 25px 0 !important;
}

.tb-post-content iframe:not([src*="ads"]):not([src*="doubleclick"]) {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin: 25px 0;
}

.tb-responsive-embed {
    position: relative;
    width: 100%;
    margin: 25px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tb-responsive-embed iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

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

/* ======================================== */
/* CONTENT IMAGES RESPONSIVE & LINK COLORS */
/* ======================================== */

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

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

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

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

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

/* Pre/Code Blocks */
.tb-post-content pre,
.tb-post-content code,
.tb-page-content pre,
.tb-page-content code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-width: 100%;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

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

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

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

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

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

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

/* ============================================
   INSTAGRAM EMBED - COMPLETE FORCE FIX
   ============================================ */

/* Force Instagram embed to display fully */
.tb-post-content .instagram-media,
.tb-post-content .wp-block-embed-instagram,
.wp-block-embed-instagram iframe,
.tb-post-content iframe[src*="instagram"],
.tb-post-content .wp-block-embed-instagram .wp-block-embed__wrapper iframe,
.tb-post-content .instagram-media-rendered {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 25px auto !important;
    border-radius: 12px !important;
    overflow: visible !important;
    display: block !important;
    position: relative !important;
}

/* Instagram Block Container */
.tb-post-content .wp-block-embed-instagram {
    overflow: visible !important;
    width: 100% !important;
}

.tb-post-content .wp-block-embed-instagram .wp-block-embed__wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force Instagram iframe to expand */
.tb-post-content .wp-block-embed-instagram iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 550px !important;
}

/* Instagram Post Container */
.tb-post-content .instagram-media {
    background: #fff !important;
    border: 1px solid #dbdbdb !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    aspect-ratio: 2 / 3 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .tb-post-content .wp-block-embed-instagram iframe {
        min-height: 550px !important;
    }
}

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

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

/* Small Mobile */
@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 ===== */

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

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

/* Small Tablet: 2 columns with smaller gap (768px and below) */
@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;
    }
}

/* Mobile Landscape: 2 columns for larger phones (576px and below) */
@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;
    }
}

/* Mobile Portrait: 1 column for small phones (480px and below) */
@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;
    }
}

/* Small Mobile: (360px and below) */
@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;
    }
}

/* Original styles - keep these as is */
.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;
}

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

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

/* Small mobile pagination */
@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;
    }
}

/* Hover effects - keep original */
.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 */
/* ======================================== */

/* Content visibility for off-screen elements */
.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;
}

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

/* GPU acceleration for smooth animations */
.tb-scroll-items,
.tb-header,
.tb-footer,
.tb-scroll-menu,
.tb-mobile-menu,
.tb-search-overlay {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize hover animations */
.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;
}

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

/* Optimize font rendering */
.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;
}

/* Contain paint for complex components */
.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;
    }
}

/* ======================================== */
/* 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-ad-container,
    .tb-content-ad,
    .tb-sticky-ad-container,
    .tb-header-ad,
    .tb-footer-nav,
    .tb-pagination,
    .adsbygoogle,
    .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;
    }
}