/* ==========================================================================
   TamilGuru WordPress Theme - Main Stylesheet
   Designed for TamilGuru.in
   ========================================================================== */

:root {
  /* Color Palette */
  --tg-primary: #dc2626;
  --tg-primary-hover: #b91c1c;
  --tg-primary-light: #fef2f2;
  --tg-secondary: #f59e0b;
  --tg-secondary-hover: #d97706;
  --tg-accent: #8b5cf6;
  --tg-success: #10b981;
  --tg-dark: #0f172a;
  --tg-surface: #ffffff;
  --tg-surface-subtle: #f8fafc;
  --tg-surface-card: #ffffff;
  --tg-border: #e2e8f0;
  --tg-border-light: #f1f5f9;
  --tg-text: #1e293b;
  --tg-text-muted: #64748b;
  --tg-text-light: #94a3b8;
  --tg-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tg-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --tg-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --tg-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --tg-radius-sm: 8px;
  --tg-radius: 12px;
  --tg-radius-lg: 18px;
  --tg-radius-full: 9999px;
  
  /* Fonts */
  --tg-font-sans: 'Anek Tamil', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --tg-font-tamil: 'Anek Tamil', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout */
  --tg-container-max: 1280px;
  --tg-header-height: 72px;
  --tg-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --tg-surface: #0f172a;
  --tg-surface-subtle: #1e293b;
  --tg-surface-card: #1e293b;
  --tg-border: #334155;
  --tg-border-light: #1e293b;
  --tg-text: #f1f5f9;
  --tg-text-muted: #94a3b8;
  --tg-text-light: #64748b;
  --tg-primary-light: rgba(220, 38, 38, 0.18);
  --tg-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.35);
  --tg-shadow-lg: 0 10px 25px 0 rgba(0, 0, 0, 0.45);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Anek Tamil', var(--tg-font-tamil), var(--tg-font-sans), sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--tg-surface-subtle);
  color: var(--tg-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--tg-transition);
}

a:hover {
  color: var(--tg-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea, h1, h2, h3, h4, h5, h6 {
  font-family: 'Anek Tamil', var(--tg-font-tamil), var(--tg-font-sans), sans-serif;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--tg-container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* ==========================================================================
   Modern Header & Top Bar System
   Inspired by Beebom, TechWiser, Engadget & Hugging Face
   ========================================================================== */

/* 1. Top Utility Bar */
.tg-topbar {
  background: #060a17;
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 210;
}

.tg-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tg-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.tg-date-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  font-size: 0.775rem;
}

.tg-date-badge svg {
  color: #38bdf8;
}

/* Top Bar Menu (Location: 'top') */
.tg-top-nav {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.tg-top-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tg-top-menu li {
  list-style: none;
  display: inline-flex;
  align-items: center;
}

.tg-top-menu li a {
  color: #94a3b8;
  font-size: 0.775rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tg-top-menu li a:hover,
.tg-top-menu li.current-menu-item a {
  color: #ffffff;
}

.tg-top-menu li + li::before {
  content: '•';
  margin-right: 0.85rem;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.tg-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Social Media Strip (Engadget style) */
.tg-social-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tg-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.2s ease;
}

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

.tg-social-icon.tg-social-wa:hover { background: #25d366; color: #fff; }
.tg-social-icon.tg-social-tg:hover { background: #0088cc; color: #fff; }
.tg-social-icon.tg-social-yt:hover { background: #ff0000; color: #fff; }
.tg-social-icon.tg-social-fb:hover { background: #1877f2; color: #fff; }

.tg-theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.3rem 0.75rem;
  border-radius: var(--tg-radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tg-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   2. Main Header (Beebom + TechWiser + Hugging Face hybrid)
   ========================================================================== */
.tg-main-header {
  background: #080f24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease;
}

.tg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Header Left: Brand & Mobile Menu */
.tg-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.tg-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tg-radius-sm);
  color: #fff;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.tg-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--tg-primary);
}

.tg-hamburger-box {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.tg-hamburger-inner,
.tg-hamburger-box::before,
.tg-hamburger-box::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.tg-brand-wrap {
  flex-shrink: 0;
}

.tg-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tg-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tg-brand-link:hover .tg-logo-icon {
  transform: scale(1.05) rotate(-3deg);
}

.tg-brand-text {
  display: flex;
  flex-direction: column;
}

.tg-site-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.1;
  display: block;
}

.tg-title-gradient {
  background: linear-gradient(135deg, #ff4b4b 0%, #ff8a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.tg-tagline {
  font-size: 0.725rem;
  color: #94a3b8;
  font-weight: 500;
  display: block;
  margin-top: 0.15rem;
  letter-spacing: 0.2px;
}

/* Search Icon Button (Opens Popup Modal on Click) */
.tg-search-icon-btn,
button.tg-search-icon-btn {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
}

.tg-search-icon-btn svg,
button.tg-search-icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  pointer-events: none;
}

.tg-search-icon-btn:hover,
button.tg-search-icon-btn:hover,
.tg-search-icon-btn:focus-visible,
button.tg-search-icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4) !important;
}

/* Header Right: Pill Navigation & CTA Buttons (Beebom style) */
.tg-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.tg-pill-nav {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Navigation Bar & Pill Navigation (Beebom style)
   ========================================================================== */
.tg-nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}

.tg-nav-menu > li {
  position: relative;
  list-style: none;
}

.tg-nav-menu > li > a,
.tg-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--tg-radius-full);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-nav-menu > li:hover > a,
.tg-nav-menu > li.current-menu-item > a,
.tg-nav-menu > li.current_page_item > a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.tg-caret {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.tg-nav-menu li:hover .tg-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.tg-nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--tg-radius-full);
  letter-spacing: 0.3px;
}

/* Floating Dark/Glass Submenu */
.tg-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tg-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 220;
  list-style: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tg-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.tg-nav-menu .sub-menu li {
  list-style: none;
  position: relative;
}

.tg-nav-menu .sub-menu li a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--tg-radius-sm);
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.tg-nav-menu .sub-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  padding-left: 1.05rem;
}

/* Secondary nested sub-menu */
.tg-nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.25rem;
}

/* Signature Beebom Gadgets Style Highlight Pill CTA */
.tg-hero-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ffffff;
  color: #080f24;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--tg-radius-full);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}

.tg-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #080f24;
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tg-hero-pill-cta:hover {
  background: #f8fafc;
  color: #080f24;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.tg-hero-pill-cta:hover .tg-cta-arrow {
  transform: translateX(2px);
  background: #ef4444;
}

/* ==========================================================================
   3. Trending Topics Capsule Bar (Beebom + TechWiser signature hybrid)
   ========================================================================== */
