/*
Theme Name: Tech Fussion
Theme URI: https://techfussion.com
Author: Tech Fussion Team
Author URI: https://techfussion.com
Description: A bold, magazine-style WordPress theme inspired by TechCrunch. Features a dramatic hero section, editorial card layouts, comprehensive sidebar widgets, and full responsive design. Built for tech news startups.
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techfussion
Tags: news, magazine, tech, editorial, responsive, grid, featured-images, custom-menu, theme-options
*/

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1.  CSS Reset & Normalize
   2.  CSS Custom Properties (Variables)
   3.  Base Typography
   4.  Layout Containers & Grid System
   5.  Accessibility & Screen Readers
   6.  Header & Top Bar
   7.  Logo Bar & Branding
   8.  Navigation (Primary & Category)
   9.  Hero Section
  10.  Article Cards
  11.  Post Lists & Feeds
  12.  Category Badges
  13.  Author Bylines
  14.  Sidebar & Widgets
  15.  Top Headlines Widget
  16.  Ad Containers & Placements
  17.  Pagination & Navigation Links
  18.  Footer
  19.  Single Post Layout
  20.  Archive Page
  21.  Search Results Page
  22.  404 Page
  23.  Comments Section
  24.  Forms & Inputs
  25.  Social Sharing
  26.  Related Posts
  27.  Reading Progress Bar
  28.  Breadcrumb Navigation
  29.  Newsletter Signup
  30.  Loading Animations
  31.  Responsive Breakpoints
  32.  Dark Mode Support
  33.  Print Styles
  34.  Admin Bar Fix
  35.  Utility Classes
============================================ */

/* ============================================
   1. CSS RESET & NORMALIZE
============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

@-ms-viewport {
  width: device-width;
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
  display: block;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  background-color: #FFFFFF;
  text-align: left;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[tabindex="-1"]:focus {
  outline: 0 !important;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #E5E5E5;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: #000000;
  text-rendering: optimizeLegibility;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

abbr[title],
abbr[data-original-title] {
  text-decoration: underline;
  text-decoration: underline dotted;
  cursor: help;
  border-bottom: 0;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

blockquote {
  margin: 0 0 1.5rem;
  padding: 1rem 1.5rem;
  border-left: 4px solid #00A562;
  background: #F7F7F7;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

b, strong {
  font-weight: 900;
}

small {
  font-size: 80%;
}

sub, sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

a {
  color: #000000;
  text-decoration: none;
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: #00A562;
  text-decoration: underline;
}

a:not([href]):not([tabindex]) {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([tabindex]):hover,
a:not([href]):not([tabindex]):focus {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([tabindex]):focus {
  outline: 0;
}

pre, code, kbd, samp {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.875rem;
}

pre {
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  -ms-overflow-style: scrollbar;
  background: #F7F7F7;
  padding: 1rem;
  border-radius: 4px;
}

figure {
  margin: 0 0 1.5rem;
}

img {
  vertical-align: middle;
  border-style: none;
  max-width: 100%;
  height: auto;
}

svg:not(:root) {
  overflow: hidden;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
}

td, th {
  padding: 0.75rem;
  border: 1px solid #E5E5E5;
  text-align: left;
}

thead th {
  border-bottom: 2px solid #000000;
  font-weight: 900;
}

button {
  border-radius: 0;
  cursor: pointer;
}

button:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

input, button, select, optgroup, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

input[type="radio"],
input[type="checkbox"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
  -webkit-appearance: listbox;
}

textarea {
  overflow: auto;
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: inherit;
  color: inherit;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  outline-offset: -2px;
  -webkit-appearance: none;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}

output {
  display: inline-block;
}

summary {
  display: list-item;
  cursor: pointer;
}

template {
  display: none;
}

[hidden] {
  display: none !important;
}

/* WordPress specific reset */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #777777;
  margin-top: 0.5rem;
  text-align: center;
}

.alignleft {
  float: left;
  margin: 0 1.5rem 1.5rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1.5rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1.5rem;
}

.alignnone {
  margin-bottom: 1.5rem;
}

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

.gallery-caption {
  font-size: 0.8125rem;
  color: #777777;
}

.bypostauthor {
  display: block;
}

.sticky {
  display: block;
}

/* ============================================
   2. CSS CUSTOM PROPERTIES (VARIABLES)
============================================ */

:root {
  /* Colors */
  --tf-color-bg: #FFFFFF;
  --tf-color-bg-alt: #F7F7F7;
  --tf-color-bg-dark: #000000;
  --tf-color-accent: #00A562;
  --tf-color-accent-hover: #008c52;
  --tf-color-text: #000000;
  --tf-color-text-secondary: #777777;
  --tf-color-text-muted: #999999;
  --tf-color-border: #E5E5E5;
  --tf-color-border-dark: #333333;
  --tf-color-white: #FFFFFF;
  --tf-color-danger: #E53E3E;
  --tf-color-warning: #D69E2E;

  /* Typography */
  --tf-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tf-font-serif: Georgia, "Times New Roman", Times, serif;
  --tf-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Font Sizes */
  --tf-size-hero: 3.5rem;
  --tf-size-h1: 2.5rem;
  --tf-size-h2: 2rem;
  --tf-size-h3: 1.5rem;
  --tf-size-h4: 1.25rem;
  --tf-size-h5: 1.125rem;
  --tf-size-h6: 1rem;
  --tf-size-body: 1rem;
  --tf-size-small: 0.8125rem;
  --tf-size-meta: 0.75rem;
  --tf-size-badge: 0.6875rem;

  /* Spacing */
  --tf-space-xs: 0.25rem;
  --tf-space-sm: 0.5rem;
  --tf-space-md: 1rem;
  --tf-space-lg: 1.5rem;
  --tf-space-xl: 2rem;
  --tf-space-2xl: 3rem;
  --tf-space-3xl: 4rem;

  /* Layout */
  --tf-container-max: 1280px;
  --tf-sidebar-width: 30%;
  --tf-main-width: 70%;
  --tf-border-radius: 4px;
  --tf-border-radius-pill: 9999px;

  /* Transitions */
  --tf-transition-fast: 0.15s ease;
  --tf-transition-base: 0.25s ease;
  --tf-transition-slow: 0.4s ease;

  /* Shadows */
  --tf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --tf-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --tf-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   3. BASE TYPOGRAPHY
============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tf-font-body);
  font-size: var(--tf-size-body);
  line-height: 1.6;
  color: var(--tf-color-text);
  background-color: var(--tf-color-bg);
}

/* Heading hierarchy - BOLD editorial style */
h1, .h1 {
  font-size: var(--tf-size-h1);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--tf-space-lg);
}

h2, .h2 {
  font-size: var(--tf-size-h2);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--tf-space-md);
}

h3, .h3 {
  font-size: var(--tf-size-h3);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--tf-space-md);
}

h4, .h4 {
  font-size: var(--tf-size-h4);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--tf-space-sm);
}

h5, .h5 {
  font-size: var(--tf-size-h5);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--tf-space-sm);
}

h6, .h6 {
  font-size: var(--tf-size-h6);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--tf-space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Article body text - serif for readability */
.entry-content {
  font-family: var(--tf-font-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: #222222;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--tf-font-body);
  margin-top: var(--tf-space-2xl);
  margin-bottom: var(--tf-space-md);
}

.entry-content p {
  margin-bottom: var(--tf-space-lg);
}

.entry-content a {
  color: var(--tf-color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--tf-color-accent-hover);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: var(--tf-space-lg);
  padding-left: var(--tf-space-xl);
}

.entry-content li {
  margin-bottom: var(--tf-space-xs);
}

.entry-content blockquote {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid var(--tf-color-accent);
  padding: var(--tf-space-lg) var(--tf-space-xl);
  margin: var(--tf-space-xl) 0;
  background: var(--tf-color-bg-alt);
}

.entry-content blockquote cite {
  display: block;
  margin-top: var(--tf-space-md);
  font-size: var(--tf-size-small);
  font-style: normal;
  font-weight: 700;
  color: var(--tf-color-text-secondary);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tf-border-radius);
}

.entry-content figure {
  margin: var(--tf-space-xl) 0;
}

.entry-content figcaption {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  text-align: center;
  margin-top: var(--tf-space-sm);
  font-family: var(--tf-font-body);
}

.entry-content table {
  margin: var(--tf-space-xl) 0;
}

.entry-content code {
  background: var(--tf-color-bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.entry-content pre {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: var(--tf-space-lg);
  border-radius: var(--tf-border-radius);
  overflow-x: auto;
  margin: var(--tf-space-xl) 0;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Selection color */
::selection {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
}

::-moz-selection {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--tf-color-accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  padding: var(--tf-space-sm) var(--tf-space-lg);
  z-index: 100000;
  font-weight: 700;
  font-size: var(--tf-size-small);
  border-radius: 0 0 var(--tf-border-radius) var(--tf-border-radius);
  transition: top var(--tf-transition-fast);
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
  color: var(--tf-color-white);
}


/* ============================================
   4. LAYOUT CONTAINERS & GRID SYSTEM
============================================ */

/* Main site wrapper */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1 0 auto;
  padding-bottom: var(--tf-space-3xl);
}

/* Main container - full width with max-width */
.container {
  width: 100%;
  max-width: var(--tf-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Content layout with sidebar */
.content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--tf-space-xl);
}

.main-content {
  flex: 1 1 calc(100% - 380px);
  min-width: 0;
  padding-right: var(--tf-space-xl);
}

.sidebar {
  flex: 0 0 360px;
  width: 360px;
  min-width: 0;
  padding-left: var(--tf-space-xl);
  border-left: 1px solid var(--tf-color-border);
}

/* Full-width content (no sidebar) */
.content-area--full .main-content {
  flex: 1 1 100%;
  padding-right: 0;
}

/* CSS Grid alternative layout */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--tf-space-xl);
  margin-top: var(--tf-space-xl);
}

.grid-layout--full {
  grid-template-columns: 1fr;
}

.grid-layout .main-content {
  padding-right: 0;
  min-width: 0;
}

.grid-layout .sidebar {
  padding-left: 0;
  border-left: none;
}

/* Section spacing */
.section {
  margin-bottom: var(--tf-space-3xl);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--tf-space-lg);
  padding-bottom: var(--tf-space-sm);
  border-bottom: 2px solid var(--tf-color-text);
}

.section-title {
  font-size: var(--tf-size-h3);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  color: var(--tf-color-text);
}

.section-link {
  font-size: var(--tf-size-small);
  font-weight: 700;
  color: var(--tf-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-link:hover {
  color: var(--tf-color-accent-hover);
  text-decoration: none;
}

.section-link::after {
  content: " \2192";
}

/* Divider */
.divider {
  border: 0;
  height: 1px;
  background: var(--tf-color-border);
  margin: var(--tf-space-2xl) 0;
}

.divider--thick {
  height: 3px;
  background: var(--tf-color-text);
}

/* ============================================
   5. ACCESSIBILITY & SCREEN READERS
============================================ */

.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: var(--tf-color-bg);
  clip: auto !important;
  clip-path: none;
  color: var(--tf-color-text);
  display: block;
  font-size: var(--tf-size-body);
  height: auto;
  left: 5px;
  padding: var(--tf-space-md) var(--tf-space-lg);
  top: 5px;
  width: auto;
  z-index: 100000;
  box-shadow: var(--tf-shadow-lg);
  text-decoration: none;
  font-weight: 700;
}

/* Visually hidden (accessible) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--tf-color-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --tf-color-border: #000000;
    --tf-color-text-secondary: #555555;
  }
}

/* ============================================
   6. HEADER & TOP BAR
============================================ */

/* Top announcement bar */
.top-bar {
  background-color: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
  padding: 0;
  font-size: var(--tf-size-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 100;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  overflow: hidden;
}

/* Category navigation in top bar */
.top-bar__nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0;
}

.top-bar__nav::-webkit-scrollbar {
  display: none;
}

.top-bar__nav li {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.top-bar__nav a {
  display: block;
  color: var(--tf-color-white);
  padding: 0 var(--tf-space-md);
  line-height: 40px;
  font-size: var(--tf-size-meta);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--tf-transition-fast), background-color var(--tf-transition-fast);
  white-space: nowrap;
}

.top-bar__nav a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
  background-color: transparent;
}

