/* ---------- BLOG & NEWS COMPONENT ---------- */
/* Define the vibrant cyan specifically for the blog section */
:root {
  --blog-cyan: #17E2CB; 
}

.blog-news-section {
  padding: 100px 0;
  background: #F8FAFC; /* A very subtle off-white to make the white cards pop */
}

/* Header Layout */
.blog-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.blog-header-left {
  flex: 1;
}

.blog-header-right {
  flex: 0 0 45%;
  border-left: 2px solid var(--blog-cyan);
  padding-left: 24px;
}

/* Typography & Wavy Effects */
.blog-eyebrow {
  display: block;
  font-size: 15px;
  font-style: italic;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 500;
}

.blog-eyebrow .wavy-cyan {
  color: var(--blog-cyan);
  text-decoration: underline wavy var(--blog-cyan);
  text-underline-offset: 4px;
}

.blog-header-left h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* Update the word color to cyan */
.blog-header-left h2 .cyan-underline {
  color: var(--blog-cyan);
  position: relative;
  display: inline-block;
}

/* Create the curved swoosh effect */
.blog-header-left h2 .cyan-underline::after {
  content: '';
  position: absolute;
  left: -5%; /* Pulls the line slightly outside the word */
  bottom: -4px;
  width: 110%; /* Makes the line slightly wider than the text */
  height: 12px; /* Gives the border room to arc */
  border-bottom: 3px solid var(--blog-cyan);
  border-radius: 50%; /* Creates the curved smile effect */
  background: transparent;
}

.blog-header-right p {
  color: var(--steel-soft);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- BLOG CAROUSEL TRACK (3-Column Base) ---------- */
.blog-carousel-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 30px;
  scrollbar-width: none;
}

.blog-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Lock cards to 33.333% width */
.blog-card {
  width: calc(33.333% - 20px);
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: left;
}

/* ---------- BLOG CARD STYLING ---------- */
.blog-card-image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Overlapping Cyan Badge */
/* Overlapping Cyan Ribbon Badge */
.blog-category-badge {
  position: absolute;
  bottom: 20px; /* Floats the badge slightly up from the bottom edge */
  left: 0;
  background: var(--blog-cyan);
  color: var(--ink); /* Dark text for contrast */
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  
  /* Extra padding on the right to accommodate the cutout */
  padding: 8px 28px 8px 16px; 
  
  /* Creates the ribbon cutout effect on the right side */
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}

.blog-card-content {
  padding: 32px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Meta Data (Date & Comments) */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #999;
  margin-bottom: 16px;
}

.blog-meta i {
  color: var(--blog-cyan);
}

.meta-separator {
  color: #ddd;
}

/* Title */
.blog-title {
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: 24px;
  font-weight: 600;
}

.blog-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-title a:hover {
  color: var(--blog-cyan);
}

/* Read More Button */
.blog-read-more {
  margin-top: auto; /* Pushes to bottom regardless of title height */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-read-more i {
  font-size: 15px;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.blog-read-more:hover {
  color: var(--blog-cyan);
}

.blog-read-more:hover i {
  transform: translateX(6px);
}

/* ---------- RESPONSIVE BEHAVIOR ---------- */
@media (max-width: 960px) {
  .blog-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-header-right {
    padding-left: 16px;
    border-left-width: 3px;
  }
  .blog-card {
    width: calc(50% - 15px);
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 600px) {
  .blog-card {
    width: 100%;
    flex: 0 0 100%;
  }
}