/**
 * Madika Products - Modern SaaS Design System & CSS
 * Palette: Primary #2563EB | Secondary #0F172A | Accent #10B981 | Neutral #F8FAFC
 */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --purple: #8b5cf6;
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0b0f19;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-dark: #1e293b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 50px -10px rgba(37, 99, 235, 0.3);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container-sm { max-width: 860px; }
.container-lg { max-width: 1380px; }

/* Sections */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}
.section-alt {
  background-color: var(--bg-alt);
}
.section-dark {
  background-color: var(--bg-dark);
  color: #f8fafc;
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: #ffffff;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px auto;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.section-badge.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.2);
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.section-dark .section-desc {
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff !important;
}
.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-1px);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--secondary) !important;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background-color: var(--primary-light);
}
.btn-outline-white {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff !important;
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #ffffff;
}
.btn-accent {
  background-color: var(--accent);
  color: #ffffff !important;
}
.btn-accent:hover {
  background-color: #059669;
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}
.header-top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-notice {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.top-bar-actions a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.top-bar-actions a:hover {
  color: #ffffff;
}
.top-bar-sep {
  color: #475569;
  font-size: 11px;
}
.top-bar-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc !important;
  font-size: 12px;
}
.top-bar-auth-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}
.top-bar-auth-link.highlight {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399 !important;
}
.top-bar-auth-link.highlight:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #6ee7b7 !important;
}
.top-bar-user-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #93c5fd !important;
  font-size: 12px;
}
@media (max-width: 900px) {
  .top-bar-notice {
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .top-bar-notice {
    white-space: normal;
  }
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  color: var(--secondary);
  text-decoration: none;
}
.brand-logo svg, .brand-logo img {
  width: 38px;
  height: 38px;
}
.brand-logo span {
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-item {
  position: relative;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 16px;
  min-width: 320px;
  display: none;
  z-index: 1100;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.nav-item:hover .nav-dropdown {
  display: block;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.dropdown-item:hover {
  background: var(--bg-alt);
}
.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
}
.dropdown-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.header-auth-link.login-link {
  color: #334155;
  background: transparent;
}
.header-auth-link.login-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.header-auth-link.register-link {
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.header-auth-link.register-link:hover {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* User Account Chip & Dropdown */
.user-menu-wrapper {
  position: relative;
}
.user-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  transition: all 0.2s ease;
  font-family: inherit;
}
.user-nav-chip:hover, .user-nav-chip[aria-expanded="true"] {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-display-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chevron-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.user-nav-chip[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.user-nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 8px;
  min-width: 220px;
  display: none;
  z-index: 1200;
  animation: fadeInDown 0.15s ease-out;
}
.user-menu-wrapper:hover .user-nav-dropdown,
.user-nav-dropdown.show {
  display: block;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-dropdown-header {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 6px;
}
.user-dropdown-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--secondary);
}
.user-dropdown-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.user-dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--primary);
}
.user-dropdown-item .dropdown-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-dropdown-item:hover .dropdown-icon {
  background: var(--primary-light);
  color: var(--primary);
}
.user-dropdown-item.logout-item {
  color: #ef4444;
  margin-top: 4px;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}
.user-dropdown-item.logout-item:hover {
  background: #fef2f2;
  color: #dc2626;
}
.user-dropdown-item.logout-item .dropdown-icon {
  color: #ef4444;
  background: transparent;
}
.user-dropdown-item.logout-item:hover .dropdown-icon {
  background: #fee2e2;
  color: #dc2626;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--secondary);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  overflow: hidden;
}
.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hero-badge .pill {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--secondary);
  margin-bottom: 24px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 36px auto;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust-item svg {
  color: var(--accent);
}

/* Mockup Dashboard */
.hero-mockup-wrapper {
  max-width: 1100px;
  margin: 50px auto 0 auto;
  position: relative;
}
.mockup-window {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.18), 0 18px 36px -18px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.mockup-header {
  background: #0f172a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.window-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.mockup-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 8px;
}
.mockup-tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.mockup-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}
.mockup-body {
  background: #f8fafc;
  padding: 32px;
  min-height: 340px;
}
.mockup-tab-content {
  display: none;
}
.mockup-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}
.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: #ffffff;
}
.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Universal SVG & Icon Utilities */
svg.w-3, .w-3 { width: 12px !important; height: 12px !important; }
svg.w-3\.5, .w-3\.5 { width: 14px !important; height: 14px !important; }
svg.w-4, .w-4 { width: 16px !important; height: 16px !important; }
svg.w-5, .w-5 { width: 20px !important; height: 20px !important; }
svg.w-6, .w-6 { width: 24px !important; height: 24px !important; }
svg.w-7, .w-7 { width: 28px !important; height: 28px !important; }
svg.w-8, .w-8 { width: 32px !important; height: 32px !important; }
svg.h-3, .h-3 { height: 12px !important; }
svg.h-3\.5, .h-3\.5 { height: 14px !important; }
svg.h-4, .h-4 { height: 16px !important; }
svg.h-5, .h-5 { height: 20px !important; }
svg.h-6, .h-6 { height: 24px !important; }
svg.h-7, .h-7 { height: 28px !important; }
svg.h-8, .h-8 { height: 32px !important; }