.top-bar__nav .current-menu-item a,
.top-bar__nav .current_page_item a {
  color: var(--tf-color-accent);
}

/* Top bar right side (search, social) */
.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
  flex-shrink: 0;
}

.top-bar__search-btn {
  background: none;
  border: none;
  color: var(--tf-color-white);
  cursor: pointer;
  padding: var(--tf-space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--tf-transition-fast);
}

.top-bar__search-btn:hover {
  color: var(--tf-color-accent);
}

.top-bar__search-btn svg {
  width: 18px;
  height: 18px;
}

/* Social links in top bar */
.top-bar__social {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-bar__social li {
  margin: 0;
}

.top-bar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--tf-color-white);
  text-decoration: none;
  border-radius: 50%;
  transition: color var(--tf-transition-fast), background-color var(--tf-transition-fast);
}

.top-bar__social a:hover {
  color: var(--tf-color-accent);
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* ============================================
   7. LOGO BAR & BRANDING
============================================ */

.logo-bar {
  background-color: var(--tf-color-bg-dark);
  padding: var(--tf-space-xl) 0;
  text-align: center;
  position: relative;
}

.logo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Site logo / title */
.site-title {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.site-title a {
  display: inline-block;
  text-decoration: none;
  color: var(--tf-color-white);
}

.site-title__text {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.site-title__tech {
  color: var(--tf-color-white);
}

.site-title__fussion {
  color: var(--tf-color-accent);
}

.site-title__tagline {
  display: block;
  font-size: var(--tf-size-small);
  font-weight: 400;
  color: var(--tf-color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--tf-space-sm);
  font-family: var(--tf-font-body);
}

/* Custom logo image */
.custom-logo {
  max-height: 60px;
  width: auto;
}

/* Logo bar actions (search, subscribe) */
.logo-bar__actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: var(--tf-space-xs);
  background-color: var(--tf-color-accent);
  color: var(--tf-color-white);
  padding: var(--tf-space-sm) var(--tf-space-lg);
  font-size: var(--tf-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--tf-border-radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--tf-transition-fast), transform var(--tf-transition-fast);
}

.btn-subscribe:hover {
  background-color: var(--tf-color-accent-hover);
  color: var(--tf-color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tf-transition-base), visibility var(--tf-transition-base);
}

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

.search-overlay__form {
  width: 100%;
  max-width: 700px;
  padding: 0 var(--tf-space-xl);
}

.search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--tf-color-white);
  color: var(--tf-color-white);
  font-size: 2rem;
  font-weight: 700;
  padding: var(--tf-space-md) 0;
  outline: none;
}

.search-overlay__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-overlay__close {
  position: absolute;
  top: var(--tf-space-xl);
  right: var(--tf-space-xl);
  background: none;
  border: none;
  color: var(--tf-color-white);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--tf-transition-fast);
}

.search-overlay__close:hover {
  color: var(--tf-color-accent);
}

/* ============================================
   8. NAVIGATION (Primary & Category)
============================================ */

/* Primary Navigation */
.main-navigation {
  background-color: var(--tf-color-bg-dark);
  border-top: 1px solid var(--tf-color-border-dark);
  position: relative;
  z-index: 50;
}

.main-navigation__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation .menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}

.main-navigation .menu::-webkit-scrollbar {
  display: none;
}

.main-navigation .menu li {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  position: relative;
}

.main-navigation .menu > li > a {
  display: block;
  color: var(--tf-color-white);
  padding: var(--tf-space-md) var(--tf-space-lg);
  font-size: var(--tf-size-body);
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  transition: color var(--tf-transition-fast);
  line-height: 1.4;
  position: relative;
}

.main-navigation .menu > li > a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current_page_item > a,
.main-navigation .menu > li.current-menu-parent > a {
  color: var(--tf-color-accent);
}

/* Underline hover effect */
.main-navigation .menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--tf-space-lg);
  right: var(--tf-space-lg);
  height: 3px;
  background-color: var(--tf-color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tf-transition-base);
}

.main-navigation .menu > li > a:hover::after,
.main-navigation .menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown menus */
.main-navigation .menu .sub-menu,
.main-navigation .menu .children {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--tf-color-bg-dark);
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: var(--tf-space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--tf-transition-fast), transform var(--tf-transition-fast), visibility var(--tf-transition-fast);
  z-index: 100;
  box-shadow: var(--tf-shadow-lg);
  border-top: 3px solid var(--tf-color-accent);
}

.main-navigation .menu li:hover > .sub-menu,
.main-navigation .menu li:hover > .children,
.main-navigation .menu li.focus > .sub-menu,
.main-navigation .menu li.focus > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu li,
.main-navigation .children li {
  width: 100%;
}

.main-navigation .sub-menu a,
.main-navigation .children a {
  display: block;
  color: var(--tf-color-white);
  padding: var(--tf-space-sm) var(--tf-space-lg);
  font-size: var(--tf-size-small);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: normal;
}

.main-navigation .sub-menu a:hover,
.main-navigation .children a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--tf-color-accent);
  text-decoration: none;
}

/* Nested dropdowns */
.main-navigation .sub-menu .sub-menu,
.main-navigation .children .children {
  top: 0;
  left: 100%;
  border-top: none;
}

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tf-color-white);
  padding: var(--tf-space-sm);
  cursor: pointer;
  z-index: 60;
}

.menu-toggle__icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color var(--tf-transition-fast);
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--tf-transition-fast), top var(--tf-transition-fast);
}

.menu-toggle__icon::before {
  top: -7px;
}

.menu-toggle__icon::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   9. HERO SECTION
============================================ */

.hero-section {
  position: relative;
  margin-bottom: var(--tf-space-2xl);
}

.hero-section__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2px;
  min-height: 500px;
  background: var(--tf-color-bg-dark);
}

/* Main hero post - large featured */
.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}

.hero-main__link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-main__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--tf-transition-slow);
}

.hero-main:hover .hero-main__image {
  transform: scale(1.03);
}

.hero-main__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.hero-main__content {
  position: relative;
  z-index: 2;
  padding: var(--tf-space-2xl);
  max-width: 700px;
}

.hero-main__category {
  display: inline-block;
  background-color: var(--tf-color-accent);
  color: var(--tf-color-white);
  padding: 4px 14px;
  font-size: var(--tf-size-badge);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--tf-border-radius-pill);
  margin-bottom: var(--tf-space-md);
  text-decoration: none;
  transition: background-color var(--tf-transition-fast);
}

.hero-main__category:hover {
  background-color: var(--tf-color-accent-hover);
  color: var(--tf-color-white);
  text-decoration: none;
}

.hero-main__title {
  font-size: var(--tf-size-hero);
  font-weight: 900;
  line-height: 1.05;
  color: var(--tf-color-white);
  margin-bottom: var(--tf-space-md);
  letter-spacing: -0.02em;
}

.hero-main__title a {
  color: var(--tf-color-white);
  text-decoration: none;
  display: block;
}

.hero-main__title a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.hero-main__meta {
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--tf-size-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-main__author {
  color: var(--tf-color-white);
  font-weight: 700;
}

.hero-main__author a {
  color: var(--tf-color-white);
  text-decoration: none;
}

.hero-main__author a:hover {
  color: var(--tf-color-accent);
  text-decoration: underline;
}

.hero-main__date::before {
  content: "\2022";
  margin-right: var(--tf-space-md);
}

/* Hero side - stacked secondary posts */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-side__item {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 165px;
}

.hero-side__link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-side__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--tf-transition-slow);
}

.hero-side__item:hover .hero-side__image {
  transform: scale(1.05);
}

.hero-side__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
}

.hero-side__content {
  position: relative;
  z-index: 2;
  padding: var(--tf-space-lg);
}

.hero-side__category {
  display: inline-block;
  background-color: var(--tf-color-accent);
  color: var(--tf-color-white);
  padding: 3px 10px;
  font-size: var(--tf-size-badge);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--tf-border-radius-pill);
  margin-bottom: var(--tf-space-sm);
  text-decoration: none;
}

.hero-side__category:hover {
  background-color: var(--tf-color-accent-hover);
  color: var(--tf-color-white);
  text-decoration: none;
}

.hero-side__title {
  font-size: var(--tf-size-h4);
  font-weight: 800;
  line-height: 1.25;
  color: var(--tf-color-white);
  margin-bottom: var(--tf-space-xs);
}

.hero-side__title a {
  color: var(--tf-color-white);
  text-decoration: none;
}

.hero-side__title a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.hero-side__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--tf-size-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-side__author {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* ============================================
   10. ARTICLE CARDS
============================================ */

/* Card grid layouts */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tf-space-xl);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

/* Individual article card */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--tf-color-white);
  overflow: hidden;
  transition: box-shadow var(--tf-transition-base), transform var(--tf-transition-base);
  height: 100%;
}

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

.article-card__image-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: var(--tf-color-bg-alt);
}

.article-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tf-transition-slow);
}

.article-card:hover .article-card__image {
  transform: scale(1.05);
}

.article-card__category {
  position: absolute;
  top: var(--tf-space-md);
  left: var(--tf-space-md);
  z-index: 2;
}

.article-card__content {
  padding: var(--tf-space-md) 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__title {
  font-size: var(--tf-size-h4);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--tf-space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__title a {
  color: var(--tf-color-text);
  text-decoration: none;
  transition: color var(--tf-transition-fast);
}

.article-card__title a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.article-card__excerpt {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--tf-space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  font-size: var(--tf-size-meta);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
  margin-top: auto;
  padding-top: var(--tf-space-sm);
  border-top: 1px solid var(--tf-color-border);
}

.article-card__author {
  font-weight: 700;
  color: var(--tf-color-text);
}

.article-card__author a {
  color: var(--tf-color-text);
  text-decoration: none;
}

.article-card__author a:hover {
  color: var(--tf-color-accent);
}

.article-card__date::before {
  content: "\2022";
  margin-right: var(--tf-space-sm);
}

/* Card variant: horizontal layout */
.article-card--horizontal {
  flex-direction: row;
  gap: var(--tf-space-lg);
  border-bottom: 1px solid var(--tf-color-border);
  padding-bottom: var(--tf-space-lg);
  margin-bottom: var(--tf-space-lg);
  box-shadow: none;
  transform: none;
}

.article-card--horizontal:hover {
  box-shadow: none;
  transform: none;
}

.article-card--horizontal .article-card__image-wrapper {
  flex: 0 0 280px;
  padding-top: 0;
  height: 180px;
  border-radius: var(--tf-border-radius);
}

.article-card--horizontal .article-card__content {
  padding: 0;
  flex: 1;
}

.article-card--horizontal .article-card__title {
  font-size: var(--tf-size-h3);
  -webkit-line-clamp: 2;
}

/* Card variant: featured (larger) */
.article-card--featured .article-card__image-wrapper {
  padding-top: 66.67%; /* 3:2 aspect ratio */
}

.article-card--featured .article-card__title {
  font-size: var(--tf-size-h3);
}

/* Card variant: compact */
.article-card--compact {
  flex-direction: row;
  gap: var(--tf-space-md);
  padding-bottom: var(--tf-space-md);
  margin-bottom: var(--tf-space-md);
  border-bottom: 1px solid var(--tf-color-border);
  box-shadow: none;
  transform: none;
}

.article-card--compact:hover {
  box-shadow: none;
  transform: none;
}

.article-card--compact .article-card__image-wrapper {
  flex: 0 0 100px;
  padding-top: 0;
  height: 70px;
  border-radius: var(--tf-border-radius);
}

.article-card--compact .article-card__content {
  padding: 0;
  flex: 1;
}

.article-card--compact .article-card__title {
  font-size: var(--tf-size-body);
  font-weight: 700;
  -webkit-line-clamp: 2;
  margin-bottom: var(--tf-space-xs);
}

.article-card--compact .article-card__meta {
  border: none;
  padding: 0;
  margin: 0;
}

.article-card--compact .article-card__excerpt {
  display: none;
}


/* ============================================
   11. POST LISTS & FEEDS
============================================ */

/* Standard post list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list__item {
  border-bottom: 1px solid var(--tf-color-border);
  padding-bottom: var(--tf-space-lg);
  margin-bottom: var(--tf-space-lg);
}

.post-list__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Post list horizontal item */
.post-item {
  display: flex;
  gap: var(--tf-space-lg);
  align-items: flex-start;
}

.post-item__image {
  flex: 0 0 220px;
  height: 145px;
  overflow: hidden;
  border-radius: var(--tf-border-radius);
  position: relative;
  background: var(--tf-color-bg-alt);
}

.post-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tf-transition-slow);
}

