/* Veduis Blog - Modern Dark High-Tech Theme - v2026.01.13.div-fix */
/* Changed buttons to divs to avoid browser default button styling issues */
/* Note: Inter font is loaded in base.html via index.html pattern. JetBrains Mono loaded here for code blocks. */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap");

:root {
  /* High-tech color palette */
  --primary-cyan: #00ffff;
  --secondary-cyan: #00e6e6;
  --accent-blue: #0dcaf0;
  --electric-blue: #007fff;
  --neon-green: #00ff88;

  /* Dark theme colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #1e1e1e;
  --bg-glass: rgba(26, 26, 26, 0.8);

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #cccccc;
  --text-accent: var(--primary-cyan);

  /* Border and surface colors */
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 255, 255, 0.3);
  --shadow-primary: rgba(0, 0, 0, 0.5);
  --shadow-glow: rgba(0, 255, 255, 0.2);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;

  /* Spacing and layout */
  --container-max-width: 1400px;
  --content-max-width: 900px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Animation - optimized for interaction feedback (max 200ms) */
  --transition-fast: 0.1s ease-out;
  --transition-normal: 0.15s ease-out;
  --transition-slow: 0.2s ease-out;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

*::selection {
  background: rgba(0, 255, 255, 0.2);
  color: var(--text-primary);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Dark tech background with subtle patterns */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%,
      rgba(0, 255, 255, 0.05) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 20%,
      rgba(0, 127, 255, 0.05) 0%,
      transparent 50%),
    radial-gradient(circle at 40% 40%,
      rgba(0, 255, 136, 0.03) 0%,
      transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* ===== REACT NAVBAR STYLES - EXACT MATCH ===== */

.navbar {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  height: 80px;
  display: flex;
  align-items: center;
  /* Safe area support for notched devices */
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.15s ease-out;
  font-family: "Inter", sans-serif;
  line-height: 1;
}

.logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.9;
  transition: all 0.15s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease-out;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown toggle - now using div instead of button */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.9;
  transition: all 0.15s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.5rem 0;
  font-family: inherit;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease-out;
}

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.15s ease-out;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000000;
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.15s ease-out;
  z-index: 1001;
  padding: 0.5rem 0;
  margin-top: 1rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.15s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: #00ffff;
  background-color: rgba(0, 255, 255, 0.1);
  padding-left: 1.75rem;
  outline: none;
}

.nav-links a:hover {
  opacity: 1;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-links a.active {
  color: #00ffff;
  opacity: 1;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.dropdown:hover .dropdown-toggle::after,
.dropdown-toggle:hover::after {
  width: 100%;
}

.dropdown-toggle:hover::after,
.dropdown-toggle.active::after {
  width: 100%;
}

.dropdown-toggle:hover {
  opacity: 1;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.dropdown-toggle:focus,
.dropdown-toggle:active {
  outline: none;
  color: #00ffff;
}

.dropdown-toggle.active {
  color: #00ffff;
  opacity: 1;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Burger Menu - now using div instead of button */
.burger-menu {
  display: none;
  cursor: pointer;
  padding: 0.75rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.burger-menu:hover {
  color: #00ffff;
}

/* CSS-only burger icon - EXACT COPY FROM REACT NAVBAR */
.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  position: relative;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  transform-origin: center;
}

/* X icon animation when menu is open */
.burger-menu.is-open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.is-open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.burger-menu:hover .burger-line,
.burger-menu:focus .burger-line {
  background-color: #00ffff;
}

/* Main Content */
.main-content {
  flex: 1;
  position: relative;
  z-index: 2;
  padding-top: 80px;
  /* Match navbar height */
  background-color: transparent;
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }

  /* CRITICAL: Logo must stay visible above mobile menu overlay */
  /* Using .navbar parent for higher specificity instead of !important */
  .navbar .logo {
    font-size: 1.5rem;
    position: relative;
    z-index: 10001;
  }

  /* Burger menu visible on mobile */
  .navbar .burger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10001;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }

  .burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
  }

  .burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
  }

  /* Mobile nav overlay - using higher specificity selectors */
  .navbar .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #000000;
    padding: 100px 2rem 2rem;
    gap: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
    /* Use clip-path instead of display:none to avoid stacking context issues */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.15s ease-out, visibility 0s linear 0.15s;
  }

  .navbar .nav-links.active {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    pointer-events: auto;
    transition: clip-path 0.15s ease-out, visibility 0s linear 0s;
  }

  .navbar .nav-links a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    color: #ffffff;
  }

  /* Mobile dropdown styles */
  .navbar .dropdown {
    width: 100%;
    text-align: center;
  }

  .navbar .dropdown-toggle {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .navbar .dropdown-menu {
    position: static;
    display: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-out;
  }

  .navbar .dropdown-menu.show {
    display: block;
    max-height: 200px;
  }

  .navbar .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    opacity: 0.8;
    color: #ffffff;
  }

  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:active {
    opacity: 1;
    background-color: transparent;
    padding-left: 1rem;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .main-content {
    padding-top: 70px;
    /* Match mobile navbar height */
    z-index: 1;
    position: relative;
  }
}

