/*
Theme Name: ThemeForge WP
Theme URI: https://themeforge.wp
Author: ThemeForge
Author URI: https://themeforge.wp
Description: A premium WordPress theme with AI-powered site cloning, visual page builder, and an in-theme code studio. Clone any news or magazine site's design in minutes, then customize every pixel with drag-and-drop tools or raw PHP/JS code editing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themeforge-wp
Tags: news, magazine, blog, custom-colors, custom-fonts, custom-logo, custom-menu, featured-images, full-width-template, left-sidebar, right-sidebar, theme-options, two-columns, three-columns, grid-layout, responsive-layout, rtl-language-support, translation-ready

ThemeForge WP is distributed under the terms of the GNU GPL.
*/

/* =====================================================
   THEMEFORGE WP — BASE RESET & CSS CUSTOM PROPERTIES
   ===================================================== */

:root {
  /* Brand defaults — overridden by Clone Engine per-site */
  --tf-primary:       #1a1a2e;
  --tf-secondary:     #16213e;
  --tf-accent:        #e94560;
  --tf-accent-hover:  #c73652;
  --tf-text:          #222222;
  --tf-text-muted:    #666666;
  --tf-text-light:    #999999;
  --tf-bg:            #ffffff;
  --tf-bg-alt:        #f7f7f7;
  --tf-bg-dark:       #1a1a2e;
  --tf-border:        #e0e0e0;
  --tf-border-dark:   #333333;

  /* Typography */
  --tf-font-body:     'Georgia', 'Times New Roman', serif;
  --tf-font-heading:  'Arial', 'Helvetica Neue', sans-serif;
  --tf-font-ui:       'Arial', 'Helvetica Neue', sans-serif;
  --tf-font-mono:     'Courier New', Courier, monospace;
  --tf-font-size:     16px;
  --tf-line-height:   1.7;

  /* Spacing scale */
  --tf-space-xs:  4px;
  --tf-space-sm:  8px;
  --tf-space-md:  16px;
  --tf-space-lg:  24px;
  --tf-space-xl:  40px;
  --tf-space-2xl: 64px;

  /* Layout */
  --tf-container:     1200px;
  --tf-sidebar-width: 320px;
  --tf-radius:        4px;
  --tf-radius-lg:     8px;
  --tf-shadow:        0 2px 8px rgba(0,0,0,0.08);
  --tf-shadow-lg:     0 8px 32px rgba(0,0,0,0.12);

  /* Header */
  --tf-header-height:    64px;
  --tf-header-bg:        var(--tf-primary);
  --tf-header-text:      #ffffff;
  --tf-topbar-bg:        var(--tf-secondary);
  --tf-topbar-text:      #cccccc;

  /* Transitions */
  --tf-transition: 0.2s ease;
}

/* =====================================================
   GLOBAL RESET
   ===================================================== */

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

html {
  font-size: var(--tf-font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--tf-font-body);
  font-size: 1rem;
  line-height: var(--tf-line-height);
  color: var(--tf-text);
  background-color: var(--tf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--tf-accent);
  text-decoration: none;
  transition: color var(--tf-transition);
}

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tf-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tf-text);
}

p { margin-bottom: var(--tf-space-md); }
p:last-child { margin-bottom: 0; }

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* =====================================================
   LAYOUT CONTAINERS
   ===================================================== */

.tf-container {
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 0 var(--tf-space-lg);
}

.tf-container--narrow { max-width: 860px; }
.tf-container--wide   { max-width: 1440px; }

.tf-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-lg);
}

/* Content + sidebar layouts */
.tf-layout {
  display: grid;
  gap: var(--tf-space-xl);
}

.tf-layout--sidebar-right {
  grid-template-columns: 1fr var(--tf-sidebar-width);
}

.tf-layout--sidebar-left {
  grid-template-columns: var(--tf-sidebar-width) 1fr;
}

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

/* =====================================================
   TOP BAR
   ===================================================== */

