/*
Theme Name: Voxtopics
Theme URI: https://voxtopics.com
Author: Vox Topics Team
Description: Voxtopics - A modern magazine/blog WordPress theme with clean UI/UX, responsive design, and dynamic content management.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: voxtopics
Tags: blog, magazine, news, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   VOXTOPICS THEME - CUSTOM STYLES
   ============================================ */

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

:root {
  --background: 30 20% 98%;
  --foreground: 220 40% 13%;
  --card: 0 0% 100%;
  --primary: 24 90% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 55% 15%;
  --secondary-foreground: 0 0% 95%;
  --muted: 30 15% 93%;
  --muted-foreground: 220 10% 40%;
  --accent: 24 80% 95%;
  --accent-foreground: 220 40% 13%;
  --border: 220 15% 90%;
  --radius: 0.75rem;
  --navy: 220 55% 15%;
  --navy-light: 220 40% 25%;
  --orange-glow: 24 100% 55%;
  --warm-gray: 30 10% 60%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-body {
  font-family: 'DM Sans', sans-serif;
}

/* --- Container --- */
.vox-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

/* --- Top Bar --- */
.vox-topbar {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.vox-topbar a {
  color: hsl(var(--secondary-foreground) / 0.7);
  transition: color 0.2s ease;
}

.vox-topbar a:hover {
  color: hsl(var(--primary));
}

/* --- Header --- */
.vox-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.vox-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 2rem;
  line-height: 1;
}

@media (min-width: 1024px) {
  .vox-logo {
    font-size: 2.25rem;
  }
}

.vox-logo span.vox-v,
.vox-logo span.vox-x {
  color: hsl(var(--secondary));
}

.vox-logo span.vox-o {
  color: hsl(var(--primary));
}

.vox-logo span.vox-sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-left: -2px;
}

/* --- Navigation --- */
.vox-header nav li {
  display: inline-flex;
  list-style: none;
}

.vox-header nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: hsl(var(--foreground));
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.vox-header nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease;
}

.vox-header nav a:hover,
.vox-header nav a.active,
.vox-header nav a.current-menu-item,
.vox-header nav a.current_page_item {
  color: hsl(var(--primary));
}

.vox-header nav a:hover::after,
.vox-header nav a.active::after,
.vox-header nav a.current-menu-item::after,
.vox-header nav a.current_page_item::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.vox-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: hsl(var(--card));
  z-index: 100;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.vox-mobile-menu.open {
  right: 0;
}

.vox-mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vox-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Badges --- */
.vox-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  white-space: nowrap;
}

.badge-technology { background-color: hsl(var(--primary)); }
.badge-vehicles { background-color: rgb(37, 99, 235); }
.badge-trends { background-color: hsl(var(--secondary)); }
.badge-health { background-color: rgb(5, 150, 105); }
.badge-celebrity { background-color: rgb(225, 29, 72); }
.badge-family { background-color: rgb(217, 119, 6); }
.badge-lifestyle { background-color: rgb(124, 58, 237); }
.badge-gaming { background-color: rgb(8, 145, 178); }
.badge-marketing { background-color: rgb(13, 148, 136); }
.badge-default { background-color: hsl(var(--muted-foreground)); }

/* --- Cards --- */
.vox-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vox-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15);
}

.vox-card-image {
  overflow: hidden;
}

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

.vox-card:hover .vox-card-image img {
  transform: scale(1.05);
}

/* --- Hero Card (Full Image Overlay) --- */
.vox-hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
  cursor: pointer;
}

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

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

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

.vox-hero-card .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}

.vox-hero-card .hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .vox-hero-card .hero-content {
    padding: 2rem;
  }
}

/* --- Article Content --- */
.vox-article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--foreground));
}

.vox-article-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.vox-article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.vox-article-content p {
  margin-bottom: 1.5rem;
}

.vox-article-content ul,
.vox-article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

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

.vox-article-content li {
  margin-bottom: 0.5rem;
}

