/*
Theme Name: SKT Developer Theme
Theme URI: https://shrikrishnatarpaulin.com
Author: Futurecept
Author URI: https://futurecept.com
Description: Premium industrial theme for Shri Krishna Tarpaulin with deep navy and vibrant orange color scheme. Features modern design, smooth animations, and glassmorphism effects.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
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: skt-developer
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, one-column, two-columns, right-sidebar
*/

/* ==================================
   CSS VARIABLES - Design Tokens
   ================================== */
:root {
  /* Navy Blue Palette */
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;
  
  /* Orange Palette */
  --orange-500: #F97316;
  --orange-400: #FB923C;
  --orange-600: #EA580C;
  
  /* Neutral Palette */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  
  /* Semantic Colors */
  --background: var(--navy-900);
  --foreground: var(--gray-50);
  --card: #131D34;
  --card-foreground: var(--gray-50);
  --primary: var(--orange-500);
  --primary-foreground: var(--navy-900);
  --secondary: var(--navy-700);
  --secondary-hsl: 215, 25%, 27%;
  --secondary-foreground: var(--gray-50);
  --muted: var(--navy-700);
  --muted-foreground: var(--gray-400);
  --border: #2D3A4D;
  --ring: var(--orange-500);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #16223D 0%, #111B30 100%);
  --gradient-card: linear-gradient(180deg, #131D34 0%, #0F172A 100%);
  --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 8px 32px -4px rgba(249, 115, 22, 0.4);
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.3);
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --radius: 0.75rem;
  --container-max: 1400px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ==================================
   TYPOGRAPHY
   ================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ==================================
   LAYOUT
   ================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==================================
   HEADER STYLES
   ================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--header-bg, var(--background));
  border-bottom: 1px solid var(--header-border, var(--border));
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #F97015;
  border: 1px solid #F97015;
  border-radius: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  letter-spacing: -0.025em;
}

.logo-text .subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
}

/* Navigation */
.main-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--header-text, var(--foreground));
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--header-hover, var(--primary));
}

.nav-link svg {
  width: 1rem;
  height: 1rem;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  width: 14rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  color: var(--primary);
  background-color: var(--muted);
}

/* Header CTAs */
.header-ctas {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header-ctas {
    display: flex;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--foreground);
}

/* Mobile Navigation */
.mobile-navigation {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-navigation.active {
  display: block;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease forwards;
}

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

@media (min-width: 1024px) {
  .mobile-navigation {
    display: none !important;
  }
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-item:last-of-type {
  border-bottom: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s ease;
  min-height: 48px;
}

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

.mobile-nav-link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.mobile-nav-link.active svg {
  transform: rotate(180deg);
}

.mobile-dropdown {
  padding-left: 1rem;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
}

.mobile-dropdown.active {
  max-height: 400px;
  padding: 0.5rem 0 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.mobile-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  border-radius: calc(var(--radius) - 4px);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-dropdown a:hover,
.mobile-dropdown a:active {
  color: var(--primary);
  background-color: rgba(249, 115, 22, 0.1);
}

.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.mobile-ctas .btn {
  justify-content: center;
  min-height: 48px;
  font-size: 1rem;
}

/* ==================================
   BUTTONS
   ================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--orange-600);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* ==================================
   HERO SECTION
   ================================== */
.hero-section {
  background: var(--gradient-hero);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 6rem 0;
  }
}

.hero-content {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background-color: var(--hero-badge-bg, rgba(249, 115, 22, 0.1));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.hero-badge span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--hero-title, var(--foreground));
  margin-bottom: 1rem;
  animation: slideUp 0.6s ease-out forwards;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--hero-desc, var(--muted-foreground));
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.5s ease-out forwards;
}

/* ==================================
   BLOG SECTION
   ================================== */
.blog-section {
  padding: 4rem 0;
  background-color: var(--background);
}

@media (min-width: 768px) {
  .blog-section {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
	    position: relative;
    left: 0px;
    top: -17px;
    transition: none;
    cursor: move;
}

.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  display: block;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0;
}

.section-description {
  display: block;
  color: var(--muted-foreground);
  margin-top: 1rem;
  max-width: 42rem;
  text-align: center;
}

