/* ==========================================================================
   College collaboration (FLAT 50% OFF) – shared by / (home band), /subscription and
   /zoho_partnership. Uses the tokens of /css/newstyle.css.
   .college-band  – one-line band with the two partner links (home page)
   .ccol          – the full section: who gets what, and the three steps
   ========================================================================== */

:root {
  --ccol-green: #12a150;
  --ccol-green-ink: #0b6b3a;
  --ccol-green-soft: #e3f8ec;
  --ccol-green-line: #9fdcb9;
}

[data-theme="dark"] {
  --ccol-green-ink: #7be3a8;
  --ccol-green-soft: rgba(18, 161, 80, .16);
  --ccol-green-line: rgba(18, 161, 80, .45);
}

/* ---------- round "50% FLAT OFF" seal ---------- */
.college-band-off {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--ccol-green);
  box-shadow: 0 0 0 6px rgba(18, 161, 80, .16);
}

.college-band-off b { display: block; font-size: 30px; letter-spacing: -1px; }
.college-band-off small { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: #fff; }

/* ---------- home band ---------- */
.college-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  padding: 26px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ccol-green-line);
  background: linear-gradient(100deg, var(--ccol-green-soft), var(--bg-surface) 70%);
  box-shadow: var(--card-shadow);
}

.college-band h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -.4px;
  color: var(--text-main);
}

.college-band p { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.college-band-links { display: grid; gap: 8px; }
.college-band-links .button { justify-content: center; white-space: nowrap; }

/* ---------- full section ---------- */
.ccol-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.ccol-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.3vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text-main);
}

.ccol-head p { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.ccol-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 22px;
  align-items: stretch;
}

/* the three steps: a real sequence, so they are numbered */
.ccol-steps {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(18, 161, 80, .38), transparent 60%),
    linear-gradient(160deg, #0a1b38, #0f2c5c);
}

.ccol-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: ccol; }

.ccol-steps > p {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.ccol-steps li {
  position: relative;
  counter-increment: ccol;
  padding: 0 0 20px 46px;
  font-size: 14px;
  line-height: 1.55;
  color: #c9d8f0;
}

.ccol-steps li:last-child { padding-bottom: 0; }

.ccol-steps li::before {
  content: counter(ccol);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #06331b;
  background: #5fe39a;
}

.ccol-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 4px;
  width: 2px;
  background: rgba(95, 227, 154, .35);
}

.ccol-steps li b { display: block; margin-bottom: 2px; font-size: 15px; color: #fff; }

.ccol-who { display: grid; gap: 14px; }

.ccol-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--card-shadow);
}

.ccol-card.is-here { border-color: var(--ccol-green-line); box-shadow: var(--card-shadow), 0 0 0 3px var(--ccol-green-soft); }

.ccol-card > i {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 19px;
  color: var(--ccol-green-ink);
  background: var(--ccol-green-soft);
}

.ccol-card h3 { margin: 0; font-family: var(--font-display); font-size: 18px; color: var(--text-main); }
.ccol-card .ccol-deal { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ccol-green-ink); }
.ccol-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.ccol-card a { color: var(--brand-blue); font-weight: 700; }

.ccol-cert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-main);
  background: var(--ccol-green-soft);
  border: 1px solid var(--ccol-green-line);
}

.ccol-cert i { flex: 0 0 auto; font-size: 20px; color: var(--ccol-green-ink); }

.ccol-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (max-width: 900px) {
  .college-band { grid-template-columns: auto minmax(0, 1fr); }
  .college-band-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ccol-body { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .college-band { grid-template-columns: 1fr; padding: 20px; }
  .college-band-links { grid-template-columns: 1fr; }
  .ccol-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ccol-steps { padding: 22px 20px; }
  .ccol-card { padding: 18px; }
  .ccol-cert { align-items: flex-start; }
}
