/* ================================================
   SkillsToPivot.com — Main Stylesheet
   Brand: Trustworthy, Clean, Career-Forward
   ================================================ */

/* === CSS Variables === */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #10b981;
  --success-light: #d1fae5;
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-gray: #f3f4f6;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: all 0.2s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--text-body); line-height: 1.7; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

/* Grid helpers */
.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; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo span { color: var(--secondary); }
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  background: none;
  border: none;
  transition: var(--transition);
}
.nav-dropdown-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.5rem;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-body);
}
.nav-dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.nav-dropdown-menu .menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: white !important; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  padding: 0.25rem;
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-body);
  font-weight: 500;
}
.nav-mobile-menu a:last-child { border-bottom: none; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  color: white;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 750px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-item { text-align: center; }
.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}
.btn-accent {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #d97706;
  border-color: #d97706;
  color: white;
  transform: translateY(-1px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

/* === SECTION HEADERS === */
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; }
.section-header.centered p { margin: 0 auto; }

/* === CARDS === */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.card-body { padding: 1.75rem; }
.card-header-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Certificate Card */
.cert-card { position: relative; }
.cert-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--success);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
}
.cert-card-badge.featured { background: var(--accent); color: #1a1a1a; }
.cert-card-icon-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cert-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cert-card-provider {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}
.cert-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.cert-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.cert-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.cert-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cert-card-meta-item i { color: var(--primary); font-size: 0.85rem; }
.cert-card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 1px; }
.rating-value { font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }
.rating-count { font-size: 0.8rem; color: var(--text-muted); }
.cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.cert-price-label { font-size: 0.75rem; color: var(--text-muted); display: block; }
.cert-price { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
.cert-price.free { color: var(--success); }

/* === FEATURE BOXES === */
.feature-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature-box:hover { background: var(--bg-light); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.feature-box h4 { margin-bottom: 0.375rem; }
.feature-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* === CATEGORY CHIPS === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}
.category-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.category-chip-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-gray);
}
.category-chip:hover .category-chip-icon { background: var(--primary-light); }
.category-chip-name { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
.category-chip-count { font-size: 0.75rem; color: var(--text-muted); }

/* === COMPARISON TABLE === */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table th {
  background: var(--secondary);
  color: white;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
}
.comparison-table th.highlight-col { background: var(--primary); }
.comparison-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-light); }
.comparison-table td.highlight-col { background: var(--primary-light); font-weight: 600; }
.check-yes { color: var(--success); font-size: 1.1rem; }
.check-no { color: #ef4444; font-size: 1.1rem; }
.check-partial { color: var(--accent); font-size: 1.1rem; }

/* === REVIEW SCORE BOX === */
.score-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.score-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.score-label { font-size: 0.875rem; opacity: 0.85; margin-top: 0.5rem; }
.score-bar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.score-bar-label { font-size: 0.875rem; color: var(--text-muted); min-width: 130px; }
.score-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.8s ease;
}
.score-bar-value { font-size: 0.875rem; font-weight: 700; color: var(--text-dark); min-width: 35px; text-align: right; }

