/* =========================================================================
   SUPER COMPUTER - BLOG & ARTICLE STYLES
   Professional, responsive typography, layout, and article aesthetics
   Matching the official dark navy hero & clean white editorial body
   ========================================================================= */

/* --- Blog Hero Section (Dark Navy Aesthetic) --- */
.blog-hero {
  background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(249, 131, 3, 0.12) 0%, transparent 45%),
              var(--primary-navy, #040B17);
  color: #FFFFFF;
  padding-top: calc(var(--header-height, 84px) + 3rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.blog-hero-header {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.blog-hero-header h1 {
  font-family: var(--font-display, 'Sora', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF !important;
  margin: 1rem 0 1.25rem 0;
  letter-spacing: -0.02em;
}

.blog-hero-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #E2E8F0 !important;
  margin-bottom: 2rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Category Filter Pills (High-contrast against dark navy) */
.blog-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F1F5F9 !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.blog-filter-btn:hover {
  background: rgba(249, 131, 3, 0.2);
  border-color: rgba(249, 131, 3, 0.5);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.blog-filter-btn.active {
  background: var(--brand-orange, #F98303);
  border-color: var(--brand-orange, #F98303);
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(249, 131, 3, 0.4);
}

/* --- Blog Cards Listing Section (Editorial Light Background) --- */
.blog-listing-section {
  padding: 4.5rem 0 5.5rem 0;
  background-color: var(--bg-editorial, #F8FAFC);
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.25rem;
}

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

.article-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-orange, #F98303);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 20px rgba(249, 131, 3, 0.15);
}

.article-card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 52%;
  overflow: hidden;
  background: #0E1B33;
}

.article-card-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-thumb {
  transform: scale(1.04);
}

.article-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(4, 11, 23, 0.88);
  backdrop-filter: blur(8px);
  color: #FDBA74;
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-card-body {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary, #64748B);
  margin-bottom: 0.85rem;
}

.article-card-meta span {
  display: inline-flex;
  align-items: center;
}

.article-card-meta .meta-dot {
  color: #CBD5E1;
}

.article-card-title {
  font-family: var(--font-display, 'Sora', 'Plus Jakarta Sans', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary, #0F172A);
  margin: 0 0 0.85rem 0;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
  color: var(--sc-blue, #0213DC);
}

.article-card-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary, #475569);
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-orange, #F98303);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.article-card-link:hover {
  color: var(--sc-orange-hover, #DF7300);
  gap: 0.75rem;
}

/* =========================================================================
   INDIVIDUAL ARTICLE STYLES
   ========================================================================= */

.article-hero {
  background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(249, 131, 3, 0.12) 0%, transparent 45%),
              var(--primary-navy, #040B17);
  color: #FFFFFF;
  padding-top: calc(var(--header-height, 84px) + 3rem);
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.article-hero-header {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.article-hero-header h1 {
  font-family: var(--font-display, 'Sora', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF !important;
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #E2E8F0 !important;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: #CBD5E1;
}

.article-header-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.article-header-meta-item strong {
  color: #FFFFFF;
}

/* Article Main Layout (Light background for comfortable long-form reading) */
.article-main-section {
  padding: 3.5rem 0 5rem 0;
  background-color: var(--bg-white, #FFFFFF);
}

.article-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .article-content-layout {
    grid-template-columns: minmax(0, 780px) 340px;
    align-items: start;
  }
}

/* Featured Image Banner */
.article-featured-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-light, #E2E8F0);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  background: #0E1B33;
}

.article-featured-banner img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.article-img-caption {
  padding: 0.85rem 1.25rem;
  background: var(--bg-editorial, #F8FAFC);
  color: var(--text-secondary, #475569);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-light, #E2E8F0);
}

/* Article Body Typography (Clean, high-legibility dark text on white) */
.article-body {
  color: var(--text-primary, #0F172A);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 1.5rem;
  color: #1E293B;
}

.article-body h2 {
  font-family: var(--font-display, 'Sora', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-navy, #040B17);
  margin: 2.75rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle, #F1F5F9);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--font-display, 'Sora', 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: #1E293B;
  margin: 2rem 0 0.85rem 0;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.75rem 1.5rem;
  padding: 0;
  color: #1E293B;
}

.article-body li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
}

.article-body li strong {
  color: var(--primary-navy, #040B17);
}

.article-body a {
  color: var(--sc-blue, #0213DC);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: var(--brand-orange, #F98303);
}

.article-callout-box {
  background: var(--sc-orange-light, #FFF7ED);
  border-left: 4px solid var(--brand-orange, #F98303);
  border-radius: 0 12px 12px 0;
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}

.article-callout-box p {
  margin: 0;
  color: #7C2D12;
  font-size: 1rem;
  line-height: 1.7;
}

.article-checklist-box {
  background: var(--bg-editorial, #F8FAFC);
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
}

.article-checklist-box h4 {
  color: var(--primary-navy, #040B17);
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
}

.article-checklist-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-checklist-box li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: #334155;
}

.article-checklist-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
}

/* FAQ Accordion in Article */
.article-faq-wrap {
  margin: 2.5rem 0;
}

.article-faq-item {
  background: var(--bg-editorial, #F8FAFC);
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

.article-faq-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy, #040B17);
  margin: 0 0 0.65rem 0;
}

.article-faq-a {
  color: #475569;
  font-size: 0.975rem;
  line-height: 1.7;
  margin: 0;
}

/* Author Box */
.article-author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-editorial, #F8FAFC);
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 16px;
  margin-top: 3.5rem;
}

.article-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange, #F98303);
  flex-shrink: 0;
  object-fit: cover;
  background: #FFFFFF;
}

.article-author-info h4 {
  color: var(--primary-navy, #040B17);
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.article-author-info p {
  color: var(--text-secondary, #475569);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.55;
}

/* Sticky Sidebar */
.article-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-widget {
  background: var(--bg-editorial, #F8FAFC);
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget-title {
  color: var(--primary-navy, #040B17);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light, #E2E8F0);
}

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

.toc-list li {
  margin-bottom: 0.55rem;
}

.toc-list a {
  color: var(--text-secondary, #475569);
  font-size: 0.875rem;
  text-decoration: none;
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toc-list a:hover {
  color: var(--brand-orange, #F98303);
  background: #FFFFFF;
  padding-left: 0.75rem;
}

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

.sidebar-service-links li {
  margin-bottom: 0.65rem;
}

.sidebar-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 8px;
  color: var(--text-primary, #0F172A);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-service-link:hover {
  background: var(--sc-blue-light, #EEF2FF);
  border-color: var(--sc-blue, #0213DC);
  color: var(--sc-blue, #0213DC);
  padding-left: 1rem;
}

.sidebar-cta-card {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 70%),
              var(--primary-navy, #040B17);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  color: #FFFFFF;
}

.sidebar-cta-card h4 {
  color: #FFFFFF !important;
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}

.sidebar-cta-card p {
  color: #CBD5E1 !important;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