/* ==================================
   BLOG CARDS
   ================================== */
.articles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: var(--card, var(--background));
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  background-color: var(--card-hover, var(--card));
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 20px 40px -12px rgba(249, 115, 22, 0.15);
  transform: translateY(-4px);
}

.card-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, transparent 100%);
  opacity: 0.8;
}

.card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.card-header {
  padding: 1rem 1.5rem 0.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--card-text, var(--foreground));
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-card:hover .card-title,
.card-title a:hover {
  color: var(--primary);
}

.card-content {
  padding: 0 1.5rem 1rem;
  flex-grow: 1;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--card-desc, var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--card-border, var(--border));
  margin-top: auto;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.meta-item svg {
  width: 0.875rem;
  height: 0.875rem;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: all 0.3s ease;
}

.blog-card:hover .read-more {
  opacity: 1;
  transform: translateX(0);
}

.read-more svg {
  width: 1rem;
  height: 1rem;
}

/* ==================================
   FAQ SECTION
   ================================== */
.faq-section {
  padding: 4rem 0;
  background-color: var(--faq-bg, var(--background));
}

@media (min-width: 768px) {
  .faq-section {
    padding: 6rem 0;
  }
}

.faq-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-section .section-description {
  color: var(--primary);
}

.faq-container {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-item {
  background-color: var(--faq-box-bg, transparent);
  border: 1px solid var(--faq-border, var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
}

.accordion-item:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.accordion-item.active {
  border-color: rgba(249, 115, 22, 0.5);
  background-color: var(--faq-box-active, rgba(249, 115, 22, 0.05));
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--faq-title, var(--foreground));
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--primary);
}

.accordion-trigger span {
  flex: 1;
}