.tg-trending-bar-wrap {
  background: var(--tg-surface);
  border-bottom: 1px solid var(--tg-border);
  padding: 0.55rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 90;
  transition: background-color 0.3s ease;
}

.tg-trending-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-full);
  padding: 0.25rem 0.5rem;
  box-shadow: var(--tg-shadow-sm);
}

.tg-trending-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem 0.2rem 0.5rem;
  border-right: 1px solid var(--tg-border);
  flex-shrink: 0;
}

.tg-trending-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.tg-trending-title {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: -0.2px;
  text-transform: capitalize;
}

.tg-trend-nav {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--tg-border);
  background: var(--tg-surface);
  color: var(--tg-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tg-trend-nav:hover {
  background: var(--tg-surface-subtle);
  color: var(--tg-primary);
  border-color: var(--tg-primary);
  transform: scale(1.08);
}

.tg-trending-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex: 1;
  padding: 0.15rem 0;
}

.tg-trending-track::-webkit-scrollbar {
  display: none;
}

.tg-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--tg-radius-full);
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  color: var(--tg-text);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tg-trend-bolt {
  color: #f59e0b;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.tg-trend-pill:hover {
  background: var(--tg-surface);
  border-color: #6366f1;
  color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.tg-trend-pill:hover .tg-trend-bolt {
  transform: scale(1.2);
  color: #ef4444;
}

/* ==========================================================================
   4. Mobile Slide-out Drawer Navigation
   ========================================================================== */
.tg-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
}

.tg-mobile-drawer.active {
  display: block;
}

.tg-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.tg-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86%;
  max-width: 330px;
  background: var(--tg-surface);
  box-shadow: var(--tg-shadow-xl);
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.tg-mobile-drawer.active .tg-drawer-panel {
  transform: translateX(0);
}

.tg-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tg-border);
}

.tg-drawer-close {
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--tg-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.tg-drawer-close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.tg-drawer-search {
  margin-bottom: 1.25rem;
}

.tg-drawer-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  padding: 0.55rem 0.85rem;
  color: var(--tg-text-muted);
}

.tg-drawer-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--tg-text);
}

.tg-mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.tg-mobile-menu-list li {
  list-style: none;
}

.tg-mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: var(--tg-text);
  border-radius: var(--tg-radius-sm);
  font-size: 0.925rem;
  transition: var(--tg-transition);
}

.tg-mobile-menu-list a:hover {
  background: var(--tg-primary-light);
  color: var(--tg-primary);
}

.tg-m-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.tg-mobile-menu-list .sub-menu {
  list-style: none;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.25rem 0 0.5rem;
  border-left: 2px solid var(--tg-border);
}

.tg-mobile-menu-list .sub-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tg-text-muted);
  padding: 0.45rem 0.75rem;
}

.tg-drawer-tools {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tg-border);
}

.tg-drawer-tools-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--tg-text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.tg-drawer-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tg-drawer-tool-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  color: var(--tg-text);
  transition: all 0.2s ease;
  text-decoration: none;
}

.tg-drawer-tool-card:hover {
  border-color: var(--tg-primary);
  background: var(--tg-surface);
}

.tg-tool-badge {
  font-size: 1.2rem;
}

.tg-drawer-tool-card strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.2;
}

.tg-drawer-tool-card small {
  font-size: 0.75rem;
  color: var(--tg-text-muted);
}

.tg-drawer-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tg-border);
}

.tg-drawer-social-btn {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-sm);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.tg-drawer-social-btn:hover {
  border-color: var(--tg-primary);
  background: var(--tg-surface);
}

/* ==========================================================================
   5. Search Modal Overlay (TechWiser & Beebom quick search style)
   ========================================================================== */
.tg-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tg-search-modal.active {
  display: flex;
}

.tg-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 36, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tg-search-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  background: var(--tg-surface);
  padding: 2.25rem;
  border-radius: var(--tg-radius-lg);
  border: 1px solid var(--tg-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  animation: popIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.tg-search-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.75rem;
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-text-muted);
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.tg-search-close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.tg-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tg-modal-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 12px;
  margin: 0 auto 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.tg-modal-title {
  color: var(--tg-text);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.tg-modal-subtitle {
  color: var(--tg-text-muted);
  font-size: 0.875rem;
}

.tg-modal-input-wrap {
  display: flex;
  align-items: center;
  background: var(--tg-surface-subtle);
  border: 2px solid var(--tg-border);
  border-radius: var(--tg-radius-full);
  padding: 0.35rem 0.45rem 0.35rem 1.15rem;
  transition: all 0.2s ease;
}

.tg-modal-input-wrap:focus-within {
  border-color: var(--tg-primary);
  background: var(--tg-surface);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.tg-modal-search-icon {
  color: var(--tg-text-muted);
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.tg-modal-search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--tg-text);
  padding: 0.45rem 0;
}

.tg-modal-search-submit {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--tg-radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.tg-modal-search-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

.tg-modal-suggestions {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--tg-border);
}

.tg-modal-sug-title {
  display: block;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tg-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.65rem;
}

.tg-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tg-sug-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-full);
  color: var(--tg-text);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tg-sug-tag:hover {
  border-color: var(--tg-primary);
  background: var(--tg-primary-light);
  color: var(--tg-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Home Hero Section (Featured Stories Grid)
   ========================================================================== */
.tg-hero-section {
  padding: 1.75rem 0 1.25rem;
}

.tg-hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 1.5rem;
}

.tg-card-hero {
  position: relative;
  border-radius: var(--tg-radius-lg);
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--tg-shadow-lg);
  background: var(--tg-dark);
}

.tg-card-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tg-card-hero:hover img {
  transform: scale(1.05);
}

.tg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 25%, rgba(15, 23, 42, 0.7) 60%, rgba(15, 23, 42, 0.95) 100%);
}

.tg-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #fff;
}

.tg-badge {
  display: inline-block;
  background: var(--tg-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--tg-radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.tg-hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #fff;
}

.tg-hero-title a:hover {
  color: #fca5a5;
}

.tg-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: #cbd5e1;
}

.tg-side-stories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-card-side {
  display: flex;
  gap: 1rem;
  background: var(--tg-surface-card);
  padding: 1rem;
  border-radius: var(--tg-radius);
  border: 1px solid var(--tg-border);
  box-shadow: var(--tg-shadow-sm);
  transition: var(--tg-transition);
}

.tg-card-side:hover {
  transform: translateY(-3px);
  box-shadow: var(--tg-shadow);
  border-color: rgba(220, 38, 38, 0.3);
}

.tg-card-side-img {
  width: 120px;
  height: 95px;
  flex-shrink: 0;
  border-radius: var(--tg-radius-sm);
  overflow: hidden;
}