.tf-topbar {
  background: var(--tf-topbar-bg);
  color: var(--tf-topbar-text);
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tf-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tf-topbar__left,
.tf-topbar__right {
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
}

.tf-topbar a {
  color: var(--tf-topbar-text);
  transition: color var(--tf-transition);
}
.tf-topbar a:hover { color: #ffffff; }

/* =====================================================
   HEADER
   ===================================================== */

.tf-header {
  background: var(--tf-header-bg);
  color: var(--tf-header-text);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.tf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tf-header-height);
}

/* Logo */
.tf-logo {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  flex-shrink: 0;
}

.tf-logo img {
  height: 40px;
  width: auto;
}

.tf-logo__text {
  font-family: var(--tf-font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.tf-logo__text span {
  color: var(--tf-accent);
}

/* Primary Nav */
.tf-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.tf-nav ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.tf-nav ul li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.tf-nav ul li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--tf-space-md);
  color: rgba(255,255,255,0.85);
  font-family: var(--tf-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all var(--tf-transition);
}

.tf-nav ul li > a:hover,
.tf-nav ul li.current-menu-item > a {
  color: #ffffff;
  border-bottom-color: var(--tf-accent);
}

/* Dropdown */
.tf-nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--tf-primary);
  border-top: 3px solid var(--tf-accent);
  box-shadow: var(--tf-shadow-lg);
  flex-direction: column;
  height: auto;
  z-index: 999;
}

.tf-nav ul li:hover ul { display: flex; }

.tf-nav ul li ul li {
  height: auto;
  width: 100%;
}

.tf-nav ul li ul li > a {
  height: auto;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border-bottom: none;
  border-left: 3px solid transparent;
  font-size: 0.8125rem;
  text-transform: none;
}

.tf-nav ul li ul li > a:hover {
  border-left-color: var(--tf-accent);
  background: rgba(255,255,255,0.05);
}

/* Mobile menu toggle */
.tf-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--tf-space-sm);
  cursor: pointer;
}

.tf-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--tf-transition);
}

/* Header search */
.tf-header-search {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
}

.tf-header-search__input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--tf-radius);
  padding: 6px 12px;
  color: #ffffff;
  font-size: 0.875rem;
  width: 200px;
  transition: all var(--tf-transition);
}

.tf-header-search__input::placeholder { color: rgba(255,255,255,0.5); }
.tf-header-search__input:focus {
  width: 260px;
  border-color: var(--tf-accent);
  background: rgba(255,255,255,0.15);
}

.tf-header-search__btn {
  background: var(--tf-accent);
  color: #ffffff;
  border-radius: var(--tf-radius);
  padding: 6px 12px;
  font-size: 0.875rem;
  transition: background var(--tf-transition);
}

.tf-header-search__btn:hover { background: var(--tf-accent-hover); }

/* =====================================================
   NEWS TICKER
   ===================================================== */

.tf-ticker {
  background: var(--tf-accent);
  color: #ffffff;
  font-family: var(--tf-font-ui);
  font-size: 0.8125rem;
  padding: 7px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.tf-ticker__label {
  background: rgba(0,0,0,0.25);
  padding: 0 var(--tf-space-md);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  margin-right: var(--tf-space-md);
}

.tf-ticker__track {
  display: flex;
  gap: 0;
  animation: tf-ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.tf-ticker__track:hover { animation-play-state: paused; }

.tf-ticker__item {
  padding: 0 var(--tf-space-xl);
  white-space: nowrap;
}

.tf-ticker__item a {
  color: #ffffff;
  font-weight: 500;
}

.tf-ticker__item a:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

.tf-ticker__sep {
  color: rgba(255,255,255,0.4);
  padding: 0 var(--tf-space-md);
}

@keyframes tf-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   HERO SLIDER
   ===================================================== */

.tf-hero {
  position: relative;
  overflow: hidden;
  background: var(--tf-bg-dark);
}

.tf-hero__slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.tf-hero__slide {
  min-width: 100%;
  position: relative;
  height: 520px;
}

.tf-hero__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-hero__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.7) 100%
  );
}

.tf-hero__slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--tf-space-xl) var(--tf-space-xl) var(--tf-space-xl);
}

.tf-hero__slide-cat {
  display: inline-block;
  background: var(--tf-accent);
  color: #ffffff;
  font-family: var(--tf-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: var(--tf-radius);
  margin-bottom: var(--tf-space-sm);
}

.tf-hero__slide-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--tf-space-sm);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.tf-hero__slide-meta {
  color: rgba(255,255,255,0.75);
  font-family: var(--tf-font-ui);
  font-size: 0.8125rem;
}

/* Hero controls */
.tf-hero__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--tf-transition);
  z-index: 10;
}

.tf-hero__btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
}

.tf-hero__btn--prev { left: var(--tf-space-md); }
.tf-hero__btn--next { right: var(--tf-space-md); }

.tf-hero__dots {
  position: absolute;
  bottom: var(--tf-space-md);
  right: var(--tf-space-xl);
  display: flex;
  gap: var(--tf-space-xs);
}

.tf-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--tf-transition);
}

.tf-hero__dot--active {
  background: var(--tf-accent);
  width: 24px;
  border-radius: 4px;
}