.post-item:hover .post-item__image img {
  transform: scale(1.05);
}

.post-item__content {
  flex: 1;
  min-width: 0;
}

.post-item__category {
  margin-bottom: var(--tf-space-xs);
}

.post-item__title {
  font-size: var(--tf-size-h4);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--tf-space-sm);
}

.post-item__title a {
  color: var(--tf-color-text);
  text-decoration: none;
  transition: color var(--tf-transition-fast);
}

.post-item__title a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.post-item__excerpt {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--tf-space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item__meta {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  font-size: var(--tf-size-meta);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.post-item__author {
  font-weight: 700;
  color: var(--tf-color-text);
}

.post-item__author a {
  color: var(--tf-color-text);
  text-decoration: none;
}

.post-item__author a:hover {
  color: var(--tf-color-accent);
}

.post-item__date::before {
  content: "\2022";
  margin-right: var(--tf-space-sm);
}

/* Post list feed (vertical like Latest News) */
.post-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-feed__item {
  padding: var(--tf-space-md) 0;
  border-bottom: 1px solid var(--tf-color-border);
}

.post-feed__item:first-child {
  padding-top: 0;
}

.post-feed__item:last-child {
  border-bottom: none;
}

.post-feed__link {
  display: flex;
  gap: var(--tf-space-md);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.post-feed__link:hover {
  text-decoration: none;
  color: inherit;
}

.post-feed__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 55px;
  overflow: hidden;
  border-radius: var(--tf-border-radius);
  background: var(--tf-color-bg-alt);
  flex-shrink: 0;
}

.post-feed__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-feed__content {
  flex: 1;
  min-width: 0;
}

.post-feed__title {
  font-size: var(--tf-size-body);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
  color: var(--tf-color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--tf-transition-fast);
}

.post-feed__link:hover .post-feed__title {
  color: var(--tf-color-accent);
}

.post-feed__meta {
  font-size: var(--tf-size-meta);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* Numbered post list */
.post-numbered {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: post-counter;
}

.post-numbered__item {
  display: flex;
  gap: var(--tf-space-md);
  padding: var(--tf-space-md) 0;
  border-bottom: 1px solid var(--tf-color-border);
  align-items: flex-start;
}

.post-numbered__item:first-child {
  padding-top: 0;
}

.post-numbered__item:last-child {
  border-bottom: none;
}

.post-numbered__item::before {
  counter-increment: post-counter;
  content: counter(post-counter);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--tf-color-accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}

.post-numbered__content {
  flex: 1;
  min-width: 0;
}

.post-numbered__title {
  font-size: var(--tf-size-body);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 2px;
}

.post-numbered__title a {
  color: var(--tf-color-text);
  text-decoration: none;
}

.post-numbered__title a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.post-numbered__meta {
  font-size: var(--tf-size-meta);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   12. CATEGORY BADGES
============================================ */

.cat-badge {
  display: inline-block;
  background-color: var(--tf-color-accent);
  color: var(--tf-color-white);
  padding: 4px 12px;
  font-size: var(--tf-size-badge);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--tf-border-radius-pill);
  text-decoration: none;
  line-height: 1.4;
  transition: background-color var(--tf-transition-fast), transform var(--tf-transition-fast);
  cursor: pointer;
  border: none;
}

.cat-badge:hover {
  background-color: var(--tf-color-accent-hover);
  color: var(--tf-color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.cat-badge--small {
  padding: 2px 8px;
  font-size: 0.625rem;
}

.cat-badge--large {
  padding: 6px 16px;
  font-size: var(--tf-size-meta);
}

.cat-badge--outline {
  background-color: transparent;
  color: var(--tf-color-accent);
  border: 2px solid var(--tf-color-accent);
}

.cat-badge--outline:hover {
  background-color: var(--tf-color-accent);
  color: var(--tf-color-white);
}

.cat-badge--dark {
  background-color: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
}

.cat-badge--dark:hover {
  background-color: #333333;
}

/* Category-specific colors */
.cat-badge--startups { background-color: #00A562; }
.cat-badge--venture { background-color: #0A6ECE; }
.cat-badge--apple { background-color: #555555; }
.cat-badge--security { background-color: #E53E3E; }
.cat-badge--ai { background-color: #805AD5; }
.cat-badge--apps { background-color: #DD6B20; }
.cat-badge--events { background-color: #38A169; }
.cat-badge--podcasts { background-color: #3182CE; }

/* ============================================
   13. AUTHOR BYLINES
============================================ */

.byline {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
}

.byline__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.byline__avatar--small {
  width: 24px;
  height: 24px;
}

.byline__avatar--large {
  width: 48px;
  height: 48px;
}

.byline__info {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.byline__author {
  font-weight: 700;
  color: var(--tf-color-text);
  text-decoration: none;
}

.byline__author:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.byline__details {
  font-size: var(--tf-size-meta);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.byline__separator {
  margin: 0 var(--tf-space-xs);
}

/* Author box at bottom of single post */
.author-box {
  display: flex;
  gap: var(--tf-space-lg);
  padding: var(--tf-space-xl);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
  margin-top: var(--tf-space-3xl);
}

.author-box__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box__content {
  flex: 1;
}

.author-box__name {
  font-size: var(--tf-size-h4);
  font-weight: 800;
  margin-bottom: var(--tf-space-xs);
}

.author-box__name a {
  color: var(--tf-color-text);
  text-decoration: none;
}

.author-box__name a:hover {
  color: var(--tf-color-accent);
}

.author-box__role {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--tf-space-sm);
}

.author-box__bio {
  font-size: var(--tf-size-body);
  color: var(--tf-color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--tf-space-md);
}

.author-box__social {
  display: flex;
  gap: var(--tf-space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-box__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tf-color-white);
  color: var(--tf-color-text-secondary);
  text-decoration: none;
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast);
}

.author-box__social a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* ============================================
   14. SIDEBAR & WIDGETS
============================================ */

/* Sidebar base */
.sidebar {
  font-size: var(--tf-size-body);
}

/* WordPress widget base */
.widget {
  margin-bottom: var(--tf-space-2xl);
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: var(--tf-size-h5);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--tf-space-md);
  padding-bottom: var(--tf-space-sm);
  border-bottom: 2px solid var(--tf-color-text);
  color: var(--tf-color-text);
}

/* Widget lists */
.widget ul,
.widget ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li,
.widget ol li {
  padding: var(--tf-space-sm) 0;
  border-bottom: 1px solid var(--tf-color-border);
}

.widget ul li:first-child,
.widget ol li:first-child {
  padding-top: 0;
}

.widget ul li:last-child,
.widget ol li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget ul li a,
.widget ol li a {
  color: var(--tf-color-text);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--tf-transition-fast);
  display: block;
}

.widget ul li a:hover,
.widget ol li a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

/* Widget: Recent Posts with thumbnails */
.widget_recent_entries li {
  display: flex;
  gap: var(--tf-space-sm);
  align-items: flex-start;
}

.widget_recent_entries .post-date {
  display: block;
  font-size: var(--tf-size-meta);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* Widget: Categories / Tags */
.widget_categories ul,
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-xs);
}

.widget_categories ul li,
.tagcloud a {
  display: inline-block;
  padding: var(--tf-space-xs) var(--tf-space-sm);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small) !important;
  font-weight: 600;
  text-decoration: none;
  color: var(--tf-color-text);
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast);
  border: none;
}

.widget_categories ul li {
  padding: 0;
  border-bottom: none;
}

.widget_categories ul li a {
  display: block;
  padding: var(--tf-space-xs) var(--tf-space-sm);
}

.tagcloud a:hover,
.widget_categories ul li a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* Widget: Search */
.widget_search .search-form {
  display: flex;
  gap: 0;
}

.widget_search .search-field {
  flex: 1;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 2px solid var(--tf-color-border);
  border-right: none;
  border-radius: var(--tf-border-radius) 0 0 var(--tf-border-radius);
  font-size: var(--tf-size-body);
  outline: none;
  transition: border-color var(--tf-transition-fast);
}

.widget_search .search-field:focus {
  border-color: var(--tf-color-accent);
}

.widget_search .search-submit {
  padding: var(--tf-space-sm) var(--tf-space-md);
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border: 2px solid var(--tf-color-accent);
  border-radius: 0 var(--tf-border-radius) var(--tf-border-radius) 0;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--tf-transition-fast), border-color var(--tf-transition-fast);
}

.widget_search .search-submit:hover {
  background: var(--tf-color-accent-hover);
  border-color: var(--tf-color-accent-hover);
}

/* Widget: Calendar */
.widget_calendar table {
  width: 100%;
  text-align: center;
}

.widget_calendar caption {
  font-weight: 700;
  margin-bottom: var(--tf-space-sm);
  text-align: center;
}

.widget_calendar th {
  background: var(--tf-color-bg-alt);
  font-weight: 700;
  padding: var(--tf-space-xs);
}

.widget_calendar td {
  padding: var(--tf-space-xs);
  border: 1px solid var(--tf-color-border);
}

.widget_calendar td a {
  font-weight: 700;
  color: var(--tf-color-accent);
}

/* Widget: Text / Custom HTML */
.widget_text .textwidget p {
  margin-bottom: var(--tf-space-md);
}

.widget_text .textwidget p:last-child {
  margin-bottom: 0;
}

/* Widget: Archive / Meta */
.widget_archive select,
.widget_categories select {
  width: 100%;
  padding: var(--tf-space-sm);
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-body);
}

/* ============================================
   15. TOP HEADLINES WIDGET
============================================ */

.top-headlines {
  background: var(--tf-color-white);
  border-left: 4px solid var(--tf-color-accent);
  padding: var(--tf-space-lg) var(--tf-space-lg) var(--tf-space-lg) var(--tf-space-xl);
  margin-bottom: var(--tf-space-2xl);
}

.top-headlines__title {
  font-size: var(--tf-size-h5);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--tf-space-md);
  color: var(--tf-color-text);
}

.top-headlines__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: headline-counter;
}

.top-headlines__item {
  padding: var(--tf-space-sm) 0 var(--tf-space-sm) var(--tf-space-lg);
  border-bottom: 1px solid var(--tf-color-border);
  position: relative;
}

.top-headlines__item:first-child {
  padding-top: 0;
}

.top-headlines__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.top-headlines__item::before {
  counter-increment: headline-counter;
  content: counter(headline-counter);
  position: absolute;
  left: 0;
  top: var(--tf-space-sm);
  font-size: var(--tf-size-small);
  font-weight: 900;
  color: var(--tf-color-accent);
  line-height: 1.4;
}

.top-headlines__item:first-child::before {
  top: 0;
}

.top-headlines__link {
  display: block;
  text-decoration: none;
  color: var(--tf-color-text);
  font-weight: 700;
  font-size: var(--tf-size-small);
  line-height: 1.4;
  transition: color var(--tf-transition-fast);
}

.top-headlines__link:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.top-headlines__meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
  font-weight: 500;
}

/* ============================================
   16. AD CONTAINERS & PLACEMENTS
============================================ */

/* Base ad slot */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tf-color-bg-alt);
  overflow: hidden;
  text-align: center;
}

.ad-slot__label {
  display: block;
  font-size: 0.625rem;
  color: var(--tf-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: var(--tf-space-xs);
  font-weight: 500;
}

.ad-slot img,
.ad-slot iframe,
.ad-slot > div {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Header leaderboard ad (728x90) */
.ad-header {
  background: var(--tf-color-bg-alt);
  padding: var(--tf-space-md) 0;
  text-align: center;
  border-bottom: 1px solid var(--tf-color-border);
}

.ad-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

/* In-article ad */
.ad-inarticle {
  margin: var(--tf-space-2xl) 0;
  padding: var(--tf-space-lg);
  background: var(--tf-color-bg-alt);
  border-top: 1px solid var(--tf-color-border);
  border-bottom: 1px solid var(--tf-color-border);
  text-align: center;
}

.ad-inarticle__label {
  font-size: 0.625rem;
  color: var(--tf-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--tf-space-sm);
  font-weight: 500;
}

/* Sidebar ad boxes */
.ad-sidebar {
  margin-bottom: var(--tf-space-xl);
  text-align: center;
}

.ad-sidebar--medium {
  min-height: 250px;
}

.ad-sidebar--large {
  min-height: 600px;
}

.ad-sidebar__label {
  font-size: 0.625rem;
  color: var(--tf-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--tf-space-xs);
  font-weight: 500;
}

/* Ad between posts in lists */
.ad-between-posts {
  margin: var(--tf-space-lg) 0;
  padding: var(--tf-space-md);
  background: var(--tf-color-bg-alt);
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-border-radius);
  text-align: center;
}

/* Sticky footer ad */
.ad-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tf-color-bg);
  border-top: 1px solid var(--tf-color-border);
  padding: var(--tf-space-sm);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform var(--tf-transition-base);
}