.tg-card-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--tg-transition);
}

.tg-card-side:hover .tg-card-side-img img {
  transform: scale(1.08);
}

.tg-card-side-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tg-card-side-title {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  color: var(--tg-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Rasi Palan (Astrology) Quick Widget
   ========================================================================== */
.tg-rasi-section {
  padding: 1.5rem 0;
}

.tg-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--tg-border);
}

.tg-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tg-text);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tg-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--tg-primary);
  border-radius: var(--tg-radius-full);
}

.tg-view-all {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tg-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tg-view-all:hover {
  text-decoration: underline;
}

.tg-rasi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.tg-rasi-card {
  background: var(--tg-surface-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--tg-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.tg-rasi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  opacity: 0;
  transition: var(--tg-transition);
}

.tg-rasi-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.15);
}

.tg-rasi-card:hover::before {
  opacity: 1;
}

.tg-rasi-symbol {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.tg-rasi-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tg-text);
}

.tg-rasi-eng {
  font-size: 0.725rem;
  color: var(--tg-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Tamil Utility Tools Bar (EB Calculator, Age, Typing)
   ========================================================================== */
.tg-tools-strip {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--tg-radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
  box-shadow: var(--tg-shadow-lg);
}

.tg-tools-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tg-tools-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.tg-tools-header p {
  color: #94a3b8;
  font-size: 0.875rem;
}

.tg-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tg-tool-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tg-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--tg-transition);
}

.tg-tool-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.tg-tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--tg-radius);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.tg-tool-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.tg-tool-info p {
  font-size: 0.775rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ==========================================================================
   Main Content Layout (2-Column Magazine + Sidebar)
   ========================================================================== */
.tg-layout-wrap {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2rem;
  padding: 1.5rem 0 3rem;
}

.tg-main-content {
  min-width: 0;
}

.tg-sidebar {
  min-width: 0;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--tg-header-height, 70px) + 1.5rem);
  align-self: start;
}

/* Post Cards Grid */
.tg-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tg-post-card {
  background: var(--tg-surface-card);
  border-radius: var(--tg-radius);
  border: 1px solid var(--tg-border);
  overflow: hidden;
  box-shadow: var(--tg-shadow-sm);
  transition: var(--tg-transition);
  display: flex;
  flex-direction: column;
}

.tg-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tg-shadow-lg);
  border-color: rgba(220, 38, 38, 0.3);
}

.tg-post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tg-dark);
}

.tg-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tg-post-card:hover .tg-post-card-thumb img {
  transform: scale(1.06);
}

.tg-post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tg-post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  color: var(--tg-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-post-card-excerpt {
  font-size: 0.875rem;
  color: var(--tg-text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-post-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tg-border-light);
  font-size: 0.775rem;
  color: var(--tg-text-light);
}

/* ==========================================================================
   Tamil Kavithaigal & Quotes Cards
   ========================================================================== */
.tg-kavithai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tg-kavithai-card {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.04), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--tg-border);
  border-left: 4px solid var(--tg-primary);
  border-radius: var(--tg-radius);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--tg-shadow-sm);
  transition: var(--tg-transition);
  min-height: 220px;
}

.tg-kavithai-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tg-shadow);
  border-color: var(--tg-primary);
}

.tg-kavithai-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.tg-kavithai-quote-mark {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--tg-primary);
  opacity: 0.7;
  font-family: serif;
  flex-shrink: 0;
  margin-top: -0.15rem;
}

.tg-kavithai-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--tg-text);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-kavithai-title a {
  color: var(--tg-text);
}

.tg-kavithai-title a:hover {
  color: var(--tg-primary);
}

.tg-kavithai-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--tg-text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.tg-kavithai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--tg-border);
  margin-top: auto;
}

.tg-kavithai-tag {
  font-size: 0.775rem;
  color: var(--tg-primary);
  font-weight: 700;
}

.tg-kavithai-actions {
  display: flex;
  gap: 0.5rem;
}

.tg-btn-copy, .tg-btn-whatsapp {
  border: none;
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--tg-radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--tg-text);
  transition: var(--tg-transition);
}

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

.tg-btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.tg-btn-whatsapp:hover {
  background: #1ebc59;
}

/* ==========================================================================
   Song Lyrics List Item
   ========================================================================== */
.tg-lyrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.tg-lyrics-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tg-surface-card);
  padding: 1rem 1.25rem;
  border-radius: var(--tg-radius);
  border: 1px solid var(--tg-border);
  box-shadow: var(--tg-shadow-sm);
  transition: var(--tg-transition);
}

.tg-lyrics-item:hover {
  border-color: var(--tg-primary);
  transform: translateX(4px);
  box-shadow: var(--tg-shadow);
}

.tg-lyrics-title-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tg-text);
  margin-bottom: 0.2rem;
}

.tg-lyrics-meta {
  font-size: 0.825rem;
  color: var(--tg-text-muted);
}

.tg-lyrics-view-btn {
  background: var(--tg-primary-light);
  color: var(--tg-primary);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--tg-radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tg-lyrics-item:hover .tg-lyrics-view-btn {
  background: var(--tg-primary);
  color: #fff;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.tg-widget {
  background: var(--tg-surface-card);
  border-radius: var(--tg-radius);
  border: 1px solid var(--tg-border);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--tg-shadow-sm);
}

.tg-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tg-text);
  margin-bottom: 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tg-border);
  position: relative;
}

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

/* Panchangam / Nalla Neram Widget */
.tg-panchangam-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-panchangam-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--tg-surface-subtle);
  border-radius: var(--tg-radius-sm);
  font-size: 0.875rem;
}

.tg-panchangam-label {
  font-weight: 600;
  color: var(--tg-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tg-panchangam-val {
  font-weight: 700;
  color: var(--tg-primary);
}

/* Trending Posts Widget */
.tg-trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tg-trending-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--tg-text-light);
  line-height: 1;
  min-width: 28px;
}

.tg-trending-item:nth-child(1) .tg-trending-num,
.tg-trending-num.tg-rank-1 { color: #ef4444; }
.tg-trending-item:nth-child(2) .tg-trending-num,
.tg-trending-num.tg-rank-2 { color: #f97316; }
.tg-trending-item:nth-child(3) .tg-trending-num,
.tg-trending-num.tg-rank-3 { color: #f59e0b; }

.tg-trending-title {
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--tg-text);
}

.tg-trending-title:hover {
  color: var(--tg-primary);
}

/* Custom Sidebar Post Widgets */
.tg-widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tg-widget-post-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--tg-transition);
}

.tg-widget-post-item:hover {
  transform: translateX(3px);
}

.tg-widget-post-thumb {
  width: 76px;
  height: 60px;
  border-radius: var(--tg-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tg-dark);
}

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