.vox-article-content blockquote {
  border-left: 4px solid hsl(var(--primary));
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: hsl(var(--accent));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.vox-article-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

.vox-article-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vox-article-content a:hover {
  color: hsl(var(--primary) / 0.8);
}

.vox-article-content pre {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.vox-article-content code {
  background-color: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.vox-article-content pre code {
  background: none;
  padding: 0;
}

.vox-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.vox-article-content th,
.vox-article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  text-align: left;
}

.vox-article-content th {
  background-color: hsl(var(--muted));
  font-weight: 600;
}

/* --- Sidebar --- */
.vox-sidebar {
  background-color: hsl(var(--secondary));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.vox-sidebar h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.vox-sidebar input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--secondary-foreground) / 0.2);
  background-color: hsl(var(--secondary-foreground) / 0.1);
  color: white;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.vox-sidebar input[type="email"]::placeholder {
  color: hsl(var(--secondary-foreground) / 0.5);
}

.vox-sidebar input[type="email"]:focus {
  border-color: hsl(var(--primary));
}

.vox-sidebar button {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: hsl(var(--primary));
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vox-sidebar button:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

/* --- Section Headings --- */
.vox-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.vox-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: hsl(var(--primary));
  border-radius: 2px;
}

/* --- Buttons --- */
.vox-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.vox-btn-primary {
  background-color: hsl(var(--primary));
  color: white;
}

.vox-btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

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

.vox-btn-outline:hover {
  background-color: hsl(var(--muted));
}

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

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

.vox-pagination a {
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.vox-pagination a:hover {
  background-color: hsl(var(--primary));
  color: white;
  border-color: hsl(var(--primary));
}

.vox-pagination .current {
  background-color: hsl(var(--primary));
  color: white;
  border: 1px solid hsl(var(--primary));
}

.vox-pagination .dots {
  color: hsl(var(--muted-foreground));
}

/* --- Breadcrumb --- */
.vox-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.vox-breadcrumb a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}

.vox-breadcrumb a:hover {
  color: hsl(var(--primary));
}

.vox-breadcrumb .separator {
  color: hsl(var(--border));
}

/* --- Search Form --- */
.vox-search-form {
  display: flex;
  gap: 0.5rem;
}

.vox-search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  background-color: hsl(var(--card));
  transition: border-color 0.2s ease;
}

.vox-search-form input[type="search"]:focus {
  border-color: hsl(var(--primary));
}

/* --- 404 Page --- */
.vox-404 {
  text-align: center;
  padding: 5rem 1rem;
}

.vox-404 h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1;
}

.vox-404 h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* --- Author Bio --- */
.vox-author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  margin-top: 3rem;
}

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

/* --- Comments --- */
.vox-comments {
  margin-top: 3rem;
}

.vox-comment {
  padding: 1.5rem;
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

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

.vox-comment .comment-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.vox-comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

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

/* --- Footer --- */
.vox-footer {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.vox-footer a {
  color: hsl(var(--secondary-foreground) / 0.6);
  transition: color 0.2s ease;
}

.vox-footer a:hover {
  color: hsl(var(--primary));
}

.vox-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: hsl(var(--secondary-foreground) / 0.1);
  color: hsl(var(--secondary-foreground) / 0.7);
  transition: all 0.2s ease;
}

.vox-footer-social:hover {
  background-color: hsl(var(--primary));
  color: white;
}

/* --- Back to Top --- */
.vox-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  background-color: hsl(var(--primary));
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.vox-back-to-top:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: translateY(-2px);
}

/* --- Search Overlay --- */
.vox-search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vox-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.vox-search-box {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.vox-search-overlay.open .vox-search-box {
  transform: translateY(0);
}

/* --- Line Clamp --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Contact Page Responsive --- */
.vox-contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 639px) {
  .vox-contact-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .vox-contact-info-cards {
    grid-template-columns: 1fr !important;
  }
}

/* --- Hero card responsive heights --- */
.vox-hero-card-short {
  min-height: 350px;
}

