/* ===== INDUSTRY PAGES SECTION ORGANIZATION ===== */
/* Fixes for jumbled sections and improved content flow */

/* ===== SECTION CONTAINER IMPROVEMENTS ===== */

.industry-detail-page {
  overflow-x: hidden;
}

.industry-detail-page section {
  position: relative;
  clear: both;
  width: 100%;
  margin-bottom: var(--space-24, 6rem);
}

.industry-detail-page .becloud-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6, 1.5rem);
  position: relative;
  z-index: 1;
}

/* ===== SECTION SEPARATORS ===== */

.industry-detail-page section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: calc(var(--space-12, 3rem) * -1);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 20%, rgba(59, 130, 246, 0.6) 50%, rgba(59, 130, 246, 0.3) 80%, transparent 100%);
  border-radius: 1px;
}

/* ===== HERO SECTION ORGANIZATION ===== */

.industry-detail-page .executive-hero {
  margin-bottom: 0;
  padding-bottom: var(--space-24, 6rem);
}

.industry-detail-page .hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12, 3rem);
  align-items: start;
}

.industry-detail-page .detail-hero-content {
  order: 1;
  max-width: none;
}

.industry-detail-page .hero-strategic-visual {
  order: 2;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CHALLENGES SECTION ORGANIZATION ===== */

.strategic-challenges {
  background: #ffffff;
  padding: var(--space-24, 6rem) 0;
  position: relative;
}

.strategic-challenges::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  z-index: 0;
}

.strategic-challenges .becloud-container {
  position: relative;
  z-index: 1;
}

.strategic-challenges .executive-header {
  margin-bottom: var(--space-20, 5rem);
  text-align: center;
}

.strategic-challenges .strategic-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-16, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

/* ===== CHALLENGE CARD IMPROVEMENTS ===== */

.strategic-challenge {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: var(--space-12, 3rem);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
}

.strategic-challenge:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.strategic-challenge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.strategic-challenge:hover::before {
  opacity: 1;
}

/* ===== CHALLENGE CONTENT ORGANIZATION ===== */

.strategic-challenge .challenge-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8, 2rem);
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.strategic-challenge h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: var(--space-6, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

/* ===== CHALLENGE PRIORITY POSITIONING ===== */

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

/* ===== IMPACT METRICS ORGANIZATION ===== */

.strategic-challenge .challenge-impact {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: var(--space-8, 2rem);
  margin-top: var(--space-8, 2rem);
}

.strategic-challenge .impact-metric {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: var(--space-6, 1.5rem);
  margin-bottom: var(--space-6, 1.5rem);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.strategic-challenge .impact-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #059669;
  line-height: 1;
  margin-bottom: var(--space-3, 0.75rem);
}

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

.strategic-challenge .strategic-approach {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: var(--space-6, 1.5rem);
  border-left: 4px solid #3b82f6;
}

.strategic-challenge .approach-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3, 0.75rem);
}

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

/* ===== EXPERTISE SECTION ORGANIZATION ===== */

.industry-expertise-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: var(--space-24, 6rem) 0;
  position: relative;
}

.industry-expertise-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="expertise-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(59,130,246,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23expertise-dots)"/></svg>');
  opacity: 0.4;
  z-index: 0;
}

.industry-expertise-section .becloud-container {
  position: relative;
  z-index: 1;
}

.industry-expertise-section .expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-10, 2.5rem);
  margin-top: var(--space-16, 4rem);
}

/* ===== RECOGNITION SECTION ORGANIZATION ===== */

.industry-recognition-section {
  background: #ffffff;
  padding: var(--space-24, 6rem) 0;
  border-top: 1px solid #e2e8f0;
}

.industry-recognition-section .recognition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-12, 3rem);
  margin-top: var(--space-16, 4rem);
}

.industry-recognition-section .recognition-category {
  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;
}

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

/* ===== CTA SECTION ORGANIZATION ===== */

.industry-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: var(--space-24, 6rem) 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.industry-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.industry-cta-section .becloud-container {
  position: relative;
  z-index: 1;
}

.industry-cta-section .cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

@media (max-width: 768px) {
  .industry-detail-page section {
    margin-bottom: var(--space-16, 4rem);
  }
  
  .industry-detail-page section:not(:last-child)::after {
    bottom: calc(var(--space-8, 2rem) * -1);
    width: 60px;
  }
  
  .strategic-challenges {
    padding: var(--space-16, 4rem) 0;
  }
  
  .strategic-challenges .strategic-grid {
    gap: var(--space-12, 3rem);
  }
  
  .strategic-challenge {
    padding: var(--space-8, 2rem);
    border-radius: 16px;
  }
  
  .strategic-challenge .challenge-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: var(--space-6, 1.5rem);
  }
  
  .strategic-challenge h3 {
    font-size: 1.5rem;
  }
  
  .strategic-challenge .challenge-description {
    font-size: 1rem;
  }
  
  .strategic-challenge .challenge-priority {
    position: static;
    display: inline-block;
    margin-bottom: var(--space-4, 1rem);
  }
  
  .industry-expertise-section,
  .industry-recognition-section,
  .industry-cta-section {
    padding: var(--space-16, 4rem) 0;
  }
  
  .industry-expertise-section .expertise-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8, 2rem);
  }
  
  .industry-recognition-section .recognition-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8, 2rem);
  }
}

@media (max-width: 480px) {
  .industry-detail-page section {
    margin-bottom: var(--space-12, 3rem);
  }
  
  .strategic-challenge {
    padding: var(--space-6, 1.5rem);
  }
  
  .strategic-challenge .challenge-impact {
    padding: var(--space-6, 1.5rem);
  }
  
  .strategic-challenge .impact-value {
    font-size: 2rem;
  }
}

/* ===== PRINT ORGANIZATION ===== */

@media print {
  .industry-detail-page section {
    break-inside: avoid;
    margin-bottom: 2rem;
  }
  
  .strategic-challenge {
    break-inside: avoid;
    margin-bottom: 1rem;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .industry-detail-page section:not(:last-child)::after {
    display: none;
  }
}