/* ===== END REACT NAVBAR STYLES ===== */

/* Modern Blog Layout */
.blog-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Hero Section */
.blog-header {
  text-align: center;
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.blog-hero {
  position: relative;
  z-index: 2;
}

.blog-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.blog-title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: calc(100vw - 2rem);
  height: 120%;
  background: radial-gradient(ellipse,
      rgba(0, 255, 255, 0.1) 0%,
      transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.blog-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Blog Navigation */
.blog-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.blog-nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-nav .nav-link {
  padding: 0.75rem 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-nav .nav-link:hover,
.blog-nav .nav-link.active {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--border-accent);
  color: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Search Box */
/* Search Box */
.blog-search {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  transition: all var(--transition-normal);
}

.blog-search:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.blog-search input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.5rem;
  flex: 1;
  outline: none;
  font-family: var(--font-primary);
  min-width: 0;
  /* Prevent flex overflow */
}

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

.blog-search button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-search button:hover {
  color: var(--primary-cyan);
  background: rgba(0, 255, 255, 0.1);
}

/* Clear Search Button - using higher specificity */
.blog-search .clear-search {
  margin-left: 0.25rem;
  color: var(--text-muted);
}

.blog-search .clear-search:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

/* Taxonomy Grid for Categories/Tags Overview */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.taxonomy-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  text-align: center;
  backdrop-filter: blur(10px);
}

.taxonomy-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 255, 255, 0.1);
}

.taxonomy-term-name {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.taxonomy-item:hover .taxonomy-term-name {
  color: var(--primary-cyan);
}

.taxonomy-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 255, 255, 0.05) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 255, 0.1);
}

.post-card:hover::before {
  opacity: 1;
}

.post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

/* For posts without images, add equivalent spacing */
.post-card:not(:has(.post-image)) .post-content {
  padding-top: 2rem;
}

.post-card:not(:has(.post-image)) .post-content::before {
  content: "";
  display: block;
  height: 200px;
  margin: -2rem -2rem 1.5rem -2rem;
  background: linear-gradient(135deg,
      rgba(0, 255, 255, 0.1) 0%,
      rgba(0, 127, 255, 0.1) 100%);
  border-bottom: 1px solid var(--border-primary);
}

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

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