.tg-widget-post-item:hover .tg-widget-post-thumb img {
  transform: scale(1.08);
}

.tg-widget-post-content {
  flex: 1;
  min-width: 0;
}

.tg-widget-post-title {
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--tg-text);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-widget-post-title a {
  color: var(--tg-text);
}

.tg-widget-post-title a:hover {
  color: var(--tg-primary);
}

.tg-widget-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--tg-text-muted);
}

/* Social Count Widget */
.tg-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tg-social-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--tg-radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--tg-transition);
}

.tg-social-box:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

.tg-social-fb { background: #1877f2; }
.tg-social-yt { background: #ff0000; }
.tg-social-tg { background: #229ed9; }
.tg-social-wa { background: #25d366; }

/* ==========================================================================
   Single Post, Pages & Typography
   ========================================================================== */
.tg-article-container {
  background: var(--tg-surface-card);
  border-radius: var(--tg-radius-lg);
  border: 1px solid var(--tg-border);
  padding: 2.25rem;
  box-shadow: var(--tg-shadow-sm);
  margin-bottom: 2rem;
}

/* Modern Accessible Breadcrumbs */
.tg-breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

ol.tg-breadcrumb-list,
.tg-breadcrumb-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.35rem 0.5rem !important;
}

li.tg-breadcrumb-item,
.tg-breadcrumb-item {
  display: inline-flex !important;
  align-items: center !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tg-text-muted);
  font-size: 0.85rem;
}

li.tg-breadcrumb-item:not(:last-child)::after {
  content: "›" !important;
  display: inline-block !important;
  margin-left: 0.5rem !important;
  color: var(--tg-text-muted) !important;
  opacity: 0.55 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

li.tg-breadcrumb-item a,
.tg-breadcrumb-item a {
  color: var(--tg-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 500;
}

li.tg-breadcrumb-item a:hover,
.tg-breadcrumb-item a:hover {
  color: var(--tg-primary);
  text-decoration: underline;
}

li.tg-breadcrumb-item.tg-breadcrumb-current,
.tg-breadcrumb-current {
  color: var(--tg-text) !important;
  font-weight: 600 !important;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

@media (max-width: 640px) {
  li.tg-breadcrumb-item.tg-breadcrumb-current,
  .tg-breadcrumb-current {
    max-width: 260px;
  }
}

.tg-article-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--tg-text);
  margin-bottom: 1rem;
}

/* Modern Article Meta Area */
.tg-article-meta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--tg-text-muted);
  line-height: 1.6;
}

.tg-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tg-meta-icon {
  color: var(--tg-primary);
  flex-shrink: 0;
}

.tg-meta-author .tg-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--tg-text);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.tg-meta-author .tg-author-link:hover {
  color: var(--tg-primary);
}

.tg-author-avatar img {
  border-radius: var(--tg-radius-full);
  width: 26px;
  height: 26px;
  object-fit: cover;
  border: 1px solid var(--tg-border);
  display: block;
}

.tg-meta-updated {
  background: rgba(220, 38, 38, 0.08);
  color: var(--tg-primary);
  padding: 0.15rem 0.6rem;
  border-radius: var(--tg-radius-full);
  font-weight: 600;
  font-size: 0.825rem;
}

[data-theme="dark"] .tg-meta-updated {
  background: rgba(239, 68, 68, 0.15);
}

.tg-meta-views {
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  padding: 0.15rem 0.6rem;
  border-radius: var(--tg-radius-full);
  font-weight: 600;
  color: var(--tg-text);
}

.tg-meta-reading {
  color: var(--tg-text-muted);
}

.tg-meta-comments a {
  color: var(--tg-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.tg-meta-comments a:hover {
  color: var(--tg-primary);
}

/* Article Toolbar: Font Resizer & Native Share Bar */
.tg-article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius, 8px);
  flex-wrap: wrap;
  gap: 1rem;
}

.tg-toolbar-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--tg-text-muted);
  margin-right: 0.35rem;
}

.tg-font-resizer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tg-font-resizer button {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-sm, 4px);
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--tg-text);
  transition: var(--tg-transition);
}

.tg-font-resizer button:hover {
  background: var(--tg-primary);
  color: #fff;
  border-color: var(--tg-primary);
}

.tg-share-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tg-share-link {
  width: 36px;
  height: 36px;
  border-radius: var(--tg-radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.tg-share-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.tg-share-whatsapp {
  background: #25d366;
}

.tg-share-telegram {
  background: #229ed9;
}

.tg-share-facebook {
  background: #1877f2;
}

.tg-share-x {
  background: #0f1419;
}

.tg-share-copy {
  background: var(--tg-surface);
  color: var(--tg-text);
  border: 1px solid var(--tg-border);
}

.tg-share-copy:hover {
  background: var(--tg-primary);
  color: #fff;
  border-color: var(--tg-primary);
}

.tg-share-print {
  background: var(--tg-surface);
  color: var(--tg-text);
  border: 1px solid var(--tg-border);
}

.tg-share-print:hover {
  background: var(--tg-text);
  color: var(--tg-surface);
}

/* ==========================================================================
   BOTTOM ARTICLE SOCIAL SHARE BOX
   ========================================================================== */
.tg-article-share-bottom {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, var(--tg-surface-subtle) 100%);
  border: 1px solid var(--tg-border);
  border-left: 5px solid var(--tg-primary);
  border-radius: var(--tg-radius-lg, 12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .tg-article-share-bottom {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, var(--tg-surface) 100%);
}

.tg-share-bottom-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.tg-share-bottom-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.tg-share-bottom-title h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tg-text);
  margin: 0;
}

.tg-share-bottom-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tg-btn-share-bottom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--tg-radius-full, 9999px);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tg-btn-share-bottom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  color: #fff;
}

.tg-share-bg-whatsapp {
  background: #25d366;
}

.tg-share-bg-telegram {
  background: #229ed9;
}

.tg-share-bg-facebook {
  background: #1877f2;
}

.tg-share-bg-x {
  background: #0f1419;
}

.tg-share-bg-copy {
  background: var(--tg-surface);
  color: var(--tg-text);
  border: 1px solid var(--tg-border);
}

.tg-share-bg-copy:hover {
  background: var(--tg-primary);
  color: #fff;
  border-color: var(--tg-primary);
}

.tg-article-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--tg-radius-lg, 12px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tg-article-featured-image img,
.tg-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--tg-radius-lg, 12px);
}

.tg-hero-caption {
  font-size: 0.825rem;
  color: var(--tg-text-muted);
  font-style: italic;
  padding: 0.5rem 0.25rem 0;
  text-align: center;
}