.accordion-trigger svg {
  width: 1rem;
  height: 1rem;
  color: var(--faq-icon, var(--muted-foreground));
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-trigger svg {
  transform: rotate(180deg);
  color: var(--faq-icon, var(--primary));
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 1.25rem 1rem;
  color: var(--faq-answer, var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ==================================
   SINGLE POST
   ================================== */
.post-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

@media (min-width: 768px) {
  .post-hero {
    min-height: 50vh;
  }
}

@media (min-width: 1024px) {
  .post-hero {
    min-height: 55vh;
  }
}

.post-hero-image {
  position: absolute;
  inset: 0;
}

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

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(15, 23, 42, 0.4) 100%);
}

@media (min-width: 768px) {
  .post-hero-overlay {
    background: linear-gradient(to top, var(--background) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
  }
}

.post-hero-content {
  position: relative;
  padding: 2rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .post-hero-content {
    padding: 3rem 0;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  min-height: 44px;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .back-link {
    margin-bottom: 1.5rem;
    min-height: auto;
    padding: 0;
  }
}

.back-link:hover {
  color: var(--foreground);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

.post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  position: relative;
  left: 10px;
  top: -3px;
  transition: none;
  cursor: move;
}

@media (min-width: 768px) {
  .post-category {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
}

.post-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  max-width: 100%;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .post-title {
    max-width: 56rem;
    line-height: 1.15;
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .post-meta {
    gap: 1rem;
    margin-top: 1.5rem;
  }
}

/* Mobile: Stack author and date/time vertically */
@media (max-width: 479px) {
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.author-info {
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a.author-info:hover {
  opacity: 0.8;
}

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

.author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .author-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.author-name {
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.meta-separator {
  display: none;
}

@media (min-width: 480px) {
  .meta-separator {
    display: block;
    width: 1px;
    height: 1rem;
    background-color: var(--border);
  }
}

.post-date,
.post-read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .post-date,
  .post-read-time {
    font-size: 0.875rem;
  }
}

.post-date svg,
.post-read-time svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 768px) {
  .post-date svg,
  .post-read-time svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Post Content */
.post-content-section {
  padding: 2rem 0 3rem;
}

@media (min-width: 768px) {
  .post-content-section {
    padding: 3rem 0 4rem;
  }
}

@media (min-width: 1024px) {
  .post-content-section {
    padding: 4rem 0 6rem;
  }
}

.post-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .post-layout {
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
  }
}

.post-article {
  max-width: 100%;
  min-width: 0;
}

/* Prose Styles */
.prose {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .prose {
    font-size: 1.0625rem;
    line-height: 1.8;
  }
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .prose h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
  }
}

.prose p {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .prose p {
    margin-bottom: 1.25rem;
  }
}

.prose img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .prose img {
    margin: 2rem 0;
  }
}

.prose ul,
.prose ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

@media (min-width: 768px) {
  .prose ul,
  .prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
  }
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.375rem;
}

@media (min-width: 768px) {
  .prose li {
    margin-bottom: 0.5rem;
  }
}

.prose li::marker {
  color: var(--primary);
}

.prose strong {
  font-weight: 600;
  color: var(--foreground);
}

.prose blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .prose blockquote {
    padding-left: 1.5rem;
    margin: 2rem 0;
  }
}

.prose pre,
.prose code {
  font-size: 0.875rem;
  overflow-x: auto;
}

.prose pre {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.prose a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.prose a:hover {
  text-decoration: underline;
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .post-tags {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.post-tags svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.tag {
  padding: 0.375rem 0.75rem;
  background-color: var(--secondary);
  color: var(--foreground);
  font-size: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 32px;
  align-items: center;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .tag {
    font-size: 0.8125rem;
    padding: 0.25rem 0.75rem;
    min-height: auto;
  }
}



/* Author Bio Box */
.author-bio {
  margin-top: 0;
  padding: 1.25rem;
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .author-bio {
    margin-top: 0;
    padding: 1.5rem;
  }
}

.author-bio-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 480px) {
  .author-bio-inner {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}

.author-bio-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .author-bio-avatar {
    width: 5rem;
    height: 5rem;
  }
}

.author-bio-content {
  flex-grow: 1;
}

.author-bio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

@media (min-width: 480px) {
  .author-bio-label {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .author-bio-label {
    font-size: 0.875rem;
  }
}

.author-bio-label svg {
  width: 1rem;
  height: 1rem;
}

.author-bio-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .author-bio-name {
    font-size: 1.125rem;
  }
}

.author-bio-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .author-bio-description {
    font-size: 0.9375rem;
  }
}

/* Author Bio Link Styles */
.author-bio-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.author-bio-link:hover {
  background-color: rgba(249, 115, 22, 0.05);
}

.author-bio-link:hover .author-bio-name {
  color: var(--primary);
}

.author-bio-view-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.75rem;
  transition: gap 0.2s ease;
}

.author-bio-view-link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}

.author-bio-link:hover .author-bio-view-link {
  gap: 0.5rem;
}

.author-bio-link:hover .author-bio-view-link svg {
  transform: translateX(2px);
}

@media (min-width: 768px) {
  .author-bio-view-link {
    font-size: 0.875rem;
  }
}

/* Sidebar Author Link Styles */
.sidebar-author-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border-radius: var(--radius);
}

.sidebar-author-link:hover .sidebar-author-name {
  color: var(--primary);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .post-navigation {
    margin-top: 2.5rem;
  }
}

.post-nav-link {
  padding: 1rem;
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-nav-link:hover,
.post-nav-link:active {
  border-color: rgba(249, 115, 22, 0.5);
  background-color: rgba(249, 115, 22, 0.05);
}

.post-nav-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}

@media (min-width: 768px) {
  .post-nav-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
}

.post-nav-label svg {
  width: 0.875rem;
  height: 0.875rem;
}

@media (min-width: 768px) {
  .post-nav-label svg {
    width: 1rem;
    height: 1rem;
  }
}

.post-nav-title {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .post-nav-title {
    font-size: 1rem;
  }
}

.post-nav-link:hover .post-nav-title,
.post-nav-link:active .post-nav-title {
  color: var(--primary);
}

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

.post-nav-next .post-nav-label {
  justify-content: flex-end;
}

/* Sidebar - Show on mobile as collapsible */
.post-sidebar {
  display: block;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .post-sidebar {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

.sidebar-sticky {
  position: relative;
}

@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky;
    top: 6rem;
  }
}