.post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.post-categories {
  margin-bottom: 1rem;
  min-height: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.post-categories:empty {
  min-height: 0.5rem;
}

.category-tag {
  display: inline-block;
  background: var(--primary-cyan);
  color: var(--bg-primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
  transition: all var(--transition-normal);
}

.category-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.post-title {
  margin: 0 0 1rem;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  transition: all var(--transition-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9rem;
}

.post-title a:hover {
  color: var(--primary-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.post-summary {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  min-height: 4.8rem;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-date,
.reading-time,
.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-tags {
  margin-bottom: 1rem;
  min-height: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.post-tags:empty {
  min-height: 0.5rem;
}

.tag {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
  font-family: var(--font-mono);
}

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

.post-actions {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #00ffff;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-normal);
  border: 1px solid #00ffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Individual Blog Post Styles */
.blog-post-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.breadcrumb {
  margin-bottom: 3rem;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "→";
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.post-header {
  margin-bottom: 4rem;
  text-align: center;
}

.post-featured-image {
  margin-bottom: 3rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.featured-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
}

.post-header-content .post-categories {
  margin-bottom: 1.5rem;
  justify-content: center;
  display: flex;
  gap: 0.5rem;
}

.post-header .post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.post-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.post-header .post-meta {
  justify-content: center;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta-item svg {
  color: var(--primary-cyan);
}

.post-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.share-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.share-link:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--border-accent);
  color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
}

/* Article Content Styles */
.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
  position: relative;
}

.post-body h1 {
  font-size: 2.25rem;
}

.post-body h2 {
  font-size: 1.875rem;
}

.post-body h3 {
  font-size: 1.5rem;
}

.post-body h4 {
  font-size: 1.25rem;
}

.post-body h2::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--primary-cyan);
  border-radius: 2px;
}

.post-body p {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.post-body a {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.post-body a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.post-body a:hover::after {
  transform: scaleX(1);
}

.post-body a:hover {
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.post-body blockquote {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary-cyan);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
}

.post-body blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 1rem;
  font-size: 3rem;
  color: var(--primary-cyan);
  opacity: 0.3;
}

.post-body code {
  background: var(--bg-tertiary);
  color: var(--neon-green);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  border: 1px solid var(--border-primary);
}

.post-body pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  /* Support line wrapping */
  word-wrap: break-word;
  /* Break long words */
  word-break: break-word;
  /* Alternative for word-wrap */
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
}

.post-body ul,
.post-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Tags Section */
.post-tags-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
}

.post-tags-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.post-tags-section .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-tags-section .tag {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition-normal);
  font-family: var(--font-mono);
}

.post-tags-section .tag:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--border-accent);
  color: var(--primary-cyan);
  transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.nav-previous,
.nav-next {
  flex: 1;
  max-width: 48%;
}

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

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
}

.nav-link:hover {
  border-color: var(--border-accent);
  background: rgba(0, 255, 255, 0.05);
  transform: translateY(-2px);
}

.nav-content {
  flex: 1;
}

.nav-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.nav-link:hover .nav-title {
  color: var(--primary-cyan);
}

/* Related Posts Section */
.related-posts {
  margin: 4rem 0;
  padding: 3rem 0;
  border-top: 1px solid var(--border-primary);
}

.related-posts h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.related-posts h3::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-cyan);
  border-radius: 2px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.related-post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  backdrop-filter: blur(10px);
}

.related-post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 255, 255, 0.05) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.related-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 255, 255, 0.1);
}

.related-post-card:hover::before {
  opacity: 1;
}

.related-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-post-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

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

.related-post-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      rgba(0, 255, 255, 0.1) 0%,
      rgba(0, 127, 255, 0.1) 100%);
  color: var(--text-muted);
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-card:hover .related-post-title {
  color: var(--primary-cyan);
}

.related-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.related-post-meta time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.related-post-meta .reading-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.related-post-meta .reading-time::before {
  content: "•";
  margin-right: 0.25rem;
}

/* Back to Blog */
.back-to-blog {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.back-link:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--border-accent);
  color: var(--primary-cyan);
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  min-width: 48px;
  justify-content: center;
}

.pagination-link:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
  color: #00ffff;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.pagination-current {
  background: transparent;
  color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-posts h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Blog Sidebar (hidden on mobile) */
.blog-sidebar {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  color: var(--text-secondary);
  margin-top: 6rem;
  padding: 0;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: var(--primary-cyan);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--border-accent);
  color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1rem;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-cyan);
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-cyan);
  padding-left: 1.5rem;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  border-top: 1px solid var(--border-primary);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom .footer-privacy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom .footer-privacy a:visited {
  color: var(--text-muted);
}

.footer-bottom .footer-privacy a:hover {
  color: var(--primary-cyan);
}

/* Old mobile menu styles removed - now using React navbar burger menu */

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-container {
    padding: 2rem 1rem;
  }

  .blog-header {
    padding: 3rem 0 4rem;
  }
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