.ad-sticky-footer--hidden {
  transform: translateY(100%);
}

.ad-sticky-footer__close {
  position: absolute;
  right: var(--tf-space-sm);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--tf-color-text-secondary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--tf-transition-fast);
}

.ad-sticky-footer__close:hover {
  background-color: var(--tf-color-bg-alt);
}

/* Ad placeholder styling */
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--tf-color-bg-alt),
    var(--tf-color-bg-alt) 10px,
    #f0f0f0 10px,
    #f0f0f0 20px
  );
  color: var(--tf-color-text-muted);
  font-size: var(--tf-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px dashed var(--tf-color-border);
}

.ad-placeholder--leaderboard {
  width: 728px;
  height: 90px;
}

.ad-placeholder--medium {
  width: 300px;
  height: 250px;
}

.ad-placeholder--large {
  width: 300px;
  height: 600px;
}

.ad-placeholder--halfpage {
  width: 300px;
  height: 600px;
}


/* ============================================
   17. PAGINATION & NAVIGATION LINKS
============================================ */

/* WordPress default pagination */
.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--tf-space-xs);
  margin: var(--tf-space-3xl) 0 var(--tf-space-xl);
  flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--tf-space-md);
  font-size: var(--tf-size-small);
  font-weight: 700;
  color: var(--tf-color-text);
  background: var(--tf-color-bg);
  border: 2px solid var(--tf-color-border);
  border-radius: var(--tf-border-radius);
  text-decoration: none;
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast), border-color var(--tf-transition-fast);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border-color: var(--tf-color-accent);
  text-decoration: none;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
  border-color: var(--tf-color-bg-dark);
}

.pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
}

.pagination .page-numbers.dots:hover,
.nav-links .page-numbers.dots:hover {
  background: transparent;
  color: var(--tf-color-text);
  border-color: transparent;
}

.pagination .prev,
.pagination .next,
.nav-links .prev,
.nav-links .next {
  padding: 0 var(--tf-space-lg);
}

/* Older / Newer post navigation */
.post-navigation {
  margin: var(--tf-space-3xl) 0 var(--tf-space-xl);
  padding-top: var(--tf-space-xl);
  border-top: 1px solid var(--tf-color-border);
}

.post-navigation__title {
  font-size: var(--tf-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tf-color-text-secondary);
  margin-bottom: var(--tf-space-md);
}

.post-navigation__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tf-space-lg);
}

.post-navigation__link {
  display: block;
  text-decoration: none;
  padding: var(--tf-space-lg);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
  transition: background-color var(--tf-transition-fast);
}

.post-navigation__link:hover {
  background: var(--tf-color-border);
  text-decoration: none;
}

.post-navigation__label {
  display: block;
  font-size: var(--tf-size-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tf-color-accent);
  margin-bottom: var(--tf-space-xs);
}

.post-navigation__post-title {
  font-size: var(--tf-size-body);
  font-weight: 700;
  color: var(--tf-color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-navigation__link:hover .post-navigation__post-title {
  color: var(--tf-color-accent);
}

/* Load more button */
.load-more {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: var(--tf-space-2xl) auto;
  padding: var(--tf-space-md) var(--tf-space-xl);
  background: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
  border: none;
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--tf-transition-fast), transform var(--tf-transition-fast);
}

.load-more:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
  transform: translateY(-2px);
}

.load-more--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Infinite scroll loader */
.infinite-scroll-loader {
  text-align: center;
  padding: var(--tf-space-xl);
  color: var(--tf-color-text-secondary);
}

.infinite-scroll-loader::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--tf-color-border);
  border-top-color: var(--tf-color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   18. FOOTER
============================================ */

.site-footer {
  background: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
  padding: 0;
  margin-top: auto;
}

/* Footer top - widgets area */
.footer-top {
  padding: var(--tf-space-3xl) 0 var(--tf-space-2xl);
  border-bottom: 1px solid var(--tf-color-border-dark);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--tf-space-2xl);
}

.footer-widget {
  min-width: 0;
}

.footer-widget__title {
  font-size: var(--tf-size-h5);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-white);
  margin-bottom: var(--tf-space-lg);
  padding-bottom: var(--tf-space-sm);
  border-bottom: 2px solid var(--tf-color-accent);
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget ul li {
  padding: var(--tf-space-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget ul li:first-child {
  padding-top: 0;
}

.footer-widget ul li:last-child {
  border-bottom: none;
}

.footer-widget ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: var(--tf-size-small);
  transition: color var(--tf-transition-fast), padding-left var(--tf-transition-fast);
  display: block;
}

.footer-widget ul li a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
  padding-left: var(--tf-space-xs);
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--tf-size-small);
  line-height: 1.7;
}

.footer-widget .textwidget a {
  color: var(--tf-color-accent);
}

.footer-widget .textwidget a:hover {
  color: var(--tf-color-accent-hover);
}

/* Footer tag cloud */
.footer-widget .tagcloud a {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

.footer-widget .tagcloud a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
}

/* Footer bottom */
.footer-bottom {
  padding: var(--tf-space-lg) 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--tf-space-md);
}

.footer-bottom__copyright {
  font-size: var(--tf-size-small);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-bottom__copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-bottom__copyright a:hover {
  color: var(--tf-color-accent);
}

.footer-bottom__links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--tf-space-lg);
}

.footer-bottom__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--tf-size-small);
  font-weight: 500;
  transition: color var(--tf-transition-fast);
}

.footer-bottom__links a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

/* Footer social links */
.footer-social {
  display: flex;
  gap: var(--tf-space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-social a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--tf-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--tf-transition-base), visibility var(--tf-transition-base), transform var(--tf-transition-base), background-color var(--tf-transition-fast);
  z-index: 9990;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--tf-color-accent-hover);
  transform: translateY(-3px);
}

/* ============================================
   19. SINGLE POST LAYOUT
============================================ */

/* Single post header */
.single-post .entry-header {
  margin-bottom: var(--tf-space-xl);
}

.single-post .entry-header__meta {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  margin-bottom: var(--tf-space-md);
  flex-wrap: wrap;
}

.single-post .entry-category {
  margin-bottom: var(--tf-space-md);
}

.single-post .entry-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--tf-space-lg);
  color: var(--tf-color-text);
}

/* Featured image */
.post-thumbnail {
  margin-bottom: var(--tf-space-xl);
  overflow: hidden;
  border-radius: var(--tf-border-radius);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

/* Full-width hero image variant */
.post-thumbnail--full {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
  border-radius: 0;
}

.post-thumbnail--full img {
  max-height: 500px;
  width: 100%;
}

/* Post byline in single */
.entry-byline {
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
  padding: var(--tf-space-md) 0;
  border-top: 1px solid var(--tf-color-border);
  border-bottom: 1px solid var(--tf-color-border);
  margin-bottom: var(--tf-space-xl);
  flex-wrap: wrap;
}

.entry-byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.entry-byline__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.entry-byline__author {
  font-weight: 800;
  color: var(--tf-color-text);
  text-decoration: none;
  font-size: var(--tf-size-body);
}

.entry-byline__author:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.entry-byline__details {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.entry-byline__details .date {
  margin-right: var(--tf-space-sm);
}

.entry-byline__details .reading-time::before {
  content: "\2022";
  margin-right: var(--tf-space-sm);
}

/* Article content area */
.entry-content-wrapper {
  max-width: 740px;
  margin: 0 auto;
}

/* Post tags */
.entry-tags {
  margin-top: var(--tf-space-2xl);
  padding-top: var(--tf-space-xl);
  border-top: 1px solid var(--tf-color-border);
}

.entry-tags__label {
  font-size: var(--tf-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-text-secondary);
  margin-bottom: var(--tf-space-sm);
}

.entry-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-tags__list li a {
  display: inline-block;
  padding: var(--tf-space-xs) var(--tf-space-md);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small);
  font-weight: 600;
  color: var(--tf-color-text);
  text-decoration: none;
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast);
}

.entry-tags__list li a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* ============================================
   20. ARCHIVE PAGE
============================================ */

/* Archive header */
.archive-header {
  padding: var(--tf-space-3xl) 0 var(--tf-space-xl);
  text-align: center;
  background: var(--tf-color-bg-alt);
  margin-bottom: var(--tf-space-2xl);
}

.archive-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--tf-space-sm);
}

.archive-header__description {
  font-size: var(--tf-size-h4);
  color: var(--tf-color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

.archive-header__count {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: var(--tf-space-md);
}

/* Author archive header */
.author-header {
  display: flex;
  align-items: center;
  gap: var(--tf-space-xl);
  padding: var(--tf-space-3xl) 0 var(--tf-space-2xl);
  margin-bottom: var(--tf-space-2xl);
  border-bottom: 2px solid var(--tf-color-text);
}

.author-header__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-header__info {
  flex: 1;
}

.author-header__name {
  font-size: var(--tf-size-h1);
  font-weight: 900;
  margin-bottom: var(--tf-space-xs);
}

.author-header__role {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--tf-space-sm);
}

.author-header__bio {
  font-size: var(--tf-size-body);
  color: var(--tf-color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.author-header__social {
  display: flex;
  gap: var(--tf-space-sm);
  margin-top: var(--tf-space-md);
  list-style: none;
  padding: 0;
}

.author-header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tf-color-bg-alt);
  color: var(--tf-color-text);
  text-decoration: none;
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast);
}

