/*
Theme Name: JC3 Technology
Theme URI: https://pre.jc3tech.com
Author: Larry Wilson III
Author URI: https://pre.jc3tech.com
Description: Custom executive consulting theme for JC3 Technology. Features brand colors, gradient accents, and conversion-focused layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: jc3-theme
*/

/* ============================================
   JC3 Technology - Brand & Global Styles
   Primary:  #1E5AA8 (Deep Blue)
   Dark:     #0B1F3A (Dark Navy)
   Accent:   #C73A3A (Red)
   Gradient: #C73A3A → #1E5AA8
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --deep-blue: #1E5AA8;
  --dark-navy: #0B1F3A;
  --red-accent: #C73A3A;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gradient: linear-gradient(135deg, #C73A3A 0%, #1E5AA8 100%);
  --gradient-hover: linear-gradient(135deg, #d94444 0%, #2568bd 100%);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--dark-navy); }
h1 { font-size: 3.25rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p { color: var(--gray-600); line-height: 1.75; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--gray-50); }

/* ---- Gradient Dividers ---- */
.gradient-divider { height: 3px; background: var(--gradient); border: none; border-radius: 2px; }
.gradient-divider-thin { height: 2px; width: 60px; background: var(--gradient); border: none; border-radius: 2px; margin-bottom: 1.5rem; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; background: var(--gradient);
  color: var(--white); font-weight: 600; font-size: 0.9375rem;
  border-radius: 8px; border: none; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none; letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--gradient-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,90,168,0.3); color: var(--white); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; background: transparent;
  color: var(--dark-navy); font-weight: 600; font-size: 0.9375rem;
  border-radius: 8px; border: 2px solid var(--gray-200);
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--deep-blue); color: var(--deep-blue); transform: translateY(-2px); }
.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.875rem; }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.08); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 245px; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 150px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--gray-600); transition: color 0.2s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--dark-navy); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gradient); border-radius: 1px;
}
.nav-cta { margin-left: 1rem; }

.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span { width: 24px; height: 2px; background: var(--dark-navy); border-radius: 2px; transition: all 0.3s ease; }

