/* ===========================
   INSIGHTS PAGE
=========================== */

body.insights-page {
  background: #ffffff;
}

.insights-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 0rem 3rem;
}

/* Hero */
.insights-hero-inner {
  max-width: 800px;
  margin-bottom: 2rem;
}

.insights-title {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--dark-green);
  margin: 0 0 0.5rem;
}

.insights-subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--light-grey);
}

/* Section headers */
.insights-section {
  margin-bottom: 3rem;
}

.insights-section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
}

.insights-section-header h2 a {
  color: var(--dark-green);
  text-decoration: none;
}

.insights-section-header h2 a:hover {
  text-decoration: underline;
}

/* Carousel */
.insights-carousel {
  position: relative;
  overflow: hidden;
}

.insights-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Card */
.insights-card {
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid #d9e8e0;
  overflow: hidden;
  width: 300px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin-right: 1rem; /* JS reads this */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.insights-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.insights-card.is-clickable {
  cursor: pointer;
}

.insights-card.is-clickable:focus-visible {
  outline: 2px solid var(--dark-green);
  outline-offset: 2px;
}

.insights-card-image {
  height: 180px;
  overflow: hidden;
  background: #f5f7f6;
}

.insights-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.insights-card:hover .insights-card-image img {
  transform: scale(1.05);
}

.insights-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Tag */
.insights-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--dark-green);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Text */
.insights-card-body h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--dark-green);
}

.insights-card-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5a55;
}

/* Read more */
.insights-read-more {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-green);
  text-decoration: none;
}

.insights-read-more:hover {
  text-decoration: underline;
}

/* Dots */
.insights-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.75rem;
}

.insights-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #d9e8e0;
  cursor: pointer;
}

.insights-dots button.is-active {
  background: var(--dark-green);
}

/* ===========================
   MOBILE (1.5 cards visible)
=========================== */
@media (max-width: 900px) {

  .insights-main {
    padding: 1.25rem 1rem 2.5rem;
  }

  .insights-title {
    font-size: 2.1rem;
  }

  .insights-card {
    width: 72vw;       /* 1.5 cards visible */
    max-width: 320px;
  }

  .insights-card-image {
    height: 160px;
  }
}
