/* ========================================
   INSIGHTS MAIN PAGE STYLES
   Modern, Interactive Design with 50px Radius
   ======================================== */

:root {
  --primary-purple: #4A148C;
  --secondary-purple: #7B1FA2;
  --accent-blue: #1976D2;
  --accent-green: #388E3C;
  --accent-orange: #F57C00;
  --light-bg: #F8F9FA;
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-standard: 50px;
  --header-height: 120px;
}

/* ========================================
   PAGE LAYOUT
   ======================================== */

body[data-page="insights"] {
  background-color: var(--light-bg);
  overflow-x: hidden;
}

main {
  padding-top: calc(var(--header-height) + 20px);
  min-height: 100vh;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Add space from the header to breadcrumb */
.breadcrumb {
  margin-top: 20px;
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.95rem;
  color: #666;
}

.breadcrumb a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--secondary-purple);
}

/* ========================================
   HERO SECTION - COMPACT & ELEGANT
   ======================================== */

.insights-hero {
  max-width: 1400px;
  margin: 2rem auto 4rem;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(74, 20, 140, 0.04) 0%, rgba(25, 118, 210, 0.04) 100%);
  border-radius: var(--radius-standard);
  position: relative;
  overflow: hidden;
}

.insights-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 20, 140, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.insights-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.insights-hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #555;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   INSIGHTS GRID - 3 LARGE CARDS
   ======================================== */

.insights-grid-section {
  max-width: 1400px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

/* ========================================
   INSIGHT CARDS - PREMIUM DESIGN
   ======================================== */

.insight-card {
  background: white;
  border-radius: var(--radius-standard);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  min-height: 500px;
  cursor: pointer;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-purple), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--card-hover-shadow);
}

.insight-card:hover::before {
  transform: scaleX(1);
}

/* Card Background Pattern */
.card-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.05;
  transition: var(--transition-smooth);
  border-radius: 50%;
}

.training-card .card-background {
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.resources-card .card-background {
  background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
}

.ideas-card .card-background {
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
}

.insight-card:hover .card-background {
  transform: scale(1.3);
  opacity: 0.08;
}

/* Card Number Badge */
.card-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.03);
  line-height: 1;
  transition: var(--transition-smooth);
  user-select: none;
}

.insight-card:hover .card-number {
  color: rgba(0, 0, 0, 0.06);
  transform: scale(1.1);
}

/* Card Icon */
.card-icon {
  width: 90px;
  height: 90px;
  border-radius: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.training-card .card-icon {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  color: var(--accent-blue);
}

.resources-card .card-icon {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  color: var(--accent-green);
}

.ideas-card .card-icon {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  color: var(--accent-orange);
}

.insight-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Card Content */
.card-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.card-content h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-content > p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Insight Highlights */
.insight-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insight-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: #555;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.insight-highlights li:last-child {
  border-bottom: none;
}

.insight-highlights i {
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.training-card .insight-highlights i {
  color: var(--accent-blue);
}

.resources-card .insight-highlights i {
  color: var(--accent-green);
}

.ideas-card .insight-highlights i {
  color: var(--accent-orange);
}

/* Card CTA Button */
.insight-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.2rem;
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(74, 20, 140, 0.2);
  position: relative;
  z-index: 2;
}

.insight-cta i {
  transition: transform 0.3s ease;
}

.insight-cta:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(74, 20, 140, 0.3);
}

.insight-cta:hover i {
  transform: translateX(5px);
}

/* Individual Card Accent Colors */
.training-card:hover .insight-cta {
  background: linear-gradient(135deg, var(--accent-blue), #1565C0);
}

.resources-card:hover .insight-cta {
  background: linear-gradient(135deg, var(--accent-green), #2E7D32);
}

.ideas-card:hover .insight-cta {
  background: linear-gradient(135deg, var(--accent-orange), #E65100);
}

/* ========================================
   NEWSLETTER CTA - COMPACT
   ======================================== */

.newsletter-cta {
  max-width: 1400px;
  margin: 5rem auto 6rem;
  padding: 0 2rem;
}

.newsletter-content {
  background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  border-radius: var(--radius-standard);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(74, 20, 140, 0.3);
}

.newsletter-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.newsletter-content::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.newsletter-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.newsletter-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  background: white;
  color: var(--primary-purple);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.btn-subscribe:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #F8F9FA;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
  .insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --radius-standard: 40px;
  }

  .insights-hero {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem 1rem 3rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-content {
    max-width: 100%;
    padding: 0;
  }

  .insights-hero h1 {
    font-size: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .insights-hero p {
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .insight-card {
    padding: 2.5rem 2rem;
    min-height: auto;
  }

  .card-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .card-content h2 {
    font-size: 1.75rem;
  }

  .card-number {
    font-size: 4rem;
  }

  .newsletter-content {
    padding: 3rem 2rem;
  }

  .newsletter-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --radius-standard: 30px;
  }

  .breadcrumb {
    padding: 0.5rem 1rem;
  }

  .insights-hero {
    margin: 1rem 0.5rem;
    padding: 2rem 1rem;
    max-width: calc(100% - 1rem);
    box-sizing: border-box;
  }
  
  .insights-hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .insights-hero p {
    font-size: 1rem;
  }

  .insights-grid-section,
  .newsletter-cta {
    padding: 0 1rem;
  }

  .insight-card {
    padding: 2rem 1.5rem;
  }

  .card-content h2 {
    font-size: 1.5rem;
  }

  .card-number {
    font-size: 3rem;
    top: 1.5rem;
    right: 1.5rem;
  }

  .insight-highlights li {
    font-size: 0.9rem;
  }

  .btn-subscribe {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ANIMATIONS & INTERACTIONS
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
  .insight-card {
    animation: fadeInUp 0.6s ease-out backwards;
  }

  .insight-card:nth-child(1) { animation-delay: 0.1s; }
  .insight-card:nth-child(2) { animation-delay: 0.2s; }
  .insight-card:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .insight-card,
  .newsletter-cta {
    break-inside: avoid;
  }
  
  .insights-hero::before,
  .newsletter-content::before,
  .newsletter-content::after {
    display: none;
  }
}