/* Video Format Embed Player (Lite YouTube Façade) */
.tg-video-embed-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--tg-radius-lg, 14px);
  margin-bottom: 2rem;
  box-shadow: var(--tg-shadow-lg, 0 10px 25px -5px rgba(0, 0, 0, 0.1));
  background: #000;
}

.tg-video-embed-wrapper iframe,
.tg-video-embed-wrapper embed,
.tg-video-embed-wrapper object {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tg-lite-youtube {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-lite-yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tg-lite-youtube:hover .tg-lite-yt-thumb {
  transform: scale(1.02);
  filter: brightness(0.92);
}

.tg-lite-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  z-index: 2;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.tg-lite-youtube:hover .tg-lite-yt-play {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Hide featured image explicitly in video post format */
body.single-format-video .tg-article-featured-image {
  display: none !important;
}

/* Article Content & Gutenberg Blocks */
.tg-article-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--tg-text);
}

.tg-article-content p {
  margin-bottom: 1.4rem;
}

.tg-article-content ul,
.tg-article-content ol {
  margin: 1.25rem 0 1.5rem 1.75rem;
  padding-left: 0.5rem;
}

.tg-article-content ul {
  list-style-type: disc;
}

.tg-article-content ol {
  list-style-type: decimal;
}

.tg-article-content li {
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.tg-article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tg-text);
  margin: 2.25rem 0 1rem;
  line-height: 1.35;
  padding-left: 0.85rem;
  border-left: 4px solid var(--tg-primary);
}

.tg-article-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tg-text);
  margin: 1.85rem 0 0.85rem;
  line-height: 1.35;
}

.tg-article-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tg-text);
  margin: 1.4rem 0 0.65rem;
}

.tg-article-content blockquote {
  border-left: 4px solid var(--tg-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--tg-surface-subtle);
  border-radius: 0 var(--tg-radius) var(--tg-radius) 0;
  font-style: italic;
  font-weight: 500;
}

.tg-article-content figure {
  margin: 1.75rem 0;
  text-align: center;
}

.tg-article-content figcaption {
  font-size: 0.85rem;
  color: var(--tg-text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.tg-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tg-radius-lg, 12px);
  border: 1px solid var(--tg-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin: 1.75rem auto;
  display: block;
}

/* Auto-collapse empty ad placeholders */
.tg-in-article-ad:empty,
.tg-article-ad:empty,
.tg-ad-slot:empty,
.widget:empty {
  display: none !important;
}

/* ==========================================================================
   MODERN TABLE OF CONTENTS (TOC)
   Targets Foxiz (.ruby-table-contents, .rbtoc), Easy TOC, LuckyWP & Core
   ========================================================================== */
.ruby-table-contents,
.rbtoc,
#toc_container,
.ez-toc-container,
.wp-block-table-of-contents {
  position: relative;
  background: var(--tg-surface) !important;
  border: 1px solid var(--tg-border) !important;
  border-left: 5px solid var(--tg-primary) !important;
  border-radius: var(--tg-radius-lg, 12px) !important;
  padding: 1.25rem 1.5rem !important;
  margin: 2rem 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  counter-reset: tg-toc-counter;
  transition: all 0.3s ease;
}

[data-theme="dark"] .ruby-table-contents,
[data-theme="dark"] .rbtoc,
[data-theme="dark"] #toc_container,
[data-theme="dark"] .ez-toc-container {
  background: var(--tg-surface) !important;
  border-color: var(--tg-border) !important;
  border-left-color: var(--tg-primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Reset any unwanted background highlights from plugin or browser selection */
.ruby-table-contents *,
.rbtoc *,
#toc_container *,
.ez-toc-container * {
  background-color: transparent;
  box-shadow: none;
}

/* TOC Header */
.ruby-table-contents .toc-header,
.rbtoc .toc-header,
#toc_container .toc_title,
.ez-toc-title-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 0 0.75rem 0 !important;
  border-bottom: 2px solid var(--tg-border) !important;
  font-family: 'Anek Tamil', var(--tg-font-primary), sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--tg-text) !important;
  letter-spacing: -0.01em;
}

.ruby-table-contents .toc-header::before,
.rbtoc .toc-header::before {
  content: '📑';
  margin-right: 0.6rem;
  font-size: 1.25rem;
  line-height: 1;
}

.ruby-table-contents .toc-header .h3,
.rbtoc .toc-header .h3,
.ruby-table-contents .toc-header span {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--tg-text) !important;
  margin: 0 !important;
}

/* Toggle Collapse Button */
.ruby-table-contents .toc-toggle,
.rbtoc .toc-toggle,
#toc_container .toc_toggle,
.ez-toc-title-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: var(--tg-radius-full, 9999px) !important;
  background: var(--tg-surface-subtle) !important;
  border: 1px solid var(--tg-border) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: var(--tg-text-muted) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}

.ruby-table-contents .toc-toggle:hover,
.rbtoc .toc-toggle:hover {
  background: var(--tg-primary) !important;
  border-color: var(--tg-primary) !important;
  color: #fff !important;
}

/* Collapsed State */
.ruby-table-contents.is-collapsed .toc-content,
.rbtoc.is-collapsed .toc-content {
  display: none !important;
}

/* TOC Content List */
.ruby-table-contents .toc-content,
.rbtoc .toc-content,
#toc_container ul,
.ez-toc-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* TOC Links - Modern Pill Item */
.ruby-table-contents .toc-content a,
.rbtoc .toc-content a,
#toc_container ul li a,
.ez-toc-link {
  display: flex !important;
  align-items: center !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--tg-text) !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  line-height: 1.5 !important;
  position: relative !important;
}

/* Automatic Numbered Badge */
.ruby-table-contents .toc-content > a:not(.depth-1):not(.depth-2)::before,
.rbtoc .toc-content > a:not(.depth-1):not(.depth-2)::before,
#toc_container > ul > li > a::before {
  counter-increment: tg-toc-counter;
  content: counter(tg-toc-counter, decimal-leading-zero);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 24px !important;
  padding: 0 6px !important;
  margin-right: 0.75rem !important;
  border-radius: 6px !important;
  background: var(--tg-surface-subtle) !important;
  border: 1px solid var(--tg-border) !important;
  color: var(--tg-primary) !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

/* Hover state */
.ruby-table-contents .toc-content a:hover,
.rbtoc .toc-content a:hover,
#toc_container ul li a:hover,
.ez-toc-link:hover {
  background: rgba(220, 38, 38, 0.08) !important;
  color: var(--tg-primary) !important;
  transform: translateX(5px) !important;
}

[data-theme="dark"] .ruby-table-contents .toc-content a:hover,
[data-theme="dark"] .rbtoc .toc-content a:hover {
  background: rgba(239, 68, 68, 0.15) !important;
}

