/* ========================================
   BLOG POST STYLES - STANDARDIZED
   ======================================== */

/* ===== BLOG HERO ===== */
.blog-hero {
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero-content,
.blog-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-breadcrumb,
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.blog-breadcrumb a,
.breadcrumb a,
.breadcrumb-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.blog-breadcrumb a:hover,
.breadcrumb a:hover,
.breadcrumb-link:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb-separator {
  font-size: 0.55em;
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== BLOG TAGS (Hero) ===== */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all var(--transition-normal);
  letter-spacing: 0.01em;
}

.blog-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.blog-tag:first-child {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.blog-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.blog-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-6);
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-meta-item i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85em;
}

.blog-meta .publish-date,
.blog-meta .read-time {
  color: rgba(255, 255, 255, 0.6);
}

.blog-excerpt {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto;
}

/* Blog Content */
.blog-content {
  padding: var(--space-24) 0;
  background: var(--bg-gray-50);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  column-gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Article */
.blog-article {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

/* Step Guide */
.step-guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.step-card {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--bg-gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: var(--space-6);
}

/* ----- Responsive images: never oversized on mobile (see BLOG_UX_RESPONSIVE.md) ----- */
.blog-article img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.step-visual {
  margin-bottom: var(--space-6);
  width: 100%;
  max-width: 100%;
}

.blog-step-figure {
  margin: 0 0 var(--space-6);
  text-align: center;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}
.blog-step-region-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* All blog step/feature images: scale with container, never overflow viewport */
.blog-step-figure img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-xl, 12px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1));
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.blog-step-figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-gray-500, #6b7280);
  line-height: 1.5;
}
.country-guide-content .blog-step-figure img,
.blog-step-figure img {
  max-width: min(400px, 100%);
}
/* Article-section figures (general/explainer posts): same responsive rules */
.blog-article .article-section figure img,
.blog-article figure img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.blog-article .article-section figure,
.blog-article figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.blog-article .article-section figure figcaption,
.blog-article figure figcaption {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* Keep portrait step screenshots compact in article sections. */
.blog-article .article-section figure.blog-step-figure img,
.blog-article figure.blog-step-figure img {
  max-width: min(400px, 100%);
}

.step-description {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-gray-600);
}

/* App Stores */
.app-stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.store-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.store-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-gray-600);
}

.app-info h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.app-info p {
  font-size: var(--text-sm);
  color: var(--text-gray-500);
  margin-bottom: var(--space-3);
}

.rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.stars {
  color: #fbbf24;
}

.downloads {
  color: var(--text-gray-500);
}

.install-btn {
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-normal);
}

.install-btn:hover {
  background: var(--primary-dark);
}

/* App Screenshot */
.app-screenshot {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 200px;
  height: 400px;
  background: #000;
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  border-radius: calc(var(--radius-xl) - 8px);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}

.app-interface {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.app-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.logo-small {
  font-size: var(--text-lg);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.disconnected {
  background: var(--gray-400);
}

.status-indicator.connected {
  background: var(--success);
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.server-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  padding: var(--space-2);
  background: var(--bg-gray-50);
  border-radius: var(--radius-md);
}

.country-flag {
  font-size: var(--text-sm);
}

.server-name {
  flex: 1;
  font-weight: 500;
}

.ping {
  color: var(--text-gray-500);
}

/* Server Selection */
.server-selection {
  display: flex;
  justify-content: center;
}

.server-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 300px;
  width: 100%;
}

.server-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.server-option:hover {
  border-color: var(--primary);
  background: var(--bg-gray-50);
}

.server-option.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-white);
}

.server-option.selected .ping {
  color: rgba(255, 255, 255, 0.8);
}

/* Connection Success */
.connection-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
}

.success-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--success);
}

.success-indicator i {
  font-size: var(--text-2xl);
}

.connection-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 300px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.label {
  font-weight: 500;
  color: var(--text-gray-600);
}

.value {
  font-weight: 600;
  color: var(--text-gray-900);
}

/* Tips Section */
.tips-section {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.tips-section h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: var(--space-8);
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.tip-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-normal);
}

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

.tip-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: var(--text-xl);
}

.tip-card h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-3);
}

.tip-card p {
  font-size: var(--text-sm);
  color: var(--text-gray-600);
  line-height: 1.6;
}

/* ===== BLOG CTA ===== */
.blog-cta {
  margin-top: var(--space-16);
  padding: var(--space-12) var(--space-10);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.blog-cta h2,
.blog-cta h3,
.cta-content h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-5);
  position: relative;
}

.blog-cta p,
.blog-cta .cta-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
}

.blog-cta .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #E5E7EB;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
}

.blog-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  color: #F9FAFB;
}

/* CTA inner card: when .cta-content is inside .blog-cta it has a light background (from cta.css) — ensure text is dark for contrast */
.blog-cta .cta-content,
.country-guide-content .blog-cta .cta-content {
  color: var(--text-gray-800, #1f2937);
}
.blog-cta .cta-content h2,
.blog-cta .cta-content h3,
.country-guide-content .blog-cta .cta-content h2,
.country-guide-content .blog-cta .cta-content h3 {
  color: var(--text-gray-900, #111827);
}
.blog-cta .cta-content p,
.country-guide-content .blog-cta .cta-content p {
  color: var(--text-gray-600, #4b5563);
}
.blog-cta .cta-content .btn-outline,
.country-guide-content .blog-cta .cta-content .btn-outline {
  border-color: var(--gray-300, #d1d5db);
  color: var(--text-gray-700, #374151);
}
.blog-cta .cta-content .btn-outline:hover,
.country-guide-content .blog-cta .cta-content .btn-outline:hover {
  background: var(--gray-100, #f3f4f6);
  border-color: var(--gray-400, #9ca3af);
  color: var(--text-gray-900, #111827);
}

/* ===== AUTHOR BAR ===== */
.blog-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-10);
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-gray-900);
}

.author-role {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.blog-dates {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

.blog-dates span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.blog-dates i {
  color: var(--text-gray-400);
}

/* ===== KEY TAKEAWAYS BOX ===== */
.key-takeaways {
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-10);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-10);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
  position: relative;
}

.key-takeaways h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.key-takeaways h3 i {
  color: var(--primary);
  font-size: 1.1em;
}

.key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-takeaways li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-gray-700);
  position: relative;
}

.key-takeaways li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.7;
}

/* ===== TABLE OF CONTENTS ===== */
.blog-toc {
  padding: var(--space-8);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-10);
}

.blog-toc h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-sm);
}

.blog-toc h3 i {
  color: var(--primary);
}

.blog-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.blog-toc li {
  counter-increment: toc;
}

.blog-toc li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-1);
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
}

.blog-toc li a::before {
  content: counter(toc);
  width: 26px;
  height: 26px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.blog-toc li a::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  font-size: 0.75em;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-normal);
  color: var(--primary);
}

.blog-toc li a:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.blog-toc li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SECTION SEPARATORS ===== */
.article-section + .article-section {
  padding-top: var(--space-12);
  margin-top: var(--space-12);
  border-top: 1px solid var(--gray-100);
}

/* ===== MID-ARTICLE CTA ===== */
.mid-article-cta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(135deg, #1e40af 0%, var(--primary) 50%, #7c3aed 100%);
  border-radius: var(--radius-2xl);
  margin: var(--space-16) 0;
  color: #fff;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
}

.mid-article-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.mid-article-cta .cta-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.mid-article-cta .cta-text {
  flex: 1;
  position: relative;
}

.mid-article-cta .cta-text strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.mid-article-cta .cta-text span {
  font-size: var(--text-sm);
  opacity: 0.85;
}

.mid-article-cta .btn {
  flex-shrink: 0;
  position: relative;
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  z-index: 9999;
  width: 0%;
  transition: width 0.15s ease-out;
}