/* Product Rating Constraint — strictly prevents giant SVGs */
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
}
.product-rating svg {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  color: #f59e0b !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.product-icon svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0;
}

/* Flagship 8-in-1 Master Suite Hero Spotlight Box */
.flagship-spotlight-box {
  background: linear-gradient(135deg, #0b1120 0%, #1e1b4b 55%, #0f172a 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 24px;
  padding: 44px;
  margin-bottom: 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 40px -10px rgba(99, 102, 241, 0.25);
}
.flagship-spotlight-box::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.flagship-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 960px) {
  .flagship-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.flagship-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.flagship-pill-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.flagship-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.flagship-tagline {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
  font-weight: 500;
}
.flagship-summary {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}
.flagship-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.flagship-spec-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flagship-spec-chip svg {
  color: #818cf8;
  width: 14px !important;
  height: 14px !important;
}
.flagship-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-flagship-buy {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.5);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-flagship-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.7);
}
.btn-flagship-zip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-flagship-zip:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn-flagship-detail {
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.btn-flagship-detail:hover {
  color: #ffffff !important;
}

/* 8-in-1 Modules Matrix Box */
.modules-matrix-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(12px);
}
.modules-matrix-card h4 {
  font-size: 12px;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modules-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.module-mini-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.module-mini-item:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}
.module-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-mini-icon svg {
  width: 14px !important;
  height: 14px !important;
}
.module-mini-item span {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.25;
}
.module-mini-item small {
  display: block;
  font-size: 9.5px;
  color: #94a3b8;
}

/* Category Filter Bar */
.products-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.category-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-pill-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cat-pill-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.cat-pill-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.products-search-box {
  position: relative;
  min-width: 260px;
}
.products-search-box input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 13px;
  background: #ffffff;
  transition: all 0.2s ease;
}
.products-search-box input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.products-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 14px;
}

/* Modern Products Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.modern-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.modern-product-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.12);
}
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.modern-product-card:hover .card-icon-wrapper {
  transform: scale(1.06);
}
.card-icon-wrapper svg {
  width: 22px !important;
  height: 22px !important;
}
.card-cat-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}
.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.card-title a:hover {
  color: #2563eb;
}
.card-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.card-rating-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}
.card-rating-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}
.card-features-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.card-feature-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-feature-chip svg {
  color: #10b981;
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0;
}
.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}
.card-price-display {
  display: flex;
  flex-direction: column;
}
.card-price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.card-price-term {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 3px;
}
.card-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-btn-buy {
  background: #2563eb;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.card-btn-buy:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.card-btn-details {
  color: #64748b !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.card-btn-details:hover {
  color: #2563eb !important;
  background: #eff6ff;
}

/* Backward compatibility for .product-card */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}
.product-card:hover {
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
  border-color: #cbd5e1;
}
.product-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
}
.product-badge-top {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.product-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.product-features-list {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.product-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
}
.product-features-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  width: 14px !important;
  height: 14px !important;
}
.product-pricing-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}
.product-price-val span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Pricing Section */
.pricing-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  font-weight: 600;
  font-size: 15px;
}
.switch-btn {
  position: relative;
  width: 52px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.switch-btn.active {
  background: var(--primary);
}
.switch-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.switch-btn.active::after {
  transform: translateX(24px);
}
.save-pill {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}
.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-xl);
}
.pricing-card.popular .popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pricing-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 20px;
}
.pricing-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}
.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 12px;
}
.pricing-list li svg {
  color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 50px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

/* ==========================================================================
   Single Article Layout & Sidebar (Madika Professional Design)
   ========================================================================== */

.article-hero {
  position: relative;
  padding: 64px 0 44px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.04) 45%, transparent 70%);
  pointer-events: none;
}
.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}
.article-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}
.article-hero-badge:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.article-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--secondary);
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.article-hero-meta time,
.article-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-hero-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--secondary);
}
.article-hero-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.3);
  object-fit: cover;
}
.article-hero-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