.ruby-table-contents .toc-content a:hover::before,
.rbtoc .toc-content a:hover::before {
  background: var(--tg-primary) !important;
  color: #fff !important;
  border-color: var(--tg-primary) !important;
}

/* Sub-items (h3 / h4 Indentation) */
.ruby-table-contents .depth-1,
.rbtoc .depth-1,
#toc_container ul ul li a,
.ez-toc-list-level-3 a {
  padding-left: 2.2rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--tg-text-muted) !important;
}

.ruby-table-contents .depth-1::before,
.rbtoc .depth-1::before {
  content: '↳' !important;
  display: inline-block !important;
  margin-right: 0.6rem !important;
  color: var(--tg-primary) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  min-width: auto !important;
  background: none !important;
  border: none !important;
}

.ruby-table-contents .depth-2,
.rbtoc .depth-2 {
  padding-left: 3.2rem !important;
  font-size: 0.85rem !important;
  color: var(--tg-text-muted) !important;
}

/* Active ScrollSpy Highlight */
.ruby-table-contents .toc-content a.is-active,
.rbtoc .toc-content a.is-active {
  background: rgba(220, 38, 38, 0.1) !important;
  color: var(--tg-primary) !important;
  font-weight: 800 !important;
  border-left: 3px solid var(--tg-primary) !important;
}

/* ==========================================================================
   ALSO READ (மேலும் வாசிக்க) - MODERN MODULES
   ========================================================================== */

/* Main Also Read Box (End of Article & Shortcode) */
.tg-also-read-box {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, var(--tg-surface-subtle) 100%);
  border: 1px solid var(--tg-border);
  border-left: 5px solid var(--tg-primary);
  border-radius: var(--tg-radius-lg, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .tg-also-read-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, var(--tg-surface) 100%);
  border-color: var(--tg-border);
  border-left-color: var(--tg-primary);
}

.tg-also-read-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed var(--tg-border);
}

.tg-also-read-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.tg-also-read-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tg-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.tg-also-read-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .tg-also-read-grid {
    grid-template-columns: 1fr;
  }
}

.tg-also-read-item {
  display: flex;
  gap: 0.85rem;
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius, 8px);
  padding: 0.85rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
}

.tg-also-read-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--tg-shadow-md);
  border-color: var(--tg-primary);
}

.tg-also-read-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--tg-surface-subtle);
}

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

.tg-also-read-item:hover .tg-also-read-thumb img {
  transform: scale(1.08);
}

.tg-also-read-info {
  flex: 1;
  min-width: 0;
}

.tg-also-read-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.35rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-also-read-item-title a {
  color: var(--tg-text);
  text-decoration: none;
  transition: color 0.2s;
}

.tg-also-read-item-title a:hover {
  color: var(--tg-primary);
}

/* ==========================================================================
   IN-CONTENT "ALSO READ" CALLOUT BOXES
   Converts plain bullet lists like "Also Read:" / "மேலும் வாசிக்க:" into cards
   ========================================================================== */
.tg-incontent-also-read {
  position: relative;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.04) 0%, var(--tg-surface-subtle) 100%);
  border: 1px solid var(--tg-border);
  border-left: 4px solid var(--tg-primary);
  border-radius: var(--tg-radius, 10px);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .tg-incontent-also-read {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--tg-surface) 100%);
}

.tg-incontent-also-read .tg-incontent-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tg-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tg-incontent-also-read ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tg-incontent-also-read li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 0 !important;
  line-height: 1.5;
  font-size: 0.975rem;
  font-weight: 600;
  border-bottom: 1px dashed var(--tg-border);
}

.tg-incontent-also-read li:last-child {
  border-bottom: none;
}

.tg-incontent-also-read li::before {
  content: '➜';
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--tg-primary);
  font-weight: bold;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.tg-incontent-also-read li:hover::before {
  transform: translateX(3px);
}

.tg-incontent-also-read li a {
  color: var(--tg-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tg-incontent-also-read li a:hover {
  color: var(--tg-primary);
  text-decoration: underline;
}

/* AI Summarize Buttons Plugin */
.ayudawp-share-buttons {
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  border-left: 4px solid var(--tg-primary);
  border-radius: var(--tg-radius-lg, 12px);
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ayudawp-share-buttons .ayudawp-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--tg-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ayudawp-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ayudawp-share-btn {
  padding: 0.45rem 1rem !important;
  border-radius: var(--tg-radius-full, 9999px) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border: 1px solid var(--tg-border) !important;
  background: var(--tg-surface) !important;
  color: var(--tg-text) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.ayudawp-share-btn:hover {
  transform: translateY(-2px);
  border-color: var(--tg-primary) !important;
  color: var(--tg-primary) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* ==========================================================================
   TNEB EB Calculator Specific Styles
   ========================================================================== */
.tg-calc-card {
  background: var(--tg-surface-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg);
  padding: 2rem;
  box-shadow: var(--tg-shadow-lg);
  margin-bottom: 2rem;
}

.tg-calc-form-group {
  margin-bottom: 1.5rem;
}

.tg-calc-label {
  display: block;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--tg-text);
  margin-bottom: 0.5rem;
}

.tg-calc-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  border: 2px solid var(--tg-border);
  border-radius: var(--tg-radius);
  background: var(--tg-surface);
  color: var(--tg-text);
  transition: var(--tg-transition);
}

.tg-calc-input:focus {
  outline: none;
  border-color: var(--tg-primary);
  box-shadow: 0 0 0 4px var(--tg-primary-light);
}

.tg-calc-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--tg-primary), #ff6b35);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: var(--tg-radius);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
  transition: var(--tg-transition);
}

.tg-calc-btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.tg-calc-result-box {
  margin-top: 2rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--tg-success);
  border-radius: var(--tg-radius);
  display: none;
}

.tg-calc-result-box.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.tg-calc-total-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--tg-success);
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.tg-calc-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tg-calc-breakdown-table th, .tg-calc-breakdown-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--tg-border);
  font-size: 0.9rem;
}

.tg-calc-breakdown-table th {
  background: var(--tg-surface-subtle);
  font-weight: 700;
}

/* Rasi & Nakshatra Calculator Styles */
.tg-rasi-calc-wrapper {
  border-top: 4px solid #f59e0b;
}

.tg-pada-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--tg-radius-full, 9999px);
  background: var(--tg-surface-subtle, #f8fafc);
  border: 1px solid var(--tg-border, #e2e8f0);
  color: var(--tg-text);
  transition: all 0.2s ease;
}

.tg-pada-pill:hover {
  border-color: #f59e0b;
  transform: translateY(-1px);
}

/* ==========================================================================
   ADSTERRA-INSPIRED EDITORIAL SINGLE POST COMPONENTS
   ========================================================================== */

/* Category badge above title */
.tg-article-category {
  margin-bottom: 0.85rem;
}

.tg-badge-primary {
  background: var(--tg-primary) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--tg-radius-full, 9999px);
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tg-badge-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  color: #fff !important;
}

