/* ===== INSIGHTS PAGE ENHANCED STYLING =====
   Knowledge-themed blue/purple/cyan styling for professional thought leadership
   Following the successful pattern from service page enhancements
   ================================================ */

/* Knowledge Theme Variables */
.insights-theme {
  --insights-knowledge-primary: #1D4ED8;
  --insights-knowledge-secondary: #8B5CF6;
  --insights-knowledge-accent: #06B6D4;
  --gradient-knowledge: linear-gradient(135deg, #1D4ED8, #8B5CF6, #06B6D4);
  --gradient-knowledge-light: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* Enhanced Hero Section */
.insights-theme .insights-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: var(--gradient-knowledge);
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}

.insights-theme .insights-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(29, 78, 216, 0.15) 0%, transparent 50%);
  animation: meshMove 20s ease-in-out infinite;
  z-index: 1;
}

.insights-theme .insights-hero-content {
  position: relative;
  z-index: 2;
}

/* Hero Elements */
.insights-theme .insights-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.2s forwards;
}

.insights-theme .insights-divider {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.insights-theme .insights-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: var(--space-xl) 0;
  color: white;
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.4s forwards;
}

.insights-theme .insights-hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.6s forwards;
}

.insights-theme .insights-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
  max-width: 50vw;
  margin: 0 auto var(--space-2xl);
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.8s forwards;
}

.insights-theme .insights-stat {
  text-align: center;
}

.insights-theme .insights-stat .stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-xs);
}

.insights-theme .insights-stat .stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.insights-theme .insights-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: slideUp 0.8s ease-out 1s forwards;
}

.insights-theme .insights-floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.insights-theme .floating-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.insights-theme .floating-shape.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.insights-theme .floating-shape.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.insights-theme .floating-shape.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

/* Enhanced Hero Elements */
.insights-theme .insights-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.insights-theme .insights-stats-bar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(29, 78, 216, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.insights-theme .category-filter {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insights-theme .category-filter:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.15);
}

.insights-theme .category-filter.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--insights-knowledge-primary);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.2);
}

/* Navigation Section Spacing Fix - Only for main insights page */
.insights-theme .insights-navigation {
  padding: 1.5rem 0;
}

.insights-theme .insights-navigation.section {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

/* Enhanced Insights Grid */
.insights-theme .insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Specific spacing for main insights page grid only */
.insights-theme .insights.section .insights-grid.insights-page {
  margin-top: 1.5rem;
}

.insights-theme .insight-card {
  display: block;
  visibility: visible;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(29, 78, 216, 0.1);
  box-shadow: 
    0 20px 40px rgba(29, 78, 216, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.insights-theme .insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-knowledge);
}

.insights-theme .insight-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-knowledge-light);
  transform: rotate(45deg);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: -1;
}

.insights-theme .insight-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 32px 64px rgba(29, 78, 216, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(29, 78, 216, 0.2);
}

.insights-theme .insight-card:hover::after {
  opacity: 1;
}

/* Professional Insight Card Elements */
.insights-theme .insight-date {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gradient-knowledge);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.insights-theme .insight-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--insights-knowledge-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  background: var(--gradient-knowledge);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.insights-theme .insight-excerpt {
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.insights-theme .insight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(29, 78, 216, 0.1);
  font-size: 0.875rem;
}

.insights-theme .insight-author {
  color: var(--insights-knowledge-secondary);
  font-weight: 600;
}

.insights-theme .insight-read-time {
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insights-theme .insight-read-time::before {
  content: '📖';
}

.insights-theme .insight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--insights-knowledge-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-knowledge-light);
  border: 1px solid rgba(29, 78, 216, 0.2);
}