/* === CALLOUT BOXES === */
.callout {
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}
.callout-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.callout h4 { margin-bottom: 0.375rem; font-size: 1rem; }
.callout p { margin: 0; font-size: 0.9rem; }
.callout-info { background: var(--primary-light); border-left: 4px solid var(--primary); }
.callout-success { background: var(--success-light); border-left: 4px solid var(--success); }
.callout-warning { background: var(--accent-light); border-left: 4px solid var(--accent); }
.callout-info h4 { color: var(--primary-dark); }
.callout-success h4 { color: #065f46; }
.callout-warning h4 { color: #92400e; }

/* === PROS / CONS === */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pros-box, .cons-box {
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pros-box { background: var(--success-light); border: 1px solid #a7f3d0; }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; }
.pros-box h4 { color: #065f46; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.cons-box h4 { color: #991b1b; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.pros-cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.pros-cons-list li::before { font-size: 0.85rem; flex-shrink: 0; margin-top: 0.1rem; }
.pros-box .pros-cons-list li::before { content: '✓'; color: var(--success); font-weight: bold; }
.cons-box .pros-cons-list li::before { content: '✕'; color: #ef4444; font-weight: bold; }

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-quote {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-quote::before { content: '"'; font-size: 2rem; color: var(--primary); line-height: 0; vertical-align: -0.5em; margin-right: 0.25rem; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.testimonial-title { font-size: 0.8rem; color: var(--text-muted); }

/* === STEPS / TIMELINE === */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 52px;
  bottom: -10px;
  width: 2px;
  background: var(--border);
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
}
.step-content { padding-top: 0.5rem; }
.step-content h4 { margin-bottom: 0.375rem; }
.step-content p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* === TAGS / BADGES === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-blue { background: var(--primary-light); color: var(--primary-dark); }
.tag-green { background: var(--success-light); color: #065f46; }
.tag-yellow { background: var(--accent-light); color: #92400e; }
.tag-gray { background: var(--bg-gray); color: var(--text-muted); }

/* === AFFILIATE DISCLOSURE NOTICE === */
.affiliate-notice {
  background: var(--accent-light);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.85rem;
  color: #78350f;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.affiliate-notice i { flex-shrink: 0; margin-top: 0.15rem; }

/* === NEWSLETTER / CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: white;
  color: var(--text-dark);
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { outline: 3px solid rgba(255,255,255,0.5); }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }

/* === SIDEBAR === */
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-link-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-link-list li:last-child { border-bottom: none; }
.sidebar-link-list a { font-size: 0.9rem; color: var(--text-body); }
.sidebar-link-list a:hover { color: var(--primary); }

/* === COURSE LAYOUT === */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
.article-content h2 { margin: 2.5rem 0 1rem; padding-top: 0.5rem; }
.article-content h3 { margin: 2rem 0 0.75rem; }
.article-content p { line-height: 1.8; margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.8;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--primary-dark);
  margin: 1.5rem 0;
}

/* === STICKY SIDEBAR === */
.sticky-sidebar { position: sticky; top: 90px; }

/* === HERO REVIEW === */
.review-hero {
  background: var(--bg-light);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.review-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

/* === HIGHLIGHT STAT BOXES === */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-box-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}
.stat-box-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* === FOOTER === */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-brand-name span { color: var(--accent); }
.footer-brand-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-col h5 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.footer-col ul a:hover { color: 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;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-disclosure {
  max-width: 500px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer-links a:hover { color: white; }

/* === SEARCH BAR === */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  max-width: 500px;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-bar input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: transparent;
}
.search-bar button {
  padding: 0.875rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1rem;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

/* === PAGE HEADER (Inner pages) === */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
  color: white;
  padding: 3.5rem 0 3rem;
}
.page-header h1 { color: white; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.875rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin: 0; }
.page-header-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.page-header-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}

/* === TABLE OF CONTENTS === */
.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.toc h4 { margin-bottom: 1rem; font-size: 0.95rem; }
.toc ol { counter-reset: toc-item; list-style: none; padding: 0; }
.toc ol li { counter-increment: toc-item; padding: 0.3rem 0; font-size: 0.875rem; }
.toc ol li::before { content: counter(toc-item) ". "; color: var(--primary); font-weight: 700; }
.toc ol li a { color: var(--text-body); }
.toc ol li a:hover { color: var(--primary); }

/* === BADGE RIBBONS === */
.ribbon-wrap { position: relative; overflow: hidden; }
.ribbon {
  position: absolute;
  top: 18px;
  left: -28px;
  background: var(--success);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 2.5rem;
  transform: rotate(-45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question .faq-icon { font-size: 1.25rem; transition: var(--transition); color: var(--primary); flex-shrink: 0; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
}
.faq-answer.open { display: block; }

/* === HIGHLIGHT BANNER (in page) === */
.highlight-banner {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-links, .nav-dropdown { display: none; }
  .nav-mobile-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-stats { gap: 1.5rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .review-hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner { padding: 3rem 1.5rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.75rem 0.875rem; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* === UTILITIES === */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.p-4 { padding: 2rem; }
.bg-light { background: var(--bg-light); }
.bg-gray { background: var(--bg-gray); }
.hidden { display: none; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* === ICON COLORS === */
.icon-blue { background: var(--primary-light); color: var(--primary); }
.icon-green { background: var(--success-light); color: var(--success); }
.icon-yellow { background: var(--accent-light); color: #d97706; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-red { background: #fee2e2; color: #dc2626; }
.icon-indigo { background: #e0e7ff; color: #4f46e5; }
.icon-teal { background: #ccfbf1; color: #0d9488; }
.icon-orange { background: #ffedd5; color: #ea580c; }
