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

:root {
  /* Colors - Clean Pro Blue Palette */
  --bg-body: #F8FAFC;
  --bg-sidebar: #1E293B;
  /* Dark Blue Sidebar for contrast */
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-on-sidebar: #FFFFFF;
  --accent-teal: #0D9488;
  --accent-teal-soft: rgba(13, 148, 136, 0.1);
  --accent-teal-hover: #0F766E;
  --border-color: #E2E8F0;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --sidebar-width: clamp(280px, 30vw, 450px);
  --container-max: 100%;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden; /* Prevent horizontal scrollbar */
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar Layout */
.layout-container {
  display: flex;
  min-height: 100vh;
}

#sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-on-sidebar);
  padding: 3rem 2.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 4rem 3rem; /* Adjusted for 30% sidebar */
  display: block;
}

.content-wrapper {
  width: 100%;
  max-width: var(--container-max);
}

/* Sidebar Elements */
.profile-area {
  text-align: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 6px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.sidebar-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  color: var(--text-on-sidebar);
}

.sidebar-bio {
  font-size: 1rem;
  color: #94A3B8;
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.nav-menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

/* 
   Layout Utilities 
   These classes replace repetitive inline styles
*/

.section-padding {
  padding: 4.5rem 0;
}

.section-airy {
  padding: 1.5rem 0;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.container-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.grid-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2rem;
  width: 100%;
}

@media (max-width: 1200px) {
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Foolproof 3-Column Grid for Tools & Tips */
.v7-grid-3col {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2rem !important;
  width: 100% !important;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1400px) {
  .v7-grid-3col, .grid-features {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .v7-grid-3col, .grid-features {
    grid-template-columns: 1fr !important;
  }
}

/* Reusable Grid Card - V7 Style */
.card-v7 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0; /* Important for grid items to prevent overflow and ensure equal width */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.card-v7:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-teal);
}

.card-v7 h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  /* Line Clamping for tidiness */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2rem; 
}

.card-v7 .grid-stats {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card-v7 .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  display: block;
}

.card-v7 .stat-value {
  color: var(--text-main);
  font-weight: 900;
  font-size: 1.15rem;
}

.card-v7 .card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-v7 .card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-accent {
  color: var(--accent-teal);
}

.text-muted {
  color: var(--text-muted);
}

.text-large {
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.hero-title span {
  color: var(--accent-teal);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 3rem;
}

.btn-outline {
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.05);
}

/* Glassmorphism Normalize */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.5rem;
}

.nav-link {
  display: block;
  padding: 1rem 0;
  color: var(--text-on-sidebar);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-blue);
}

/* Content Area */
h1,
h2,
h3,
h4 {
  color: var(--text-main);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--accent-blue);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-teal);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-teal-hover);
}

/* ═══════════════════════════════════════════════
   V7 — Bespoke Executive Components
   ═══════════════════════════════════════════════ */

/* --- Dark Hero Section --- */
.about-hero-v7 {
  background: white;
  color: var(--text-main);
  padding: 4.5rem 0 0.5rem;
  margin: 0;
  position: relative;
}

.about-hero-v7::before {
  display: none;
}

.about-hero-v7 .hero-label, .hero-badge-v7 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-teal);
  margin-bottom: 1.25rem;
  display: inline-block;
  background: var(--accent-teal-soft);
  padding: 0.4rem 1rem;
  border-radius: 20px;
}

.about-hero-v7 h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

/* --- Pro Content Styles (Universal) --- */
.pro-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-main);
}

.pro-content h1,
.pro-content h2,
.pro-content h3 {
  margin: 2.5rem 0 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.pro-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  border-left: 4px solid var(--accent-teal);
  padding-left: 1.25rem;
  margin-top: 3.5rem;
}

.pro-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
}

.pro-content p {
  margin-bottom: 1.75rem;
}

.pro-content ul, 
.pro-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.pro-content li {
  margin-bottom: 0.75rem;
}

.pro-content blockquote {
  border-left: 4px solid var(--border-color);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 2rem 0;
}

.pro-content figure {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.pro-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Index Page Refinements --- */
.index-header {
  padding: 4rem 0 2rem;
  margin-bottom: 1.5rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Removed duplicate .card-v7 definitions */

.about-hero-v7 .hero-tagline, .hero-subtitle-v7 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 750px;
}

/* --- Stats Row (Filled Cards) --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 0 0 1rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.stat-card .stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-card .stat-desc {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* --- Authority Bar (Trust Stats) --- */
.authority-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 2.5rem 0;
  text-align: center;
}

.authority-stat .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.5rem;
}

.authority-stat .stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
}

/* --- Evidence/Results Grid --- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.result-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-md);
}

.result-card .growth-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-teal);
  background: var(--accent-teal-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.result-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.result-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Removed dark variants for minimalist compatibility */

/* --- Two-Column Intro --- */
.about-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
}

.about-intro .intro-text {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #334155;
  text-align: justify;
  hyphens: auto;
}

.about-intro .intro-text p {
  margin-bottom: 1.5rem;
}

.about-intro .intro-highlights {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2.5rem;
}

.about-intro .intro-highlights h3 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.highlight-item:last-child {
  margin-bottom: 0;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-weight: 900;
  font-size: 0.85rem;
}

.highlight-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Expertise Grid (Accent-Bordered Cards) --- */
.expertise-section h2 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.expertise-card {
  background: white;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 10px 10px 0;
  padding: 2.25rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-left-color: var(--accent-blue-hover);
}

.expertise-card:nth-child(2) {
  border-left-color: #10B981;
}

.expertise-card:nth-child(2):hover {
  border-left-color: #059669;
}

