/* ===== Global Styles for WealthPilot ===== */

:root {
  /* Color System */
  --background: #080808;
  --foreground: #f4f7f5;
  --card: #131a17;
  --card-foreground: #f4f7f5;
  --muted: #1c2421;
  --muted-foreground: #8b9a94;
  --border: #243029;
  --primary: #14f4f4;
  --primary-foreground: #ffffff;
  --secondary: #d99a25;
  --secondary-foreground: #0a0f0d;
  --accent: #d85f48;
  --accent-foreground: #ffffff;
  --ring: #1e8a6a;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html, body {
    overflow-x: hidden; /* Stops horizontal scrolling/zoom issues */
    width: 100%;
    margin: 0;
    padding: 0;
}

img, video, canvas, svg {
    max-width: 100%; /* Ensures images don't push the screen wide */
    height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

/* ===== Floating Navigation ===== */
.floating-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 40px;
  z-index: 1000;
  transition: box-shadow var(--transition-normal);
}

.floating-nav:hover {
  box-shadow: 0 8px 32px rgba(30, 138, 106, 0.15);
}

.nav-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(30, 138, 106, 0.3);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  border-radius: 50%;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
  transform: scale(1.05);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(30, 138, 106, 0.15);
}

.nav-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
}

.nav-link:hover[data-tooltip]::after {
  opacity: 1;
  visibility: visible;
}

/* ===== Main Content Area ===== */
.main-content {
  margin-left: 96px;
  min-height: 100vh;
  padding: 40px 48px;
  max-width: 1400px; /* Limit the super wide spread */
  margin-right: auto;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--muted);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  width: fit-content;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--foreground);
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: #167a5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 138, 106, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--muted);
  border-color: var(--muted-foreground);
}

/* ===== Section Styles ===== */
.section {
  padding: 120px 0;
}

.section-header {
  margin-bottom: 48px;
  margin-left: 48px
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 600px;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--primary);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===== Tools Grid ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.tool-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(30, 138, 106, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 16px;
}

.tool-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--foreground);
}

.tool-description {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 20px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.tool-link svg {
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-link svg {
  transform: translateX(4px);
}

/* ===== Blog Grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  
  /* Clean shadow */
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 1px rgba(20, 244, 244, 0.05);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(20, 244, 244, 0.12);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, #0a2e2a 0%, #142420 50%, #0a1f1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  position: relative;
}

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

.blog-image svg,
.blog-image img {
 width:100%;
  height:100%;
  object-fit: cover;
  display: block;
}

.blog-card:hover .blog-image svg,
.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.blog-meta span:first-child {
  color: var(--primary);
}

.blog-meta span:last-child {
  color: var(--primary);
  text-align: right;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--foreground);
  line-height: 1.35;
  transition: color var(--transition-normal);
}

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

.blog-excerpt {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.blog-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 800;
  border-radius: 8px;
}

.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-text {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.custom-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Removes the bottom whitespace gap in inline elements */
}

/* ===== Updated Hero Section & Cyan Glow Theme ===== */

/* 1. Hero Container 2-Column Grid */
.hero-container {
  min-height: 80vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 40px;
  padding: 70px 0;
  padding-top: 110px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 2. Top Pill Badge */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(14, 28, 44, 0.8);
  border: 1px solid rgba(20, 244, 244, 0.25);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(20, 244, 244, 0.1);
}

.pill-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

/* 3. Uppercase Cyan Eyebrow */
.hero-eyebrow-cyan {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* 4. Main Heading & Line Breaks */
.hero-heading {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.highlight-cyan {
  color: var(--primary);
  text-shadow: 0 0 30px rgba(20, 244, 244, 0.35);
}

/* 5. Subtitle */
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* 6. Buttons */
.btn-primary-cyan {
  background: var(--primary);
  color: #041217;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(20, 244, 244, 0.35);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(20, 244, 244, 0.55);
  background: #25ffff;
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.03);
  color: var(--foreground);
  border: 1px solid var(--border);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 7. Right Column Visual Graphic */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 380px;
  margin-right: auto;
}

.cube-graphic-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Hexagon / Cube Glowing Logo */
.glowing-cube {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(20, 244, 244, 0.15) 0%, rgba(8, 8, 8, 0.8) 80%);
  border: 2px solid var(--primary);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 50px rgba(20, 244, 244, 0.3),
    inset 0 0 20px rgba(20, 244, 244, 0.15);
  transform: rotate(-6deg);
  transition: transform 0.4s ease;
}