/* Mobile sidebar - simplified display */
@media (max-width: 1023px) {
  .sidebar-author-widget {
    display: none;
  }
  
  .sidebar-separator:first-of-type {
    display: none;
  }
  
  .toc-nav {
    display: none;
  }
  
  .sidebar-title:first-of-type {
    display: none;
  }
  
  .sidebar-separator:nth-of-type(2) {
    display: none;
  }
  
  .categories-list,
  .popular-tags-list {
    display: flex;
    flex-wrap: wrap;
  }
  
  .popular-tags-list {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .popular-tag {
    flex: 0 0 auto;
  }
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.toc-link:hover {
  color: var(--primary);
}

.sidebar-separator {
  height: 1px;
  background-color: var(--border);
  margin: 1.5rem 0;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tag {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.category-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sidebar Author Widget */
.sidebar-author-widget {
  margin-bottom: 0.5rem;
}

.sidebar-author-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), #FB923C);
  padding: 2px;
}

.sidebar-author-info {
  display: flex;
  flex-direction: column;
}

.sidebar-author-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.sidebar-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Popular Tags - Badge Style (Same as Categories) */
.popular-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.popular-tag {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--foreground);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.popular-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  background-color: var(--navy-700);
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.popular-tag:hover .tag-count {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.no-tags {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Sidebar Widget Styling */
.sidebar-widget {
  margin-bottom: 0;
}

.sidebar-widget .widget-title,
.sidebar-widget .sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

/* WordPress Widget: Categories */
.sidebar-widget.widget_categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget.widget_categories ul li {
  margin: 0;
}

.sidebar-widget.widget_categories ul li a {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--foreground);
  transition: all 0.2s ease;
  display: inline-block;
}

.sidebar-widget.widget_categories ul li a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* WordPress Widget: Tag Cloud */
.sidebar-widget.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-widget.widget_tag_cloud .tagcloud a {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem !important;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.sidebar-widget.widget_tag_cloud .tagcloud a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* WordPress Widget: Recent Posts */
.sidebar-widget.widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-widget.widget_recent_entries ul li {
  margin: 0;
}

.sidebar-widget.widget_recent_entries ul li a {
  font-size: 0.875rem;
  color: var(--foreground);
  transition: color 0.2s ease;
  line-height: 1.4;
}

.sidebar-widget.widget_recent_entries ul li a:hover {
  color: var(--primary);
}

.sidebar-widget.widget_recent_entries ul li .post-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: block;
  margin-top: 0.25rem;
}

/* WordPress Widget: Search */
.sidebar-widget.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
}

.sidebar-widget.widget_search .search-field {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background-color: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
}

.sidebar-widget.widget_search .search-field:focus {
  outline: none;
  border-color: var(--primary);
}

.sidebar-widget.widget_search .search-submit {
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sidebar-widget.widget_search .search-submit:hover {
  background-color: var(--primary-hover);
}

/* WordPress Widget: Text/Custom HTML */
.sidebar-widget.widget_text,
.sidebar-widget.widget_custom_html {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.sidebar-widget.widget_text a,
.sidebar-widget.widget_custom_html a {
  color: var(--primary);
  transition: opacity 0.2s ease;
}

.sidebar-widget.widget_text a:hover,
.sidebar-widget.widget_custom_html a:hover {
  opacity: 0.8;
}

/* Related Posts */
.related-posts {
  padding: 3rem 0 4rem;
  background-color: rgba(30, 41, 59, 0.3);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .related-posts {
    padding: 4rem 0 6rem;
  }
}

.related-posts-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
}

/* ==================================
   FOOTER STYLES
   ================================== */
.site-footer {
  background-color: var(--footer-bg, var(--navy-900));
  color: var(--footer-text, var(--white));
}

.footer-main {
  padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
  .footer-main {
    padding: 4rem 0;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #F97015;
  border: 1px solid #F97015;
  border-radius: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-text .title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--footer-heading, var(--white));
}

.footer-logo-text .subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--footer-text, var(--gray-400));
  line-height: 1.6;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--footer-border, var(--border));
  border-radius: 0.5rem;
  color: var(--footer-link, var(--gray-400));
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--footer-hover, var(--primary));
  border-color: var(--footer-hover, var(--primary));
  color: var(--primary-foreground);
}

