/* ===== INDUSTRY PAGES READABILITY ENHANCEMENT ===== */
/* Critical fixes for jumbled sections and hard-to-read text */

/* ===== SECTION SPACING AND BREATHING ROOM ===== */

.industry-detail-page section {
  margin-bottom: var(--space-20, 5rem);
  position: relative;
}

.industry-detail-page section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: calc(var(--space-10, 2.5rem) * -1);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
}

/* ===== IMPROVED TEXT READABILITY ===== */

.industry-detail-page {
  font-size: 16px;
  line-height: 1.7;
  color: #1e293b;
}

.industry-detail-page h1,
.industry-detail-page h2,
.industry-detail-page h3,
.industry-detail-page h4 {
  color: #0f172a;
  margin-bottom: var(--space-6, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
}

.industry-detail-page h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: var(--space-8, 2rem);
}

.industry-detail-page h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: var(--space-6, 1.5rem);
}

.industry-detail-page h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: var(--space-4, 1rem);
}

.industry-detail-page p {
  margin-bottom: var(--space-6, 1.5rem);
  max-width: 70ch;
  color: #475569;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ===== ENHANCED CONTRAST AND VISIBILITY ===== */

.industry-detail-page .executive-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 70%, #475569 100%);
}

.industry-detail-page .executive-hero .executive-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.industry-detail-page .executive-hero .title-accent {
  color: #60a5fa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== CARD LAYOUT IMPROVEMENTS ===== */

.strategic-challenges .strategic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12, 3rem);
  max-width: 900px;
  margin: 0 auto;
}

.strategic-challenge {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: var(--space-12, 3rem);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: var(--space-8, 2rem);
}

.strategic-challenge h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: var(--space-4, 1rem);
  line-height: 1.3;
}

.strategic-challenge .challenge-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: var(--space-8, 2rem);
  max-width: none;
}

/* ===== CHALLENGE PRIORITY BADGES ===== */

.challenge-priority {
  position: absolute;
  top: var(--space-6, 1.5rem);
  right: var(--space-6, 1.5rem);
  background: #ef4444;
  color: white;
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== IMPACT METRICS CLARITY ===== */

.challenge-impact {
  background: #f8fafc;
  border-radius: 12px;
  padding: var(--space-6, 1.5rem);
  border-top: 3px solid #3b82f6;
  margin-top: var(--space-6, 1.5rem);
}

.impact-metric {
  background: white;
  border-radius: 8px;
  padding: var(--space-4, 1rem);
  margin-bottom: var(--space-4, 1rem);
  text-align: center;
  border: 1px solid #e2e8f0;
}

.impact-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #059669;
  line-height: 1;
  margin-bottom: var(--space-2, 0.5rem);
}

.impact-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.5;
}

.strategic-approach {
  margin-top: var(--space-4, 1rem);
  padding: var(--space-4, 1rem);
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.approach-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2, 0.5rem);
}

.approach-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  font-style: normal;
}

/* ===== EXPERTISE SECTION IMPROVEMENTS ===== */

.industry-expertise-section {
  background: #ffffff;
  padding: var(--space-20, 5rem) 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8, 2rem);
  margin-top: var(--space-12, 3rem);
}

.expertise-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: var(--space-8, 2rem);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.expertise-card h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: var(--space-4, 1rem);
}

.expertise-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: var(--space-6, 1.5rem);
}

/* ===== MOBILE READABILITY FIXES ===== */

@media (max-width: 768px) {
  .industry-detail-page {
    font-size: 16px;
  }
  
  .industry-detail-page section {
    margin-bottom: var(--space-16, 4rem);
  }
  
  .strategic-challenge {
    padding: var(--space-8, 2rem);
    margin-bottom: var(--space-6, 1.5rem);
  }
  
  .strategic-challenge h3 {
    font-size: 1.375rem;
  }
  
  .strategic-challenge .challenge-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .challenge-priority {
    position: static;
    display: inline-block;
    margin-bottom: var(--space-4, 1rem);
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6, 1.5rem);
  }
  
  .expertise-card {
    padding: var(--space-6, 1.5rem);
  }
  
  .impact-value {
    font-size: 1.75rem;
  }
}

/* ===== SECTION HEADER IMPROVEMENTS ===== */

.executive-header {
  text-align: center;
  margin-bottom: var(--space-16, 4rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.executive-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #0f172a;
  margin-bottom: var(--space-6, 1.5rem);
  line-height: 1.2;
}

.executive-header .executive-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: var(--space-8, 2rem);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CLEAR VISUAL HIERARCHY ===== */

.becloud-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6, 1.5rem);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: var(--space-16, 4rem) 0;
}

/* ===== BUTTON AND CTA IMPROVEMENTS ===== */

.executive-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
  margin-top: var(--space-8, 2rem);
  max-width: 400px;
}

.executive-primary,
.executive-secondary {
  padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  justify-content: center;
  text-align: center;
}

.executive-primary {
  background: #3b82f6;
  color: white;
  border: none;
}

.executive-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.executive-secondary {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.executive-secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

/* ===== TRUST INDICATORS SPACING ===== */

.executive-trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4, 1rem);
  margin-top: var(--space-8, 2rem);
  padding-top: var(--space-6, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  justify-content: center;
  text-align: center;
}

.trust-indicator i {
  color: #60a5fa;
  font-size: 1rem;
}

/* ===== OVERVIEW STATS CLARITY ===== */

.challenge-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6, 1.5rem);
  margin: var(--space-12, 3rem) 0;
}

.overview-stat {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: var(--space-6, 1.5rem);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
  margin-bottom: var(--space-3, 0.75rem);
}

.stat-label {
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.5;
}

/* ===== FOCUS AND ACCESSIBILITY ===== */

.industry-detail-page *:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

.industry-detail-page a:focus,
.industry-detail-page button:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ===== PRINT STYLES ===== */

@media print {
  .industry-detail-page {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  .executive-hero {
    background: none !important;
    color: #000 !important;
  }
  
  .strategic-challenge {
    break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
  }
}