.glowing-cube:hover {
  transform: rotate(0deg) scale(1.03);
}

.cube-inner {
  width: 90px;
  height: 90px;
  border: 1.5px solid rgba(20, 244, 244, 0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-logo-c {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary);
}

/* Floating Badges */
.hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 22, 33, 0.85);
  border: 1px solid rgba(20, 244, 244, 0.25);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.hero-floating-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(20, 244, 244, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

/* Floating Badges Positions */
.badge-ai { top: 12%; left: 12%; }
.badge-cover { top: 8%; right: 8%; }
.badge-career { top: 48%; left: -5%; }
.badge-tools { top: 38%; right: -2%; }
.badge-community { bottom: 12%; right: 10%; }

/* 1. Heading Gradient & Typography */
.hero-heading {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Specific styling for the last line of the heading */
/* Assuming you wrap the last line in a span or use a specific selector */
.hero-heading span.cyan-gradient {
  background: linear-gradient(90deg, #14f4f4 0%, #00d1ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 2. Enhanced Buttons */
.hero-cta {
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Primary Button */
.hero-cta .primary-button { /* Adjust selector to your primary button class */
  background: linear-gradient(135deg, #14f4f4 0%, #0ebdbd 100%);
  box-shadow: 0 0 20px rgba(20, 244, 244, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  font-weight: 600;
}

.hero-cta .primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(20, 244, 244, 0.5);
}

/* Secondary Button */
.hero-cta .secondary-button { /* Adjust selector to your secondary button class */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* 3. Hero Pill Glassmorphism */
.hero-pill {
  background: rgba(14, 28, 44, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(20, 244, 244, 0.15);
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* 4. Layout & Spacing */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem; /* More space between text and visual */
}


/* Mobile Responsiveness for Hero */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-visual {
    margin-top: 20px;
    min-height: 300px;
  }

  .badge-career { left: 5%; }
  .badge-tools { right: 5%; }

  .hero-heading span.cyan-gradient {
  background: linear-gradient(90deg, #14f4f4 0%, #00d1ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
}



/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
  .floating-nav {
    left: 50%;
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 10px 12px;
    border-radius: 30px;
    gap: 4px;
    max-width: 90vw;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  
  .nav-logo {
    margin-bottom: 0;
    margin-right: 4px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .nav-links {
    flex-direction: row;
    gap: 2px;
    display: flex;
    flex-wrap: nowrap;
  }
  
  .nav-link {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  
  .nav-link svg {
    width: 18px;
    height: 18px;
  }
  
  .nav-link[data-tooltip]::after {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    padding: 24px 16px 100px;
  }
  
  .hero {
    min-height: auto;
    padding: 60px 0;
  }
}

/* ===== Small Mobile Screens (< 480px) ===== */
@media (max-width: 480px) {
  .floating-nav {
    bottom: 12px;
    padding: 8px 10px;
    gap: 2px;
  }
  
  .nav-logo {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    margin-right: 2px;
    background: transparent
  }
  
  .nav-link {
    width: 32px;
    height: 32px;
  }
  
  .nav-link svg {
    width: 16px;
    height: 16px;
  }
  
  .main-content {
    padding: 20px 12px 90px;
  }
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ===== Tool Page Specific ===== */
.tool-page {
  margin-left: 96px;
}

/* --- Optimized Mobile Styles (Screens smaller than 768px) --- */
@media screen and (max-width: 768px) {
  
  /* 1. Global Reset to prevent shifting and horizontal scroll */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  .main-content, .tool-page {
    margin-left: 0 !important;
    padding: 20px !important;
  }

  section, .hero, .section {
    padding: 40px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  /* 2. Navbar Fix - Centered at Bottom */
  .floating-nav {
    display: flex !important;
    position: fixed !important;
    left: 50% !important;
    bottom: 20px !important;
    transform: translateX(-50%) !important; /* This is crucial for centering */
    z-index: 9999 !important;
    width: auto !important;
    flex-direction: row !important;
  }

  /* 3. Typography Adjustments */
  .hero-h1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  /* 4. Grid Layouts (Blog & Tools & Cards) */
  .blog-grid, .tools-grid, .card-grid, .grid-layout {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Force single column */
    width: 100% !important;
    gap: 20px !important;
    padding: 0 !important;
  }

  .tool-card, .blog-card, .card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* 5. Footer Layout Fix */
  .footer-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
    gap: 24px !important;
  }

  .footer-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px 20px !important;
    width: 100% !important;
  }
}

/* Responsive Grid for Certifications & Learning */
.certs-learning-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: Stacks on mobile */
    gap: 30px;
    width: 100%;
}

@media (min-width: 768px) {
    .certs-learning-grid {
        grid-template-columns: 1fr 1fr; /* Desktop: Side-by-side */
        gap: 40px;
    }
}

.skill-pill {
    background: var(--accent, #f3f4f6);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Force spacing between all skill and content cards */
.about-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 32px !important; /* Space between rows and columns */
    width: 100% !important;
    margin-top: 40px !important;
}

/* Ensure individual cards look uniform */
.about-grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Badge-style Titles */
.section-badge {
    display: inline-block;
    background-color: var(--accent, #FF6B4A);
    color: var(--primary, #007bff);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid var(--accent, #e5e7eb);
}

/* Center Journey and Professional sections on Desktop */
@media (min-width: 768px) {
    
    /* Center the Titles */
    .section-badge {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* Center the Journey Timeline */
    .timeline {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        text-align: left; /* Detail text stays readable */
    }

    /* Center the Professional Background card */
    .prof-card {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        text-align: left; /* Summary text stays readable */
    }
}

/* ===== Info & Highlight Boxes ===== */
.highlight-box,
.info-box {
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.highlight-box {
  background: rgba(30, 138, 106, 0.08);
  border-left-color: var(--primary);
}

.info-box {
  background: rgba(52, 120, 184, 0.08);
  border-left-color: #3478b8;
}

.highlight-box h3,
.info-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.highlight-box p,
.info-box p {
  margin: 0;
  color: var(--foreground);
  font-size: 0.95rem;
}

/* =========================================================
   CYVORA PREMIUM HERO
   ========================================================= */

.hero.hero-container {
  width: 100%;
  margin-left: 0;


  display: grid;
  gap: 45px;

  align-items: stretch;
  padding-bottom: 40px;
}

/* Main hero card */
.hero-main {
  min-height: 420px;

  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  align-items: center;

  position: relative;
  overflow: hidden;

  padding: 42px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;

  background:
    radial-gradient(
      circle at 75% 50%,
      rgba(0, 212, 255, 0.08),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #02070d 0%,
      #030912 50%,
      #02050a 100%
    );

  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Subtle background glow */
.hero-main::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;

  right: 120px;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0, 200, 255, 0.05);
  filter: blur(80px);

  pointer-events: none;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;

  max-width: 480px;
}

/* Small pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;

  margin-bottom: 28px;

  border: 1px solid rgba(0, 220, 255, 0.18);
  border-radius: 999px;

  background: rgba(0, 200, 255, 0.05);

  color: #a8f5ff;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Pill dot */
.pill-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #22d3ee;

  box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
}

/* Eyebrow */
.hero-eyebrow-cyan {
  margin-bottom: 10px;

  color: #22d3ee;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.13em;
}

/* Heading */
.hero-heading {
  margin: 0;

  color: #f8fafc;

  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;

  font-weight: 700;
}

.highlight-cyan {
  color: #22d3ee;

  text-shadow:
    0 0 30px rgba(34, 211, 238, 0.20);
}

/* Description */
.hero-subtitle {
  max-width: auto;

  color: #8b98a9;

  font-size: 15px;
  line-height: 1.65;
}

/* CTA */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;

  flex-wrap: wrap;
}

/* Buttons */
.hero-cta .btn {
  min-height: 38px;

  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border-radius: 6px;

  font-size: 11px;
  font-weight: 600;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-cta .btn:hover {
  transform: translateY(-2px);
}

.btn-primary-cyan {
  color: #001014;

  background: #22d3ee;

  box-shadow:
    0 8px 25px rgba(34, 211, 238, 0.20);
}

.btn-primary-cyan:hover {
  background: #67e8f9;

  box-shadow:
    0 10px 30px rgba(34, 211, 238, 0.30);
}

.btn-secondary-dark {
  color: #d6dee8;

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary-dark:hover {
  border-color: rgba(34, 211, 238, 0.35);

  background: rgba(34, 211, 238, 0.04);
}

/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
  min-width: 0;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
  min-height: 460px;
  margin-bottom: auto
}

.hero-image {
  display: block;
  width: 105%;
  max-width: 520px;
  height: auto;
  filter:
    drop-shadow(0 0 25px rgba(0, 190, 255, 0.10));

  transform: scale(1.08);

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.hero-visual:hover .hero-image {
  transform: scale(1.04);

  filter:
    drop-shadow(0 0 40px rgba(0, 210, 255, 0.20));
}

/* =========================================================
   WHY BETTER
   ========================================================= */

.hero-benefits {
  align-self: center;

  padding: 10px 0;
}

.hero-benefits h2 {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 18px;

  color: #f8fafc;

  font-size: 16px;
  font-weight: 700;
}

.benefit-check {
  width: 18px;
  height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #22d3ee;
  color: #001014;

  font-size: 12px;
  font-weight: 900;
}

.hero-benefits ul {
  margin: 0;
  padding-left: 20px;
}

.hero-benefits li {
  margin-bottom: 16px;

  color: #8b98a9;

  font-size: 13px;
  line-height: 1.55;
}

.hero-benefits strong {
  color: #dbe5ef;
  font-weight: 600;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .hero.hero-container {
    grid-template-columns: 1fr;
  }

  .hero-benefits {
    max-width: 700px;

    margin: 0 auto;
  }

  .hero-benefits ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .hero.hero-container {
    width: min(100% - 24px, 600px);

    margin-top: 20px;

    gap: 24px;
  }

  .hero-main {
    min-height: auto;

    grid-template-columns: 1fr;

    padding: 28px 22px 20px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-pill {
    margin-bottom: 20px;
  }

  .hero-heading {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 230px;

    order: 2;
  }

  .hero-image {
    width: 100%;
    max-width: 420px;

    transform: scale(1);
  }

  .hero-visual:hover .hero-image {
    transform: scale(1.02);
  }

  .hero-benefits {
    padding: 0 8px;
  }

  .hero-benefits ul {
    display: block;
  }

  .hero-benefits li {
    margin-bottom: 12px;
  }
}

.hero-content {
  transform: translateX(50px);
}

/* 1. Improve Headline Readability */
.hero-content h1 {
  font-size: 2rem; /* approx 32px */
  line-height: 1.3; /* Increased from 1.1 for better legibility */
  text-align: left;
  margin-bottom: 20px;
}

/* 2. Standardize Vertical Spacing */
.hero-content > * {
  margin-bottom: 20px !important;
}

/* 3. Center and Scale CTAs */
.hero-content .cta-container { /* Replace with your actual CTA wrapper selector */
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: center;
}

.hero-content .cta-container a.button {
  width: 100%; /* Full width buttons are easier to tap on mobile */
  max-width: 300px;
  text-align: center;
}

/* 4. Ensure Hero Image doesn't distort */
.hero-visual img {
  width: 100%;
  height: auto;
  max-width: 400px; /* Prevent image from getting too large on tablets */
  object-fit: contain;
  margin-top: 30px; /* Space between text and image */
}

/* This code only runs on screens smaller than 768px wide */
@media screen and (max-width: 768px) {
  
  /* 1. Remove the rightward shift and align the container to the left */
  .hero-content {
    transform: none !important;        /* Removes that 50px right shift */
    align-items: flex-start !important; /* Aligns content to the left */
    text-align: left !important;        /* Sets text to the left */
    width: 100% !important;
    padding-left: 0 !important;
  }

  /* 2. Align individual elements to the left */
  .hero-eyebrow-cyan, 
  .hero-heading, 
  .hero-subtitle {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* 3. Stack buttons vertically and align them to the left */
  .hero-cta {
    display: flex !important;
    flex-direction: column !important; /* Stacks buttons on top of each other */
    align-items: flex-start !important; /* Aligns them to the left */
    gap: 12px !important;
    width: 100% !important;
  }

  /* 4. Optional: Make buttons full-width for easier tapping on mobile */
  .hero-cta .btn {
    width: 100% !important;
    max-width: 280px; /* Limits width so they don't look too huge */
    text-align: center;
  }
}

/* In both styles.css and Style_sheets/homepage-new.css (or a shared responsive file) */
@media (max-width: 768px) {
  .section-header, 
  .discovery-grid {
    margin-left: 0 !important;
  }
}

/* =========================================================
   LATEST INSIGHTS — FEATURED EDITORIAL LAYOUT
   ========================================================= */

#blogs-preview {
  position: relative;
}


/* ---------------------------------------------------------
   FEATURED BLOG
   --------------------------------------------------------- */

.featured-blog {
  width: 100%;
}


/* Main featured card */

.featured-blog-card {
  position: relative;

  display: grid;
  grid-template-columns: 1.08fr 1fr;

  min-height: 390px;

  overflow: hidden;

  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(14, 24, 22, 0.96),
      rgba(7, 14, 14, 0.98)
    );

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.22);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


.featured-blog-card::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(0, 255, 255, 0.08),
      transparent 35%
    );

  opacity: 0;

  transition: opacity 0.3s ease;
}


.featured-blog-card:hover {
  transform: translateY(-4px);

  border-color: rgba(0, 255, 255, 0.42);

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(0, 255, 255, 0.06);
}


.featured-blog-card:hover::before {
  opacity: 1;
}


/* ---------------------------------------------------------
   FEATURED IMAGE
   --------------------------------------------------------- */

.featured-blog-image {
  position: relative;

  min-height: 390px;

  overflow: hidden;

  background: #07100f;
}


.featured-blog-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 65%,
      rgba(7, 14, 14, 0.85) 100%
    );

  pointer-events: none;
}


.featured-blog-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.55s ease,
    filter 0.55s ease;
}


.featured-blog-card:hover .featured-blog-image img {
  transform: scale(1.04);

  filter: brightness(1.06);
}


/* ---------------------------------------------------------
   FEATURED CONTENT
   --------------------------------------------------------- */

.featured-blog-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;

  justify-content: center;

  padding: 42px 46px;
}


.featured-blog-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;
}


.featured-badge {
  display: inline-flex;

  align-items: center;

  padding: 7px 13px;

  border-radius: 999px;

  background: rgba(0, 255, 255, 0.08);

  border: 1px solid rgba(0, 255, 255, 0.12);

  color: #00ffff;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.featured-read-time {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 13px;
}


.featured-read-time svg {
  color: rgba(255, 255, 255, 0.55);
}


.featured-blog-category {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 13px;

  color: #00dfe3;

  font-size: 13px;
  font-weight: 600;
}


.featured-blog-title {
  max-width: 650px;

  margin: 0 0 18px;

  color: #f5f7f7;

  font-size: clamp(27px, 3vw, 39px);

  line-height: 1.13;

  letter-spacing: -0.025em;
}


.featured-blog-excerpt {
  max-width: 600px;

  margin: 0;

  color: rgba(255, 255, 255, 0.62);

  font-size: 15px;

  line-height: 1.75;
}


.featured-blog-link {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  width: fit-content;

  margin-top: 28px;

  color: #00ffff;

  font-size: 15px;
  font-weight: 700;

  transition:
    gap 0.25s ease,
    color 0.25s ease;
}


.featured-blog-card:hover .featured-blog-link {
  gap: 14px;
}


/* ---------------------------------------------------------
   SECONDARY INSIGHTS
   --------------------------------------------------------- */

.insight-secondary-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;

  margin-top: 28px;
}


.insight-secondary-card {
  display: grid;

  grid-template-columns: 0.82fr 1.18fr;

  min-height: 270px;

  overflow: hidden;

  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.11);

  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      rgba(14, 24, 22, 0.95),
      rgba(7, 13, 13, 0.98)
    );

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}


.insight-secondary-card:hover {
  transform: translateY(-4px);

  border-color: rgba(0, 255, 255, 0.32);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.25);
}


/* ---------------------------------------------------------
   SECONDARY IMAGE
   --------------------------------------------------------- */

.insight-secondary-image {
  position: relative;

  min-height: 270px;

  overflow: hidden;

  background: #080c0c;
}


.insight-secondary-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent 55%,
      rgba(7, 14, 14, 0.78) 100%
    );
}


.insight-secondary-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 800;
  overflow: hidden;

  display: block;
  position: relative;

}