/* =====================================================
   POST CARDS
   ===================================================== */

.tf-card {
  background: var(--tf-bg);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--tf-transition), transform var(--tf-transition);
}

.tf-card:hover {
  box-shadow: var(--tf-shadow-lg);
  transform: translateY(-2px);
}

.tf-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.tf-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tf-card:hover .tf-card__img-wrap img {
  transform: scale(1.04);
}

.tf-card__cat {
  position: absolute;
  top: var(--tf-space-sm);
  left: var(--tf-space-sm);
  background: var(--tf-accent);
  color: #ffffff;
  font-family: var(--tf-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--tf-radius);
}

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

.tf-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--tf-space-xs);
  color: var(--tf-text);
}

.tf-card__title a {
  color: inherit;
  transition: color var(--tf-transition);
}

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

.tf-card__excerpt {
  font-size: 0.875rem;
  color: var(--tf-text-muted);
  line-height: 1.6;
  margin-bottom: var(--tf-space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-card__meta {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  color: var(--tf-text-light);
}

.tf-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tf-border);
  flex-shrink: 0;
}

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

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

/* Featured card (horizontal) */
.tf-card--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tf-card--featured .tf-card__img-wrap {
  aspect-ratio: unset;
  height: 100%;
}

.tf-card--featured .tf-card__title {
  font-size: 1.25rem;
}

/* =====================================================
   SECTION HEADINGS
   ===================================================== */

.tf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--tf-space-lg);
  padding-bottom: var(--tf-space-sm);
  border-bottom: 3px solid var(--tf-border);
  position: relative;
}

.tf-section-head::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--tf-accent);
}

.tf-section-head__title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tf-text);
}

.tf-section-head__link {
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tf-accent);
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */

.tf-main {
  padding: var(--tf-space-xl) 0;
  min-height: 60vh;
}

/* =====================================================
   SINGLE POST
   ===================================================== */

.tf-post-header {
  margin-bottom: var(--tf-space-xl);
}

.tf-post-cat {
  display: inline-block;
  background: var(--tf-accent);
  color: #ffffff;
  font-family: var(--tf-font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--tf-radius);
  margin-bottom: var(--tf-space-md);
}

.tf-post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--tf-space-md);
  color: var(--tf-text);
}

.tf-post-deck {
  font-size: 1.125rem;
  color: var(--tf-text-muted);
  line-height: 1.6;
  margin-bottom: var(--tf-space-md);
}

.tf-post-meta {
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
  padding: var(--tf-space-md) 0;
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
  margin-bottom: var(--tf-space-lg);
}

.tf-post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.tf-post-author-name {
  font-family: var(--tf-font-ui);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--tf-text);
}

.tf-post-meta-info {
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  color: var(--tf-text-light);
}

.tf-post-featured-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--tf-radius-lg);
  margin-bottom: var(--tf-space-xl);
}

/* Post content typography */
.tf-post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--tf-text);
}

.tf-post-content h2 {
  font-size: 1.5rem;
  margin: var(--tf-space-xl) 0 var(--tf-space-md);
}

.tf-post-content h3 {
  font-size: 1.25rem;
  margin: var(--tf-space-lg) 0 var(--tf-space-sm);
}

.tf-post-content p {
  margin-bottom: var(--tf-space-md);
}

.tf-post-content blockquote {
  border-left: 4px solid var(--tf-accent);
  padding: var(--tf-space-md) var(--tf-space-lg);
  margin: var(--tf-space-lg) 0;
  background: var(--tf-bg-alt);
  border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--tf-text-muted);
}

.tf-post-content img {
  border-radius: var(--tf-radius);
  margin: var(--tf-space-lg) auto;
}

.tf-post-content .wp-caption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--tf-text-light);
  font-style: italic;
  margin-top: var(--tf-space-xs);
}

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

.tf-sidebar {}

.tf-widget {
  background: var(--tf-bg);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
  margin-bottom: var(--tf-space-lg);
}

.tf-widget__title {
  background: var(--tf-bg-alt);
  padding: var(--tf-space-sm) var(--tf-space-md);
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tf-text);
  border-bottom: 1px solid var(--tf-border);
}

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

/* Widget: recent posts list */
.tf-widget-posts {}

.tf-widget-post {
  display: flex;
  gap: var(--tf-space-sm);
  padding: var(--tf-space-sm) 0;
  border-bottom: 1px solid var(--tf-border);
}

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

.tf-widget-post__img {
  width: 64px;
  height: 64px;
  border-radius: var(--tf-radius);
  object-fit: cover;
  flex-shrink: 0;
}