@media (max-width: 768px) {
  .blog-container {
    padding: 1.5rem 1rem;
    gap: 3rem;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .blog-header {
    padding: 2rem 0 3rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-hero {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .blog-title {
    padding: 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: calc(100vw - 2rem);
    word-wrap: break-word;
    box-sizing: border-box;
  }

  .blog-title::after {
    max-width: calc(100vw - 4rem);
    width: 90%;
  }

  .blog-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

  .blog-nav-links {
    gap: 0.75rem;
  }

  .blog-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .blog-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .post-card {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
  }

  .post-content {
    padding: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .post-title a {
    font-size: 1.25rem;
    min-height: auto;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .post-summary {
    font-size: 0.9rem;
    min-height: auto;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .post-image {
    height: 160px;
  }

  .blog-post-container {
    padding: 1.5rem 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .post-header {
    margin-bottom: 3rem;
  }

  .featured-img {
    height: 250px;
  }

  .post-meta {
    gap: 1rem;
    justify-content: flex-start;
  }

  .post-share {
    gap: 0.75rem;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body h2::before {
    left: -1rem;
  }

  .pagination {
    gap: 0.5rem;
  }

  .pagination-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .related-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .blog-container {
    padding: 1rem 0.75rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .blog-header {
    padding: 1.5rem 0 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-hero {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .blog-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    padding: 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    word-wrap: break-word;
    box-sizing: border-box;
  }

  .blog-title::after {
    max-width: calc(100vw - 3rem);
    width: 85%;
  }

  .blog-description {
    font-size: 1rem;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: calc(100vw - 1.5rem);
    box-sizing: border-box;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  .blog-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .taxonomy-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-card {
    margin: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .post-content {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .post-title a {
    font-size: 1.1rem;
  }

  .post-summary {
    font-size: 0.875rem;
  }

  .post-meta {
    font-size: 0.8rem;
    gap: 0.75rem;
  }

  .read-more-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
  }

  .blog-post-container {
    padding: 1rem 0.75rem;
  }

  .post-body {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-post-image {
    height: 160px;
  }

  .related-post-content {
    padding: 1rem;
  }

  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-previous,
  .nav-next {
    max-width: 100%;
  }

  .nav-next {
    text-align: left;
  }

  .nav-next .nav-content {
    text-align: left;
  }

  .nav-link {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section p {
    max-width: none;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links a {
    padding-left: 0;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-links a::before {
    display: none;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}

/* Loading and Focus States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.focus-visible {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card,
.blog-header,
.pagination {
  animation: fadeInUp 0.2s ease-out forwards;
}

.post-card:nth-child(2) {
  animation-delay: 0.05s;
}

.post-card:nth-child(3) {
  animation-delay: 0.1s;
}

.post-card:nth-child(4) {
  animation-delay: 0.15s;
}

/* Utility Classes */
.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-gradient {
  color: var(--primary-cyan);
}

.glow {
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* =========================
   MOBILE OVERFLOW FIX
   Comprehensive fix for horizontal scrolling issues
   ========================= */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .main-content,
  .blog-container,
  .blog-post-container,
  .post-body,
  .post-content,
  .footer-container,
  .site-footer,
  header,
  main,
  footer,
  article,
  section,
  div {
    max-width: 100vw;
    box-sizing: border-box;
  }

  .post-body pre,
  .post-body code,
  .post-body table {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    padding: 1rem;
    /* Reduced padding on mobile */
    font-size: 0.9rem;
    /* Slightly smaller font on mobile */
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  /* Ensure navbar doesn't cause overflow */
  .navbar-content {
    max-width: 100vw;
  }
}

/* ===== TECH MAGAZINE LAYOUT STYLES ===== */

/* Magazine Container */
.magazine-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

/* Magazine Header / Masthead */
.magazine-header {
  text-align: center;
  padding: 3rem 0 4rem;
  position: relative;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 3rem;
}

.magazine-masthead {
  position: relative;
  z-index: 2;
}

.edition-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-cyan);
  background: rgba(0, 255, 255, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--border-accent);
  margin-bottom: 1.5rem;
}

.magazine-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.magazine-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.header-accent {
  width: 60px;
  height: 3px;
  background: var(--primary-cyan);
  margin: 0 auto;
  border-radius: 2px;
}

/* Featured Section */
.featured-section {
  margin-bottom: 4rem;
}

.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.featured-article:hover {
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 255, 255, 0.1);
}

.featured-image-wrapper {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.featured-image-wrapper a {
  display: block;
  height: 100%;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-article:hover .featured-image {
  transform: scale(1.05);
}

.featured-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 127, 255, 0.1) 100%);
}

.placeholder-pattern {
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, rgba(0, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 255, 255, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 255, 255, 0.05) 75%);
  background-size: 20px 20px;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.featured-content {
  padding: 2.5rem 3rem 2.5rem 0;
}

.featured-category a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-cyan);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.featured-category a:hover {
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.featured-title {
  margin: 0 0 1.25rem;
}

.featured-title a {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.featured-title a:hover {
  color: var(--primary-cyan);
}

.featured-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.meta-separator {
  color: var(--primary-cyan);
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-cyan);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.featured-cta:hover {
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transform: translateX(5px);
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-accent);
}

/* Stories Section (Horizontal Cards) */
.stories-section {
  margin-bottom: 4rem;
}

.stories-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.story-card:hover {
  border-color: var(--border-accent);
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-image {
  height: 180px;
  overflow: hidden;
}

.story-image a {
  display: block;
  height: 100%;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.story-content {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-cyan);
  margin-bottom: 0.75rem;
}

.story-title {
  margin: 0 0 0.75rem;
}

.story-title a {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.story-title a:hover {
  color: var(--primary-cyan);
}

.story-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.story-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Articles Grid Section */
.articles-section {
  margin-bottom: 3rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 255, 0.08);
}

.article-image {
  height: 160px;
  overflow: hidden;
}

.article-image a {
  display: block;
  height: 100%;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.article-card:hover .article-image img {
  transform: scale(1.08);
}

.article-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-category a {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.article-title {
  margin: 0 0 0.5rem;
}

.article-title a {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.article-title a:hover {
  color: var(--primary-cyan);
}

.article-excerpt {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.article-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color var(--transition-fast);
}

.article-tag:hover {
  color: var(--primary-cyan);
}

/* Magazine Layout Responsive */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-image-wrapper {
    height: 350px;
  }

  .featured-content {
    padding: 2rem;
  }

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

  .story-card {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  .magazine-container {
    padding: 1rem 1rem 3rem;
  }

  .magazine-header {
    padding: 2rem 0 3rem;
  }

  .magazine-title {
    font-size: 2rem;
  }

  .featured-image-wrapper {
    height: 250px;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .featured-title a {
    font-size: 1.5rem;
  }

  .featured-excerpt {
    font-size: 1rem;
  }

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

  .story-image {
    height: 200px;
  }

  .story-content {
    padding: 1.25rem;
  }

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

  .article-image {
    height: 200px;
  }
}

/* ===== END TECH MAGAZINE LAYOUT ===== */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {

  .site-header,
  .blog-nav,
  .post-share,
  .pagination,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .post-body a {
    color: black;
    text-decoration: underline;
  }
}

/* ========================================= */
/* UNIFIED FOOTER STYLES (MATCHING REACT)    */
/* ========================================= */

.footer {
  background-color: #000000;
  padding: 4rem 0 2rem;
  color: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.brand-section {
  max-width: 350px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-links-list li a:hover {
  color: #00d4ff;
  padding-left: 4px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover,
.social-link:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  transform: translateY(-2px);
}

.facebook-link:hover {
  border-color: #1877f2;
  color: #1877f2;
}

.linkedin-link:hover {
  border-color: #0a66c2;
  color: #0a66c2;
}

.x-link:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.github-link:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

.privacy-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .brand-section {
    max-width: 100%;
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links-list li a:hover {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ========================================= */
/* STRICT FOOTER OVERRIDES (Fixing Mismatches) */
/* ========================================= */

/* Force Brand to White (override any global h3 styling) */
.footer-brand {
  color: #ffffff !important;
  text-transform: none !important;
  font-family: 'Inter', sans-serif !important;
}

/* Force Headings to Title Case and White */
.footer-heading {
  color: #ffffff !important;
  text-transform: none !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  letter-spacing: normal !important;
}

/* Force Links to Grey and Title Case/Normal */
.footer-links-list li a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
}

.footer-links-list li a:hover {
  color: #00d4ff !important;
}

/* Ensure Footer container background is solid black */
.footer {
  background-color: #000000 !important;
}

/* Social Icons - Ensure they match React */
.social-link {
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #00d4ff !important;
  border-color: #00d4ff !important;
}