.insight-secondary-card:hover .insight-secondary-image img {

  width: 100%;
  height: 100%;
  display: center;
  transform: scale(1.05);

  filter: brightness(1.05);
}




/* ---------------------------------------------------------
   AI PLACEHOLDER IMAGE
   --------------------------------------------------------- */

.insight-ai-image {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      rgba(0, 255, 255, 0.14),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      #071615,
      #081313
    );
}


.insight-ai-image::before {
  content: "";

  position: absolute;

  width: 145px;
  height: 145px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(0, 255, 255, 0.18),
      transparent 68%
    );

  filter: blur(10px);
}


.insight-ai-image svg {
  position: relative;
  z-index: 2;

  color: rgba(130, 220, 218, 0.7);
}


.ai-image-glow {
  position: absolute;

  width: 90px;
  height: 90px;

  border: 1px solid rgba(0, 255, 255, 0.18);

  border-radius: 20px;

  transform: rotate(45deg);
}


/* ---------------------------------------------------------
   SECONDARY CONTENT
   --------------------------------------------------------- */

.insight-secondary-content {
  display: flex;

  flex-direction: column;

  padding: 28px 27px;
}


.insight-secondary-meta {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 17px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 11px;
  font-weight: 600;
}


.insight-category {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: #00dfe3;
}