/* ===== FAQ SECTION ===== */
.blog-faq {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 2px solid var(--gray-100);
}

.blog-faq h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gray-100);
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--bg-gray-50);
  cursor: pointer;
  gap: var(--space-4);
}

.faq-question h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-gray-900);
  margin: 0;
}

.faq-question i {
  color: var(--primary);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-6);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: var(--space-5) var(--space-6);
  max-height: 500px;
}

.faq-answer p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--text-gray-600);
  margin: 0;
}

/* ===== FOCUS STATES (keyboard accessibility) ===== */
.blog-toc li a:focus-visible,
.blog-tag:focus-visible,
.sidebar-widget .category-tag:focus-visible,
.related-posts a:focus-visible,
.feature-link:focus-visible,
.faq-question:focus-visible,
.breadcrumb-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.download-cta:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.faq-question:focus-visible {
  outline-offset: -2px;
}

/* ===== RESPONSIVE for SEO components ===== */
@media (max-width: 768px) {
  .blog-author-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5) var(--space-6);
  }

  .mid-article-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }

  .mid-article-cta .btn {
    width: 100%;
  }

  .faq-question h3 {
    font-size: var(--text-sm);
  }

  .blog-tags {
    gap: var(--space-1);
  }

  .blog-tag {
    font-size: 10px;
    padding: 3px 10px;
  }

  .breadcrumb-current {
    max-width: 150px;
  }
}

/* ===== BLOG CONTENT LAYOUT ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  column-gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-main {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

/* ===== ARTICLE CONTENT STYLES ===== */
.article-intro {
  margin-bottom: var(--space-8);
}

.article-intro .lead,
.lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-gray-600);
  border-left: 4px solid var(--primary);
  padding-left: var(--space-6);
}

.article-section {
  margin-bottom: var(--space-10);
}

.article-section h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-gray-900);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--primary);
  border-bottom-width: 3px;
  border-image: linear-gradient(90deg, var(--primary), transparent) 1;
}

.article-section h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-gray-800);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--primary);
}

.article-section p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-gray-600);
  margin-bottom: var(--space-5);
}

.article-section ul,
.article-section ol {
  margin-bottom: var(--space-8);
  padding-left: var(--space-6);
}

.article-section li {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-gray-600);
  margin-bottom: var(--space-4);
}

.article-section li strong {
  color: var(--text-gray-800);
  display: inline;
  margin-right: var(--space-1);
}

/* Blog Section (alternative to article-section) */
.blog-section {
  margin-bottom: var(--space-10);
}

.blog-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gray-100);
}

.blog-section h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-gray-800);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.blog-section p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-gray-600);
  margin-bottom: var(--space-4);
}

.blog-section ul,
.blog-section ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.blog-section li {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-gray-600);
  margin-bottom: var(--space-2);
}

.blog-section li strong {
  color: var(--text-gray-800);
}

/* ===== HIGHLIGHT BOXES ===== */
.blog-highlight,
.feature-highlight {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-xl);
  margin: var(--space-6) 0;
}

.blog-highlight .highlight-icon,
.feature-highlight .highlight-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.blog-highlight .highlight-content h3,
.feature-highlight .highlight-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-2);
}

.blog-highlight .highlight-content p,
.feature-highlight .highlight-content p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-gray-600);
}

/* ===== CARD GRIDS (used inside articles) ===== */
.encryption-standards,
.tech-features,
.benefits-grid,
.superiority-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

.standard-card,
.tech-feature,
.benefit-card,
.scenario-card,
.scenario {
  padding: var(--space-6);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.standard-card:hover,
.tech-feature:hover,
.benefit-card:hover,
.scenario-card:hover,
.scenario:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.standard-card .standard-icon,
.tech-feature .tech-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.standard-card h3,
.tech-feature h4,
.benefit-card h3,
.scenario-card h3,
.scenario h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-3);
}

.standard-card p,
.tech-feature p,
.benefit-card p,
.scenario-card p,
.scenario p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-gray-600);
}

/* ===== PROCESS STEPS ===== */
.process-steps,
.security-layers,
.pfs-explanation {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

.process-step,
.layer,
.pfs-step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

.process-step:hover,
.layer:hover,
.pfs-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.process-step .step-number,
.layer .layer-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  flex-shrink: 0;
}

.process-step .step-content h3,
.layer .layer-content h3,
.pfs-step .step-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-2);
}

.process-step .step-content p,
.layer .layer-content p,
.pfs-step .step-content p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-gray-600);
}

/* ===== COMPARISON TABLES ===== */
.encryption-comparison,
.comparison-table {
  overflow-x: auto;
  margin: var(--space-6) 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.encryption-comparison table,
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.encryption-comparison th,
.comparison-table th {
  padding: var(--space-4);
  background: var(--bg-gray-50);
  font-weight: 600;
  color: var(--text-gray-900);
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.encryption-comparison td,
.comparison-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-gray-600);
}

.encryption-comparison tr:hover,
.comparison-table tr:hover {
  background: var(--bg-gray-50);
}

.swiss-vpn-row {
  background: rgba(37, 99, 235, 0.04);
}

.swiss-vpn-row td {
  color: var(--text-gray-900);
  font-weight: 500;
}

/* ===== AES EXPLANATION (encryption page) ===== */
.aes-explanation,
.security-scenarios,
.scenario-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

.aes-feature {
  padding: var(--space-5);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

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

.aes-feature h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-2);
}

.aes-feature p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-gray-600);
}

/* ===== PFS BENEFITS ===== */
.pfs-benefits {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--bg-gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.pfs-benefits h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-4);
}

.pfs-benefits ul {
  list-style: none;
  padding: 0;
}

.pfs-benefits li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-gray-600);
}

.pfs-benefits li:last-child {
  border-bottom: none;
}

/* ===== TECHNICAL DETAILS (encryption page) ===== */
.technical-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0;
}

.detail-category {
  padding: var(--space-6);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
}

.detail-category h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-4);
}

.detail-category ul {
  list-style: none;
  padding: 0;
}

.detail-category li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-gray-600);
}

/* ===== POINT/FEATURE CARDS (encryption superiority) ===== */
.superiority-points .point {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
}

.point .point-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.point .point-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-2);
}

.point .point-content p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-gray-600);
}

/* [CLEANED] Netflix Access mockup removed — unused (~31 lines) */

/* ===== SIDEBAR ===== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3,
.sidebar-widget h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: var(--space-5);
}

.sidebar-widget p {
  font-size: var(--text-sm);
  color: var(--text-gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* Related Posts List */
.related-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li {
  border-bottom: 1px solid var(--gray-100);
}

.related-posts li:last-child {
  border-bottom: none;
}

.related-posts a {
  display: block;
  padding: var(--space-4) 0;
  color: var(--text-gray-700);
  text-decoration: none;
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: all var(--transition-normal);
}

.related-posts a:hover {
  color: var(--primary);
  padding-left: var(--space-2);
}

/* Category Tags in Sidebar */
.sidebar-widget .category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}

.sidebar-widget .category-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-gray-600);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.sidebar-widget .category-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Related Features in Sidebar */
.related-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-gray-50);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-gray-700);
  font-size: var(--text-sm);
  transition: all var(--transition-normal);
}

.feature-link:hover {
  background: var(--primary);
  color: #fff;
}

.feature-icon {
  font-size: var(--text-lg);
}

.related-countries {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.country-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-gray-50);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-gray-700);
  transition: all var(--transition-normal);
}

.country-link:hover {
  background: var(--primary);
  color: var(--text-white);
}

.flag {
  font-size: var(--text-lg);
}

.popular-guides {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.guide-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-gray-50);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-gray-700);
  transition: all var(--transition-normal);
}