/* 2-Column Layout */
.article-layout-wrap {
  padding-top: 48px;
  padding-bottom: 80px;
}
.article-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (min-width: 1280px) {
  .article-layout {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 48px;
  }
}

/* Left Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.sidebar-featured {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.sidebar-featured figure {
  margin: 0;
}
.sidebar-thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.sidebar-featured figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 6px 4px;
  font-style: italic;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.sidebar-widget .widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* TOC Widget */
.toc-nav {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.toc-nav::-webkit-scrollbar {
  width: 4px;
}
.toc-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list li {
  margin: 0;
}
.toc-list a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: all 0.2s ease;
}
.toc-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(2px);
}
.toc-list a.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.toc-list .toc-h2 a {
  font-weight: 600;
}
.toc-list .toc-h3 {
  padding-left: 14px;
}
.toc-list .toc-h3 a {
  font-size: 12.5px;
  opacity: 0.9;
}

/* Hide In-Content Table of Contents (already rendered in sticky sidebar) */
.single-content #rank-math-toc,
.single-content .wp-block-rank-math-toc-block,
.single-content .rank-math-toc-block,
.single-content .toc-container,
.single-content .table-of-contents,
.single-content .ez-toc-container,
.single-content nav.toc {
  display: none !important;
}

/* Share Links */
.share-links {
  display: flex;
  gap: 8px;
}
.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.share-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}
button.share-link {
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

/* Promo Box */
.sidebar-widget.promo-widget {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid #334155;
}
.sidebar-widget.promo-widget .widget-title {
  color: #ffffff;
}
.promo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.promo-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.promo-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Recent Posts Widget */
.widget-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.2s;
}
.widget-recent-item:hover {
  background: #f8fafc;
}
.widget-recent-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.widget-recent-info {
  min-width: 0;
  flex: 1;
}
.widget-recent-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.widget-recent-item:hover .widget-recent-title {
  color: var(--primary);
}
.widget-recent-date {
  font-size: 11.5px;
  color: var(--text-light);
}

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

/* Main Single Content */
.single-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  line-height: 1.8;
  color: #334155;
  font-size: 16.5px;
}
@media (max-width: 768px) {
  .single-content {
    padding: 24px 18px;
  }
}

.single-content > h1:first-child {
  display: none;
}
.single-content h2 {
  font-size: 1.7rem;
  margin: 2.2rem 0 1rem;
  color: var(--secondary);
  font-weight: 800;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}
.single-content h3 {
  font-size: 1.3rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--secondary);
  font-weight: 700;
}
.single-content h4 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.6rem;
  color: var(--secondary);
  font-weight: 700;
}
.single-content p {
  margin-bottom: 1.4rem;
}
.single-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.single-content a:hover {
  color: var(--primary-hover);
}
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.single-content strong {
  color: var(--secondary);
  font-weight: 700;
}
.single-content ul,
.single-content ol {
  margin: 1rem 0 1.6rem 1.6rem;
}
.single-content li {
  margin-bottom: 0.5rem;
}
.single-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 18px 24px;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: #1e293b;
  margin: 2rem 0;
}
.single-content blockquote p:last-child {
  margin-bottom: 0;
}
.single-content code:not(pre code) {
  background: #f1f5f9;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  border: 1px solid #e2e8f0;
}
.single-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 22px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 1.8rem 0;
  font-size: 14px;
  line-height: 1.65;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.single-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
}
.single-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #ffffff;
}
.single-content th {
  background: #f8fafc;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--secondary);
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}
.single-content td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: #475569;
}
.single-content tr:last-child td {
  border-bottom: none;
}
.single-content tr:hover td {
  background: #f8fafc;
}
.single-content .callout-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 1.8rem 0;
  font-size: 15px;
  line-height: 1.7;
  color: #1e293b;
}

/* Post Tags */
.entry-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.tags-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tags-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.tag-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: #475569;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tag-badge:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Author Box */
.author-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin: 36px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}
.author-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}
.author-avatar-wrap {
  flex-shrink: 0;
}
.author-box .avatar {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.2);
}
.author-meta-top {
  margin-bottom: 6px;
}
.author-label {
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  display: block;
}
.author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}
.author-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Related Posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}
.related-posts-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}
.related-post-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.related-post-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}
.related-post-thumb {
  height: 150px;
  background: #f1f5f9;
  overflow: hidden;
}
.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.related-post-card:hover .related-post-thumb img {
  transform: scale(1.05);
}
.related-post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.related-post-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.related-post-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-date {
  font-size: 12px;
  color: var(--text-light);
  margin-top: auto;
}