.author-header__social a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* Category archive header */
.category-header {
  background: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
  padding: var(--tf-space-3xl) 0 var(--tf-space-2xl);
  margin-bottom: var(--tf-space-2xl);
}

.category-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--tf-color-white);
  margin-bottom: var(--tf-space-sm);
}

.category-header__description {
  font-size: var(--tf-size-h4);
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  font-weight: 400;
}

/* Archive layout */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--tf-space-xl);
}

.archive-grid .article-card:first-child {
  grid-column: 1 / -1;
}

/* Date archive grouping */
.date-group__label {
  font-size: var(--tf-size-h4);
  font-weight: 900;
  color: var(--tf-color-text-secondary);
  margin: var(--tf-space-2xl) 0 var(--tf-space-lg);
  padding-bottom: var(--tf-space-sm);
  border-bottom: 1px solid var(--tf-color-border);
}

/* ============================================
   21. SEARCH RESULTS PAGE
============================================ */

.search-header {
  padding: var(--tf-space-3xl) 0 var(--tf-space-xl);
  margin-bottom: var(--tf-space-xl);
  border-bottom: 2px solid var(--tf-color-text);
}

.search-header__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--tf-space-md);
}

.search-header__query {
  color: var(--tf-color-accent);
}

.search-header__count {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.search-form--page {
  max-width: 600px;
  margin-bottom: var(--tf-space-2xl);
}

.search-form--page .search-form {
  display: flex;
  gap: 0;
}

.search-form--page .search-field {
  flex: 1;
  padding: var(--tf-space-md) var(--tf-space-lg);
  border: 2px solid var(--tf-color-text);
  border-right: none;
  border-radius: var(--tf-border-radius) 0 0 var(--tf-border-radius);
  font-size: var(--tf-size-body);
  outline: none;
  transition: border-color var(--tf-transition-fast);
}

.search-form--page .search-field:focus {
  border-color: var(--tf-color-accent);
}

.search-form--page .search-submit {
  padding: var(--tf-space-md) var(--tf-space-xl);
  background: var(--tf-color-text);
  color: var(--tf-color-white);
  border: 2px solid var(--tf-color-text);
  border-radius: 0 var(--tf-border-radius) var(--tf-border-radius) 0;
  font-weight: 700;
  font-size: var(--tf-size-body);
  cursor: pointer;
  transition: background-color var(--tf-transition-fast), border-color var(--tf-transition-fast);
}

.search-form--page .search-submit:hover {
  background: var(--tf-color-accent);
  border-color: var(--tf-color-accent);
}

/* Search result item */
.search-result {
  padding: var(--tf-space-lg) 0;
  border-bottom: 1px solid var(--tf-color-border);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result__title {
  font-size: var(--tf-size-h3);
  font-weight: 800;
  margin-bottom: var(--tf-space-xs);
}

.search-result__title a {
  color: var(--tf-color-text);
  text-decoration: none;
}

.search-result__title a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.search-result__type {
  display: inline-block;
  font-size: var(--tf-size-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-accent);
  margin-bottom: var(--tf-space-sm);
}

.search-result__excerpt {
  font-size: var(--tf-size-body);
  color: var(--tf-color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--tf-space-sm);
}

.search-result__excerpt mark {
  background: rgba(0, 165, 98, 0.15);
  color: inherit;
  font-weight: 700;
  padding: 0 2px;
}

.search-result__meta {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   22. 404 PAGE
============================================ */

.error-404 {
  text-align: center;
  padding: var(--tf-space-3xl) 0;
  max-width: 600px;
  margin: 0 auto;
}

.error-404__code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--tf-color-bg-alt);
  letter-spacing: -0.05em;
  margin-bottom: var(--tf-space-md);
  user-select: none;
}

.error-404__title {
  font-size: var(--tf-size-h2);
  font-weight: 900;
  margin-bottom: var(--tf-space-md);
}

.error-404__message {
  font-size: var(--tf-size-h4);
  color: var(--tf-color-text-secondary);
  margin-bottom: var(--tf-space-xl);
  font-weight: 400;
}

.error-404__search {
  max-width: 500px;
  margin: 0 auto var(--tf-space-2xl);
}

.error-404__suggestions {
  text-align: left;
}

.error-404__suggestions-title {
  font-size: var(--tf-size-h4);
  font-weight: 800;
  margin-bottom: var(--tf-space-md);
  text-align: center;
}

.error-404__suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tf-space-sm);
}

.error-404__suggestions-list a {
  display: block;
  padding: var(--tf-space-sm) var(--tf-space-md);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
  color: var(--tf-color-text);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast);
}

.error-404__suggestions-list a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* ============================================
   23. COMMENTS SECTION
============================================ */

.comments-area {
  margin-top: var(--tf-space-3xl);
  padding-top: var(--tf-space-2xl);
  border-top: 2px solid var(--tf-color-text);
}

.comments-title {
  font-size: var(--tf-size-h3);
  font-weight: 900;
  margin-bottom: var(--tf-space-xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin-left: var(--tf-space-xl);
  padding-left: var(--tf-space-xl);
  border-left: 2px solid var(--tf-color-border);
}

.comment {
  margin-bottom: var(--tf-space-xl);
  padding-bottom: var(--tf-space-xl);
  border-bottom: 1px solid var(--tf-color-border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-body {
  display: flex;
  gap: var(--tf-space-md);
}

.comment-meta {
  margin-bottom: var(--tf-space-xs);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  margin-bottom: var(--tf-space-xs);
}

.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-author .fn {
  font-weight: 800;
  font-size: var(--tf-size-body);
  font-style: normal;
}

.comment-author .fn a {
  color: var(--tf-color-text);
  text-decoration: none;
}

.comment-author .fn a:hover {
  color: var(--tf-color-accent);
}

.comment-metadata {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comment-metadata a {
  color: var(--tf-color-text-secondary);
  text-decoration: none;
}

.comment-metadata a:hover {
  color: var(--tf-color-accent);
}

.comment-content {
  font-size: var(--tf-size-body);
  line-height: 1.7;
  color: #333333;
  margin-bottom: var(--tf-space-sm);
}

.comment-content p {
  margin-bottom: var(--tf-space-sm);
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply-link {
  font-size: var(--tf-size-small);
  font-weight: 700;
  color: var(--tf-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.comment-reply-link:hover {
  color: var(--tf-color-accent-hover);
  text-decoration: underline;
}

/* Bypostauthor highlight */
.bypostauthor > .comment-body {
  background: var(--tf-color-bg-alt);
  padding: var(--tf-space-md);
  border-radius: var(--tf-border-radius);
}

/* Comment form */
.comment-respond {
  margin-top: var(--tf-space-2xl);
  padding: var(--tf-space-xl);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
}

.comment-reply-title {
  font-size: var(--tf-size-h4);
  font-weight: 900;
  margin-bottom: var(--tf-space-md);
}

.comment-form {
  display: grid;
  gap: var(--tf-space-md);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-xs);
}

.comment-form label {
  font-size: var(--tf-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-body);
  font-family: var(--tf-font-body);
  transition: border-color var(--tf-transition-fast);
  width: 100%;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--tf-color-accent);
  outline: none;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
}

.comment-form-cookies-consent label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--tf-size-small);
}

.form-submit {
  margin: 0;
}

.form-submit input[type="submit"] {
  display: inline-block;
  padding: var(--tf-space-sm) var(--tf-space-xl);
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border: none;
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color var(--tf-transition-fast);
}

.form-submit input[type="submit"]:hover {
  background: var(--tf-color-accent-hover);
}

/* ============================================
   24. FORMS & INPUTS
============================================ */

/* Form base */
.tf-form {
  max-width: 600px;
}

.tf-form__group {
  margin-bottom: var(--tf-space-md);
}

.tf-form__label {
  display: block;
  font-size: var(--tf-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--tf-space-xs);
  color: var(--tf-color-text);
}

.tf-form__input,
.tf-form__textarea,
.tf-form__select {
  display: block;
  width: 100%;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 2px solid var(--tf-color-border);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-body);
  font-family: var(--tf-font-body);
  background: var(--tf-color-bg);
  color: var(--tf-color-text);
  transition: border-color var(--tf-transition-fast), box-shadow var(--tf-transition-fast);
}

.tf-form__input:focus,
.tf-form__textarea:focus,
.tf-form__select:focus {
  border-color: var(--tf-color-accent);
  box-shadow: 0 0 0 3px rgba(0, 165, 98, 0.1);
  outline: none;
}

.tf-form__input::placeholder,
.tf-form__textarea::placeholder {
  color: var(--tf-color-text-muted);
}

.tf-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.tf-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Checkbox and radio */
.tf-form__check {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  cursor: pointer;
}

.tf-form__check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--tf-color-accent);
  cursor: pointer;
}

.tf-form__check-label {
  font-size: var(--tf-size-small);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

/* Buttons */
.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tf-space-xs);
  padding: var(--tf-space-sm) var(--tf-space-lg);
  font-size: var(--tf-size-small);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  border-radius: var(--tf-border-radius);
  cursor: pointer;
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast), transform var(--tf-transition-fast), box-shadow var(--tf-transition-fast);
  font-family: var(--tf-font-body);
  line-height: 1.5;
}

.tf-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--tf-shadow-sm);
}

.tf-btn:active {
  transform: translateY(0);
}

.tf-btn--primary {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
}

.tf-btn--primary:hover {
  background: var(--tf-color-accent-hover);
  color: var(--tf-color-white);
}

.tf-btn--secondary {
  background: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
}

.tf-btn--secondary:hover {
  background: #333333;
  color: var(--tf-color-white);
}

.tf-btn--outline {
  background: transparent;
  color: var(--tf-color-text);
  border: 2px solid var(--tf-color-border);
}

.tf-btn--outline:hover {
  border-color: var(--tf-color-accent);
  color: var(--tf-color-accent);
  background: transparent;
}

.tf-btn--large {
  padding: var(--tf-space-md) var(--tf-space-xl);
  font-size: var(--tf-size-body);
}

.tf-btn--small {
  padding: var(--tf-space-xs) var(--tf-space-md);
  font-size: var(--tf-size-meta);
}

.tf-btn--full {
  width: 100%;
}

.tf-btn:disabled,
.tf-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   25. SOCIAL SHARING
============================================ */

.social-share {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  flex-wrap: wrap;
}

.social-share__label {
  font-size: var(--tf-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-text-secondary);
  margin-right: var(--tf-space-sm);
}

.social-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tf-space-xs);
  padding: var(--tf-space-xs) var(--tf-space-md);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small);
  font-weight: 700;
  text-decoration: none;
  color: var(--tf-color-white);
  transition: opacity var(--tf-transition-fast), transform var(--tf-transition-fast);
}

.social-share__btn:hover {
  opacity: 0.85;
  text-decoration: none;
  transform: translateY(-2px);
  color: var(--tf-color-white);
}

.social-share__btn--twitter {
  background: #000000;
}

.social-share__btn--facebook {
  background: #1877F2;
}

.social-share__btn--linkedin {
  background: #0A66C2;
}

.social-share__btn--reddit {
  background: #FF4500;
}

.social-share__btn--email {
  background: #777777;
}

.social-share__btn--copy {
  background: var(--tf-color-bg-dark);
}

/* ============================================
   26. RELATED POSTS
============================================ */

.related-posts {
  margin-top: var(--tf-space-3xl);
  padding-top: var(--tf-space-2xl);
  border-top: 1px solid var(--tf-color-border);
}

.related-posts__title {
  font-size: var(--tf-size-h4);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--tf-space-lg);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tf-space-lg);
}

.related-post {
  display: flex;
  flex-direction: column;
}

.related-post__image {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: var(--tf-border-radius);
  background: var(--tf-color-bg-alt);
  margin-bottom: var(--tf-space-sm);
}