.guide-link:hover {
  background: var(--primary);
  color: var(--text-white);
}

.guide-icon {
  font-size: var(--text-xl);
}

.guide-info h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.guide-info .read-time {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
}

/* Server Guides Section */
.server-guides-section {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* When blog posts are hidden, server guides is first visible — reduce gap */
.blog-posts-v2[style*="display: none"] + .pagination + .server-guides-section,
.blog-posts-v2[style*="display: none"] ~ .server-guides-section {
  margin-top: 0;
  border-top: none;
}

/* Collapse empty blog-posts wrapper when cards are filtered out */
.blog-posts-v2:empty,
.blog-posts-grid:empty {
  display: none;
}

.blog-posts-v2:has(> .blog-card-v2[style*="display: none"]:first-child) {
  margin-bottom: 0;
}

.server-guides-section .section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: var(--space-4);
  text-align: center;
}

.server-guides-section .section-description {
  font-size: var(--text-lg);
  color: var(--text-gray-600);
  margin-bottom: var(--space-8);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.server-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.server-guide-card {
  position: relative;
  overflow: hidden;
}

.server-guide-card .blog-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-flag-overlay {
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

.server-guide-card .blog-category-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  z-index: 1;
}

/* City links row inside server guide cards */
.city-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-gray-500);
}

.city-link {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.city-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Country Guide Content */
.country-guide-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8);
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

.guide-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.guide-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-gray-900);
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

.guide-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-gray-500);
}