.mobile-menu {
  display: none; position: fixed; top: 245px; left: 0; right: 0;
  background: var(--white); padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 0; font-size: 1rem; font-weight: 500; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn-primary { margin-top: 1rem; width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

/* ---- Hero ---- */
.hero {
  position: relative; padding: 21rem 0 6rem; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}
.hero::before {
  content: ''; position: absolute; top: 0; right: -10%; width: 60%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(30,90,168,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.03;
  background-image: radial-gradient(circle at 25% 25%, var(--deep-blue) 1px, transparent 1px),
                    radial-gradient(circle at 75% 75%, var(--deep-blue) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-bottom: 1.5rem; font-size: 3.5rem; line-height: 1.1; }
.hero h1 .gradient-text {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.1875rem; max-width: 600px; margin-bottom: 2.5rem; color: var(--gray-500); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { padding: 18rem 0 4rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
}

/* ---- Cards ---- */
.card {
  background: var(--white); border-radius: 12px; padding: 2rem;
  border: 1px solid var(--gray-100); transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--gradient); opacity: 0; transition: opacity 0.3s ease;
}
.card:hover { border-color: var(--gray-200); box-shadow: 0 4px 24px rgba(0,0,0,0.06); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(30,90,168,0.08); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.25rem; color: var(--deep-blue);
}
.card h3 { margin-bottom: 0.75rem; font-size: 1.125rem; }
.card p { font-size: 0.9375rem; color: var(--gray-500); }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---- Section Headers ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-header .gradient-divider-thin { margin: 0 auto 1.5rem; }
.section-header p { margin-top: 1rem; font-size: 1.0625rem; }

/* ---- Process Steps ---- */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 32px; left: 12.5%; right: 12.5%;
  height: 2px; background: var(--gradient); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; padding: 0 1rem; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--gray-200); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1.25rem;
  color: var(--deep-blue); margin: 0 auto 1.25rem; transition: all 0.3s ease;
}
.process-step:hover .step-number { background: var(--gradient); border-color: transparent; color: var(--white); transform: scale(1.1); }
.process-step h4 { margin-bottom: 0.5rem; font-weight: 600; }
.process-step p { font-size: 0.875rem; color: var(--gray-500); }
@media (max-width: 768px) { .process-steps { grid-template-columns: 1fr; gap: 2rem; } .process-steps::before { display: none; } }

/* ---- Quote / Dark Section ---- */
.quote-section {
  position: relative; padding: 5rem 0;
  background: var(--dark-navy); color: var(--white); overflow: hidden;
}
.quote-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.quote-section h2 { color: var(--white); max-width: 700px; margin-bottom: 1.5rem; }
.quote-section p { color: rgba(255,255,255,0.7); max-width: 600px; font-size: 1.0625rem; }

/* ---- Case Study ---- */
.case-study-card {
  background: var(--white); border-radius: 16px; padding: 3rem;
  border: 1px solid var(--gray-100); box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.case-stat { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.case-stat .number {
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dark-navy) 0%, #132d52 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto 2rem; font-size: 1.0625rem; }
.cta-banner .capacity-note { margin-top: 1rem; font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

/* ---- Footer ---- */
.footer { background: var(--dark-navy); color: rgba(255,255,255,0.6); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9375rem; margin-top: 1rem; max-width: 280px; }
.footer h4 { color: var(--white); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { font-size: 0.9375rem; color: rgba(255,255,255,0.5); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all 0.2s ease; }
.social-links a:hover { background: rgba(255,255,255,0.15); color: var(--white); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Page Header ---- */
.page-header { padding: 20rem 0 3rem; background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); text-align: center; }
.page-header h1 { margin-bottom: 1rem; }
.page-header p { max-width: 560px; margin: 0 auto; font-size: 1.125rem; }
@media (max-width: 768px) { .page-header { padding-top: 18rem; } }

/* ---- About ---- */
.about-hero { padding: 21rem 0 4rem; background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); }
@media (max-width: 768px) { .about-hero { padding-top: 18rem; } }
.philosophy-card { background: var(--white); border-radius: 12px; padding: 2rem; border: 1px solid var(--gray-100); text-align: center; }
.philosophy-card .icon { width: 56px; height: 56px; border-radius: 12px; background: rgba(30,90,168,0.08); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--deep-blue); }

/* ---- Services ---- */
.service-card { background: var(--white); border-radius: 16px; padding: 3rem; border: 1px solid var(--gray-100); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gradient); }
.service-tag { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(30,90,168,0.08); color: var(--deep-blue); font-size: 0.75rem; font-weight: 600; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.service-list { list-style: none; margin: 1.5rem 0; }
.service-list li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--gray-600); font-size: 0.9375rem; }
.service-list li::before { content: ''; position: absolute; left: 0; top: 1rem; width: 6px; height: 6px; border-radius: 50%; background: var(--deep-blue); }

/* ---- Contact Form ---- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; color: var(--dark-navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-200);
  border-radius: 8px; font-size: 0.9375rem; font-family: inherit;
  color: var(--dark-navy); background: var(--white); transition: all 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--deep-blue); box-shadow: 0 0 0 3px rgba(30,90,168,0.1); }
.form-group textarea { min-height: 150px; resize: vertical; }

/* ---- What We Do ---- */
.what-we-do-list { list-style: none; margin: 2rem 0; }
.what-we-do-list li { padding: 0.75rem 0 0.75rem 2rem; position: relative; font-size: 1.0625rem; color: var(--gray-600); }
.what-we-do-list li::before { content: ''; position: absolute; left: 0; top: 1.1rem; width: 8px; height: 8px; border-radius: 2px; background: var(--gradient); }

/* ---- Animations ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---- WordPress Core Overrides ---- */
.wp-block-image { margin: 0; }
.alignnone { margin: 0; }
a:focus { outline: 2px solid var(--deep-blue); outline-offset: 2px; }

/* ================================================================
   BLOG / INSIGHTS STYLES
   ================================================================ */

/* ---- Blog Header ---- */
.insights-header {
  background: #fff;
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
  position: relative;
}
.insights-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(199,58,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.insights-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.insights-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--dark-navy);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.insights-title span {
  background: linear-gradient(135deg, #C73A3A 0%, #1E5AA8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.insights-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

/* ---- Category Filter Bar ---- */
.category-filter-bar {
  background: #fff;
  border-bottom: 2px solid var(--gray-100);
  position: sticky;
  top: 70px;
  z-index: 90;
}
.category-filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
}
.category-filter-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: inherit;
  margin-bottom: -2px;
}
.cat-tab:hover { color: var(--dark-navy); }
.cat-tab.active {
  color: var(--dark-navy);
  border-bottom-color: #C73A3A;
}

/* ---- Insights Body ---- */
.insights-body { background: var(--gray-50); }

/* ---- Featured Hero ---- */
.featured-hero { padding: 2.5rem 0 0; }
.featured-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.featured-hero-card {
  display: block;
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  text-decoration: none;
  background: var(--dark-navy);
}
.featured-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.featured-hero-placeholder {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2a4d8a 100%);
}
.featured-hero-card:hover .featured-hero-image { transform: scale(1.03); }
.featured-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,50,0.92) 0%, rgba(10,20,50,0.6) 55%, rgba(10,20,50,0.1) 100%);
  display: flex;
  align-items: center;
}
.featured-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 580px;
  margin-left: max(2rem, calc(50vw - 600px));
}
.post-category-badge {
  display: inline-block;
  background: #C73A3A;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.featured-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.featured-hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.featured-hero-card:hover .featured-hero-cta { border-color: #fff; }

/* ---- Blog Section (category group) ---- */
.blog-section {
  padding: 3.5rem 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.blog-section-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--dark-navy);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.blog-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #C73A3A;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap 0.2s;
}
.blog-view-all:hover { gap: 0.65rem; }