.related-post__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tf-transition-slow);
}

.related-post:hover .related-post__image img {
  transform: scale(1.05);
}

.related-post__category {
  margin-bottom: var(--tf-space-xs);
}

.related-post__title {
  font-size: var(--tf-size-body);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post__title a {
  color: var(--tf-color-text);
  text-decoration: none;
}

.related-post__title a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.related-post__meta {
  font-size: var(--tf-size-meta);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: var(--tf-space-xs);
}

/* ============================================
   27. READING PROGRESS BAR
============================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--tf-color-accent), #00D68F);
  z-index: 100000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================
   28. BREADCRUMB NAVIGATION
============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--tf-space-xs);
  padding: var(--tf-space-sm) 0;
  margin-bottom: var(--tf-space-md);
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  list-style: none;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--tf-space-xs);
}

.breadcrumb__item a {
  color: var(--tf-color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--tf-transition-fast);
}

.breadcrumb__item a:hover {
  color: var(--tf-color-accent);
  text-decoration: none;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  color: var(--tf-color-text-muted);
  margin-left: var(--tf-space-xs);
}

.breadcrumb__item--current {
  color: var(--tf-color-text);
  font-weight: 700;
}

/* ============================================
   29. NEWSLETTER SIGNUP
============================================ */

.newsletter-widget {
  background: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
  padding: var(--tf-space-xl);
  border-radius: var(--tf-border-radius);
  text-align: center;
}

.newsletter-widget__icon {
  font-size: 2rem;
  margin-bottom: var(--tf-space-sm);
  color: var(--tf-color-accent);
}

.newsletter-widget__title {
  font-size: var(--tf-size-h4);
  font-weight: 900;
  margin-bottom: var(--tf-space-sm);
  color: var(--tf-color-white);
}

.newsletter-widget__description {
  font-size: var(--tf-size-small);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--tf-space-lg);
  line-height: 1.6;
}

.newsletter-widget__form {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-sm);
}

.newsletter-widget__input {
  width: 100%;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--tf-border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--tf-color-white);
  font-size: var(--tf-size-body);
  font-family: var(--tf-font-body);
  outline: none;
  transition: border-color var(--tf-transition-fast);
}

.newsletter-widget__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-widget__input:focus {
  border-color: var(--tf-color-accent);
}

.newsletter-widget__submit {
  width: 100%;
  padding: var(--tf-space-sm) var(--tf-space-md);
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border: none;
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color var(--tf-transition-fast);
  font-family: var(--tf-font-body);
}

.newsletter-widget__submit:hover {
  background: var(--tf-color-accent-hover);
}

.newsletter-widget__privacy {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--tf-space-sm);
}

.newsletter-widget__privacy a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.newsletter-widget__privacy a:hover {
  color: var(--tf-color-accent);
}

/* Inline newsletter (within content) */
.newsletter-inline {
  background: var(--tf-color-bg-alt);
  border-left: 4px solid var(--tf-color-accent);
  padding: var(--tf-space-xl);
  margin: var(--tf-space-2xl) 0;
  border-radius: 0 var(--tf-border-radius) var(--tf-border-radius) 0;
}

.newsletter-inline__title {
  font-size: var(--tf-size-h4);
  font-weight: 900;
  margin-bottom: var(--tf-space-xs);
}

.newsletter-inline__description {
  font-size: var(--tf-size-body);
  color: var(--tf-color-text-secondary);
  margin-bottom: var(--tf-space-md);
}

.newsletter-inline__form {
  display: flex;
  gap: var(--tf-space-sm);
}

.newsletter-inline__input {
  flex: 1;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 2px solid var(--tf-color-border);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-body);
  font-family: var(--tf-font-body);
  outline: none;
  transition: border-color var(--tf-transition-fast);
}

.newsletter-inline__input:focus {
  border-color: var(--tf-color-accent);
}

.newsletter-inline__submit {
  padding: var(--tf-space-sm) var(--tf-space-lg);
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border: none;
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--tf-transition-fast);
  font-family: var(--tf-font-body);
  white-space: nowrap;
}

.newsletter-inline__submit:hover {
  background: var(--tf-color-accent-hover);
}


/* ============================================
   30. LOADING ANIMATIONS
============================================ */

/* Skeleton loading screen */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--tf-color-bg-alt) 25%,
    #f0f0f0 50%,
    var(--tf-color-bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--tf-border-radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Shimmer effect for cards */
.card--loading .article-card__image-wrapper,
.card--loading .article-card__title,
.card--loading .article-card__meta {
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
}

.card--loading .article-card__image-wrapper {
  padding-top: 56.25%;
}

.card--loading .article-card__title {
  height: 60px;
  margin-bottom: var(--tf-space-sm);
}

.card--loading .article-card__meta {
  height: 20px;
  width: 60%;
}

/* Fade in animation for posts */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-fade-in--1 { animation-delay: 0.05s; opacity: 0; }
.animate-fade-in--2 { animation-delay: 0.1s; opacity: 0; }
.animate-fade-in--3 { animation-delay: 0.15s; opacity: 0; }
.animate-fade-in--4 { animation-delay: 0.2s; opacity: 0; }
.animate-fade-in--5 { animation-delay: 0.25s; opacity: 0; }
.animate-fade-in--6 { animation-delay: 0.3s; opacity: 0; }

/* Stagger children animations */
.stagger-children > * {
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }

/* Hero image reveal */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-main__image {
  animation: heroReveal 0.8s ease-out forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-right {
  animation: slideInRight 0.5s ease-out forwards;
}

/* Pulse animation for loading states */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Spin animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   31. RESPONSIVE BREAKPOINTS
============================================ */

/* ---- Extra Large: 1200px and down ---- */
@media (max-width: 1200px) {
  :root {
    --tf-size-hero: 3rem;
  }

  .container {
    padding: 0 var(--tf-space-md);
  }

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

  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section__inner {
    min-height: 450px;
  }

  .hero-main {
    min-height: 450px;
  }

  .hero-main__title {
    font-size: 2.75rem;
  }
}

/* ---- Large: 992px and down ---- */
@media (max-width: 992px) {
  :root {
    --tf-size-hero: 2.5rem;
    --tf-size-h1: 2rem;
    --tf-size-h2: 1.75rem;
    --tf-size-h3: 1.375rem;
    --tf-size-h4: 1.125rem;
  }

  /* Layout becomes single column */
  .content-area {
    flex-direction: column;
  }

  .main-content {
    flex: 1 1 100%;
    padding-right: 0;
  }

  .sidebar {
    flex: 1 1 100%;
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--tf-color-text);
    margin-top: var(--tf-space-2xl);
    padding-top: var(--tf-space-2xl);
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .grid-layout .sidebar {
    border-top: 2px solid var(--tf-color-text);
    margin-top: var(--tf-space-2xl);
    padding-top: var(--tf-space-2xl);
  }

  /* Hero section stacks vertically */
  .hero-section__inner {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 400px;
  }

  .hero-main__title {
    font-size: 2.25rem;
  }

  .hero-main__content {
    padding: var(--tf-space-xl);
  }

  .hero-side {
    flex-direction: row;
    gap: 2px;
  }

  .hero-side__item {
    min-height: 200px;
    flex: 1;
  }

  /* Card grids reduce columns */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Horizontal cards stack */
  .article-card--horizontal {
    flex-direction: column;
    gap: var(--tf-space-md);
  }

  .article-card--horizontal .article-card__image-wrapper {
    flex: none;
    width: 100%;
    height: 220px;
    padding-top: 0;
  }

  /* Post items stack */
  .post-item {
    flex-direction: column;
    gap: var(--tf-space-md);
  }

  .post-item__image {
    flex: none;
    width: 100%;
    height: 200px;
  }

  /* Post navigation stacks */
  .post-navigation__links {
    grid-template-columns: 1fr;
  }

  /* Related posts */
  .related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer widgets */
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tf-space-xl);
  }

  /* Logo */
  .site-title__text {
    font-size: 2.25rem;
  }

  /* Newsletter inline form */
  .newsletter-inline__form {
    flex-direction: column;
  }

  .newsletter-inline__submit {
    width: 100%;
  }

  /* Archive grid */
  .archive-grid {
    grid-template-columns: 1fr;
  }

  /* Author header */
  .author-header {
    flex-direction: column;
    text-align: center;
  }

  .author-header__social {
    justify-content: center;
  }

  /* Full-width thumbnail */
  .post-thumbnail--full {
    margin-left: calc(-1 * var(--tf-space-md));
    margin-right: calc(-1 * var(--tf-space-md));
    width: calc(100% + 2 * var(--tf-space-md));
  }
}

/* ---- Medium: 768px and down ---- */
@media (max-width: 768px) {
  :root {
    --tf-size-hero: 2rem;
    --tf-size-h1: 1.75rem;
    --tf-size-h2: 1.5rem;
    --tf-size-h3: 1.25rem;
    --tf-size-h4: 1.125rem;
  }

  body {
    font-size: 0.9375rem;
  }

  /* Container padding */
  .container {
    padding: 0 var(--tf-space-md);
  }

  /* Top bar - scrollable */
  .top-bar__inner {
    height: 36px;
  }

  .top-bar__nav a {
    padding: 0 var(--tf-space-sm);
    font-size: 0.625rem;
    line-height: 36px;
  }

  /* Logo bar */
  .logo-bar {
    padding: var(--tf-space-md) 0;
  }

  .site-title__text {
    font-size: 1.75rem;
  }

  .site-title__tagline {
    font-size: 0.625rem;
  }

  .logo-bar__actions {
    position: static;
    transform: none;
    margin-top: var(--tf-space-sm);
  }

  /* Mobile navigation */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: var(--tf-space-md);
    transform: translateY(-50%);
  }

  .main-navigation {
    position: relative;
  }

  .main-navigation__inner {
    justify-content: flex-start;
  }

  .main-navigation .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tf-color-bg-dark);
    z-index: 100;
    padding: var(--tf-space-sm) 0;
    border-top: 1px solid var(--tf-color-border-dark);
    box-shadow: var(--tf-shadow-lg);
  }

  .main-navigation .menu.active {
    display: flex;
  }

  .main-navigation .menu > li {
    width: 100%;
  }

  .main-navigation .menu > li > a {
    padding: var(--tf-space-sm) var(--tf-space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .main-navigation .menu > li > a::after {
    display: none;
  }

  /* Dropdown in mobile */
  .main-navigation .sub-menu,
  .main-navigation .children {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-top: none;
    background: rgba(255, 255, 255, 0.03);
    min-width: auto;
    padding-left: var(--tf-space-lg);
  }

  .main-navigation .menu li.focus > .sub-menu,
  .main-navigation .menu li.focus > .children {
    display: block;
  }

  /* Hero */
  .hero-main {
    min-height: 350px;
  }

  .hero-main__title {
    font-size: 1.75rem;
  }

  .hero-main__content {
    padding: var(--tf-space-lg);
  }

  .hero-main__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tf-space-xs);
  }

  .hero-main__date::before {
    content: none;
  }

  .hero-side {
    flex-direction: column;
  }

  .hero-side__item {
    min-height: 150px;
  }

  /* Cards single column */
  .card-grid,
  .card-grid--2,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  /* Article cards */
  .article-card__title {
    font-size: var(--tf-size-body);
  }

  /* Compact cards stay horizontal */
  .article-card--compact {
    flex-direction: row;
  }

  .article-card--compact .article-card__image-wrapper {
    flex: 0 0 90px;
    height: 60px;
  }

  /* Post feed */
  .post-feed__thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 50px;
  }

  /* Section headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tf-space-xs);
  }

  /* Pagination */
  .pagination .page-numbers,
  .nav-links .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 var(--tf-space-sm);
    font-size: var(--tf-size-meta);
  }

  /* Footer */
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: var(--tf-space-xl);
  }

  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }

  /* Single post */
  .single-post .entry-title {
    font-size: 1.75rem;
  }

  .entry-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tf-space-sm);
  }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .author-box__social {
    justify-content: center;
  }

  /* Comments */
  .comment-body {
    flex-direction: column;
    gap: var(--tf-space-sm);
  }

  .comment-list .children {
    margin-left: var(--tf-space-md);
    padding-left: var(--tf-space-md);
  }

  .comment-respond {
    padding: var(--tf-space-md);
  }

  /* Social share */
  .social-share__label {
    width: 100%;
    margin-bottom: var(--tf-space-xs);
  }

  /* Related posts */
  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  /* 404 */
  .error-404__suggestions-list {
    grid-template-columns: 1fr;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* Sticky footer ad */
  .ad-sticky-footer {
    padding: var(--tf-space-xs);
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: var(--tf-size-meta);
  }

  /* Search overlay */
  .search-overlay__input {
    font-size: 1.5rem;
  }

  /* Full-width thumbnail */
  .post-thumbnail--full {
    margin-left: calc(-1 * var(--tf-space-md));
    margin-right: calc(-1 * var(--tf-space-md));
    width: calc(100% + 2 * var(--tf-space-md));
  }

  .post-thumbnail--full img {
    max-height: 300px;
  }
}