.insight-secondary-content h3 {
  margin: 0 0 13px;

  color: #f1f5f4;

  font-size: 20px;

  line-height: 1.3;

  letter-spacing: -0.015em;
}


.insight-secondary-content p {
  margin: 0;

  color: rgba(255, 255, 255, 0.54);

  font-size: 13px;

  line-height: 1.65;
}


.insight-secondary-link {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-top: auto;
  padding-top: 20px;

  color: #00ffff;

  font-size: 13px;
  font-weight: 700;

  transition: gap 0.25s ease;
}


.insight-secondary-card:hover .insight-secondary-link {
  gap: 13px;
}


/* ---------------------------------------------------------
   VIEW ALL
   --------------------------------------------------------- */

.insights-view-all {
  margin-top: 27px;
}


.insights-view-all .section-cta {
  display: inline-flex;

  align-items: center;

  gap: 9px;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .featured-blog-card {
    grid-template-columns: 1fr;

    min-height: auto;
  }


  .featured-blog-image {
    min-height: 300px;

    max-height: 340px;
  }


  .featured-blog-image::after {
    background:
      linear-gradient(
        180deg,
        transparent 60%,
        rgba(7, 14, 14, 0.8) 100%
      );
  }


  .featured-blog-content {
    padding: 34px;
  }


  .insight-secondary-card {
    grid-template-columns: 1fr;

    min-height: auto;
  }


  .insight-secondary-image {
    min-height: 220px;
    max-height: 240px;
  }


  .insight-secondary-image::after {
    background:
      linear-gradient(
        180deg,
        transparent 60%,
        rgba(7, 14, 14, 0.8) 100%
      );
  }


  .insight-secondary-content {
    min-height: 245px;
  }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 640px) {

  .featured-blog-card {
    border-radius: 15px;
  }


  .featured-blog-image {
    min-height: 230px;
    max-height: 250px;
  }


  .featured-blog-content {
    padding: 26px 23px 28px;
  }


  .featured-blog-top {
    margin-bottom: 19px;
  }


  .featured-blog-title {
    font-size: 26px;

    line-height: 1.18;
  }


  .featured-blog-excerpt {
    font-size: 14px;

    line-height: 1.65;
  }


  .featured-blog-link {
    margin-top: 23px;
  }


  .insight-secondary-grid {
    grid-template-columns: 1fr;

    gap: 17px;

    margin-top: 17px;
  }


  .insight-secondary-card {
    grid-template-columns: 1fr;
  }


  .insight-secondary-image {
    min-height: 190px;
    max-height: 210px;
  }


  .insight-secondary-content {
    min-height: auto;

    padding: 23px;
  }


  .insight-secondary-content h3 {
    font-size: 19px;
  }


  .insight-secondary-content p {
    font-size: 13px;
  }


  .insight-secondary-link {
    margin-top: 18px;
  }


  .insights-view-all {
    margin-top: 22px;
  }

}