.insights-theme .insight-link:hover {
  background: var(--gradient-knowledge);
  color: white;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

/* Newsletter Section Enhancement */
.insights-theme .newsletter {
  background: var(--gradient-knowledge-light);
  border-top: 1px solid rgba(29, 78, 216, 0.1);
  border-bottom: 1px solid rgba(29, 78, 216, 0.1);
}

.insights-theme .newsletter .section-title {
  color: var(--insights-knowledge-primary);
}

.insights-theme .newsletter .form-input {
  border-color: rgba(29, 78, 216, 0.3);
  border-radius: 12px;
}

.insights-theme .newsletter .form-input:focus {
  border-color: var(--insights-knowledge-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.insights-theme .newsletter .btn-primary {
  background: var(--gradient-knowledge);
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-weight: 600;
}

.insights-theme .newsletter .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.2);
}

/* CTA Section Enhancement */
.insights-theme .cta-section {
  background: linear-gradient(135deg, var(--neutral-900) 0%, var(--insights-knowledge-primary) 100%);
}

.insights-theme .cta-section .cta-title {
  color: white;
}

.insights-theme .cta-section .cta-description {
  color: rgba(255, 255, 255, 0.9);
}

.insights-theme .cta-section .btn-primary-enhanced {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.insights-theme .cta-section .btn-primary-enhanced:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.insights-theme .cta-section .cta-benefit {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 0.25rem;
}

/* ========================================
   Sophisticated Insights Footer with Glass Morphism
   Knowledge Theme from Hero Gradient
   ======================================== */

/* Color Variables for Insights Footer */
.insights-theme {
  --insights-primary-rgb: 29, 78, 216;      /* #1D4ED8 - Knowledge Blue */
  --insights-secondary-rgb: 139, 92, 246;   /* #8B5CF6 - Knowledge Purple */
  --insights-accent-rgb: 6, 182, 212;       /* #06B6D4 - Knowledge Cyan */
}

/* Insights Footer Background */
.insights-theme .footer {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 25%, #374151 50%, var(--insights-knowledge-primary) 75%, var(--insights-knowledge-secondary) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: var(--space-5xl) 0 var(--space-3xl) 0;
}

.insights-theme .footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Insights Footer Layout */
.insights-theme .footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

/* Glass Morphism Footer Sections with Knowledge Theme Tint */
.insights-theme .footer-section {
  background: rgba(var(--insights-primary-rgb), 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(var(--insights-primary-rgb), 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.insights-theme .footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B5CF6, #06B6D4);
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insights-theme .footer-section:hover {
  background: rgba(var(--insights-primary-rgb), 0.08);
  border-color: rgba(var(--insights-secondary-rgb), 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(var(--insights-secondary-rgb), 0.12), 0 6px 15px rgba(0, 0, 0, 0.1);
}

.insights-theme .footer-section:hover::before {
  opacity: 1;
}

/* Enhanced Footer Typography with Gradient Text */
.insights-theme .footer-section h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.insights-theme .footer-section h4 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
}

.insights-theme .footer-section h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #06B6D4);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.insights-theme .footer-section:hover h4::after {
  width: 50px;
}

.insights-theme .footer-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.insights-theme .footer-section:hover p {
  color: rgba(255, 255, 255, 0.95);
}

/* Professional List Styling */
.insights-theme .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.insights-theme .footer-section ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.2rem;
  transition: transform 0.2s ease;
}

.insights-theme .footer-section ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: #8B5CF6;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.insights-theme .footer-section ul li:hover {
  transform: translateX(4px);
}

.insights-theme .footer-section ul li:hover::before {
  transform: translateX(4px);
  color: #06B6D4;
}

/* Enhanced Footer Links with Hover Effects */
.insights-theme .footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

.insights-theme .footer-section a:hover {
  color: white;
  background: rgba(var(--insights-secondary-rgb), 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin: -0.4rem -0.8rem;
  box-shadow: 0 4px 12px rgba(var(--insights-secondary-rgb), 0.2);
}

.insights-theme .footer-section a:hover::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #06B6D4);
  border-radius: 1px;
}

/* Enhanced Contact Info */
.insights-theme .contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.insights-theme .contact-info p:hover {
  background: rgba(var(--insights-secondary-rgb), 0.1);
  color: white;
  transform: translateX(4px);
}

/* Sophisticated Tech Badge */
.insights-theme .footer-tech-badge {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(var(--insights-secondary-rgb), 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--insights-secondary-rgb), 0.3);
  border-radius: 25px;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.insights-theme .footer-tech-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.insights-theme .footer-tech-badge:hover::before {
  left: 100%;
}

.insights-theme .footer-tech-badge:hover {
  background: rgba(var(--insights-secondary-rgb), 0.2);
  border-color: rgba(var(--insights-secondary-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--insights-secondary-rgb), 0.15);
}

.insights-theme .footer-tech-badge span {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* Refined Footer Bottom */
.insights-theme .footer-bottom {
  border-top: 1px solid rgba(var(--insights-secondary-rgb), 0.2);
  padding-top: 2rem;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.insights-theme .footer-bottom p {
  margin: 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.insights-theme .footer-bottom p:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .insights-theme .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .insights-theme .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .insights-theme .footer-section {
    padding: 2rem 1.5rem;
  }
  
  .insights-theme .insights-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .insights-theme .insight-card {
    padding: 1.5rem;
  }
  
  .insights-theme .insight-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .insights-theme .insight-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .insights-theme .insight-card {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .insights-theme .insight-title {
    font-size: 1.25rem;
  }
}

/* Missing Responsive Styles for Hero */
@media (max-width: 768px) {
  .insights-theme .insights-hero {
    min-height: 80vh;
    padding: 6rem 0 3rem;
  }

  .insights-theme .insights-hero-title {
    font-size: 2rem;
  }

  .insights-theme .insights-hero-description {
    font-size: 1rem;
  }

  .insights-theme .insights-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
  }

  .insights-theme .insights-stat .stat-number {
    font-size: 1.5rem;
  }

  .insights-theme .insights-categories {
    gap: var(--space-xs);
  }

  .insights-theme .category-filter {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
  }

  .insights-theme .insights-eyebrow {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

@media (max-width: 480px) {
  .insights-theme .insights-stats-bar {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* Animation Refinements */
@keyframes meshMove {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  33% { 
    transform: translate(30px, -30px) scale(1.1); 
  }
  66% { 
    transform: translate(-30px, 30px) scale(0.9); 
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.3; 
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
    opacity: 0.6; 
  }
}

/* Enhanced Scroll Animations */
.insights-theme .scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.insights-theme .scroll-animate.in-view {
  opacity: 1 !important;
  transform: translateY(0);
}