/* ---- Small: 480px and down ---- */
@media (max-width: 480px) {
  :root {
    --tf-size-hero: 1.625rem;
    --tf-size-h1: 1.5rem;
    --tf-size-h2: 1.375rem;
    --tf-size-h3: 1.125rem;
    --tf-size-h4: 1rem;
  }

  /* Very tight padding */
  .container {
    padding: 0 var(--tf-space-sm);
  }

  /* Top bar - hide some elements */
  .top-bar__right {
    display: none;
  }

  .top-bar__nav a {
    padding: 0 8px;
    font-size: 0.5625rem;
    letter-spacing: 0.03em;
  }

  /* Logo */
  .site-title__text {
    font-size: 1.5rem;
  }

  /* Hero */
  .hero-main {
    min-height: 300px;
  }

  .hero-main__title {
    font-size: 1.5rem;
  }

  .hero-main__content {
    padding: var(--tf-space-md);
  }

  .hero-side__title {
    font-size: var(--tf-size-small);
  }

  /* Post item images smaller */
  .post-item__image {
    height: 160px;
  }

  /* Meta text smaller */
  .byline,
  .entry-byline__details,
  .article-card__meta,
  .post-item__meta,
  .hero-main__meta,
  .hero-side__meta {
    font-size: 0.6875rem;
  }

  /* Buttons full width */
  .tf-btn {
    width: 100%;
  }

  .tf-btn--small {
    width: auto;
  }

  /* Card spacing */
  .card-grid {
    gap: var(--tf-space-lg);
  }

  .article-card__content {
    padding-top: var(--tf-space-sm);
  }

  /* Section spacing */
  .section {
    margin-bottom: var(--tf-space-2xl);
  }

  /* Footer */
  .footer-top {
    padding: var(--tf-space-2xl) 0 var(--tf-space-xl);
  }

  .footer-widget__title {
    font-size: var(--tf-size-body);
  }

  /* Ad placeholders */
  .ad-placeholder--leaderboard {
    width: 100%;
    height: 60px;
  }

  .ad-placeholder--medium {
    width: 100%;
    height: 200px;
  }

  .ad-placeholder--large {
    width: 100%;
    height: 400px;
  }

  /* Reading progress */
  .reading-progress {
    height: 2px;
  }

  /* Newsletter */
  .newsletter-widget {
    padding: var(--tf-space-lg);
  }

  .newsletter-inline {
    padding: var(--tf-space-md);
    margin-left: calc(-1 * var(--tf-space-sm));
    margin-right: calc(-1 * var(--tf-space-sm));
  }

  /* Post navigation */
  .post-navigation__link {
    padding: var(--tf-space-md);
  }

  /* Comment form */
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"] {
    font-size: 16px; /* Prevent iOS zoom */
  }

  /* Archive header */
  .archive-header {
    padding: var(--tf-space-2xl) 0 var(--tf-space-lg);
  }

  .category-header,
  .author-header {
    padding: var(--tf-space-2xl) 0 var(--tf-space-xl);
  }

  /* Search */
  .search-form--page .search-field {
    font-size: 16px;
  }
}

/* ---- Large screens: 1400px and up ---- */
@media (min-width: 1400px) {
  .container {
    max-width: 1340px;
  }

  .hero-main__title {
    font-size: 3.75rem;
  }
}

/* ============================================
   32. DARK MODE SUPPORT
============================================ */

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --tf-color-bg: #0a0a0a;
    --tf-color-bg-alt: #1a1a1a;
    --tf-color-text: #f0f0f0;
    --tf-color-text-secondary: #a0a0a0;
    --tf-color-text-muted: #666666;
    --tf-color-border: #2a2a2a;
    --tf-color-border-dark: #333333;
  }

  body {
    background-color: var(--tf-color-bg);
    color: var(--tf-color-text);
  }

  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--tf-color-text);
  }

  .entry-content {
    color: #d0d0d0;
  }

  .article-card {
    background: var(--tf-color-bg);
  }

  .article-card--horizontal,
  .article-card--compact {
    border-bottom-color: var(--tf-color-border);
  }

  .post-item,
  .post-feed__item,
  .post-list__item,
  .post-numbered__item {
    border-bottom-color: var(--tf-color-border);
  }

  .widget ul li,
  .widget ol li {
    border-bottom-color: var(--tf-color-border);
  }

  .widget_search .search-field {
    background: var(--tf-color-bg);
    color: var(--tf-color-text);
  }

  .top-headlines {
    background: var(--tf-color-bg-alt);
  }

  .ad-slot,
  .ad-header,
  .ad-inarticle,
  .ad-sidebar,
  .ad-between-posts {
    background: var(--tf-color-bg-alt);
    border-color: var(--tf-color-border);
  }

  .ad-placeholder {
    background: repeating-linear-gradient(
      45deg,
      var(--tf-color-bg-alt),
      var(--tf-color-bg-alt) 10px,
      #222222 10px,
      #222222 20px
    );
  }

  .pagination .page-numbers,
  .nav-links .page-numbers {
    background: var(--tf-color-bg);
    border-color: var(--tf-color-border);
    color: var(--tf-color-text);
  }

  .post-navigation__link {
    background: var(--tf-color-bg-alt);
  }

  .post-navigation__link:hover {
    background: var(--tf-color-border);
  }

  .comment-respond {
    background: var(--tf-color-bg-alt);
  }

  .tf-form__input,
  .tf-form__textarea,
  .tf-form__select,
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    background: var(--tf-color-bg);
    color: var(--tf-color-text);
    border-color: var(--tf-color-border);
  }

  .entry-tags__list li a,
  .tagcloud a,
  .widget_categories ul li {
    background: var(--tf-color-bg-alt);
    color: var(--tf-color-text);
  }

  .newsletter-inline {
    background: var(--tf-color-bg-alt);
  }

  .newsletter-inline__input {
    background: var(--tf-color-bg);
    color: var(--tf-color-text);
    border-color: var(--tf-color-border);
  }

  .bypostauthor > .comment-body {
    background: var(--tf-color-bg-alt);
  }

  .author-box {
    background: var(--tf-color-bg-alt);
  }

  .author-box__social a {
    background: var(--tf-color-bg);
  }

  .date-group__label {
    border-bottom-color: var(--tf-color-border);
  }

  .section-header {
    border-bottom-color: var(--tf-color-text);
  }

  .search-result mark {
    background: rgba(0, 165, 98, 0.25);
  }

  .error-404__code {
    color: var(--tf-color-bg-alt);
  }

  .error-404__suggestions-list a {
    background: var(--tf-color-bg-alt);
    color: var(--tf-color-text);
  }

  .back-to-top {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .related-posts {
    border-top-color: var(--tf-color-border);
  }

  .entry-content code {
    background: #2a2a2a;
  }

  .entry-content pre {
    background: #111111;
  }
}

/* ============================================
   33. PRINT STYLES
============================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  a,
  a:visited {
    text-decoration: underline;
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
    word-break: break-all;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  pre {
    white-space: pre-wrap !important;
    border: 1pt solid #999;
    page-break-inside: avoid;
  }

  blockquote {
    border-left: 3pt solid #000;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  /* Hide non-essential elements */
  .top-bar,
  .main-navigation,
  .menu-toggle,
  .sidebar,
  .ad-slot,
  .ad-header,
  .ad-inarticle,
  .ad-sidebar,
  .ad-between-posts,
  .ad-sticky-footer,
  .site-footer,
  .back-to-top,
  .reading-progress,
  .social-share,
  .newsletter-widget,
  .newsletter-inline,
  .search-overlay,
  .post-navigation,
  .related-posts,
  .comment-respond,
  .comment-reply-link,
  .pagination,
  .load-more,
  .author-box__social {
    display: none !important;
  }

  /* Show URLs for links in content */
  .entry-content a[href]::after {
    content: " (" attr(href) ")";
    font-size: 80%;
    color: #666;
  }

  /* Layout adjustments */
  .content-area {
    display: block;
  }

  .main-content {
    width: 100%;
    padding: 0;
  }

  .single-post .entry-title {
    font-size: 24pt;
  }

  .entry-content {
    font-size: 12pt;
    line-height: 1.6;
  }

  .post-thumbnail {
    max-height: 300px;
    overflow: hidden;
  }

  /* Comments */
  .comments-area {
    page-break-before: always;
  }

  .comment-list .children {
    margin-left: 20pt;
    padding-left: 20pt;
    border-left: 1pt solid #999;
  }

  /* Author box */
  .author-box {
    border: 1pt solid #999;
    page-break-inside: avoid;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 10pt;
    margin-bottom: 12pt;
  }

  /* Page breaks */
  .article-card,
  .hero-section,
  .section {
    page-break-inside: avoid;
  }
}

/* ============================================
   34. ADMIN BAR FIX
============================================ */

/* Adjust fixed elements when WordPress admin bar is present */
.admin-bar .reading-progress {
  top: 32px;
}

.admin-bar .search-overlay {
  top: 32px;
}

.admin-bar .main-navigation {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .reading-progress {
    top: 46px;
  }

  .admin-bar .search-overlay {
    top: 46px;
  }

  .admin-bar .main-navigation {
    top: 46px;
  }
}

/* ============================================
   35. UTILITY CLASSES
============================================ */

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* Flex utilities */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.align-center { align-items: center !important; }
.align-stretch { align-items: stretch !important; }
.flex-1 { flex: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* Text utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-bold { font-weight: 700 !important; }
.text-bolder { font-weight: 900 !important; }
.text-normal { font-weight: 400 !important; }
.text-small { font-size: var(--tf-size-small) !important; }
.text-meta { font-size: var(--tf-size-meta) !important; }

/* Color utilities */
.text-primary { color: var(--tf-color-text) !important; }
.text-secondary { color: var(--tf-color-text-secondary) !important; }
.text-muted { color: var(--tf-color-text-muted) !important; }
.text-accent { color: var(--tf-color-accent) !important; }
.text-white { color: var(--tf-color-white) !important; }

.bg-white { background-color: var(--tf-color-white) !important; }
.bg-alt { background-color: var(--tf-color-bg-alt) !important; }
.bg-dark { background-color: var(--tf-color-bg-dark) !important; }
.bg-accent { background-color: var(--tf-color-accent) !important; }

/* Spacing utilities - margin */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }

.m-1 { margin: var(--tf-space-xs) !important; }
.mt-1 { margin-top: var(--tf-space-xs) !important; }
.mb-1 { margin-bottom: var(--tf-space-xs) !important; }

