/* ========================================================
   INNOVIC SOLUTIONS — OFFICIAL BLOG DESIGN SYSTEM
   Brand Tokens: Navy (#102A6B), Vibrant Cyan (#00A3FF)
   ======================================================== */

:root {
  --primary-navy: #102A6B;
  --navy-dark: #0A1C47;
  --primary-cyan: #00A3FF;
  --cyan-tint: rgba(0, 163, 255, 0.08);
  --cyan-hover: #0084E0;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --border-color: #E2E8F0;
  --card-shadow: 0 10px 25px -5px rgba(16, 42, 107, 0.08), 0 8px 10px -6px rgba(16, 42, 107, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation Header (Synchronized with Main Site) --- */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 900;
  box-shadow: 0 4px 18px -2px rgba(16, 42, 107, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.35vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 6px 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-cyan);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 2px;
}

.has-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 240px;
  box-shadow: 0 16px 36px -4px rgba(16, 42, 107, 0.14), 0 6px 14px -2px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-navy);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.desktop-only-btn {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  flex-shrink: 0;
  line-height: 1.2;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(16, 42, 107, 0.05);
}

@media (max-width: 1220px) {
  .nav-container {
    padding: 0 16px;
    gap: 10px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 12.8px;
    padding: 4px 1px;
  }
  .desktop-only-btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 1060px) {
  .nav-links, .desktop-only-btn {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: -10px 0 36px rgba(16, 42, 107, 0.16);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-nav-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.mobile-nav-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.08em;
  margin-top: 10px;
  text-transform: uppercase;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}

.blog-nav-badge {
  background: var(--cyan-tint);
  border: 1px solid rgba(0, 163, 255, 0.25);
  color: var(--primary-navy);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.blog-nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-dark);
  transition: color 0.2s ease;
}

.blog-nav-links a:hover {
  color: var(--primary-cyan);
}

.btn-cyan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-cyan);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 163, 255, 0.28);
  transition: all 0.2s ease;
}

.btn-cyan:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}

/* --- Hero Banner (Hub & Post) --- */
.blog-hub-hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.blog-hub-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #00A3FF 0%, #102A6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hub-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* --- Filter & Search Controls --- */
.blog-controls-wrap {
  padding: 36px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-chip {
  padding: 8px 16px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-chip:hover {
  background: #E2E8F0;
  color: var(--navy-dark);
}

.cat-chip.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

.blog-search-box {
  position: relative;
  min-width: 260px;
}

.blog-search-box input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  outline: none;
  background: #FFFFFF;
  transition: border-color 0.2s;
}

.blog-search-box input:focus {
  border-color: var(--primary-cyan);
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* --- Blog Cards Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  padding: 24px 0 80px;
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -6px rgba(16, 42, 107, 0.14);
  border-color: rgba(0, 163, 255, 0.35);
}

.blog-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0A1C47;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(16, 42, 107, 0.88);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px;
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--primary-cyan);
}

.blog-card-excerpt {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-navy);
}

.blog-card-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-cyan);
}

/* ========================================================
   SINGLE ARTICLE PAGE STYLES
   ======================================================== */
.article-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-color);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 18px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.article-meta-pill {
  background: var(--cyan-tint);
  border: 1px solid rgba(0, 163, 255, 0.25);
  color: var(--primary-navy);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* Two Column Layout: Main Body + Sticky Sidebar */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 48px 0 80px;
  align-items: start;
}

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

/* Answer Capsule / Key Takeaway Callout Box */
.answer-capsule-box {
  background: #F0F9FF;
  border: 1px solid rgba(0, 163, 255, 0.35);
  border-left: 5px solid var(--primary-cyan);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(0, 163, 255, 0.06);
}

.answer-capsule-title {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.answer-capsule-text {
  font-size: 16px;
  line-height: 1.65;
  color: #1E293B;
  font-weight: 500;
}

/* Cover Image */
.article-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--card-shadow);
}

.article-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Markdown Rendered Content Typography */
.article-prose {
  font-size: 17px;
  line-height: 1.8;
  color: #1E293B;
}

.article-prose h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 44px 0 16px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.article-prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.article-prose p {
  margin-bottom: 22px;
}

.article-prose ul, .article-prose ol {
  margin: 0 0 24px 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose strong {
  color: var(--navy-dark);
  font-weight: 700;
}

.article-prose blockquote {
  border-left: 4px solid var(--primary-cyan);
  background: var(--bg-light);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.article-prose th, .article-prose td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.article-prose th {
  background: #F1F5F9;
  font-weight: 700;
  color: var(--navy-dark);
}

.article-prose tr:nth-child(even) {
  background: #F8FAFC;
}

/* Sticky Sidebar: Table of Contents & Course Banner */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.toc-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list li a {
  font-size: 14px;
  color: #475569;
  line-height: 1.45;
  transition: all 0.2s ease;
  display: block;
}

.toc-list li a:hover {
  color: var(--primary-cyan);
  padding-left: 4px;
}

/* Sidebar Course Lead Magnet */
.sidebar-cta-card {
  background: linear-gradient(135deg, #102A6B 0%, #0A1C47 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(16, 42, 107, 0.22);
}

.sidebar-cta-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sidebar-cta-card p {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