.social-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Footer Columns */
.footer-column-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--footer-heading, var(--white));
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--footer-link, var(--gray-400));
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--footer-hover, var(--primary));
}

/* Footer Contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--footer-text, var(--gray-400));
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--footer-link, var(--gray-500));
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.footer-location-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--footer-hover, var(--primary));
  margin-top: 0.5rem;
  transition: opacity 0.2s ease;
}

.footer-location-link:hover {
  opacity: 0.8;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid var(--footer-border, rgba(45, 58, 77, 0.5));
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--footer-text, var(--gray-500));
}

.footer-credit {
  font-size: 0.875rem;
  color: var(--footer-text, var(--gray-500));
}

.footer-credit a {
  color: var(--footer-hover, var(--primary));
  transition: opacity 0.2s ease;
}

.footer-credit a:hover {
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--footer-link, var(--gray-500));
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--footer-hover, var(--primary));
}

/* ==================================
   404 PAGE
   ================================== */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.error-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ==================================
   SEARCH PAGE
   ================================== */
.search-header {
  background: var(--gradient-hero);
  padding: 3rem 0;
  text-align: center;
}

.search-form-large {
  max-width: 36rem;
  margin: 2rem auto 0;
}

.search-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-input:focus {
  border-color: var(--primary);
}

/* ==================================
   ARCHIVE PAGE (Generic fallback - overridden by specific archive templates)
   ================================== */
.archive-description {
  color: var(--muted-foreground);
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ==================================
   PAGINATION
   ================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .current {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* ==================================
   WIDGETS
   ================================== */
.widget {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ==================================
   COMMENTS
   ================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment {
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.comment-author img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.comment-author-name {
  font-weight: 600;
  color: var(--foreground);
}

.comment-date {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.comment-content {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* Comment Form */
.comment-form {
  margin-top: 2rem;
}

.comment-form label {
  display: block;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 1rem;
}

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

.comment-form textarea {
  min-height: 8rem;
  resize: vertical;
}

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

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

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

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

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

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.hidden { display: none; }

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* WordPress Core Styles */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item img {
  border-radius: var(--radius);
}

/* Screen Reader Text */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==================================
   ARCHIVE TEMPLATES (Tag, Category, Author) - Mobile First
   ================================== */

/* Archive Header */
.archive-header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}

@media (min-width: 640px) {
  .archive-header {
    padding: 2rem 0;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .archive-header {
    padding: 2.5rem 0;
  }
}

/* Author Header - Mobile First */
.archive-header--author .author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .archive-header--author .author-header {
    flex-direction: row;
    align-items: flex-start;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

/* Archive Badges */
.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid;
  margin-bottom: 0.75rem;
  position: relative;
  left: 15px;
  top: 0px;
  transition: none;
  cursor: move;
}
}

.archive-badge--tag {
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.5);
}

.archive-badge--category {
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.5);
}

.archive-badge--author {
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.5);
}

.archive-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.archive-header .archive-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0.5rem 0;
}

@media (min-width: 768px) {
  .archive-header .archive-title {
    font-size: 2.25rem;
  }
}

.archive-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.archive-meta svg {
  width: 1rem;
  height: 1rem;
}

/* Author Header */
.author-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

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

.author-info {
  flex: 1;
}

.author-bio {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .author-bio {
    font-size: 0.875rem;
  }
}

.author-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .author-meta {
    justify-content: flex-start;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .author-meta {
    font-size: 0.875rem;
  }
}

.author-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Archive Content */
.archive-content {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .archive-content {
    padding: 3rem 0;
  }
}

/* Archive Layout - Mobile First */
.archive-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* On mobile, sidebar goes below main content */
@media (max-width: 767px) {
  .archive-layout {
    flex-direction: column;
  }
  
  .archive-sidebar {
    order: 2;
    margin-top: 1rem;
  }
  
  .archive-main {
    order: 1;
  }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .archive-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .archive-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .sidebar-sticky {
    display: contents;
  }
}

/* Desktop layout */
@media (min-width: 1024px) {
  .archive-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
}

.archive-main {
  min-width: 0;
}

/* Archive Section Header */
.archive-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .archive-section-header {
    margin-bottom: 2rem;
  }
}