/* ===== BLOG POST RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-grid,
  .blog-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .blog-sidebar {
    order: -1;
  }
  
  .server-guides-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .blog-highlight,
  .feature-highlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .encryption-standards,
  .tech-features,
  .benefits-grid,
  .superiority-points,
  .aes-explanation,
  .security-scenarios,
  .scenario-cards {
    grid-template-columns: 1fr;
  }

  .technical-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: calc(70px + var(--space-10)) 0 var(--space-10);
  }
  
  .blog-title {
    font-size: var(--text-3xl);
  }

  .blog-excerpt {
    font-size: var(--text-base);
  }
  
  .step-card {
    flex-direction: column;
    text-align: center;
  }

  /* Keep step/feature images within viewport on tablet and mobile */
  .blog-step-figure,
  .step-visual {
    max-width: 100%;
  }
  .blog-step-figure img,
  .country-guide-content .blog-step-figure img {
    max-width: min(360px, 100%);
  }
  .blog-article figure img {
    max-width: 100%;
  }
  .content-grid {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .blog-article {
    overflow-wrap: break-word;
  }
  
  .app-stores {
    grid-template-columns: 1fr;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .process-step,
  .layer,
  .pfs-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .superiority-points .point {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .blog-main {
    padding: var(--space-5);
  }

  .blog-article {
    padding: var(--space-5);
  }

  .blog-content {
    padding: var(--space-16) 0;
  }

  .article-section + .article-section {
    padding-top: var(--space-10);
    margin-top: var(--space-10);
  }

  .article-section h2 {
    margin-bottom: var(--space-5);
  }

  .article-section h3 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
  }

  .mid-article-cta {
    margin: var(--space-12) 0;
    padding: var(--space-5) var(--space-6);
  }

  .blog-faq {
    margin-top: var(--space-12);
    padding-top: var(--space-10);
  }

  .key-takeaways {
    padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
    margin-bottom: var(--space-8);
  }

  .blog-toc {
    padding: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .blog-author-bar {
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: var(--text-2xl);
  }
  
  .step-content h2 {
    font-size: var(--text-xl);
  }
  
  .phone-mockup {
    width: 150px;
    height: 300px;
  }

  /* Small mobile: images scale with screen, no overflow */
  .blog-step-figure img,
  .country-guide-content .blog-step-figure img {
    max-width: min(280px, 100%);
  }
  .blog-content .container,
  .content-grid {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  .blog-article,
  .step-card {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* Streaming Services Section */
.streaming-services-section {
  margin: var(--space-16) 0;
  padding: var(--space-16) 0;
  border-top: 1px solid var(--gray-200);
}

.streaming-services-section .section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.streaming-services-section .section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: var(--space-4);
}

.streaming-services-section .section-description {
  font-size: var(--text-lg);
  color: var(--text-gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.streaming-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.streaming-service-card {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.streaming-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--text-white);
  flex-shrink: 0;
}

.service-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-icon.netflix {
  background: linear-gradient(135deg, #E50914, #B81D24);
}

.service-icon.prime-video {
  background: linear-gradient(135deg, #00A8E1, #FF9900);
}

.service-icon.hbo-max {
  background: linear-gradient(135deg, #5F2EEA, #B91D47);
}

.service-icon.disney {
  background: linear-gradient(135deg, #0063E5, #00C3FF);
}

.service-icon.hulu {
  background: linear-gradient(135deg, #1CE783, #00C851);
}

.service-icon.sky-sports {
  background: linear-gradient(135deg, #0070E0, #00A3E0);
}

.service-icon.bbc-iplayer {
  background: linear-gradient(135deg, #BB1919, #DC2626);
}

.service-icon.espn {
  background: linear-gradient(135deg, #FF0000, #CC0000);
}

.service-icon.paramount-plus {
  background: linear-gradient(135deg, #0066CC, #003366);
}

.service-icon.peacock-tv {
  background: linear-gradient(135deg, #5B2EFF, #EC4899);
}

.service-icon.pluto-tv {
  background: linear-gradient(135deg, #7C3AED, #2563EB);
}

.service-icon.discovery-plus {
  background: linear-gradient(135deg, #1D4ED8, #14B8A6);
}

.service-icon.discovery-plus .service-glyph {
  font-size: 0.56rem;
  letter-spacing: 0;
}

.service-icon.disney .service-glyph,
.service-icon.paramount-plus .service-glyph {
  font-size: 0.58rem;
  letter-spacing: 0;
}

.service-icon.bbc-iplayer .service-glyph {
  font-size: 0.62rem;
}

.service-icon.apple-tv-plus {
  background: linear-gradient(135deg, #111827, #4B5563);
}

.service-icon.apple-tv-plus .service-glyph {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.service-icon.roku-channel {
  background: linear-gradient(135deg, #6D28D9, #7C3AED);
}

.service-icon.roku-channel .service-glyph {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.service-icon.britbox {
  background: linear-gradient(135deg, #1E40AF, #DC2626);
}

.service-icon.britbox .service-glyph {
  font-size: 0.67rem;
  letter-spacing: 0.015em;
}

.service-icon.sling-tv {
  background: linear-gradient(135deg, #0066cc, #ef4444);
}

.service-icon.itv {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.service-icon.vudu {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-gray-900);
  margin: 0;
}

.service-description {
  font-size: var(--text-sm);
  color: var(--text-gray-600);
  line-height: 1.5;
  margin: 0;
}

.service-meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.service-read-time,
.service-difficulty {
  font-size: var(--text-xs);
  color: var(--text-gray-500);
  background: var(--bg-gray-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
}

.service-difficulty {
  color: var(--text-green-600);
  background: var(--bg-green-50);
}

.service-read-more {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  transition: color var(--transition-normal);
}

.service-read-more:hover {
  color: var(--primary-dark);
}

/* Responsive adjustments for streaming services */
@media (max-width: 768px) {
  .streaming-services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .streaming-service-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-8);
  }
  
  .service-icon {
    align-self: center;
  }
  
  .service-meta {
    justify-content: center;
  }
  
  .service-read-more {
    justify-content: center;
  }
}

/* ========================================
   BLOG REDESIGN V2 - NEW STYLES
   ======================================== */

/* ===== HERO SECTION V3 (HIGH IMPACT) ===== */
.blog-hero-v3 {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(80px + var(--space-20)) 0 var(--space-20);
}

/* Animated Background V3 */
.hero-background-v3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.animated-gradient-v3 {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #1e40af 0%,
    var(--primary) 25%,
    var(--secondary) 60%,
    #7c3aed 100%
  );
  background-size: 400% 400%;
  animation: gradientShiftV3 15s ease infinite;
}

@keyframes gradientShiftV3 {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Content V3 */
.hero-content-v3 {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* [CLEANED] Hero Stats V3 bar removed — unused (~35 lines) */

/* Hero Title V3 - BIGGER & BOLDER */
.hero-title-v3 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: var(--space-8);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}

/* Hero Description V3 */
.hero-description-v3 {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px;
  margin: 0 auto var(--space-16);
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

/* [CLEANED] Quick Categories V3 + Scroll Indicator V3 removed — unused (~180 lines) */

/* ===== SEARCH & FILTERS V2 ===== */
.blog-filters-v2 {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0;
  transition: all var(--transition-normal);
}

.blog-filters-v2.scrolled {
  box-shadow: var(--shadow-lg);
}

/* Top Bar */
.filters-top-bar {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

/* Search Bar */
.search-bar-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
  min-width: 280px;
}

.search-input-shell {
  position: relative;
}

.search-helper-text {
  margin: 0.45rem 0 0 0.2rem;
  font-size: 0.82rem;
  color: #64748b;
}

.search-quick-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.search-quick-item {
  border: 1px solid rgba(148, 163, 184, 0.48);
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  border-radius: 999px;
  padding: 0.28rem 0.66rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-quick-item:hover {
  border-color: rgba(37, 99, 235, 0.62);
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.95);
}

.search-input-v2 {
  width: 100%;
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-12);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  transition: all var(--transition-normal);
  background: var(--bg-white);
}

.search-input-v2:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: var(--text-lg);
}

.search-clear-btn {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none !important;
}

.suggestions-header {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}

.suggestion-item {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.suggestion-item:hover {
  background: var(--bg-gray-50);
}

.suggestion-icon {
  color: var(--gray-400);
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

/* Sort Control */
.sort-segment {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sort-segment-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.52rem 0.86rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sort-segment-btn:hover {
  background: rgba(226, 232, 240, 0.75);
}

.sort-segment-btn.active,
.sort-segment-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* View Toggle */
.view-toggle {
  display: flex;
  background: var(--bg-gray-100);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  opacity: 0.82;
}

.view-btn {
  padding: var(--space-2) var(--space-3);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  color: var(--gray-600);
}

.view-btn.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Advanced Filters Button */
.advanced-filters-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

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

/* Category Pills */
.category-pills-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.scroll-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.scroll-btn:hover {
  background: var(--bg-gray-50);
  border-color: var(--primary);
  color: var(--primary);
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.category-pills {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: var(--space-1) 0;
}

.category-pill-extra {
  display: none;
}

.category-pills.expanded .category-pill-extra {
  display: inline-flex;
}

.category-more-btn {
  flex-shrink: 0;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.88);
  color: #334155;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-pill:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-2);
  background: var(--bg-gray-100);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.category-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

/* Advanced Filters Panel */
.advanced-filters-panel {
  margin-top: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.filter-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-checkbox,
.filter-radio {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* Active Filters */
.active-filters {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-gray-50);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.active-filters-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
}

.active-filter-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  flex: 1;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

.filter-tag-remove {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.clear-all-btn {
  font-size: var(--text-sm);
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
}

/* ===== BLOG GRID V2 ===== */
.blog-posts-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* Featured Post */
.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 400px;
}

.blog-card-featured .blog-image-v2 {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-featured .blog-content-v2 {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Standard Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
}

/* Blog Card V2 */
.blog-card-v2 {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.blog-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

/* Blog Image */
.blog-image-v2 {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-image-asset-v2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Category Badge V2 */
.blog-category-badge-v2 {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge-security { background: rgba(37, 99, 235, 0.9); }
.badge-streaming { background: rgba(220, 38, 38, 0.9); }
.badge-privacy { background: rgba(124, 58, 237, 0.9); }
.badge-gaming { background: rgba(16, 185, 129, 0.9); }
.badge-business { background: rgba(59, 130, 246, 0.9); }
.badge-mobile { background: rgba(245, 158, 11, 0.9); }
.badge-tech { background: rgba(99, 102, 241, 0.9); }
.badge-travel { background: rgba(236, 72, 153, 0.9); }
.badge-legal { background: rgba(107, 114, 128, 0.9); }
.badge-comparison { background: rgba(168, 85, 247, 0.9); }

/* Trending Badge */
.trending-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: rgba(220, 38, 38, 0.9);
  color: var(--text-white);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Blog Content V2 */
.blog-content-v2 {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Blog Meta V2 */
.blog-meta-v2 {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.blog-date-v2,
.blog-read-time-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.blog-date-v2 i,
.blog-read-time-v2 i {
  color: var(--gray-400);
}

/* Blog Title V2 */
.blog-title-v2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-gray-900);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-featured .blog-title-v2 {
  font-size: var(--text-4xl);
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Blog Excerpt V2 */
.blog-excerpt-v2 {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-featured .blog-excerpt-v2 {
  font-size: var(--text-lg);
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* Blog Footer V2 */
.blog-footer-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

/* Blog Stats V2 */
.blog-stats-v2 {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.blog-views-v2,
.blog-likes-v2,
.blog-comments-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.blog-views-v2 i,
.blog-likes-v2 i,
.blog-comments-v2 i {
  color: var(--gray-400);
}

/* Blog Read More V2 */
.blog-read-more-v2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.blog-read-more-v2:hover {
  gap: var(--space-3);
}

.blog-read-more-v2:hover i {
  transform: translateX(4px);
}

.blog-read-more-v2 i {
  transition: transform var(--transition-normal);
}

/* ===== RESPONSIVE DESIGN V2/V3 ===== */
@media (max-width: 1024px) {
  .filters-top-bar {
    flex-wrap: wrap;
  }
  
  .search-bar-wrapper {
    flex: 1 1 100%;
    max-width: none;
  }
  
  .blog-card-featured {
    grid-template-columns: 1fr;
  }
  
  .blog-card-featured .blog-image-v2 {
    height: 300px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }
  
  .blog-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-filters-v2 {
    top: 60px;
  }
  
  .view-toggle,
  .sort-dropdown {
    display: none;
  }
  
  .scroll-btn {
    display: none;
  }
  
  .category-pills {
    padding: var(--space-2) var(--space-4);
  }
  
  .advanced-filters-panel {
    grid-template-columns: 1fr;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card-featured .blog-content-v2 {
    padding: var(--space-6);
  }
  
  .blog-card-featured .blog-title-v2 {
    font-size: var(--text-2xl);
  }
  
  .blog-card-featured .blog-excerpt-v2 {
    font-size: var(--text-base);
  }
}

@media (max-width: 480px) {
  .advanced-filters-btn span {
    display: none;
  }
  
  .category-pill span {
    font-size: var(--text-xs);
  }
}

/* ===== BLOG FORMAT REFINEMENT ===== */
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-subtitle {
  max-width: 680px;
  margin: 0 auto var(--space-5);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-xl);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-cta-row .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-cta-row .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.proof-strip,
.utility-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.proof-item,
.utility-fact {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.proof-item strong,
.utility-fact strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-gray-900);
  font-size: var(--text-sm);
  font-weight: 700;
}

.proof-item span,
.utility-fact span {
  display: block;
  color: var(--text-gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.article-intro-panel,
.article-note {
  padding: var(--space-7);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-10);
}

.article-intro-panel h2,
.article-note h3 {
  margin-bottom: var(--space-4);
}

.article-intro-panel p:last-child,
.article-note p:last-child {
  margin-bottom: 0;
}

.media-frame {
  margin: 0 auto var(--space-6);
  width: 100%;
}

.media-frame-phone {
  max-width: 360px;
}

.media-frame-wide {
  max-width: 680px;
}

.media-frame .blog-step-figure,
.media-frame figure {
  margin-bottom: 0;
}

.compact-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.compact-steps .step-card {
  gap: var(--space-5);
  padding: var(--space-6);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compact-steps .step-number {
  width: 48px;
  height: 48px;
  font-size: var(--text-lg);
}

.compact-steps .step-content h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.compact-steps .step-description {
  font-size: var(--text-base);
  line-height: 1.7;
}

.compact-steps ul {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.compact-steps li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--text-gray-600);
  line-height: 1.6;
}

.compact-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--primary);
}

.blog-article--compact {
  max-width: 920px;
  margin: 0 auto;
}

.blog-article--compact .blog-author-bar {
  margin-bottom: var(--space-6);
}

.blog-content .content-grid--single {
  grid-template-columns: 1fr;
  max-width: 920px;
}

/* Legacy service guides upgraded to Netflix-like template rhythm */
body.service-template-v2 .blog-content .content-grid {
  grid-template-columns: 1fr;
  max-width: 920px;
}

body.service-template-v2 .blog-article {
  max-width: 920px;
  margin: 0 auto;
}

body.service-template-v2 .blog-hero .blog-breadcrumb,
body.service-template-v2 .blog-hero .blog-title,
body.service-template-v2 .blog-hero .blog-meta,
body.service-template-v2 .blog-hero .blog-tags {
  margin-bottom: var(--space-3);
}

body.service-template-v2 .blog-hero .blog-excerpt {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .proof-strip,
  .utility-facts {
    grid-template-columns: 1fr;
  }

  .media-frame-phone {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .article-subtitle {
    font-size: var(--text-lg);
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .article-intro-panel,
  .article-note {
    padding: var(--space-5);
  }

  .media-frame-phone {
    max-width: 300px;
  }

  .compact-steps .step-card {
    padding: var(--space-5);
  }
}

@media (max-width: 480px) {
  .article-eyebrow {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .article-subtitle {
    font-size: var(--text-base);
  }

  .media-frame-phone {
    max-width: 260px;
  }
}

/* ===== Blog Hub Accessibility + Redesign Enhancements ===== */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 9999;
  background: #0b1220;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
}

.category-card-icon i {
  font-size: 1.45rem;
  color: rgba(255, 255, 255, 0.95);
}

.blog-hero-v3 {
  padding-top: clamp(6rem, 9vw, 8rem);
  padding-bottom: clamp(3.5rem, 8vw, 5rem);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.86));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

/* Blog hub uses internal-page-hero and should not reserve viewport-tall space. */
.blog-hero-v3.internal-page-hero {
  min-height: auto;
  padding-top: clamp(5rem, 7vw, 6.5rem);
  padding-bottom: 3rem;
  overflow: hidden;
  z-index: 1;
  border-bottom: none;
}

/* Clean handoff between hub hero and filter bar — overlap to eliminate gap. */
.blog-hero-v3.internal-page-hero + .blog-filters-v2 {
  margin-top: -5rem;
  padding-top: calc(var(--space-6) + 2rem) !important;
  border-top: none;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.blog-hero-v3.internal-page-hero .hero-description-v3 {
  margin-bottom: var(--space-5);
}

.blog-hero-v3.internal-page-hero .hero-actions-v3 {
  margin-bottom: var(--space-3);
}

.blog-hero-v3.internal-page-hero .hero-proof-v3 {
  margin-top: var(--space-3);
  margin-bottom: 0;
  padding-bottom: var(--space-3);
}

.hero-background-v3 {
  opacity: 1;
  pointer-events: none;
}

.animated-gradient-v3 {
  background:
    radial-gradient(circle at 14% 16%, rgba(59, 130, 246, 0.22), transparent 44%),
    radial-gradient(circle at 84% 10%, rgba(14, 165, 233, 0.2), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(99, 102, 241, 0.15), transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.62));
  background-size: 150% 150%;
  animation: heroAmbientShift 22s ease-in-out infinite;
  filter: saturate(108%);
}

@keyframes heroAmbientShift {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}

.hero-title-v3 {
  max-width: 20ch;
  margin-inline: auto;
  letter-spacing: -0.03em;
  color: #0f172a;
  text-shadow: none;
}

.hero-description-v3 {
  max-width: 64ch;
  margin-inline: auto;
  color: #334155;
  text-shadow: none;
}

.hero-kicker-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.hero-actions-v3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.hero-actions-v3 .btn {
  min-width: 220px;
  justify-content: center;
}

.hero-actions-v3 .btn-outline {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(71, 85, 105, 0.35);
  color: #0f172a;
}

.hero-actions-v3 .btn-outline:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.44);
  color: #0b1220;
}

.hero-proof-v3 {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  color: #334155;
  font-size: 0.92rem;
}

.hero-proof-v3 span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.36);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.hero-proof-v3 span i {
  color: #2563eb;
}

.blog-filters-v2 {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(10px);
}

.blog-posts-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.blog-posts-grid.list-view .blog-card-v2 {
  max-width: 100%;
}

.view-btn[aria-pressed="true"],
.category-pill.active {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.blog-intent-rail {
  padding: var(--space-14) 0 var(--space-10);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 42%),
    radial-gradient(circle at 88% 6%, rgba(14, 165, 233, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.72));
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.blog-intent-rail-secondary {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

/* Reduce oversized gap after streaming cards before topic rail. */
.blog-grid .streaming-services-section {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
}

.blog-grid + .blog-intent-rail-secondary {
  padding-top: var(--space-4);
}

.intent-rail-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}

.intent-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
}

.intent-rail-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: #0f172a;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.intent-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  padding: var(--space-5);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.intent-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.intent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intent-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.58);
  box-shadow: 0 14px 30px rgba(30, 41, 59, 0.12);
}

.intent-card h3 {
  color: #0f172a;
  font-size: 1.05rem;
  margin: var(--space-3) 0 var(--space-2);
}

.intent-card p {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.55;
}

.intent-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.14);
}

.intent-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-actions-v3 .btn {
    width: 100%;
    min-width: 0;
    max-width: 320px;
  }

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

/* [CLEANED] Editorial spotlight section removed — unused */

/* Keep CTA button group robust for both class variants */
.cta-buttons,
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.country-guide-content .blog-cta .cta-buttons .btn,
.country-guide-content .blog-cta .cta-button .btn {
  min-width: 220px;
  justify-content: center;
}

@media (max-width: 640px) {
  .country-guide-content .blog-cta .cta-buttons .btn,
  .country-guide-content .blog-cta .cta-button .btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
}

/* Dark mode overrides for intent rail readability */
body.dark-theme .blog-intent-rail {
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.2), transparent 48%),
    radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.9), rgba(10, 14, 24, 0.85));
  border-top-color: rgba(148, 163, 184, 0.18);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

body.dark-theme .hero-proof-v3 span {
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.92);
}

body.dark-theme .hero-proof-v3 span i {
  color: #60a5fa;
}

body.dark-theme .blog-hero-v3 {
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.96), rgba(10, 16, 30, 0.88));
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

body.dark-theme .animated-gradient-v3 {
  background:
    radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.3), transparent 44%),
    radial-gradient(circle at 82% 10%, rgba(14, 165, 233, 0.28), transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(79, 70, 229, 0.22), transparent 48%),
    linear-gradient(160deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.72));
}

body.dark-theme .hero-title-v3 {
  color: #f8fafc;
}

body.dark-theme .hero-description-v3 {
  color: #cbd5e1;
}

body.dark-theme .hero-kicker-v3 {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(125, 211, 252, 0.2);
}

body.dark-theme .hero-actions-v3 .btn-outline {
  background: rgba(15, 23, 42, 0.46);
  border-color: rgba(148, 163, 184, 0.36);
  color: #e2e8f0;
}

body.dark-theme .hero-actions-v3 .btn-outline:hover {
  background: rgba(30, 41, 59, 0.62);
  border-color: rgba(125, 211, 252, 0.46);
  color: #f8fafc;
}

/* ===== Phase B: Feed consistency (cards + typography + spacing) ===== */
.blog-posts-v2 {
  display: grid;
  gap: var(--space-6);
}

.blog-posts-grid {
  gap: var(--space-5);
}

.blog-card-v2 {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.streaming-service-card,
.server-guide-card {
  cursor: pointer;
}

.blog-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.blog-card-v2 .blog-image-v2 {
  min-height: 170px;
  background:
    radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.22), transparent 38%),
    linear-gradient(150deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.72));
}

.blog-card-v2 .blog-content-v2 {
  padding: var(--space-5);
}

.blog-card-v2 .blog-meta-v2 {
  gap: var(--space-3);
}

.blog-card-v2 .blog-meta-v2 span {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.82rem;
  color: #475569;
  background: rgba(226, 232, 240, 0.7);
  border-radius: 9999px;
  padding: 0.25rem 0.58rem;
}

.blog-card-v2 .blog-title-v2 {
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-v2 .blog-excerpt-v2 {
  color: #334155;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.7em;
}

.blog-card-v2 .blog-footer-v2 {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.blog-card-v2 .blog-read-more-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.blog-card-v2 .blog-read-more-v2 i {
  transition: transform 200ms ease;
}

.blog-card-v2 .blog-read-more-v2:hover i {
  transform: translateX(3px);
}

.blog-card-v2.blog-card-featured .blog-content-v2 {
  padding: var(--space-6);
}

/* Featured first card polish: stronger hero proportion + cleaner typography rhythm. */
.blog-card-v2.blog-card-featured {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  min-height: 440px;
}

.blog-card-v2.blog-card-featured .blog-image-v2 {
  height: 100%;
  min-height: 440px;
}

.blog-card-v2.blog-card-featured .blog-content-v2 {
  padding: clamp(1.4rem, 2.1vw, 2rem);
}

.blog-card-v2.blog-card-featured .blog-title-v2 {
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.24;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  -webkit-line-clamp: 3;
}

.blog-card-v2.blog-card-featured .blog-excerpt-v2 {
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.62;
  -webkit-line-clamp: 4;
  min-height: 0;
}

@media (max-width: 1280px) {
  .blog-card-v2.blog-card-featured {
    min-height: 400px;
  }

  .blog-card-v2.blog-card-featured .blog-image-v2 {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .blog-card-v2.blog-card-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .blog-card-v2.blog-card-featured .blog-image-v2 {
    height: 220px;
    min-height: 220px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }

  .blog-card-v2.blog-card-featured .blog-title-v2 {
    font-size: 1.35rem;
    -webkit-line-clamp: 3;
  }

  .blog-card-v2 .blog-content-v2 {
    padding: var(--space-4);
  }

  .blog-card-v2 .blog-title-v2 {
    -webkit-line-clamp: 3;
  }
}

body.dark-theme .blog-card-v2 {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.36);
}

body.dark-theme .blog-card-v2:hover {
  border-color: rgba(125, 211, 252, 0.45);
}

body.dark-theme .blog-card-v2 .blog-image-v2 {
  background:
    radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.24), transparent 38%),
    linear-gradient(150deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.84));
}

body.dark-theme .blog-card-v2 .blog-meta-v2 span {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.62);
}

body.dark-theme .blog-card-v2 .blog-title-v2 {
  color: #f8fafc;
}

body.dark-theme .blog-card-v2 .blog-excerpt-v2 {
  color: #cbd5e1;
}

body.dark-theme .blog-card-v2 .blog-footer-v2 {
  border-top-color: rgba(148, 163, 184, 0.22);
}

/* ===== Phase 2: Filter Surface Unification ===== */
.blog-filters-v2 {
  position: relative;
  z-index: 2;
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.86) 0%, #f8fafc 100%);
}

.filters-top-bar {
  gap: var(--space-3);
}

.search-bar-wrapper,
.sort-segment,
.view-toggle,
.advanced-filters-btn {
  min-height: 48px;
}

.search-input-v2 {
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.search-input-v2::placeholder {
  color: #64748b;
}

.sort-segment,
.advanced-filters-btn {
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sort-segment:hover,
.advanced-filters-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.42);
  color: #1d4ed8;
}

.view-toggle {
  background: rgba(226, 232, 240, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.view-btn {
  min-width: 44px;
}

.view-btn.active,
.view-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #1d4ed8;
}

.category-pills {
  padding: 0.22rem 0;
}

.category-pill {
  border-width: 1px;
  border-color: rgba(148, 163, 184, 0.44);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 600;
}

.category-pill i {
  color: #2563eb;
}

.category-pill.active i {
  color: #ffffff;
}

.category-pill.active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #1d4ed8;
}

.scroll-btn {
  border-color: rgba(148, 163, 184, 0.44);
}

.advanced-filters-panel {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-checkbox,
.filter-radio {
  padding: 0.35rem 0.15rem;
  border-radius: 8px;
}

.filter-checkbox:hover,
.filter-radio:hover {
  background: rgba(226, 232, 240, 0.4);
}

.active-filters {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.clear-all-btn {
  color: #1d4ed8;
}

/* Server Guides CTA Card */
.server-guides-cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px dashed var(--gray-300);
  background: linear-gradient(160deg, rgba(249, 250, 251, 0.9), rgba(239, 246, 255, 0.5));
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  min-height: 280px;
}

.server-guides-cta-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.server-guides-cta-inner {
  text-align: center;
  padding: 2rem 1.5rem;
}

.server-guides-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.25);
}

.server-guides-cta-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.server-guides-cta-card:hover .server-guides-cta-icon {
  transform: scale(1.08);
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.35);
}

.server-guides-cta-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-guides-cta-inner h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: 0.5rem;
}

.server-guides-cta-inner p {
  font-size: 0.9rem;
  color: var(--text-gray-500);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.server-guides-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.server-guides-cta-card:hover .server-guides-cta-link {
  text-decoration: underline;
}

/* Streaming Guides CTA Banner */
.streaming-guides-cta-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.25rem 1.75rem;
  border-radius: 16px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.8), rgba(243, 232, 255, 0.4));
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.streaming-guides-cta-banner:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.streaming-guides-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.25);
  transition: transform 0.3s ease;
}

.streaming-guides-cta-banner:hover .streaming-guides-cta-icon {
  transform: scale(1.08);
}

.streaming-guides-cta-icon i {
  font-size: 1.25rem;
  color: #fff;
}

.streaming-guides-cta-text {
  flex: 1;
  min-width: 0;
}

.streaming-guides-cta-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gray-900);
  margin-bottom: 0.25rem;
}

.streaming-guides-cta-text p {
  font-size: 0.875rem;
  color: var(--text-gray-500);
  margin: 0;
  line-height: 1.4;
}

.streaming-guides-cta-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.streaming-guides-cta-banner:hover .streaming-guides-cta-arrow {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (max-width: 480px) {
  .streaming-guides-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }

  .streaming-guides-cta-arrow {
    display: none;
  }
}

body.dark-theme .streaming-guides-cta-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 20, 50, 0.5));
  border-color: rgba(99, 102, 241, 0.25);
}

body.dark-theme .streaming-guides-cta-banner:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.2);
}

body.dark-theme .streaming-guides-cta-text h3 {
  color: rgba(241, 245, 249, 0.95);
}

body.dark-theme .streaming-guides-cta-text p {
  color: rgba(203, 213, 225, 0.8);
}

body.dark-theme .streaming-guides-cta-arrow {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

body.dark-theme .streaming-guides-cta-banner:hover .streaming-guides-cta-arrow {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

.pagination {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  width: fit-content;
  margin-inline: auto;
}

.pagination-btn {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.pagination-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

.pagination-btn:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.5);
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.13);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.24);
}

.pagination-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-btn.pagination-nav {
  min-width: 72px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pagination-ellipsis {
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.06em;
  min-width: 24px;
  text-align: center;
}

/* Dark mode parity for filter surface */
body.dark-theme .blog-filters-v2 {
  background: linear-gradient(180deg, rgba(7, 11, 21, 0.92), rgba(10, 16, 28, 0.84));
}

body.dark-theme .search-input-v2,
body.dark-theme .sort-segment,
body.dark-theme .advanced-filters-btn,
body.dark-theme .category-pill,
body.dark-theme .scroll-btn,
body.dark-theme .view-toggle,
body.dark-theme .pagination-btn {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(148, 163, 184, 0.34);
  color: #e2e8f0;
}

body.dark-theme .search-input-v2::placeholder {
  color: #94a3b8;
}

body.dark-theme .view-btn {
  color: #cbd5e1;
}

body.dark-theme .view-btn.active,
body.dark-theme .view-btn[aria-pressed="true"] {
  background: rgba(30, 41, 59, 0.92);
  color: #7dd3fc;
}

body.dark-theme .category-pill i {
  color: #7dd3fc;
}

body.dark-theme .category-pill.active,
body.dark-theme .pagination-btn.active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #1d4ed8;
  color: #ffffff;
}

body.dark-theme .sort-segment-btn.active,
body.dark-theme .sort-segment-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
}

body.dark-theme .search-helper-text {
  color: #94a3b8;
}

body.dark-theme .search-quick-item {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.58);
  color: #dbeafe;
}