@media (max-width: 639px) {
  .vox-hero-card-short {
    min-height: 280px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-delay-100 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-200 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-300 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-400 { animation-delay: 0.4s; opacity: 0; }

/* --- Widget Styles --- */
.vox-widget {
  margin-bottom: 2rem;
}

.vox-widget-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid hsl(var(--primary));
  color: hsl(var(--foreground));
}

.vox-widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

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

.vox-widget ul li a {
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

/* --- Responsive Grid Helpers --- */
.vox-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.vox-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.vox-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

/* --- WP Core Block Styles --- */
.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-gallery {
  gap: 1rem;
}

.wp-block-gallery .wp-block-image {
  border-radius: var(--radius);
  overflow: hidden;
}

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

/* --- Mobile (< 640px) --- */
@media (max-width: 639px) {

  /* Hero card */
  .vox-hero-card {
    min-height: 300px;
  }
  .vox-hero-card .hero-content {
    padding: 1rem;
  }
  .vox-hero-card .hero-content h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  .vox-hero-card .hero-content p {
    display: none;
  }

  /* Article hero (single post) */
  .vox-article-hero-meta {
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }

  /* Author bio */
  .vox-author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }

  /* Comment meta */
  .vox-comment .comment-meta {
    flex-wrap: wrap;
  }

  /* 404 page */
  .vox-404 {
    padding: 3rem 1rem;
  }
  .vox-404 h1 {
    font-size: 5rem;
  }
  .vox-404 h2 {
    font-size: 1.5rem;
  }

  /* Search form */
  .vox-search-form {
    flex-direction: column;
  }
  .vox-search-form .vox-btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .vox-footer .vox-container > .grid {
    gap: 2rem !important;
  }

  /* Section titles */
  .vox-section-title {
    font-size: 1.25rem;
  }

  /* Buttons */
  .vox-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

  /* Pagination */
  .vox-pagination {
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .vox-pagination a,
  .vox-pagination span {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8125rem;
  }

  /* Sidebar newsletter */
  .vox-sidebar {
    padding: 1.25rem;
  }

  /* Cards */
  .vox-card .p-5 {
    padding: 1rem;
  }
}

/* --- Tablet (640px - 1023px) --- */
@media (min-width: 640px) and (max-width: 1023px) {

  .vox-hero-card {
    min-height: 380px;
  }

  .vox-hero-card .hero-content h2 {
    font-size: 1.75rem;
  }

  .vox-404 h1 {
    font-size: 6rem;
  }

  .vox-author-bio {
    gap: 1.25rem;
  }
}

/* --- Large screens adjustments --- */
@media (min-width: 1024px) {
  .vox-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* --- Extra small (< 380px) --- */
@media (max-width: 379px) {
  .vox-logo {
    font-size: 1.5rem;
  }
  .vox-logo span.vox-sub {
    font-size: 0.75rem;
  }
  .vox-hero-card {
    min-height: 260px;
  }
  .vox-hero-card .hero-content h2 {
    font-size: 1.125rem;
  }
  .vox-404 h1 {
    font-size: 4rem;
  }
  .vox-badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
  }
}

/* --- Touch-friendly interactive elements --- */
@media (hover: none) and (pointer: coarse) {
  .vox-card:hover {
    transform: none;
  }
  .vox-card:hover .vox-card-image img {
    transform: none;
  }
  .vox-hero-card:hover .hero-image img {
    transform: none;
  }
  .vox-btn:hover {
    transform: none;
  }
  .vox-btn-primary:hover {
    transform: none;
  }
}

/* --- Print Styles --- */
@media print {
  .vox-header, .vox-footer, .vox-sidebar, .vox-back-to-top {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}

/* ============================================
   MISSING TAILWIND UTILITY CLASSES
   (not included in bundled Tailwind CSS)
   ============================================ */

/* --- Display --- */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.inline { display: inline; }

/* --- Flex --- */
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }

/* --- Grid --- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* --- Gap --- */
.gap-0\.5 { gap: 0.125rem; }
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* --- Width/Height --- */
.w-full { width: 100%; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-4xl { max-width: 56rem; }

/* --- Padding --- */
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }

/* --- Margin --- */
.m-0 { margin: 0; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }

/* --- Border Radius --- */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* --- Text --- */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* --- Transition --- */
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* --- Overflow --- */
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

/* --- Line Clamp --- */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- List --- */
.list-none { list-style-type: none; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ============================================
   RESPONSIVE TAILWIND BREAKPOINTS
   ============================================ */

/* --- sm: breakpoint (min-width: 640px) --- */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-start { align-items: flex-start; }
  .sm\:text-left { text-align: left; }
}

/* --- md: breakpoint (min-width: 768px) --- */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- lg: breakpoint (min-width: 1024px) --- */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:h-20 { height: 5rem; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:pb-12 { padding-bottom: 3rem; }
  .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}