.archive-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 768px) {
  .archive-section-title {
    font-size: 1.125rem;
  }
}

.archive-section-count {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .archive-section-count {
    font-size: 0.875rem;
  }
}

/* Articles Grid Variant */
.articles-grid--two-col {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .articles-grid--two-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .articles-grid--two-col {
    gap: 1.5rem;
  }
}

/* Sidebar - Mobile First */
.archive-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .archive-sidebar {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .archive-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .sidebar-sticky {
    gap: 1.5rem;
  }
}

/* Sidebar Widgets - Mobile First */
.sidebar-widget {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

@media (min-width: 768px) {
  .sidebar-widget {
    padding: 1.5rem;
  }
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .sidebar-widget-header {
    margin-bottom: 1rem;
  }
}

.sidebar-widget-header svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .sidebar-widget-header svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.sidebar-widget-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 768px) {
  .sidebar-widget-title {
    font-size: 1rem;
  }
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background-color: rgba(249, 115, 22, 0.2);
  color: var(--primary);
}

.tag-chip--active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Sidebar Category List */
.sidebar-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-category-list li {
  margin-bottom: 0.25rem;
}

.sidebar-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--foreground);
}

.sidebar-category-link:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.sidebar-category-link .category-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-category-link .category-count {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.sidebar-category-link:hover .category-count {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Active state for sidebar category link */
.sidebar-category-link--active {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--primary);
}

.sidebar-category-link--active .category-name {
  color: var(--primary);
}

.sidebar-category-link--active .category-count {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Categories List */
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.categories-list li {
  margin-bottom: 0.25rem;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-item:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.category-item--active {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--primary);
}

.category-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
}

.category-item:hover .category-name {
  color: var(--primary);
}

.category-item--active .category-name {
  color: var(--primary);
}

.category-count {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.category-count--active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Popular Tags Section */
.popular-tags-section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 3rem;
}

.popular-tags-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.popular-tags-header svg {
  color: var(--muted-foreground);
}

.popular-tags-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

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

.tag-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background-color: rgba(249, 115, 22, 0.2);
  color: var(--primary);
}

.tag-badge--active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Author Footer Grid - Mobile First */
.author-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .author-footer-grid {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
}

@media (min-width: 768px) {
  .author-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3rem;
  }
}

/* Author Bio Card */
.author-bio-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.author-avatar-large {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
}

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

.author-bio-card .author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.5rem;
}

.author-bio-card .author-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Other Authors Card */
.other-authors-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

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

.authors-list li {
  margin-bottom: 1rem;
}

.authors-list li:last-child {
  margin-bottom: 0;
}

.author-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
	    position: relative;
    width: 581.5px;
    height: 41.5781px;
    transform: translate(0px, 0px);
    left: -1px;
    top: 4px;
    transition: none;
    cursor: move;
}

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

.author-item-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.author-item-info {
  flex: 1;
  min-width: 0;
}

.author-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-item-count {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.no-posts h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.no-posts p {
  color: var(--muted-foreground);
}

/* ==================================
   AUTHORS PAGE - Mobile First
   ================================== */
.archive-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .archive-description {
    font-size: 1rem;
  }
}

/* Authors Grid */
.authors-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .authors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .authors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Author Card */
.author-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .author-card {
    padding: 1.5rem;
  }
}

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

.author-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-card-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .author-card-avatar {
    width: 4rem;
    height: 4rem;
  }
}

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

.author-card-info {
  flex: 1;
  min-width: 0;
}

.author-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

@media (min-width: 768px) {
  .author-card-name {
    font-size: 1.125rem;
  }
}

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

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

.author-card-title {
  display: block;
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.125rem;
}

@media (min-width: 768px) {
  .author-card-title {
    font-size: 0.8125rem;
  }
}

.author-card-bio {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .author-card-bio {
    font-size: 0.875rem;
  }
}

.author-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-card-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.author-card-stat svg {
  width: 0.875rem;
  height: 0.875rem;
}