.tf-widget-post__title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tf-text);
}

.tf-widget-post__title a { color: inherit; }
.tf-widget-post__title a:hover { color: var(--tf-accent); }

.tf-widget-post__date {
  font-family: var(--tf-font-ui);
  font-size: 0.6875rem;
  color: var(--tf-text-light);
  margin-top: 4px;
}

/* Widget: categories */
.tf-widget-cats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--tf-border);
  font-size: 0.875rem;
}

.tf-widget-cats li:last-child { border-bottom: none; }

.tf-widget-cats a { color: var(--tf-text); }
.tf-widget-cats a:hover { color: var(--tf-accent); }

.tf-widget-cats span {
  background: var(--tf-bg-alt);
  color: var(--tf-text-muted);
  font-size: 0.6875rem;
  font-family: var(--tf-font-ui);
  padding: 2px 7px;
  border-radius: 99px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.tf-footer {
  background: var(--tf-bg-dark);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.tf-footer__widgets {
  padding: var(--tf-space-2xl) 0 var(--tf-space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tf-footer__widgets-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--tf-space-xl);
}

.tf-footer__widget-title {
  color: #ffffff;
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--tf-space-md);
  padding-bottom: var(--tf-space-sm);
  border-bottom: 2px solid var(--tf-accent);
  display: inline-block;
}

.tf-footer__about {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--tf-space-md);
}

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

.tf-footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color var(--tf-transition);
}

.tf-footer__links a:hover {
  color: var(--tf-accent);
  padding-left: 4px;
}

/* Social icons */
.tf-social {
  display: flex;
  gap: var(--tf-space-sm);
}

.tf-social__link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  transition: all var(--tf-transition);
}

.tf-social__link:hover {
  background: var(--tf-accent);
  border-color: var(--tf-accent);
  color: #ffffff;
}

/* Footer bottom bar */
.tf-footer__bottom {
  padding: var(--tf-space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.tf-footer__bottom a {
  color: rgba(255,255,255,0.5);
}
.tf-footer__bottom a:hover { color: var(--tf-accent); }

/* =====================================================
   PAGINATION
   ===================================================== */

.tf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--tf-space-xs);
  padding: var(--tf-space-xl) 0;
}

.tf-pagination a,
.tf-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--tf-radius);
  font-family: var(--tf-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--tf-border);
  color: var(--tf-text);
  transition: all var(--tf-transition);
}

.tf-pagination a:hover,
.tf-pagination .current {
  background: var(--tf-accent);
  border-color: var(--tf-accent);
  color: #ffffff;
}

/* =====================================================
   COMMENTS
   ===================================================== */

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

.tf-comments__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--tf-space-lg);
}

.tf-comment {
  display: flex;
  gap: var(--tf-space-md);
  padding: var(--tf-space-lg) 0;
  border-bottom: 1px solid var(--tf-border);
}

.tf-comment__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tf-comment__author {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--tf-text);
}

.tf-comment__date {
  font-family: var(--tf-font-ui);
  font-size: 0.75rem;
  color: var(--tf-text-light);
  margin-bottom: var(--tf-space-sm);
}

.tf-comment__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--tf-text);
}

/* Comment form */
.tf-comment-form input,
.tf-comment-form textarea {
  width: 100%;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  font-size: 0.9375rem;
  background: var(--tf-bg);
  color: var(--tf-text);
  transition: border-color var(--tf-transition);
  margin-bottom: var(--tf-space-md);
}

.tf-comment-form input:focus,
.tf-comment-form textarea:focus {
  border-color: var(--tf-accent);
}

.tf-comment-form textarea { height: 120px; resize: vertical; }

.tf-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tf-space-sm);
  background: var(--tf-accent);
  color: #ffffff;
  padding: var(--tf-space-sm) var(--tf-space-xl);
  border-radius: var(--tf-radius);
  font-family: var(--tf-font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--tf-transition);
  cursor: pointer;
  border: none;
}

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

/* =====================================================
   AUTHOR PAGE
   ===================================================== */

.tf-author-card {
  display: flex;
  gap: var(--tf-space-xl);
  align-items: flex-start;
  background: var(--tf-bg-alt);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: var(--tf-space-xl);
  margin-bottom: var(--tf-space-xl);
}

.tf-author-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--tf-accent);
}

.tf-author-card__name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: var(--tf-space-xs);
}

.tf-author-card__role {
  color: var(--tf-accent);
  font-family: var(--tf-font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--tf-space-sm);
}