body.dark-theme .search-quick-item:hover {
  border-color: rgba(125, 211, 252, 0.6);
  color: #7dd3fc;
  background: rgba(30, 41, 59, 0.86);
}

body.dark-theme .category-more-btn {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 42, 0.62);
  color: #e2e8f0;
}

body.dark-theme .category-pill.active i {
  color: #ffffff;
}

body.dark-theme .advanced-filters-panel,
body.dark-theme .active-filters {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.35);
}

body.dark-theme .filter-section h4,
body.dark-theme .active-filters-label {
  color: #cbd5e1;
}

body.dark-theme .filter-checkbox:hover,
body.dark-theme .filter-radio:hover {
  background: rgba(51, 65, 85, 0.48);
}

body.dark-theme .sort-segment:hover,
body.dark-theme .advanced-filters-btn:hover,
body.dark-theme .pagination-btn:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.5);
  color: #7dd3fc;
}

body.dark-theme .pagination-ellipsis {
  color: #94a3b8;
}

body.dark-theme .pagination {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.66));
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.42);
}

@media (max-width: 640px) {
  .pagination {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
    padding: 0.5rem;
  }

  .pagination-btn.pagination-nav {
    min-width: 64px;
  }
}

/* ===== Filter Bar Stabilization (Final Override) ===== */
.blog-filters-v2 .filters-top-bar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.blog-filters-v2 .search-bar-wrapper {
  max-width: none;
  min-width: 0;
}

