/*
Theme Name: voicebot
Description: Theme matching voicebot blog header/navigation and styling
Author: Voicebot-IA
Version: 1.1.0
*/

:root {
  /* Colors */
  --primary: #6366f1;
  /* Indigo base for gradients */
  --text: #0F1729;
  /* Main dark text */
  --muted: #65758B;
  /* Muted text */
  --bg: #F1F2F9;
  /* Page background */
  --card-bg: #FFFFFF;
  /* Card background */

  /* Borders */
  --border: #E1E7EF;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Gradients */
  --hero-gradient: linear-gradient(180deg, #D0D1FA 0%, #E0E1FA 50%, #F1F2F9 100%);
  /* Stronger Top to Bottom Fade */
  --cta-gradient: linear-gradient(135deg, #6467F2 0%, #0DA2E7 100%);
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Specific component fixes */
/* Blog Hero */
/* Blog Hero */
.blog-hero {
  padding: 128px 0 80px;
  background: var(--hero-gradient) !important;
  text-align: center;
  margin-bottom: 4rem;
}

.blog-hero h1 {
  font-size: 3rem;
  /* 48px */
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-hero p {
  font-size: 1.125rem;
  /* 18px */
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
}

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

/* Duplicate Header and Nav Removed */
/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  /* py-5 */
  background: transparent;
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  /* py-3 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  /* Prevent shrinking */
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  /* Match authentic gradient */
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: -0.02em;
}

.text-highlight {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Navigation - Desktop */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  /* Allow wrapping on very small screens to prevent breaking */
}

/* Dropdown tweaks */
.dropdown-item {
  border-bottom: none !important;
  /* Remove unexpected borders */
}

.dropdown-item:last-child {
  border-bottom: none;
}

.nav-links>li>a {
  text-decoration: none;
  color: #64748b;
  /* Muted slate-500 equivalent */
  font-weight: 500;
  font-size: 0.875rem;
  /* 14px */
  padding: 0.5rem 1rem;
  /* px-4 py-2 */
  border-radius: 9999px;
  /* Rounded full */
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links>li>a:hover,
.nav-links>li.current-menu-item>a,
.nav-links>li.current-menu-ancestor>a {
  color: var(--text);
  background: #f1f5f9;
  /* Slate-100 hover */
}

.nav-links>li.active>a {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

/* Dropdown Toggle - specific styling if differs */
/* .dropdown-toggle removed empty rule */

.chevron-down {
  transition: transform 0.2s;
  opacity: 0.7;
}

.menu-item-has-children:hover .chevron-down {
  transform: rotate(180deg);
}


/* Dropdown container */
.menu-item-has-children {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  /* mt-2 */
  width: 280px;
  /* approximately w-64 is 256px, maybe wider for content */
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  /* 12px */
  padding: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1002;
}

.menu-item-has-children:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background: #f8fafc;
  /* Slate-50 */
}

.dd-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  /* rounded-lg */
  flex-shrink: 0;
}

.dd-text {
  font-size: 0.9375rem;
  /* 15px */
}

/* Gradient badges for category icons (dark gradients) */
.grad-blue {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.grad-purple {
  background: linear-gradient(135deg, #6b21a8 0%, #a855f7 100%);
}

.grad-green {
  background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.grad-orange {
  background: linear-gradient(135deg, #9a3412 0%, #f59e0b 100%);
}

.grad-indigo {
  background: linear-gradient(135deg, #4b0082 0%, #6366f1 100%);
}

.grad-gray {
  background: linear-gradient(135deg, #334155 0%, #64748b 100%);
}

.text-white {
  color: #ffffff;
}

.text-blue-600 {
  color: #2563eb;
}

.text-purple-600 {
  color: #7c3aed;
}

.text-green-600 {
  color: #16a34a;
}

.text-orange-600 {
  color: #ea580c;
}

.text-indigo-600 {
  color: #4f46e5;
}

.text-gray-600 {
  color: #475569;
}

/* Light Background Utilities for Pills */
.bg-blue-100 {
  background: #dbeafe;
}

.bg-purple-100 {
  background: #f3e8ff;
}

.bg-green-100 {
  background: #dcfce7;
}

.bg-orange-100 {
  background: #ffedd5;
}

.bg-indigo-100 {
  background: #e0e7ff;
}

.bg-gray-100 {
  background: #f1f5f9;
}

/* CTA */
.header-actions .header-cta {
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
}

.header-actions .header-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Mobile */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: var(--accent);
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: all 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu-container {
  position: static;
}

@media (max-width: 1024px) {
  .site-header .container {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .menu-container {
    position: fixed;
    right: 0;
    top: 73px;
    height: calc(100vh - 73px);
    width: 300px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    overflow-y: auto;
  }

  .menu-container.active {
    transform: translateX(0);
  }

  .menu-container .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .menu-container .nav-links>li>a {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .menu-container .dropdown-menu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0 1rem;
    background: transparent;
    margin-top: 0.5rem;
  }

  .menu-container .dropdown-menu li {
    width: 100%;
  }

  .menu-container .dropdown-item {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
  }
}

.site-main {
  padding-bottom: 3rem;
}

/* Footer */
.site-footer {
  background: #080C16;
  /* Dark navy */
  color: #f8fafc;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

.site-footer .container {
  max-width: 1400px;
  /* Match header */
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 2fr 2fr;
  /* 5 Columns */
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.logo-icon-sm {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-desc {
  color: #94a3b8;
  /* Slate-400 */
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  /* Circle */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: #6467f2;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.25rem;
  text-transform: none;
}

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

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links.icon-links a span.link-icon {
  display: flex;
  align-items: center;
  color: #94a3b8;
  /* Icon inherits Slate-400 */
  transition: color 0.2s;
}

.group:hover,
.footer-links a:hover {
  color: #fff;
}

.group:hover .link-icon {
  color: #fff;
}

/* Newsletter */
.newsletter-col p {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

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

.newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  background: #6467f2;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.625rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-btn:hover {
  opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .brand-col {
    grid-column: span 2;
  }
}

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

  .brand-col {
    grid-column: span 1;
  }

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

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Single Post Styles */
/* Single Hero */
.single-hero {
  position: relative;
  padding: 128px 0 80px;
  /* Top padding for nav + spacing */
  overflow: hidden;
  background-color: #ffffff;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #F1F2F9 10%, rgba(241, 242, 249, 0.8) 25%, rgba(255, 255, 255, 0) 100%);
}

.hero-container {
  position: relative;
  z-index: 10;
  max-width: 896px;
  /* Lovable reading width */
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8125rem;
  /* 13px */
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

.breadcrumbs .sep {
  color: #CBD5E1;
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 500;
}

.single-title {
  font-size: 3.5rem;
  /* 56px */
  font-weight: 800;
  line-height: 1.1;
  margin: 1.5rem 0 1.5rem;
  color: var(--text);
  letter-spacing: -0.04em;
}

.single-excerpt {
  font-size: 1.25rem;
  /* 20px */
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.single-meta {
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.single-post-container {
  max-width: 896px;
  /* Match hero width */
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* Updated Category Pill for Hero */
.single-hero .category-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
  display: inline-block;
  text-decoration: none;
}

.entry-content {
  max-width: 100%;
  /* Contained by parent now */
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

.entry-content {
  max-width: 100%;
  margin: 0 auto 4rem;
  font-size: 1.25rem;
  /* 20px */
  line-height: 1.6;
  /* 32px roughly */
  color: #65758B;
  /* Muted foreground */
}

.entry-content p {
  margin: 0 0 2rem;
  /* 32px */
}

.entry-content h2 {
  font-size: 1.875rem;
  /* 30px */
  font-weight: 700;
  line-height: 1.2;
  margin: 3.5rem 0 1.5rem;
  /* 56px 0 24px */
  color: #0F1729;
}

.entry-content h3 {
  font-size: 1.25rem;
  /* 20px */
  font-weight: 600;
  line-height: 1.4;
  margin: 2rem 0 1rem;
  /* 32px 0 16px */
  color: #0F1729;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding-left: 0;
}

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

.entry-content li {
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.6;
  color: #65758B;
  margin-bottom: 0.75rem;
  /* 12px */
  padding-left: 0.5rem;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #F8FAFC;
  border-left: 4px solid var(--primary);
  border-radius: 0.75rem;
  color: #0F1729;
  font-weight: 500;
  font-style: normal;
}

.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  /* 12px */
  overflow: hidden;
  background: #ffffff;
}

.entry-content th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: #0F1729;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.entry-content td {
  padding: 1rem;
  font-weight: 500;
  color: #0F1729;
  border-bottom: 1px solid #F3F4F6;
}

.entry-content tr:last-child td {
  border-bottom: none;
}

.entry-content tr:nth-child(even) {
  background-color: #F8FAFC;
}

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

.related-title {
  font-size: 1.875rem;
  /* 30px match H2 */
  font-weight: 700;
  color: #0F1729;
  margin-bottom: 2rem;
}

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

.related-card {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  /* 24px */
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.related-card h4 {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 600;
  color: #0F1729;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.related-card p {
  font-size: 0.9375rem;
  /* 15px */
  color: #65758B;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Category Hero Styles */
.category-hero {
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  /* 128px top, 80px bottom */
  background: linear-gradient(180deg, #f1f2f9 0%, #dcddf9 50%, #c7c8fa 100%);
  border-bottom: 1px solid var(--border);
}

.category-hero-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* 24px */
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* 8px */
  background: rgba(100, 103, 242, 0.1);
  color: #6467f2;
  padding: 0.5rem 1rem;
  /* 8px 16px */
  border-radius: 9999px;
  font-size: 0.875rem;
  /* 14px */
  font-weight: 500;
  width: fit-content;
}

.category-pill svg {
  width: 16px;
  height: 16px;
}

.category-title {
  font-size: 3rem;
  /* 48px */
  font-weight: 700;
  line-height: 1.1;
  color: #0f1729;
  margin: 0;
}

.category-description {
  color: #65758b;
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.6;
  max-width: 800px;
  margin: 0;
}

/* Blog Hero - Main Front Page */
.blog-hero {
  background: linear-gradient(180deg, var(--accent) 0%, var(--bg) 100%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.blog-hero .container {
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.blog-hero p {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Section Title */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 4rem 0 2rem;
  color: var(--text);
  text-align: left;
  letter-spacing: -0.01em;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.category-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d1d5db;
}

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--text);
  line-height: 1.4;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.cat-icon-wrapper {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Category Explorer */
.category-explorer {
  margin-bottom: 5rem;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}

.cat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.category-card:hover .cat-icon-wrapper {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.75rem;
  /* Small text for desc */
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Latest Articles */
.latest-articles {
  margin-bottom: 5rem;
}

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

.post-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

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

.post-thumbnail {
  position: relative;
  width: 100%;
  /* padding-top removed to avoid conflict with aspect-ratio */
  background: #f1f5f9;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-thumbnail img,
.post-thumbnail .placeholder-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.post-cat-text {
  font-size: 0.75rem;
  font-weight: 600;
  /* text-transform: uppercase; Removed */
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: transparent !important;
  /* Reset generic accent bg */
  padding: 0 !important;
  /* color: inherit !important; Removed to allow custom text colors */
}

.post-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.post-title {
  font-size: 1.25rem;
  /* 20px */
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.post-excerpt {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
  transition: gap 0.2s ease;
}

.read-link:hover {
  gap: 0.75rem;
}

.post-arrow {
  color: #cbd5e1;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.post-card:hover .post-arrow {
  color: var(--primary);
  transform: translateX(4px);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
}

/* Redundant styles removed */

.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  text-decoration: none;
  color: var(--text);
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .latest-articles .posts-grid,
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .blog-hero h1 {
    font-size: 2.5rem;
  }

  .blog-hero p {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 4rem 0 3rem;
  }

  .blog-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .blog-hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 4rem;
  }

  .latest-articles .posts-grid,
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .latest-articles {
    margin-top: 3rem;
  }

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

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

  .single-post-container {
    padding: 2rem 1rem 0;
  }

  .entry-content {
    font-size: 1rem;
  }

  .single-title {
    font-size: 1.75rem;
  }

  .single-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

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

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

  .archive-title {
    font-size: 1.75rem;
  }

  .category-pill {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .blog-hero {
    padding: 3rem 0 2rem;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
  }

  .blog-hero p {
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

/* In-Content CTA Blocks */
.cta-card {
  border-radius: 1rem;
  padding: 2rem;
  margin: 3rem 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Blue Gradient CTA */
.cta-blue {
  background: linear-gradient(135deg, #6366f1 0%, #0da2e7 100%);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.cta-blue .cta-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.cta-blue .cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta-blue .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0da2e7;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-blue .cta-btn:hover {
  background-color: rgba(13, 162, 231, 0.9);
  transform: translateY(-1px);
}

/* White Bordered CTA */
.cta-white {
  background-color: #ffffff;
  border: 2px solid #6366f1;
  color: var(--text);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cta-white .cta-title {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.cta-white .cta-text {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta-white .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #6366f1;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-white .cta-btn:hover {
  background-color: #4f46e5;
  transform: translateY(-1px);
}

.cta-icon {
  width: 20px;
  height: 20px;
}