.tf-author-card__bio {
  font-size: 0.9375rem;
  color: var(--tf-text-muted);
  line-height: 1.7;
  margin-bottom: var(--tf-space-md);
}

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

.tf-search-form {
  display: flex;
  gap: 0;
  margin-bottom: var(--tf-space-xl);
}

.tf-search-form input {
  flex: 1;
  padding: var(--tf-space-md) var(--tf-space-lg);
  border: 2px solid var(--tf-border);
  border-right: none;
  border-radius: var(--tf-radius) 0 0 var(--tf-radius);
  font-size: 1rem;
}

.tf-search-form button {
  background: var(--tf-accent);
  color: #ffffff;
  padding: var(--tf-space-md) var(--tf-space-xl);
  border-radius: 0 var(--tf-radius) var(--tf-radius) 0;
  font-family: var(--tf-font-ui);
  font-weight: 700;
  font-size: 0.875rem;
  transition: background var(--tf-transition);
}

.tf-search-form button:hover { background: var(--tf-accent-hover); }

/* =====================================================
   BREAKING NEWS / BADGE
   ===================================================== */

.tf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--tf-font-ui);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--tf-radius);
  vertical-align: middle;
}

.tf-badge--breaking {
  background: #dc2626;
  color: #ffffff;
  animation: tf-pulse 1.5s infinite;
}

.tf-badge--live {
  background: #16a34a;
  color: #ffffff;
}

@keyframes tf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

@media (max-width: 1024px) {
  .tf-footer__widgets-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--tf-space-lg);
  }
  .tf-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tf-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .tf-layout--sidebar-right,
  .tf-layout--sidebar-left {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --tf-space-xl: 24px;
    --tf-space-2xl: 40px;
  }

  .tf-header-search { display: none; }
  .tf-menu-toggle { display: flex; }

  .tf-nav {
    display: none;
    position: absolute;
    top: var(--tf-header-height);
    left: 0;
    right: 0;
    background: var(--tf-primary);
    padding: var(--tf-space-md) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--tf-shadow-lg);
  }

  .tf-nav--open { display: block; }

  .tf-nav ul {
    flex-direction: column;
    height: auto;
    gap: 0;
  }

  .tf-nav ul li {
    height: auto;
    width: 100%;
  }

  .tf-nav ul li > a {
    height: auto;
    padding: var(--tf-space-sm) var(--tf-space-lg);
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .tf-nav ul li > a:hover,
  .tf-nav ul li.current-menu-item > a {
    border-bottom: none;
    border-left-color: var(--tf-accent);
  }

  .tf-nav ul li ul {
    position: static;
    border-top: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
  }

  .tf-nav ul li:hover ul { display: flex; }

  .tf-grid--3,
  .tf-grid--4 { grid-template-columns: 1fr; }
  .tf-grid--2 { grid-template-columns: 1fr; }

  .tf-card--featured {
    grid-template-columns: 1fr;
  }

  .tf-hero__slide { height: 320px; }

  .tf-footer__widgets-grid {
    grid-template-columns: 1fr;
  }

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

  .tf-footer__bottom {
    flex-direction: column;
    gap: var(--tf-space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tf-post-title { font-size: 1.5rem; }
  .tf-hero__slide { height: 260px; }
  .tf-container { padding: 0 var(--tf-space-md); }
}

/* =====================================================
   PRINT
   ===================================================== */

@media print {
  .tf-topbar,
  .tf-ticker,
  .tf-hero,
  .tf-sidebar,
  .tf-footer,
  .tf-header-search,
  .tf-nav,
  .tf-pagination { display: none !important; }

  body { font-size: 12pt; color: #000; }
  .tf-post-title { font-size: 24pt; }
  a { color: #000; text-decoration: underline; }
}

/* =====================================================
   WORDPRESS CORE CLASSES (required)
   ===================================================== */

.alignleft  { float: left; margin: 0 var(--tf-space-lg) var(--tf-space-md) 0; }
.alignright { float: right; margin: 0 0 var(--tf-space-md) var(--tf-space-lg); }
.aligncenter { display: block; margin: var(--tf-space-md) auto; }
.alignwide  { margin-left: calc(-1 * var(--tf-space-xl)); margin-right: calc(-1 * var(--tf-space-xl)); }
.alignfull  { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--tf-text-light); font-style: italic; margin-top: 4px; text-align: center; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal;
}

.sticky { border-left: 4px solid var(--tf-accent); padding-left: var(--tf-space-md); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--tf-space-sm); }
.gallery-item img { width: 100%; border-radius: var(--tf-radius); }