.blog-filters-v2 .filter-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.blog-filters-v2 .sort-segment,
.blog-filters-v2 .view-toggle,
.blog-filters-v2 .advanced-filters-btn {
  height: 44px;
}

.blog-filters-v2 .sort-segment {
  flex-shrink: 0;
}

.blog-filters-v2 .sort-segment-btn {
  white-space: nowrap;
}

.blog-filters-v2 .search-suggestions {
  display: none !important;
}

.blog-filters-v2 .category-pills-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}

.blog-filters-v2 #category-pills {
  min-width: 0;
}

.blog-filters-v2 #category-pills .category-pill.category-pill-extra {
  display: none !important;
}

.blog-filters-v2 #category-pills.expanded .category-pill.category-pill-extra {
  display: inline-flex !important;
}

.blog-filters-v2 .category-more-btn {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .blog-filters-v2 .filters-top-bar {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .blog-filters-v2 .search-bar-wrapper {
    width: 100%;
  }

  .blog-filters-v2 .filter-controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.6rem;
    justify-content: initial;
    flex-wrap: nowrap;
  }

  .blog-filters-v2 .sort-segment {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .blog-filters-v2 .sort-segment-btn {
    padding: 0.5rem 0.78rem;
    font-size: 0.8rem;
    min-height: 34px;
  }

  .blog-filters-v2 .view-toggle,
  .blog-filters-v2 .advanced-filters-btn {
    min-height: 44px;
  }

  .blog-filters-v2 .advanced-filters-btn {
    padding: 0.62rem 0.88rem;
    white-space: nowrap;
  }

  .blog-filters-v2 .view-toggle {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .blog-filters-v2 .category-pills-wrapper {
    grid-template-columns: 1fr auto;
  }

  .blog-filters-v2 .scroll-btn {
    display: none;
  }

  .blog-filters-v2 .view-toggle {
    display: none;
  }
}

/* ===== Server Guide Card Corrections ===== */
.server-guides-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--space-5);
}