.m-2 { margin: var(--tf-space-sm) !important; }
.mt-2 { margin-top: var(--tf-space-sm) !important; }
.mb-2 { margin-bottom: var(--tf-space-sm) !important; }

.m-3 { margin: var(--tf-space-md) !important; }
.mt-3 { margin-top: var(--tf-space-md) !important; }
.mb-3 { margin-bottom: var(--tf-space-md) !important; }

.m-4 { margin: var(--tf-space-lg) !important; }
.mt-4 { margin-top: var(--tf-space-lg) !important; }
.mb-4 { margin-bottom: var(--tf-space-lg) !important; }

.m-5 { margin: var(--tf-space-xl) !important; }
.mt-5 { margin-top: var(--tf-space-xl) !important; }
.mb-5 { margin-bottom: var(--tf-space-xl) !important; }

/* Spacing utilities - padding */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--tf-space-xs) !important; }
.p-2 { padding: var(--tf-space-sm) !important; }
.p-3 { padding: var(--tf-space-md) !important; }
.p-4 { padding: var(--tf-space-lg) !important; }
.p-5 { padding: var(--tf-space-xl) !important; }

/* Width utilities */
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.mw-100 { max-width: 100% !important; }

/* Border utilities */
.border-0 { border: 0 !important; }
.rounded { border-radius: var(--tf-border-radius) !important; }
.rounded-pill { border-radius: var(--tf-border-radius-pill) !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

/* Position */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-static { position: static !important; }

/* Object fit */
.object-cover { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }

/* Responsive utilities */
@media (max-width: 768px) {
  .d-sm-none { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: flex !important; }
  .text-sm-left { text-align: left !important; }
  .text-sm-center { text-align: center !important; }
}

@media (min-width: 769px) {
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: flex !important; }
}

/* Smooth scroll offset for sticky header */
[id] {
  scroll-margin-top: 80px;
}

.admin-bar [id] {
  scroll-margin-top: 112px;
}

/* Image lazy loading fade */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Gutenberg block alignment */
.wp-block-image {
  margin: var(--tf-space-xl) 0;
}

.wp-block-image figcaption {
  font-size: var(--tf-size-small);
  color: var(--tf-color-text-secondary);
  text-align: center;
  margin-top: var(--tf-space-sm);
}

.wp-block-quote {
  border-left: 4px solid var(--tf-color-accent);
  padding: var(--tf-space-lg) var(--tf-space-xl);
  margin: var(--tf-space-xl) 0;
  background: var(--tf-color-bg-alt);
  font-style: italic;
}

.wp-block-quote p {
  font-size: 1.125rem;
  margin-bottom: var(--tf-space-sm);
}

.wp-block-quote cite {
  font-size: var(--tf-size-small);
  font-style: normal;
  font-weight: 700;
  color: var(--tf-color-text-secondary);
}

.wp-block-pullquote {
  padding: var(--tf-space-xl) 0;
  margin: var(--tf-space-2xl) 0;
  border-top: 4px solid var(--tf-color-text);
  border-bottom: 4px solid var(--tf-color-text);
  text-align: center;
}

.wp-block-pullquote p {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--tf-space-sm);
}

.wp-block-pullquote cite {
  font-size: var(--tf-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-text-secondary);
}

.wp-block-separator {
  margin: var(--tf-space-2xl) auto;
  border: 0;
  border-top: 2px solid var(--tf-color-text);
  max-width: 100px;
}

.wp-block-separator.is-style-wide {
  max-width: 100%;
}

.wp-block-separator.is-style-dots {
  border: none;
}

.wp-block-separator.is-style-dots::before {
  content: "\00b7 \00b7 \00b7";
  font-size: 1.5rem;
  letter-spacing: 1em;
  color: var(--tf-color-text-secondary);
}

.wp-block-embed {
  margin: var(--tf-space-xl) 0;
}

.wp-block-embed iframe,
.wp-block-embed__wrapper {
  max-width: 100%;
}

/* WordPress gallery */
.wp-block-gallery {
  margin: var(--tf-space-xl) 0;
  gap: var(--tf-space-sm);
}

.wp-block-gallery .blocks-gallery-item img {
  border-radius: var(--tf-border-radius);
}

/* WordPress cover block */
.wp-block-cover {
  margin: var(--tf-space-xl) 0;
  border-radius: var(--tf-border-radius);
  overflow: hidden;
  min-height: 300px;
}

.wp-block-cover__inner-container {
  padding: var(--tf-space-xl);
}

/* WordPress buttons block */
.wp-block-buttons {
  margin: var(--tf-space-lg) 0;
  gap: var(--tf-space-sm);
}

.wp-block-button__link {
  display: inline-block;
  padding: var(--tf-space-sm) var(--tf-space-lg);
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border-radius: var(--tf-border-radius);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--tf-transition-fast);
}

.wp-block-button__link:hover {
  background: var(--tf-color-accent-hover);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* WordPress media & text block */
.wp-block-media-text {
  margin: var(--tf-space-xl) 0;
  gap: var(--tf-space-xl);
}

/* WordPress columns */
.wp-block-columns {
  margin: var(--tf-space-xl) 0;
  gap: var(--tf-space-xl);
}

/* WordPress tables */
.wp-block-table {
  margin: var(--tf-space-xl) 0;
}

.wp-block-table table {
  margin: 0;
}

/* WordPress code block */
.wp-block-code {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: var(--tf-space-lg);
  border-radius: var(--tf-border-radius);
  overflow-x: auto;
  margin: var(--tf-space-xl) 0;
}

.wp-block-code code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-family: var(--tf-font-mono);
  font-size: 0.875rem;
}

/* WordPress preformatted block */
.wp-block-preformatted {
  background: var(--tf-color-bg-alt);
  padding: var(--tf-space-lg);
  border-radius: var(--tf-border-radius);
  overflow-x: auto;
  margin: var(--tf-space-xl) 0;
  font-family: var(--tf-font-mono);
  font-size: 0.875rem;
}

/* WordPress group block */
.wp-block-group {
  margin: var(--tf-space-xl) 0;
}

.wp-block-group.has-background {
  padding: var(--tf-space-xl);
  border-radius: var(--tf-border-radius);
}

/* WordPress latest posts block */
.wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: var(--tf-space-lg) 0;
}

.wp-block-latest-posts li {
  padding: var(--tf-space-sm) 0;
  border-bottom: 1px solid var(--tf-color-border);
}

.wp-block-latest-posts li:first-child {
  padding-top: 0;
}

.wp-block-latest-posts li:last-child {
  border-bottom: none;
}

.wp-block-latest-posts__post-title {
  font-weight: 700;
  text-decoration: none;
  color: var(--tf-color-text);
}

.wp-block-latest-posts__post-title:hover {
  color: var(--tf-color-accent);
}

.wp-block-latest-posts__post-date {
  font-size: var(--tf-size-meta);
  color: var(--tf-color-text-secondary);
  text-transform: uppercase;
  font-weight: 500;
}

/* WordPress read more link */
.more-link {
  display: inline-block;
  margin-top: var(--tf-space-sm);
  font-weight: 700;
  color: var(--tf-color-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--tf-size-small);
}

.more-link:hover {
  color: var(--tf-color-accent-hover);
  text-decoration: underline;
}

.more-link::after {
  content: " \2192";
}

/* Sticky post badge */
.sticky-post-badge {
  display: inline-block;
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  padding: 2px 10px;
  font-size: var(--tf-size-badge);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--tf-border-radius-pill);
  margin-bottom: var(--tf-space-sm);
}

/* Post format icon badges */
.format-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--tf-space-xs);
  font-size: var(--tf-size-meta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-accent);
  margin-bottom: var(--tf-space-sm);
}

/* Gallery format */
.gallery-count {
  position: absolute;
  bottom: var(--tf-space-sm);
  right: var(--tf-space-sm);
  background: rgba(0, 0, 0, 0.7);
  color: var(--tf-color-white);
  padding: 2px 10px;
  font-size: var(--tf-size-meta);
  font-weight: 700;
  border-radius: var(--tf-border-radius);
}

/* Video format overlay */
.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color var(--tf-transition-fast), transform var(--tf-transition-fast);
}

.video-overlay::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--tf-color-white);
  margin-left: 3px;
}

.video-overlay:hover {
  background: var(--tf-color-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

/* No posts message */
.no-posts {
  text-align: center;
  padding: var(--tf-space-3xl) var(--tf-space-xl);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
}

.no-posts__icon {
  font-size: 3rem;
  margin-bottom: var(--tf-space-md);
  color: var(--tf-color-text-muted);
}

.no-posts__title {
  font-size: var(--tf-size-h3);
  font-weight: 900;
  margin-bottom: var(--tf-space-sm);
}

.no-posts__message {
  font-size: var(--tf-size-body);
  color: var(--tf-color-text-secondary);
  margin-bottom: var(--tf-space-lg);
}

/* Content none (empty state) */
.page-content--none {
  text-align: center;
  padding: var(--tf-space-3xl) 0;
}

/* Edit post link */
.edit-link {
  display: inline-block;
  margin-left: var(--tf-space-sm);
  font-size: var(--tf-size-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edit-link a {
  color: var(--tf-color-accent);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--tf-color-accent);
  border-radius: var(--tf-border-radius);
  transition: background-color var(--tf-transition-fast), color var(--tf-transition-fast);
}

.edit-link a:hover {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  text-decoration: none;
}

/* Password protected form */
.post-password-form {
  max-width: 500px;
  margin: var(--tf-space-3xl) auto;
  padding: var(--tf-space-xl);
  background: var(--tf-color-bg-alt);
  border-radius: var(--tf-border-radius);
  text-align: center;
}

.post-password-form p:first-child {
  font-size: var(--tf-size-h4);
  font-weight: 700;
  margin-bottom: var(--tf-space-md);
}

.post-password-form label {
  display: block;
  margin-bottom: var(--tf-space-sm);
  font-weight: 600;
}

.post-password-form input[type="password"] {
  width: 100%;
  max-width: 300px;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 2px solid var(--tf-color-border);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-body);
  margin-bottom: var(--tf-space-sm);
}

.post-password-form input[type="password"]:focus {
  border-color: var(--tf-color-accent);
  outline: none;
}

.post-password-form input[type="submit"] {
  padding: var(--tf-space-sm) var(--tf-space-xl);
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
  border: none;
  border-radius: var(--tf-border-radius);
  font-weight: 700;
  font-size: var(--tf-size-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color var(--tf-transition-fast);
}

.post-password-form input[type="submit"]:hover {
  background: var(--tf-color-accent-hover);
}

/* Attachment page */
.attachment .entry-content {
  text-align: center;
}

.attachment .entry-content img {
  max-height: 80vh;
  object-fit: contain;
}

/* Navigation above/below posts */
.navigation.pagination {
  margin: var(--tf-space-2xl) 0;
}

/* Jetpack Infinite Scroll */
#infinite-handle {
  text-align: center;
  margin: var(--tf-space-2xl) 0;
}

#infinite-handle span {
  display: inline-block;
  padding: var(--tf-space-sm) var(--tf-space-xl);
  background: var(--tf-color-bg-dark);
  color: var(--tf-color-white);
  border-radius: var(--tf-border-radius);
  font-size: var(--tf-size-small);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color var(--tf-transition-fast);
}

#infinite-handle span:hover {
  background: var(--tf-color-accent);
}

.infinite-loader {
  text-align: center;
  padding: var(--tf-space-xl);
}

/* Scrollbar styling (WebKit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--tf-color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999999;
}

/* Selection highlight */
::selection {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
}

::-moz-selection {
  background: var(--tf-color-accent);
  color: var(--tf-color-white);
}

/* ============================================
   END OF STYLESHEET
   Theme: Tech Fussion v2.0.0
   Total Sections: 35
   ============================================ */