/* Auto-Generated / Native Table of Contents (Adsterra Style) */
.tg-toc-wrapper {
  position: relative;
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-left: 5px solid var(--tg-primary);
  border-radius: var(--tg-radius-lg, 12px);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  counter-reset: tg-toc-counter;
  transition: all 0.3s ease;
}

[data-theme="dark"] .tg-toc-wrapper {
  background: var(--tg-surface);
  border-color: var(--tg-border);
  border-left-color: var(--tg-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tg-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem 0;
  padding: 0 0 0.75rem 0;
  border-bottom: 2px solid var(--tg-border);
  font-family: 'Anek Tamil', var(--tg-font-primary), sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tg-text);
  letter-spacing: -0.01em;
}

.tg-toc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tg-toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--tg-radius-full, 9999px);
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tg-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.tg-toc-toggle:hover {
  background: var(--tg-primary);
  border-color: var(--tg-primary);
  color: #fff;
}

.tg-toc-wrapper.is-collapsed .tg-toc-nav {
  display: none;
}

.tg-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tg-toc-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: var(--tg-radius-sm, 6px);
  color: var(--tg-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.tg-toc-link:hover {
  background: var(--tg-surface-subtle);
  color: var(--tg-primary);
  border-left-color: var(--tg-primary);
  transform: translateX(3px);
}

.tg-toc-link.is-active {
  background: rgba(220, 38, 38, 0.08);
  color: var(--tg-primary);
  border-left-color: var(--tg-primary);
  font-weight: 800;
}

[data-theme="dark"] .tg-toc-link.is-active {
  background: rgba(239, 68, 68, 0.15);
}

.tg-toc-link.depth-h3 {
  padding-left: 2rem;
  font-size: 0.88rem;
  color: var(--tg-text-muted);
}

.tg-toc-link.depth-h3::before {
  content: "↳";
  margin-right: 0.5rem;
  color: var(--tg-primary);
  font-weight: 800;
}

/* ==========================================================================
   Adsterra-Style Sticky Left Bar Table of Contents (.tg-toc-rail)
   ========================================================================== */
.single .container {
  width: 96%;
  max-width: 1600px;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1200px) {
  .tg-layout-wrap.tg-layout-has-toc {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 300px !important;
    gap: 1.75rem !important;
    align-items: start !important;
  }
  .tg-layout-wrap.tg-layout-has-toc .tg-toc-rail {
    display: block !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: calc(var(--tg-header-height, 70px) + 24px) !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 10 !important;
  }
  .tg-toc-mobile-wrap {
    display: none !important;
  }
}

@media (min-width: 1600px) {
  .single .container {
    max-width: 1680px;
  }
  .tg-layout-wrap.tg-layout-has-toc {
    grid-template-columns: 230px minmax(0, 1fr) 320px !important;
    gap: 2rem !important;
  }
}

/* Hide TOC Rail by default on all screens unless article has >= 2 headings */
.tg-toc-rail {
  display: none !important;
}
.tg-layout-has-toc .tg-toc-rail {
  display: block !important;
}

.tg-toc-rail-inner {
  background: var(--tg-surface);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg, 14px);
  padding: 1.25rem 0.85rem;
  box-shadow: var(--tg-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.03));
}

.tg-toc-rail-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--tg-border);
}

.tg-toc-rail-icon {
  font-size: 1.1rem;
}

.tg-toc-rail-title {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--tg-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tg-toc-rail-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tg-toc-rail-item {
  margin: 0 !important;
  padding: 0 !important;
}

.tg-toc-rail-link {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.45rem !important;
  padding: 0.4rem 0.55rem !important;
  font-size: 0.825rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: var(--tg-text-muted) !important;
  text-decoration: none !important;
  border-radius: var(--tg-radius-sm, 6px) !important;
  border-left: 2px solid transparent !important;
  transition: all 0.2s ease !important;
}

.tg-toc-rail-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tg-text-subtle, #94a3b8);
  flex-shrink: 0;
  min-width: 16px;
}

.tg-toc-rail-text {
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-toc-rail-link:hover {
  color: var(--tg-primary) !important;
  background: var(--tg-surface-subtle) !important;
  border-left-color: var(--tg-primary) !important;
}

.tg-toc-rail-link:hover .tg-toc-rail-num {
  color: var(--tg-primary) !important;
}

.tg-toc-rail-link.depth-h3 {
  padding-left: 1.25rem !important;
  font-size: 0.785rem !important;
}

.tg-toc-rail-link.is-active {
  color: var(--tg-primary) !important;
  background: rgba(225, 29, 72, 0.08) !important;
  border-left: 3px solid var(--tg-primary) !important;
  font-weight: 700 !important;
}

.tg-toc-rail-link.is-active .tg-toc-rail-num {
  color: var(--tg-primary) !important;
}

.tg-toc-rail::-webkit-scrollbar {
  width: 4px;
}
.tg-toc-rail::-webkit-scrollbar-thumb {
  background: var(--tg-border);
  border-radius: 4px;
}

/* Mobile & Tablet Fallback TOC */
.tg-toc-mobile-wrap {
  margin: 1.75rem 0;
  border: 1px solid var(--tg-border);
  background: var(--tg-surface-subtle);
  border-radius: var(--tg-radius-lg, 12px);
  overflow: hidden;
}

.tg-toc-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  background: var(--tg-surface);
  user-select: none;
}

.tg-toc-mobile-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--tg-text);
}

.tg-toc-mobile-toggle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tg-primary);
  background: rgba(225, 29, 72, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.tg-toc-mobile-body {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--tg-border);
}

.tg-toc-mobile-wrap.is-collapsed .tg-toc-mobile-body {
  display: none;
}

.tg-toc-mobile-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tg-toc-mobile-link {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.45rem !important;
  font-size: 0.875rem !important;
  color: var(--tg-text) !important;
  text-decoration: none !important;
  line-height: 1.45 !important;
}

.tg-toc-mobile-link:hover {
  color: var(--tg-primary) !important;
}

/* Post Tags (Adsterra Pill Style) */
.tg-article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tg-border);
}

.tg-tags-label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--tg-text-muted);
}