.server-guide-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: var(--bg-white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-height: 100%;
}

.server-guide-card .blog-image {
  height: 152px;
}

/* Override global .blog-content section rules for card context */
.server-guide-card .blog-content {
  padding: var(--space-5);
  background: var(--bg-white);
  color: var(--text-gray-700);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 0;
}

.server-guide-card .blog-meta {
  justify-content: flex-start;
  gap: var(--space-3);
  margin-bottom: 0;
  color: var(--text-gray-500);
}

.server-guide-card .blog-title {
  color: var(--text-gray-900);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.35;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-guide-card .blog-excerpt {
  color: var(--text-gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-guide-card .blog-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.server-guide-card .blog-read-more {
  color: #1d4ed8;
  font-weight: 700;
}

.server-guide-card .blog-read-more:hover {
  color: #1e40af;
}

@media (max-width: 640px) {
  .server-guide-card .blog-content {
    padding: var(--space-4);
  }

  .server-guide-card .blog-image {
    height: 132px;
  }
}

body.dark-theme .server-guide-card {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.4);
}

body.dark-theme .server-guide-card .blog-content {
  background: transparent;
  color: #cbd5e1;
}

body.dark-theme .server-guide-card .blog-title {
  color: #f8fafc;
}

body.dark-theme .server-guide-card .blog-excerpt,
body.dark-theme .server-guide-card .blog-meta {
  color: #cbd5e1;
}

body.dark-theme .server-guide-card .blog-footer {
  border-top-color: rgba(148, 163, 184, 0.24);
}

body.dark-theme .server-guide-card .blog-read-more {
  color: #93c5fd;
}

body.dark-theme .intent-kicker {
  color: #7dd3fc;
}

body.dark-theme .intent-rail-header h2 {
  color: #e2e8f0;
}

body.dark-theme .intent-card {
  border-color: rgba(148, 163, 184, 0.26);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.62));
}

body.dark-theme .intent-media {
  border-color: rgba(148, 163, 184, 0.3);
}

body.dark-theme .intent-card h3 {
  color: #f8fafc;
}

body.dark-theme .intent-card p {
  color: #cbd5e1;
}

body.dark-theme .intent-badge {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.26);
}

