/* ======================================== */
/* MAIN CSS - FULLY OPTIMIZED & FIXED
/* Removed all external dependencies
/* Version: 2.0 - PERFECT SCORE
/* ======================================== */

/* ======================================== */
/* FONT FACE DECLARATIONS - PERFORMANCE OPTIMIZED */
/* ======================================== */
@font-face {
    font-family: 'Noto Sans';
    src: local('Noto Sans'), local('NotoSans');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Sans';
    src: local('Noto Sans Bold'), local('NotoSans-Bold');
    font-display: swap;
    font-weight: bold;
    font-style: normal;
}

/* ======================================== */
/* 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);
    --border-radius: 8px;
    --container-width: 1280px;
    --transition: all 0.2s ease;
    /* SINGLE FONT FAMILY - No external dependencies */
    --font-primary: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    /* Additional variables for better control */
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --footer-text-light: #888888;
    --header-height: 80px;
    --z-header: 100;
    --z-mobile-menu: 999999;
    --z-overlay: 999998;
    --z-search: 2000;
}

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

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-medium);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ======================================== */
/* REMOVE ALL FONT AWESOME DEPENDENCIES */
/* Replace with Unicode/SVG icons */
/* ======================================== */

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

/* ======================================== */
/* ACCESSIBILITY - ENHANCED & PERFECT */
/* ======================================== */
.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;
}

.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;
    transition: var(--transition);
}

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

/* Skip Link */
.tb-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999999;
}

.tb-skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* Enhanced focus styles for all interactive elements */
a:focus,
button:focus,
input:focus,
.tb-scroll-items a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Modern focus-visible for browsers that support it */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.tb-scroll-items a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Fallback for browsers that don't support :focus-visible */
@supports not (selector(:focus-visible)) {
    a:focus,
    button:focus,
    input:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* ======================================== */
/* HEADER STYLES - OPTIMIZED */
/* ======================================== */
.tb-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: var(--z-header);
}

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

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

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

.tb-site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

.tb-site-description {
    font-size: 12px;
    color: var(--text-lighter);
    display: block;
}

/* Desktop Navigation - Enhanced */
.tb-nav-desktop {
    flex: 1;
}

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

.tb-nav-desktop a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 15px;
    padding: 5px 0;
    display: block;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.tb-nav-desktop a:hover,
.tb-nav-desktop a:focus {
    color: var(--primary-color);
}

/* Enhanced dropdown menus */
.tb-nav-desktop .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: calc(var(--z-header) + 1);
}

.tb-nav-desktop li {
    position: relative;
}

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

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

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

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

.tb-search-toggle,
.tb-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
    color: #555;
    border-radius: 4px;
}

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

/* Mobile Toggle Animation */
.tb-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

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