.tg-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tg-tag-pill {
  background: var(--tg-surface-subtle);
  border: 1px solid var(--tg-border);
  padding: 0.25rem 0.7rem;
  border-radius: var(--tg-radius-full, 9999px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tg-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tg-tag-pill:hover {
  background: var(--tg-primary);
  border-color: var(--tg-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

/* Modern Author Bio Box (Adsterra E-E-A-T Style) */
.tg-author-box-modern {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--tg-surface-subtle);
  padding: 1.75rem;
  border-radius: var(--tg-radius-lg, 12px);
  margin-top: 2.25rem;
  border: 1px solid var(--tg-border);
  box-shadow: var(--tg-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-author-box-modern:hover {
  box-shadow: var(--tg-shadow-md);
}

.tg-author-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--tg-radius-full, 9999px);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--tg-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.tg-author-details {
  flex: 1;
  min-width: 0;
}

.tg-author-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.tg-author-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.tg-author-name a {
  color: var(--tg-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.tg-author-role-badge {
  background: rgba(220, 38, 38, 0.1);
  color: var(--tg-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--tg-radius-full, 9999px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .tg-author-role-badge {
  background: rgba(239, 68, 68, 0.2);
}

.tg-author-bio {
  font-size: 0.9rem;
  color: var(--tg-text-muted);
  line-height: 1.6;
  margin: 0 0 0.85rem 0;
}

.tg-author-footer {
  margin-top: 0.25rem;
}

.tg-author-all-posts {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tg-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.tg-author-all-posts:hover {
  gap: 0.65rem;
  text-decoration: underline;
}

/* Dual Previous & Next Post Navigation Cards (Adsterra Style) */
.tg-post-navigation {
  margin: 2.5rem 0;
}

.tg-nav-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.tg-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: var(--tg-surface-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg, 12px);
  text-decoration: none;
  box-shadow: var(--tg-shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tg-shadow-md);
  border-color: var(--tg-primary);
}

.tg-nav-direction {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tg-text-muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.03em;
}

.tg-nav-next .tg-nav-direction {
  justify-content: flex-end;
  text-align: right;
}

.tg-nav-next {
  text-align: right;
}

.tg-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--tg-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.tg-nav-card:hover .tg-nav-title {
  color: var(--tg-primary);
}

.tg-nav-empty {
  border: none;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

/* Related Posts Section (Adsterra Style 3-Column Card Grid) */
.tg-related-section {
  margin-top: 3rem;
  padding-top: 1rem;
}

.tg-related-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--tg-border);
}

.tg-related-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tg-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tg-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tg-related-card {
  background: var(--tg-surface-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--tg-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tg-shadow-lg);
  border-color: var(--tg-primary);
}

.tg-related-thumb-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tg-surface-subtle);
}

.tg-related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tg-related-card:hover .tg-related-thumb {
  transform: scale(1.08);
}

.tg-related-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tg-badge-sm {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--tg-radius-full, 9999px);
  margin-bottom: 0.5rem;
  width: fit-content;
  text-decoration: none;
}

.tg-related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.65rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.tg-related-card-title a {
  color: var(--tg-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.tg-related-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.775rem;
  color: var(--tg-text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--tg-border);
}

/* In-Content Callout & Promo Cards (Adsterra Style) */
.tg-callout-promo {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid var(--tg-border);
  border-left: 5px solid var(--tg-primary);
  border-radius: var(--tg-radius-lg, 12px);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

[data-theme="dark"] .tg-callout-promo {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.tg-callout-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.35rem 0;
  color: var(--tg-text);
}

.tg-callout-text p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--tg-text-muted);
}

.tg-btn-cta {
  background: var(--tg-primary);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 1.4rem;
  border-radius: var(--tg-radius-full, 9999px);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tg-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

@media (max-width: 768px) {
  .tg-nav-cards {
    grid-template-columns: 1fr;
  }
  .tg-nav-next {
    text-align: left;
  }
  .tg-nav-next .tg-nav-direction {
    justify-content: flex-start;
  }
  .tg-related-grid {
    grid-template-columns: 1fr;
  }
  .tg-author-box-modern {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .tg-author-header {
    justify-content: center;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.tg-footer {
  background: var(--tg-dark);
  color: #e2e8f0;
  margin-top: auto;
  border-top: 4px solid var(--tg-primary);
  padding: 3.5rem 0 1.5rem;
}

.tg-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.tg-footer-col h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.tg-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--tg-primary);
}

.tg-footer-about {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tg-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tg-footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: var(--tg-transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tg-footer-links a:hover {
  color: var(--tg-secondary);
  padding-left: 0.4rem;
}

.tg-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Sticky Bottom Bar */
.tg-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--tg-surface);
  border-top: 1px solid var(--tg-border);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 0.4rem 0;
}

.tg-mobile-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.tg-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--tg-text-muted);
  gap: 0.15rem;
  padding: 0.2rem 0.5rem;
}

.tg-mobile-nav-item.active, .tg-mobile-nav-item:hover {
  color: var(--tg-primary);
}

/* Back to Top */
.tg-back-to-top {
  position: fixed;
  bottom: 5.75rem;
  right: 1.5rem;
  background: var(--tg-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--tg-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--tg-transition);
  z-index: 999;
  border: none;
}

.tg-back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .tg-nav-menu > li > a,
  .tg-nav-pill {
    padding: 0.38rem 0.65rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  .tg-pill-nav {
    display: none;
  }
  .tg-menu-toggle {
    display: block;
  }
  .tg-hero-grid {
    grid-template-columns: 1fr;
  }
  .tg-layout-wrap {
    grid-template-columns: 1fr;
  }
  .tg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tg-rasi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .tg-topbar-left .tg-date-badge {
    display: none;
  }
  .tg-top-nav {
    display: none;
  }
  .tg-social-nav {
    display: none;
  }
  .tg-header-banner {
    display: none;
  }
  .tg-nav-menu {
    display: none;
  }
  .tg-menu-toggle {
    display: block;
  }
  .tg-site-title {
    font-size: 1.45rem;
  }
  .tg-tagline {
    display: none;
  }
  .tg-trending-badge {
    padding: 0.15rem 0.5rem 0.15rem 0.35rem;
  }
  .tg-trending-title {
    font-size: 0.8rem;
  }
  .tg-trend-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }
  .tg-posts-grid {
    grid-template-columns: 1fr;
  }
  .tg-kavithai-grid {
    grid-template-columns: 1fr;
  }
  .tg-tools-grid {
    grid-template-columns: 1fr;
  }
  .tg-rasi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tg-mobile-bar {
    display: block;
  }
  body {
    padding-bottom: 60px;
  }
  .tg-footer-grid {
    grid-template-columns: 1fr;
  }
  .tg-article-container {
    padding: 1.5rem 1.25rem;
  }
  .tg-article-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 540px) {
  .tg-hero-pill-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .tg-rasi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tg-card-hero {
    min-height: 320px;
  }
  .tg-hero-title {
    font-size: 1.35rem;
  }
}