/* [CLEANED] Editorial spotlight dark mode removed — unused */

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* ===== Stay Connected Upgrade ===== */
.stay-connected {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.blog-intent-rail-secondary + .stay-connected {
  padding-top: clamp(1.1rem, 2.2vw, 1.7rem);
}

.stay-connected-content {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(37, 99, 235, 0.14) 0%, rgba(255, 255, 255, 0.88) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
  text-align: center;
}

.stay-connected-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.stay-connected-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.stay-connected-description {
  margin: 0.75rem auto 1.45rem;
  max-width: 64ch;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: #334155;
}

.stay-connected-actions {
  display: flex;
  justify-content: center;
}

.stay-connected-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stay-connected-social {
  align-items: center;
}

.stay-connected-group-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.stay-connected-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.stay-connected-links-download {
  gap: 0.62rem;
}

.stay-connected-links-social {
  gap: 0.5rem;
  justify-content: center;
}

.stay-connected .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.stay-connected .download-link {
  min-height: 50px;
  padding: 0.75rem 1rem;
  gap: 0.48rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 700;
}

.stay-connected .download-link i {
  font-size: 1rem;
}

.stay-connected .social-icon-link {
  width: 54px;
  height: 50px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  background: #0f172a;
}

.stay-connected .social-icon-link i {
  font-size: 1.12rem;
}

.stay-connected .social-icon-link.x {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.stay-connected .social-icon-link.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}

.stay-connected .social-icon-link.tiktok {
  background: linear-gradient(135deg, #111111, #0f172a);
}

.stay-connected .social-icon-link.youtube {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.stay-connected .social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.13);
  text-decoration: none;
}

body.dark-theme .stay-connected-content {
  border-color: rgba(148, 163, 184, 0.25);
  background:
    radial-gradient(120% 120% at 8% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0.78) 54%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.76));
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.48);
}

body.dark-theme .stay-connected-kicker {
  color: #7dd3fc;
}

body.dark-theme .stay-connected-title {
  color: #f8fafc;
}

body.dark-theme .stay-connected-description {
  color: #cbd5e1;
}

body.dark-theme .stay-connected-group-label {
  color: #94a3b8;
}

body.dark-theme .stay-connected .download-link {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.58);
}

body.dark-theme .stay-connected .social-icon-link {
  border-color: rgba(148, 163, 184, 0.34);
}

@media (max-width: 900px) {
  .stay-connected-actions {
    display: flex;
    justify-content: center;
  }

  .stay-connected .social-icon-link {
    width: 52px;
  }
}

@media (max-width: 560px) {
  .stay-connected-content {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .stay-connected-actions {
    gap: 0.5rem;
  }

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

  .stay-connected .download-link,
  .stay-connected .social-icon-link {
    min-height: 46px;
    height: 46px;
  }
}

.blog-faq-microcopy {
  padding: 0.45rem 0 1.1rem;
}

.blog-faq-microcopy-card {
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.blog-faq-microcopy-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e3a8a;
}

.blog-faq-microcopy-body {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
}

.blog-faq-microcopy-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.blog-faq-microcopy-links a {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.blog-faq-microcopy-links a:hover {
  text-decoration: underline;
}

body.dark-theme .blog-faq-microcopy-card {
  border-color: rgba(125, 211, 252, 0.34);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.78));
}

body.dark-theme .blog-faq-microcopy-title {
  color: #7dd3fc;
}

body.dark-theme .blog-faq-microcopy-body {
  color: #cbd5e1;
}

body.dark-theme .blog-faq-microcopy-links a {
  color: #93c5fd;
}

/* ========================================
   MOBILE RESPONSIVENESS FIX
   Prevents horizontal overflow on mobile devices (390px+)
   Affects all EN and DE blog pages via shared CSS
   ======================================== */

/* Global overflow containment for blog pages */
.blog-content,
.blog-hero {
  overflow-x: hidden;
}

.blog-article {
  overflow-x: hidden;
  word-break: break-word;
}

/* Ensure all blog content respects container width */
.blog-article pre,
.blog-article code,
.blog-article table,
.blog-article iframe,
.blog-article video,
.blog-article img {
  max-width: 100%;
}

.blog-article pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== MOBILE: 768px and below ===== */
@media (max-width: 768px) {
  /* Contain the content grid within viewport */
  .content-grid,
  .blog-layout {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Tables: contained scroll within article, not page-level */
  .encryption-comparison,
  .comparison-table,
  .comparison-section {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .encryption-comparison table,
  .comparison-table table,
  table.comparison-table {
    font-size: var(--text-xs) !important;
  }

  .encryption-comparison th,
  .encryption-comparison td,
  .comparison-table th,
  .comparison-table td,
  table.comparison-table th,
  table.comparison-table td,
  table.comparison-table thead th,
  table.comparison-table tbody td {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.7rem !important;
  }

  /* Theme toggle: ensure it doesn't overlap footer */
  .theme-toggle {
    bottom: 24px !important;
    right: 16px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
  }

  /* Breadcrumb: tighter on mobile */
  .breadcrumb-current {
    max-width: 120px;
  }

  /* Blog hero content: respect padding */
  .blog-hero-content,
  .blog-header {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Key takeaways box: reduce left padding to prevent overflow */
  .key-takeaways {
    padding-left: var(--space-5);
  }

  .key-takeaways ul,
  .key-takeaways ol {
    padding-left: var(--space-4);
  }

  /* Blog CTA: reduce padding so buttons fit on mobile */
  .blog-cta {
    padding: var(--space-8) var(--space-4) !important;
  }

  .blog-cta .cta-buttons {
    flex-direction: column;
  }

  .blog-cta .cta-buttons .btn,
  .blog-cta .cta-buttons .btn-lg {
    white-space: normal !important;
    width: 100%;
    max-width: 100%;
    font-size: var(--text-sm) !important;
    padding: var(--space-3) var(--space-4) !important;
    min-height: 48px;
  }

  /* Footer: override inline repeat(4) to stack on mobile */
  .footer-links {
    grid-template-columns: 1fr !important;
  }

  /* Best practices list: tighter padding on mobile */
  .best-practices li {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }

  .best-practices li strong {
    display: inline !important;
  }
}

/* ===== SMALL MOBILE: 480px and below (iPhone SE, older iPhones) ===== */
@media (max-width: 480px) {
  .content-grid {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  .blog-article {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
  }

  .blog-hero-content,
  .blog-header {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .blog-hero {
    padding: calc(70px + var(--space-8)) 0 var(--space-8);
  }

  .blog-excerpt {
    font-size: var(--text-sm);
  }

  /* Tables: even more compact */
  .encryption-comparison,
  .comparison-table {
    max-width: calc(100vw - var(--space-2) * 2 - var(--space-4) * 2);
    border-radius: var(--radius-lg);
  }

  .encryption-comparison th,
  .encryption-comparison td,
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-1) var(--space-2);
    font-size: 11px;
  }

  /* Mid-article CTA: fit within mobile */
  .mid-article-cta {
    padding: var(--space-4);
    margin: var(--space-8) 0;
  }

  /* Article sections: tighter spacing */
  .article-section + .article-section {
    padding-top: var(--space-8);
    margin-top: var(--space-8);
  }

  /* Breadcrumb: even tighter */
  .breadcrumb-current {
    max-width: 100px;
  }

  .blog-breadcrumb,
  .breadcrumb {
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  /* Step cards: compact padding */
  .step-card {
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: var(--text-lg);
  }

  /* Blog TOC: compact on mobile */
  .blog-toc {
    padding: var(--space-4);
  }

  /* Key takeaways */
  .key-takeaways {
    padding: var(--space-4);
  }

  /* FAQ: compact */
  .blog-faq {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
  }

  /* Blog author bar */
  .blog-author-bar {
    padding: var(--space-4);
  }

  /* Blog content section */
  .blog-content {
    padding: var(--space-10) 0;
  }

  /* Best practices list: even more compact on small screens */
  .best-practices li {
    padding: 0.75rem !important;
    gap: 0.625rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .best-practices li::before {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }

  /* Footer: single column on small mobile */
  .footer-links {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }
}