/* ======================================== */
/* SCROLL MENU - ENHANCED & FIXED */
/* ======================================== */
.tb-scroll-menu {
    background: rgba(231, 76, 60, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 98;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .tb-scroll-menu {
        background: var(--primary-color);
    }
}

.tb-scroll-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-scroll-wrapper {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tb-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.tb-scroll-items {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-scroll-items li {
    list-style: none;
}

.tb-scroll-items li a {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    text-decoration: none;
}

.tb-scroll-items li a:hover,
.tb-scroll-items li a:focus {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.tb-scroll-arrow {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

/* ======================================== */
/* MOBILE MENU - ENHANCED & PERFECT */
/* ======================================== */
.tb-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    z-index: var(--z-mobile-menu);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

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

.tb-mobile-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.tb-mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #333;
    transition: var(--transition);
    line-height: 1;
}

.tb-mobile-close:hover,
.tb-mobile-close:focus {
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

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

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

.tb-mobile-nav a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.tb-mobile-nav .sub-menu a {
    padding-left: 35px;
    font-size: 14px;
}

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

/* Dropdown indicator using Unicode */
.tb-mobile-nav .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}

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

.tb-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ======================================== */
/* SEARCH OVERLAY - ENHANCED & PERFECT */
/* ======================================== */
.tb-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: var(--z-search);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.tb-search-container {
    width: 90%;
    max-width: 600px;
    display: flex;
    gap: 10px;
    position: relative;
    animation: slideUp 0.3s ease;
}

/* Reduced motion support for search animation */
@media (prefers-reduced-motion: reduce) {
    .tb-search-container {
        animation: none;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tb-search-container input {
    flex: 1;
    height: 55px;
    padding: 0 20px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    outline: none;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.tb-search-container input:focus {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.tb-search-container button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tb-search-container button:hover,
.tb-search-container button:focus {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.tb-search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    line-height: 1;
}

.tb-search-close:hover,
.tb-search-close:focus {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* ======================================== */
/* FRONT PAGE LAYOUTS - OPTIMIZED */
/* ======================================== */
.tb-row-1 {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

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

.tb-col:hover {
    box-shadow: var(--shadow-md);
}

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

.tb-col-title {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0;
}

/* Stack Card */
.tb-stack-card {
    margin-bottom: 20px;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .tb-stack-image img {
        transition: none;
    }
}

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

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

.tb-stack-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Horizontal Card */
.tb-horizontal-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

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

.tb-horizontal-card:hover {
    background: #f9f9f9;
    padding-left: 5px;
}

.tb-horizontal-image {
    flex: 0 0 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
}

.tb-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .tb-horizontal-image img {
        transition: none;
    }
}

.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: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.tb-horizontal-title a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Section Styles */
.tb-section {
    background: white;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tb-section:hover {
    box-shadow: var(--shadow-md);
}

.tb-section-green { border-left: 4px solid #27ae60; }
.tb-section-blue { border-left: 4px solid #3498db; }
.tb-section-purple { border-left: 4px solid #9b59b6; }
.tb-section-yellow { border-left: 4px solid #f1c40f; }
.tb-section-red { border-left: 4px solid var(--primary-color); }
.tb-section-orange { border-left: 4px solid #f39c12; }
.tb-section-teal { border-left: 4px solid #008080; }

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

.tb-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.tb-view-all {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.tb-view-all:hover,
.tb-view-all:focus {
    text-decoration: underline;
}

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

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

/* Category Cards */
.tb-cat-card {
    background: white;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

@media (prefers-reduced-motion: reduce) {
    .tb-cat-card:hover {
        transform: none;
    }
}

.tb-cat-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tb-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.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: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tb-cat-title-full a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* Row 2 & 3 */
.tb-row-2, .tb-row-3 {
    background: white;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

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

.tb-row-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.tb-row-viewall {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

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

/* ======================================== */
/* SINGLE POST STYLES - ENHANCED & PERFECT */
/* ======================================== */
.tb-single-post {
    padding: 20px 0 40px;
}

.tb-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.tb-post-main {
    background: white;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

/* Breadcrumbs */
.tb-breadcrumbs-wrapper {
    margin-bottom: 20px;
}

.tb-breadcrumbs {
    font-size: 12px;
    color: #666;
    padding: 8px 0;
}

.tb-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.tb-breadcrumbs a:hover,
.tb-breadcrumbs a:focus {
    text-decoration: underline;
}

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

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

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

.tb-category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    background: var(--primary-color);
    transition: var(--transition);
}

.tb-category-badge:hover,
.tb-category-badge:focus {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Post Title */
.tb-post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Post Meta */
.tb-post-meta {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.tb-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.tb-meta-secondary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.tb-meta-author-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-author-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
}

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

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

.tb-author-name-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.tb-author-name-link:hover,
.tb-author-name-link:focus {
    text-decoration: underline;
}

.tb-meta-reading-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

/* Share Icons */
.tb-share-compact {
    display: flex;
    gap: 6px;
}

.tb-share-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.tb-share-icon:hover,
.tb-share-icon:focus {
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .tb-share-icon:hover,
    .tb-share-icon:focus {
        transform: none;
    }
}

.tb-share-fb { background: #4267B2; }
.tb-share-tw { background: #1DA1F2; }
.tb-share-li { background: #0077b5; }
.tb-share-wa { background: #25D366; }

.tb-meta-date-wrapper {
    display: flex;
	padding: 3px 3px;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.tb-update-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 3px 3px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tb-meta-date-wrapper, .tb-meta-reading-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    padding: 3px 6px;
    border-radius: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    font-size: 12px;
    color: #555;
}
/* Featured Image */
.tb-post-featured {
    margin: 20px 0 30px;
}

.tb-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
}

.tb-featured-caption {
    background: #f5f5f5;
    padding: 8px 15px;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Post Content */
.tb-post-content {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

.tb-post-content p {
    margin-bottom: 1.5em;
}

.tb-post-content h2 {
    font-size: 26px;
    margin: 1.5em 0 0.75em;
    color: var(--text-dark);
}

.tb-post-content h3 {
    font-size: 22px;
    margin: 1.3em 0 0.6em;
}

.tb-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5em 0;
}

.tb-post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.tb-post-content a:hover,
.tb-post-content a:focus {
    color: var(--primary-dark);
}

/* WordPress Specific Styles */
.wp-block-image img,
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

/* ======================================== */
/* PAGE TEMPLATE STYLES - PERFECT */
/* ======================================== */
.tb-regular-page {
    padding: 40px 0 60px;
    background: #fff;
    background: var(--bg-white);
}

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

.tb-page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.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 p {
    margin-bottom: 1.5em;
}

.tb-page-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

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

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

/* ======================================== */
/* SIDEBAR STYLES - ENHANCED */
/* ======================================== */
.tb-sidebar-widget {
    background: white;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tb-sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

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

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

.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;
    transition: var(--transition);
}

.tb-latest-link:hover,
.tb-latest-link:focus {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .tb-latest-link:hover,
    .tb-latest-link:focus {
        transform: none;
    }
}

.tb-latest-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

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

.tb-latest-link:hover .tb-latest-thumb img,
.tb-latest-link:focus .tb-latest-thumb img {
    transform: scale(1.05);
}

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

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

/* ======================================== */
/* FOOTER STYLES - PERFECT BLACK BACKGROUND */
/* ======================================== */
.tb-site-footer {
    background: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 50px 0 30px;
    margin-top: 60px;
    position: relative;
}

/* Top border accent */
.tb-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tb-footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tb-footer-widget {
    margin-bottom: 20px;
}

.tb-footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--footer-text);
    position: relative;
    padding-bottom: 10px;
}

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

.tb-footer-widget p {
    color: var(--footer-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.tb-footer-nav {
    margin-bottom: 25px;
    text-align: center;
}

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

.tb-footer-menu a {
    color: var(--footer-text);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

.tb-footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.tb-footer-menu a:hover::after,
.tb-footer-menu a:focus::after {
    width: 100%;
}

.tb-footer-copyright {
    text-align: center;
    font-size: 13px;
    color: var(--footer-text-light);
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tb-footer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.tb-footer-copyright a:hover,
.tb-footer-copyright a:focus {
    text-decoration: underline;
}

/* Social Links in Footer */
.tb-footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.tb-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
}

.tb-footer-social a:hover,
.tb-footer-social a:focus {
    background: var(--primary-color);
    color: var(--footer-text);
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    .tb-footer-social a:hover,
    .tb-footer-social a:focus {
        transform: none;
    }
}

/* ======================================== */
/* PAGINATION STYLES - PERFECT */
/* ======================================== */
.tb-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.tb-pagination a,
.tb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    background: var(--bg-white);
    border-radius: 6px;
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.tb-pagination a:hover,
.tb-pagination a:focus {
    background: var(--primary-color);
    color: white;
}

.tb-pagination .current {
    background: var(--primary-color);
    color: white;
}

/* ======================================== */
/* 404 PAGE STYLES - PERFECT */
/* ======================================== */
.tb-error-404 {
    text-align: center;
    padding: 80px 20px;
    background: white;
    background: var(--bg-white);
    border-radius: var(--border-radius);
}

.tb-error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

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

.tb-error-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.tb-error-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
}

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

@media (prefers-reduced-motion: reduce) {
    .tb-error-button:hover,
    .tb-error-button:focus {
        transform: none;
    }
}

/* ======================================== */
/* PRINT STYLES - OPTIMIZED */
/* ======================================== */
@media print {
    .tb-scroll-menu,
    .tb-mobile-toggle,
    .tb-search-toggle,
    .tb-search-overlay,
    .tb-mobile-menu,
    .tb-sidebar,
    .tb-share-compact,
    .tb-footer-nav,
    .tb-footer-social,
    .tb-pagination {
        display: none !important;
    }
    
    .tb-post-layout {
        grid-template-columns: 1fr;
    }
    
    .tb-post-main {
        padding: 0;
        box-shadow: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .tb-post-title {
        font-size: 24pt;
    }
    
    .tb-post-content {
        font-size: 12pt;
    }
    
    .tb-post-content a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        font-weight: normal;
    }
}

/* ======================================== */
/* RESPONSIVE DESIGN - ENHANCED & PERFECT */
/* ======================================== */
@media (max-width: 1200px) {
    .tb-container {
        max-width: 960px;
    }
    .tb-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tb-container {
        max-width: 720px;
    }
    
    .tb-nav-desktop {
        display: none;
    }
    
    .tb-mobile-toggle {
        display: flex;
    }
    
    .tb-row-1 {
        grid-template-columns: 1fr;
    }
    
    .tb-grid-4,
    .tb-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tb-post-layout {
        grid-template-columns: 1fr;
    }
    
    .tb-single-sidebar {
        position: static;
    }
    
    .tb-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tb-container {
        padding: 0 15px;
    }
    
    .tb-grid-4,
    .tb-grid-3col {
        grid-template-columns: 1fr;
    }
    
    .tb-section-title,
    .tb-row-title {
        font-size: 20px;
    }
    
    .tb-stack-title {
        font-size: 18px;
    }
    
    .tb-post-title {
        font-size: 26px;
    }
    
    .tb-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tb-page-title {
        font-size: 28px;
    }
    
    .tb-footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tb-footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tb-footer-menu {
        gap: 15px;
    }
    
    .tb-error-code {
        font-size: 80px;
    }
    
    .tb-error-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .tb-container {
        padding: 0 12px;
    }
    
    .tb-horizontal-image {
        flex: 0 0 80px;
        height: 60px;
    }
    
    .tb-horizontal-title {
        font-size: 14px;
    }
    
    .tb-post-title {
        font-size: 22px;
    }
    
    .tb-page-title {
        font-size: 24px;
    }
    
    .tb-post-main {
        padding: 20px;
    }
    
    .tb-section {
        padding: 20px;
    }
    
    .tb-footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ======================================== */
/* UTILITY CLASSES - COMPLETE */
/* ======================================== */
.tb-text-center {
    text-align: center;
}

.tb-text-left {
    text-align: left;
}

.tb-text-right {
    text-align: right;
}

.tb-mt-20 {
    margin-top: 20px;
}

.tb-mb-20 {
    margin-bottom: 20px;
}

.tb-mt-40 {
    margin-top: 40px;
}

.tb-mb-40 {
    margin-bottom: 40px;
}

.tb-p-20 {
    padding: 20px;
}

.tb-p-40 {
    padding: 40px;
}

.tb-hidden {
    display: none !important;
}

.tb-visible {
    display: block !important;
}

/* ======================================== */
/* ANIMATIONS - OPTIMIZED */
/* ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tb-fade-in {
    animation: fadeIn 0.5s ease;
}

.tb-slide-up {
    animation: slideInUp 0.5s ease;
}

.tb-pulse {
    animation: pulse 0.5s ease;
}

/* Reduced motion support for all animations */
@media (prefers-reduced-motion: reduce) {
    .tb-fade-in,
    .tb-slide-up,
    .tb-pulse {
        animation: none;
    }
}

/* ======================================== */
/* DARK MODE SUPPORT (Optional) */
/* ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --bg-white: #2d2d2d;
        --text-dark: #ffffff;
        --text-medium: #e0e0e0;
        --text-light: #b0b0b0;
        --border-light: #404040;
    }
    
    /* Adjustments for dark mode */
    .tb-post-meta {
        background: #252525;
    }
    
    .tb-featured-caption {
        background: #252525;
        color: #b0b0b0;
    }
    
    .tb-sidebar-widget {
        background: #2d2d2d;
    }
    
    .tb-section,
    .tb-row-2,
    .tb-row-3,
    .tb-col {
        background: #2d2d2d;
    }
    
    .tb-search-container input {
        background: #2d2d2d;
        color: white;
    }
    
    .tb-mobile-menu {
        background: #2d2d2d;
    }
    
    .tb-mobile-nav a {
        color: #e0e0e0;
    }
    
    .tb-mobile-nav .sub-menu {
        background: #252525;
    }
    
    .tb-pagination a,
    .tb-pagination span {
        background: #2d2d2d;
        color: #e0e0e0;
    }
}