.author-card-topics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topics-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.topic-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background-color: var(--secondary);
  color: var(--foreground);
  border-radius: 9999px;
}

.author-card-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background-color: var(--muted);
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.social-icon-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.social-icon-link svg {
  width: 1rem;
  height: 1rem;
}

.author-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.author-card-link:hover {
  gap: 0.75rem;
}

.author-card-link svg {
  width: 1rem;
  height: 1rem;
}

/* ==================================
   TAG ARCHIVE PAGE (React Matched Design)
   ================================== */

/* =====================================================
   TAG ARCHIVE PAGE STYLES
   ===================================================== */

/* Tag Page Wrapper - ensures proper flow */
.tag-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  width: 100%;
}

/* Tag Archive Header */
.tag-archive-header {
  background: var(--gradient-hero, linear-gradient(135deg, #16223d 0%, #111b30 100%));
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.tag-archive-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tag-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.tag-back-link:hover {
  color: var(--primary);
}

.tag-back-link svg {
  width: 1rem;
  height: 1rem;
}

.tag-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background-color: transparent;
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.tag-type-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.tag-archive-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.tag-article-count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.tag-article-count svg {
  width: 1rem;
  height: 1rem;
}

/* Tag Archive Content Section */
.tag-archive-content {
  flex: 1;
  padding: 4rem 0 6rem;
  background-color: var(--background);
  width: 100%;
}

.tag-archive-content .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tag-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.tag-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.tag-section-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Tag Archive Layout - Two Column */
.tag-archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .tag-archive-layout {
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .tag-archive-layout {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }
}

/* Tag Posts Grid */
.tag-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .tag-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 768px) {
  .tag-posts-grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .tag-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Tag Blog Card */
.tag-blog-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.tag-blog-card:hover {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.1);
}

.tag-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.tag-card-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.tag-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tag-blog-card:hover .tag-card-image img {
  transform: scale(1.1);
}

.tag-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--background-rgb, 15, 23, 42), 0.8), transparent);
  pointer-events: none;
}

.tag-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  z-index: 1;
}

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

.tag-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.tag-blog-card:hover .tag-card-title {
  color: var(--primary);
}

.tag-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 1rem;
}

.tag-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.tag-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tag-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.tag-meta-item svg {
  width: 0.875rem;
  height: 0.875rem;
}

.tag-read-more {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tag-blog-card:hover .tag-read-more {
  opacity: 1;
}

.tag-read-more svg {
  width: 1rem;
  height: 1rem;
}

/* Tag Sidebar */
.tag-sidebar {
  order: 2;
}

@media (min-width: 1024px) {
  .tag-sidebar {
    order: initial;
  }
}

.tag-sidebar-widget {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tag-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-sidebar-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

.tag-sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background-color: var(--muted);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background-color: rgba(249, 115, 22, 0.2);
  color: var(--primary);
}

.tag-chip--active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.tag-chip--active:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Tag Pagination */
.tag-pagination {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.tag-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tag-pagination a,
.tag-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-pagination .current {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* Tag No Posts */
.tag-no-posts {
  text-align: center;
  padding: 4rem 2rem;
}

.tag-no-posts h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.tag-no-posts p {
  color: var(--muted-foreground);
}

/* Responsive Adjustments for Tag Archive */
@media (max-width: 1024px) {
  .tag-archive-content {
    padding: 3rem 0 5rem;
  }
}

@media (max-width: 768px) {
  .tag-archive-header {
    padding: 2rem 0 2.5rem;
  }
  
  .tag-archive-content {
    padding: 2.5rem 0 4rem;
  }
  
  .tag-archive-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .tag-archive-header {
    padding: 1.5rem 0 2rem;
  }
  
  .tag-archive-header .container,
  .tag-archive-content .container {
    padding: 0 1rem;
  }
  
  .tag-archive-content {
    padding: 2rem 0 3rem;
  }
  
  .tag-archive-title {
    font-size: 1.375rem;
  }
  
  .tag-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .tag-posts-grid {
    gap: 1.25rem;
  }
  
  .tag-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .tag-read-more {
    opacity: 1;
  }
  
  .tag-pagination {
    margin-top: 2.5rem;
  }
}
