:root {
  --ink:          #0F1923;
  --ink-mid:      #1E2D3D;
  --ink-soft:     #2C3E50;
  --blue:         #1A6BF5;
  --blue-dim:     rgba(26,107,245,0.06);
  --blue-border:  rgba(26,107,245,0.18);
  --green:        #0DBF7E;
  --green-dim:    rgba(13,191,126,0.08);
  --green-text:   #077A51;
  --muted:        #64748B;
  --border:       rgba(15,25,35,0.08);
  --border-med:   rgba(15,25,35,0.12);
  --surface:      #F8FAFD;
  --card:         #ffffff;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    18px;
  --shadow-sm:    0 2px 8px rgba(15,25,35,0.04);
  --shadow-md:    0 8px 24px rgba(15,25,35,0.06);
  --shadow-lg:    0 16px 40px rgba(15,25,35,0.08);
}

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

html, body {
  background: #F0F2F7;
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ─── Navigation Bar ─────────────────────────────────────────────── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
}

.back-to-blog:hover {
  color: var(--blue);
  background: var(--blue-dim);
  border-color: var(--blue-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s;
}

.nav-logo:hover .brand-icon {
  transform: scale(1.05);
}

.brand-icon svg {
  width: 18px;
  height: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.nav-logo-sub {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 99px;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px rgba(26, 107, 245, 0.15);
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  background: #1558cc;
  box-shadow: 0 6px 16px rgba(26, 107, 245, 0.25);
}

.nav-cta-btn:active {
  transform: translateY(0);
}

/* ─── Blog Listing Page Layout ──────────────────────────────────── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

header.blog-header {
  text-align: center;
  padding: 60px 0 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.back-link:hover {
  color: var(--blue);
  border-color: var(--blue-border);
  background: var(--blue-dim);
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.logo-row .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(26, 107, 245, 0.25);
}

.logo-row .brand-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

h1.blog-index-title {
  font-size: 3rem;
  font-weight: 850;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
  line-height: 1.1;
  color: var(--ink);
}

.subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-card {
    grid-column: span 2;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--blue-dim);
  color: var(--blue);
  width: fit-content;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--blue-border);
}

.date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.2s;
  letter-spacing: -0.4px;
}

.card:hover h2 {
  color: var(--blue);
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap 0.2s;
  margin-top: auto;
}

.read-more svg {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .read-more {
  color: #1558cc;
}

.card:hover .read-more svg {
  transform: translateX(4px);
}

/* ─── Article Page Specific Styles ──────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 107, 245, 0.04) 0%, rgba(240, 242, 247, 0) 100%);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--blue-dim);
  color: var(--blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--blue-border);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 8px 0;
  max-width: 720px;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.hero-meta span::after {
  content: "•";
  margin-left: 12px;
  color: var(--border-med);
}

.hero-meta span:last-child::after {
  content: "";
}

.hero-image-wrap {
  width: 100%;
  max-width: 760px;
  margin-top: 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #fff;
  aspect-ratio: 16/9;
}

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

.article-body {
  max-width: 720px;
  margin: 56px auto;
  padding: 0 24px;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 550;
}

.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
  letter-spacing: -0.4px;
}

.article-body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.75;
}

.article-body ul {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 28px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-body li strong {
  color: var(--ink);
  font-weight: 650;
}

.highlight-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow-sm);
}

.highlight-box p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--ink-mid);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ─── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  margin: 64px 0;
  box-shadow: 0 12px 36px rgba(26, 107, 245, 0.15);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h3 {
  font-size: 1.95rem;
  font-weight: 850;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 750;
  padding: 14px 32px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px rgba(15,25,35,0.12);
  font-size: 0.95rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,25,35,0.18);
  background: #f8fafd;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button svg {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-button:hover svg {
  transform: translateX(3px);
}

/* ─── Footer ────────────────────────────────────────────────────── */
/* ─── Related Articles Section ───────────────────────────────────── */
.related-section {
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.related-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.4px;
  border-left: none;
  padding-left: 0;
  margin-top: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ─── Brand Footer (Landing Page Style) ──────────────────────────── */
.landing-footer {
  width: 100%;
  background: var(--surface);
  border-top: 1.5px solid var(--border-med);
  margin-top: 80px;
  box-sizing: border-box;
  position: relative;
}
.footer-accent-bar {
  height: 3px;
  background: var(--blue);
  width: 100%;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  box-sizing: border-box;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}
.footer-logo svg {
  width: 22px;
  height: 22px;
}
.footer-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.footer-column h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}
.footer-column ul a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-column ul a:hover {
  color: var(--blue);
}
.footer-support-hours {
  font-size: 12px;
  color: var(--muted);
  background: rgba(15, 25, 35, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}
.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}
.footer-copyright {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: left;
}
.footer-disclaimer {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 25, 35, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s ease;
  text-decoration: none;
}
.footer-social-link:hover {
  background: var(--blue-dim);
  color: var(--blue);
  transform: translateY(-2px);
}
.footer-social-link svg {
  width: 16px;
  height: 16px;
}

/* ─── Mobile Responsiveness & Polish ────────────────────────────── */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-logo-sub {
    display: none;
  }
  .nav-bar {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 16px 36px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  h1.blog-index-title {
    font-size: 2rem;
  }
  .article-body {
    margin: 36px auto;
    padding: 0 16px;
  }
  .cta-banner {
    padding: 32px 20px;
  }
  .cta-banner h3 {
    font-size: 1.5rem;
  }
  .related-section {
    padding: 0 16px;
  }
}

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

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-container, .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  h1.blog-index-title {
    font-size: 1.7rem;
  }
  .blog-grid {
    gap: 16px;
  }
  .card {
    padding: 20px;
  }
  .featured-card {
    grid-column: span 1;
  }
}
