/* ===== INSIGHTS SECTION (Homepage) ===== */
/* Uses container-wrapper/container-inner for alignment like case studies */

.insights-section {
  background: #fff9f8;
  padding: 100px 0 120px;
}

.insights-section .container-wrapper {
  padding-left: 6vw;
  padding-right: 6vw;
}

.insights-section .container-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.insights-header {
  text-align: center;
  margin-bottom: 60px;
}

.insights-title {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--theme, #32013a);
  margin: 0 0 1rem 0;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(20px);
}

.insights-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--theme, #32013a);
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
}

/* Grid - 3 columns */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 60px;
}

/* Override blog-card styles for insights section */
.insights-section .blog-card {
  opacity: 0;
  transform: translateY(30px);
  margin: 0;
  padding: 0;
}

.insights-section .blog-card:hover {
  background-color: transparent;
}

.insights-section .blog-card-image {
  border-radius: 2px;
  overflow: hidden;
}

.insights-section .blog-card-content {
  padding-top: 1.25rem;
}

/* CTA Link */
.insights-cta {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.insights-cta-link {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme, #32013a);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

.insights-cta-link:hover {
  opacity: 0.7;
}

.insights-cta-arrow {
  font-weight: 300;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.insights-cta-link:hover .insights-cta-arrow {
  transform: translateX(4px);
}

/* ===== ANIMATIONS ===== */

.insights-section.in-view .insights-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.insights-section.in-view .insights-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.insights-section.in-view .blog-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.2s + var(--card-index, 0) * 0.1s);
}

.insights-section.in-view .insights-cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

/* ===== RESPONSIVE ===== */

/* Large Desktop (1600px+) */
@media (min-width: 1600px) {
  .insights-section {
    padding: 120px 0 140px;
  }

  .insights-title {
    font-size: 3rem;
  }

  .insights-grid {
    gap: 4rem;
  }
}

/* Tablet (991px and below) */
@media (max-width: 991px) {
  .insights-section {
    padding: 80px 0 100px;
  }

  .insights-title {
    font-size: 2.5rem;
  }

  .insights-header {
    margin-bottom: 50px;
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  /* Hide third card on tablet */
  .insights-grid .blog-card:nth-child(3) {
    display: none;
  }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
  .insights-section {
    padding: 70px 0 90px;
  }

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

  .insights-subtitle {
    font-size: 1rem;
  }

  .insights-header {
    margin-bottom: 40px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 40px;
  }

  /* Show all cards on mobile (stacked) */
  .insights-grid .blog-card:nth-child(3) {
    display: flex;
  }
}

/* Small Mobile (479px and below) */
@media (max-width: 479px) {
  .insights-section {
    padding: 60px 0 80px;
  }

  .insights-header {
    margin-bottom: 35px;
  }

  .insights-grid {
    gap: 1.75rem;
    margin-bottom: 35px;
  }

  .insights-cta-link {
    font-size: 0.95rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .insights-title,
  .insights-subtitle,
  .insights-section .blog-card,
  .insights-cta {
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