.expertise-card:nth-child(3) {
  border-left-color: #F59E0B;
}

.expertise-card:nth-child(3):hover {
  border-left-color: #D97706;
}

.expertise-card .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.expertise-card:nth-child(2) .card-label {
  color: #10B981;
}

.expertise-card:nth-child(3) .card-label {
  color: #F59E0B;
}

.expertise-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.expertise-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* --- Credentials Section --- */
.credentials-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.credentials-section h2 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.credential-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.credential-marker {
  width: 10px;
  height: 10px;
  background: var(--accent-teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.credential-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.credential-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cert-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  padding: 0.6rem 1.1rem;
  background: #F1F5F9;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}

.cert-badge:hover {
  background: var(--accent-teal);
  color: white;
  border-color: var(--accent-teal);
  transform: translateY(-1px);
}

/* Responsive V7 */
@media (max-width: 1400px) {
  .about-hero-v7 h1 {
    font-size: 3.5rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .credentials-section {
    grid-template-columns: 1fr;
  }
}


/* Mobile Nav Header */
.mobile-nav {
  display: none;
  background: var(--bg-sidebar);
  color: white;
  padding: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-logo {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

#menu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: flex;
  }

  #sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
  }

  #sidebar.active {
    left: 0;
  }

  /* Overlay when active */
  #sidebar.active::after {
    content: "";
    position: fixed;
    top: 0;
    left: 280px;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
  }

  .layout-container {
    flex-direction: column;
  }

  .main-content {
    margin-left: 0;
    padding: 3rem 1.5rem !important;
  }

  .kpi-ribbon {
    flex-direction: column;
    gap: 3rem;
  }

  .pillar-grid-v6 {
    grid-template-columns: 1fr !important;
  }

  .authority-footer-v6 {
    grid-template-columns: 1fr;
  }
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

/* --- Icon Utilities --- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-radius: 8px;
  margin-right: 1rem;
}

.nav-sub-menu {
  list-style: none;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
  margin-bottom: 1rem;
  display: none; /* Hidden by default */
  overflow: hidden;
}

.nav-sub-menu.active {
  display: block;
}

.nav-sub-link {
  display: block;
  padding: 0.55rem 0;
  color: rgba(255, 255, 255, 0.7); /* High visibility on dark sidebar */
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-sub-link:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

.nav-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  font-weight: 700 !important;
  color: var(--text-muted);
}

.nav-toggle::after {
  content: "▾";
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.nav-toggle.active::after {
  transform: rotate(180deg);
}

/* About Page Specifics */
.academic-research-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.research-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.research-link {
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.research-link:hover {
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.stack-grid-v7 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stack-card-v7 {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stack-card-v7:hover {
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-md);
}

.stack-card-v7 h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.stack-card-v7 ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.stack-card-v7 li {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
}
/* Removed li::before dot to avoid double bullets */

@media (max-width: 900px) {
  .academic-research-grid, .stack-grid-v7 {
    grid-template-columns: 1fr;
  }
}

/* Removed duplicate about-hero-v7 definitions */

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
  gap: 1.25rem;
}

.icon-box {
  width: 48px;
  height: 48px;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-sm {
  width: 32px;
  height: 32px;
}

.icon-box svg {
  width: 60%;
  height: 60%;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-teal);
  border-radius: 2px;
}

.section-header h2 {
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: -0.01e;
}

/* --- Client Portfolio Section --- */
.client-category-section {
  margin-bottom: 4rem;
}

.client-category-section:last-child {
  margin-bottom: 0;
}

.client-category-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.client-category-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
}

.client-logo-item {
  width: 100%;
  max-width: 180px;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.client-logo-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 85px;
}

@media (max-width: 640px) {
  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .client-logo-item img {
    max-height: 60px;
  }
}

.logo-xl img {
  max-height: 110px !important;
}

.logo-sm img {
  max-height: 55px !important;
}

/* --- Voices of Authority: Testimonials --- */
.testimonial-grid-v7 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
  align-items: start;
}

.testimonial-card-v7 {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: normal;
  position: relative;
}

@media (max-width: 800px) {
  .testimonial-grid-v7 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --- Academic & Credential Components --- */
.credential-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-item strong {
  font-size: 1.15rem;
  display: block;
  color: var(--text-main);
  line-height: 1.3;
}

.credential-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.credential-marker {
  width: 12px;
  height: 12px;
  background: var(--accent-teal);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--accent-teal-soft);
}

.cert-badges {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.cert-badge:hover {
  border-color: var(--accent-teal);
  transform: translateX(4px);
  color: var(--accent-teal);
}

.research-icons {
  display: flex;
  margin-top: 1.25rem;
  gap: 1.25rem;
}

.research-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: white;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.research-link:hover {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

.research-link svg {
  width: 20px;
  height: 20px;
}

/* --- Authority Card Components (Home) --- */
.authority-card-v7 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--accent-teal-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.authority-card-v7 .card-content {
  padding: 2.5rem;
  background: var(--accent-teal-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.authority-card-v7 .card-media {
  height: 100%;
  min-height: 320px;
  background: white;
  border-left: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.authority-card-v7 .card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top left;
  display: block;
}

.authority-card-v7.card-yellow {
  border-color: #FACC15;
}

.authority-card-v7.card-yellow .card-content {
  background: #FEFCE8;
}

.authority-card-v7.card-yellow .card-media {
  background: white;
  padding: 2rem;
}

.authority-card-v7.card-yellow .badge-yellow {
  background: #FEF08A;
  color: #854D0E;
}

@media (max-width: 768px) {
  .authority-card-v7 {
    grid-template-columns: 1fr;
  }
  
  .authority-card-v7 .card-media {
    min-height: 250px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}