/* ---- Post Card Grid ---- */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.post-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .post-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .post-card-grid, .post-card-grid-3 { grid-template-columns: 1fr; } }

/* ---- Post Card ---- */
.post-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow 0.25s, transform 0.25s; }
.post-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-3px); }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-card-image-wrap { position: relative; overflow: hidden; }
.post-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}
.post-card:hover .post-card-image { transform: scale(1.05); }
.post-card-placeholder {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2a4d8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #C73A3A;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.post-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-navy);
    line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-excerpt {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-400, #9ca3af);
  margin-top: auto;
}
.post-card-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gray-400, #9ca3af);
}

/* ================================================================
   SINGLE POST STYLES
   ================================================================ */

/* ---- Single Hero ---- */
.single-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.single-hero.no-image { background: var(--dark-navy); min-height: 280px; }
.single-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.95) 0%, rgba(10,20,50,0.5) 60%, rgba(10,20,50,0.2) 100%);
}
.single-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.single-hero-category {
  display: inline-block;
  background: #C73A3A;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  text-decoration: none;
  transition: background 0.2s;
}
.single-hero-category:hover { background: #a82d2d; }
.single-hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: 1.25rem;
}
.single-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
}
.single-hero-author { display: flex; align-items: center; gap: 0.35rem; }
.single-hero-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* ---- Single Body Layout ---- */
.single-body { padding: 3.5rem 0 4rem; background: #fff; }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .single-layout { grid-template-columns: 1fr; } .single-sidebar { order: -1; } }

/* ---- Article Content ---- */
.single-content { min-width: 0; }
.single-lede {
  font-size: 1.25rem;
  color: var(--gray-600, #4b5563);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-100);
}
.single-article-body { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-700, #374151); }
.single-article-body h2 { font-size: 1.75rem; font-weight: 800; color: var(--dark-navy); margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.single-article-body h3 { font-size: 1.375rem; font-weight: 700; color: var(--dark-navy); margin: 2rem 0 0.75rem; }
.single-article-body p { margin-bottom: 1.5rem; }
.single-article-body ul, .single-article-body ol { margin: 0 0 1.5rem 1.5rem; }
.single-article-body li { margin-bottom: 0.5rem; }
.single-article-body blockquote {
  border-left: 4px solid #C73A3A;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  font-size: 1.15rem;
  color: var(--dark-navy);
  font-style: italic;
}
.single-article-body img { width: 100%; height: auto; border-radius: 10px; margin: 2rem 0; }
.single-article-body a { color: #1E5AA8; text-decoration: underline; }

/* Tags & Share */
.single-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--gray-100); }
.single-tag {
  padding: 0.3rem 0.85rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--gray-600, #4b5563);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.single-tag:hover { background: rgba(30,90,168,0.08); border-color: #1E5AA8; color: #1E5AA8; }
.single-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.single-share-label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-500); }
.single-share-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  color: var(--dark-navy);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.single-share-btn:hover { background: var(--dark-navy); color: #fff; border-color: var(--dark-navy); }

/* ---- Sidebar ---- */
.single-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-author-card {
  background: var(--gray-50);
  border-radius: 14px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
}
.sidebar-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg,#C73A3A 0%,#1E5AA8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 800; color: #fff;
}
.sidebar-author-name { font-size: 0.9375rem; font-weight: 700; color: var(--dark-navy); display: block; }
.sidebar-author-role { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }
.sidebar-author-bio { grid-column: 1/-1; font-size: 0.8125rem; color: var(--gray-500); line-height: 1.6; margin: 0.25rem 0 0; }
.sidebar-author-link { grid-column: 1/-1; font-size: 0.8125rem; font-weight: 600; color: #1E5AA8; text-decoration: none; }
.sidebar-author-link:hover { text-decoration: underline; }

.sidebar-categories { background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 1.5rem; }
.sidebar-section-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400, #9ca3af); margin: 0 0 0.75rem; }
.sidebar-cat-link {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-navy);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-cat-link:last-child { border-bottom: none; }
.sidebar-cat-link:hover { color: #C73A3A; padding-left: 0.25rem; }

.sidebar-cta-card {
  background: var(--dark-navy);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.sidebar-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(135deg,#C73A3A 0%,#1E5AA8 100%);
}
.sidebar-cta-card h4 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.sidebar-cta-card p { color: rgba(255,255,255,0.65); font-size: 0.8125rem; line-height: 1.6; margin-bottom: 1.25rem; }

/* ---- Related Posts Section ---- */
.related-posts-section {
  padding: 3.5rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  .insights-title { font-size: 3.5rem; }
  .featured-hero-card { height: 380px; }
  .featured-hero-content { margin-left: 0; padding: 2rem 1.5rem; }
  .featured-hero-overlay { background: linear-gradient(to top, rgba(10,20,50,0.95) 0%, rgba(10,20,50,0.6) 60%, transparent 100%); align-items: flex-end; }
  .single-hero { min-height: 360px; }
}