/* Post Navigation (Next / Prev) */
.post-navigation {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.post-nav-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 20px;
}
.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 680px) {
  .post-nav-grid {
    grid-template-columns: 1fr;
  }
}
.post-nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.post-nav-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}
.post-nav-prev {
  text-align: left;
}
.post-nav-next {
  text-align: right;
  flex-direction: row-reverse;
}
.post-nav-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.post-nav-content {
  min-width: 0;
  flex: 1;
}
.post-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}
.post-nav-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Comments Section */
.comments-wrapper {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}
.comments-area {
  width: 100%;
}
.comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.comment-list .comment {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.comment-list .children {
  list-style: none;
  padding-left: 28px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 2px solid #e2e8f0;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}
.comment-author .fn {
  font-weight: 700;
  color: var(--secondary);
  font-style: normal;
  font-size: 15px;
}
.comment-metadata {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.comment-metadata a {
  color: inherit;
  text-decoration: none;
}
.comment-content p {
  color: #334155;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.comment-content p:last-child {
  margin-bottom: 0;
}
.reply {
  margin-top: 10px;
}
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 4px 12px;
  background: var(--primary-light);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.comment-reply-link:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Comment Form */
.comment-respond {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
@media (max-width: 640px) {
  .comment-respond {
    padding: 20px 18px;
  }
}
.comment-reply-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}
.comment-notes {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.comment-form-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .comment-form-fields-grid {
    grid-template-columns: 1fr;
  }
}
.comment-form p {
  margin-bottom: 16px;
}
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  color: var(--secondary);
  background: #f8fafc;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}
.comment-submit-btn {
  padding: 12px 28px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #ffffff;
  transition: all 0.2s ease;
}
.comment-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .article-sidebar {
    grid-template-columns: 1fr;
  }
}

.comparison-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin: 32px 0;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
}
.comparison-table td {
  font-size: 13.5px;
  color: #475569;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 14px;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}
.author-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.author-info p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-answer {
  padding: 0 22px 20px 22px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: 14px;
}
.cta-banner p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 28px auto;
}

/* Footer */
.site-footer {
  background: #0b0f19;
  color: #94a3b8;
  padding: 72px 0 28px 0;
  border-top: 1px solid #1e293b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 13.5px;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-newsletter input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 13.5px;
}
.footer-newsletter input:focus {
  outline: none;
  border-color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive & Mobile Drawer */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-title { font-size: 1.85rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions { display: none; }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 340px;
  height: 100%;
  background: #ffffff;
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  padding: 28px 20px;
  transition: left 0.3s ease;
  overflow-y: auto;
}
.mobile-drawer.open {
  left: 0;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
}
.mobile-overlay.open {
  display: block;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpCookie {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.cookie-text p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #94a3b8;
}
.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-actions .btn {
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
}
.cookie-actions .btn-outline {
  color: #cbd5e1 !important;
  border-color: rgba(255,255,255,0.2);
}
.cookie-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff !important;
}

/* Floating AI Chatbot */
.chatbot-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
}
.chat-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.65);
}
.chat-window {
  display: none !important;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  flex-direction: column;
  overflow: hidden;
  animation: popInChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-window.open {
  display: flex !important;
}
@keyframes popInChat {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-header {
  background: #0f172a;
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.chat-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}
.chat-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.chat-status {
  font-size: 11px;
  color: #94a3b8;
}
.chat-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.chat-close-btn:hover {
  color: #ffffff;
}
.chat-body {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}
.chat-message.bot {
  align-self: flex-start;
}
.chat-message.user {
  align-self: flex-end;
}
.chat-bubble {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.chat-message.bot .chat-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}
.chat-message.user .chat-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.chat-quick-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chat-pill-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.chat-pill-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.chat-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-footer input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--secondary);
  outline: none;
}
.chat-footer input:focus {
  border-color: var(--primary);
  background: #ffffff;
}
.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.chat-send-btn:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   Blog Archive & Post Card Styles
   ========================================================================== */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 36px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.blog-card-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.blog-card:hover .blog-card-thumb {
  transform: scale(1.05);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #475569;
}
.placeholder-icon {
  width: 44px;
  height: 44px;
}

.blog-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  z-index: 2;
}
.blog-card:hover .blog-card-cat-badge {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.blog-card-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-card-meta time,
.blog-card-readtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-icon {
  width: 13px;
  height: 13px;
  color: #94a3b8;
  flex-shrink: 0;
}
.meta-dot {
  color: #cbd5e1;
  font-size: 10px;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}
.blog-card-title a {
  color: var(--secondary);
  transition: color 0.2s ease;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
.arrow-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}
.blog-card-link:hover .arrow-icon {
  transform: translateX(4px);
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.blog-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  background: #ffffff;
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.blog-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
