/* Page-only styles for Clickbait pipeline */
/* Uses your global variables/colors from ../css/style.css */

.cb-hero {
  background: #f5fff7;
  padding: 75px 20px 85px;
}

.cb-container {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.cb-title {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.cb-subtitle {
  max-width: 840px;
  margin: 0 auto 30px;
  color: var(--ink-2);
  font-size: 1.12rem;
  line-height: 1.8;
}

.cb-section-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-1);
  margin: 22px 0 20px;
}

/* Pipeline layout */

.cb-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
  margin-top: 18px;
}

/* Center connector line behind cards */

.cb-pipeline::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 42px;
  height: 3px;
  background: rgba(23,112,90,.22);
  border-radius: 999px;
  z-index: 0;
}

/* Card */

.cb-card {
  position: relative;
  z-index: 1;

  background: #fff;
  border-radius: 12px;

  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);

  padding: 22px 20px 18px;

  text-align: left;
}

/* Card header */

.cb-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 10px;
  margin-bottom: 16px;
}

.cb-badge {
  display: inline-block;

  font-size: .82rem;
  font-weight: 700;

  color: var(--primary);
  background: rgba(32,122,67,.10);
  border: 1px solid rgba(32,122,67,.18);

  padding: 5px 10px;
  border-radius: 999px;

  margin-bottom: 10px;
}

.cb-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--ink-1);
}

.cb-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
}

/* Links row */

.cb-links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.cb-link {
  font-size: .96rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}

.cb-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.cb-link-muted {
  color: rgba(23,112,90,.55);
  cursor: default;
  text-decoration: none;
}

.cb-link-muted:hover {
  color: rgba(23,112,90,.55);
  text-decoration: none;
}

/* Back button */

.cb-back {
  margin-top: 28px;
}

/* Responsive */

@media (max-width:980px){

  .cb-pipeline{
    grid-template-columns:1fr;
    gap:20px;
  }

  .cb-pipeline::before{
    left:50%;
    right:auto;
    top:24px;
    width:3px;
    height:calc(100% - 24px);
    transform:translateX(-50%);
  }

}

@media (max-width:600px){

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

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

}