/* =========================================================
   Programmes page styles (page-specific)
   (Aligned with Research page patterns)
   File: /css/pages/programmes.css
   ========================================================= */

/* =========================================================
   Hero background + minor layout tweaks
   ========================================================= */

.hero.hero--programmes {
  background:
    linear-gradient(to right, rgba(5, 9, 20, 0.92), rgba(5, 9, 20, 0.6)),
    url("../../../assets/img/programmes-bg.jpg")
      center/cover no-repeat;
}

.hero--programmes .hero-title {
  max-width: 28ch; /* align with Research hero rhythm */
}

.hero--programmes .hero-accent {
  color: var(--color-primary);
}

/* =========================================================
   Programmes hero card (match Research hero card treatment)
   ========================================================= */

.programmes-hero-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 198, 233, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text-main);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.programmes-hero-card .programme-label {
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

/* Hero card list */
.programmes-hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.programmes-hero-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.programmes-hero-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.18rem;
  font-size: 0.65rem;
  color: var(--color-primary);
}

/* =========================================================
   Ghost buttons: match Research behaviour on light/soft sections
   ========================================================= */

.section-light .btn-ghost,
.section-soft .btn-ghost {
  color: rgba(11, 16, 32, 0.5) !important;
}

.section-light .btn-ghost:hover,
.section-soft .btn-ghost:hover {
  color: var(--color-bg) !important;
}

/* =========================================================
   On-page navigation (match Research nav container approach)
   ========================================================= */

.programmes-nav {
  padding: 26px 0; /* align with Research */
}

.programmes-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.programmes-subnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(245, 245, 247, 0.85);
}

.programmes-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.85);
  text-decoration: none;
  border: 1px solid transparent;
}

.programmes-subnav a:hover {
  background: rgba(255, 147, 76, 0.08);
  border-color: rgba(255, 147, 76, 0.25);
  text-decoration: none;
}

/* =========================================================
   Programme filters (scoped to Programmes page)
   ========================================================= */

.programme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.4rem 0 0.4rem;
}

.programme-filters .filter-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(11, 16, 32, 0.85);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.12s ease;
}

.programme-filters .filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 147, 76, 0.55);
  background: rgba(255, 147, 76, 0.08);
}

.programme-filters .filter-chip.is-active {
  border-color: rgba(255, 147, 76, 0.6);
  background: rgba(255, 147, 76, 0.12);
}

/* Status text: your HTML uses <p class="filter-status"> after filters */
.filter-status {
  text-align: center;
  margin: 0.4rem 0 1rem;
  font-size: var(--fs-sm);
  color: rgba(51, 54, 63, 0.85);
}

/* =========================================================
   Programmes listing grid
   Optional improvement included: tighter gap like Research
   ========================================================= */

.programmes-grid {
  gap: 1.25rem; /* optional improvement: match Research rhythm */
  align-items: stretch;
}

/* =========================================================
   How programmes work (steps grid) — same pattern as Research
   ========================================================= */

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.step {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.02);
  padding: 1.05rem 1.1rem;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 750;
  color: rgba(11, 16, 32, 0.95);
  background: rgba(255, 147, 76, 0.18);
  border: 1px solid rgba(255, 147, 76, 0.28);
  margin-bottom: 0.65rem;
}

.step-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.step-text {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.75);
}

/* =========================================================
   Outcomes + Audiences grids (explicit gap for consistent rhythm)
   ========================================================= */

.outcomes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.audiences-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* =========================================================
   Audiences section cards (you use .governance-card in HTML)
   Ensure paragraph tone matches Research dark-card pattern
   ========================================================= */

.governance-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

.governance-card h3 {
  color: var(--color-text-main);
}

/* =========================================================
   Enquire section: service-list bullets (you use .service-list)
   ========================================================= */

.service-list {
  margin: 0.6rem 0 0.75rem;
  padding-left: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.service-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.28rem;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.12rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* =========================================================
   Enquire section: scoping layout (you use scoping-* classes)
   ========================================================= */

.scoping-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.scoping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.scoping-aside a {
  color: var(--color-primary);
  text-decoration: none;
}

.scoping-aside a:hover {
  text-decoration: underline;
}

.scoping-aside-text {
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.78);
  margin: 0;
}

.scoping-aside-note {
  margin: 0.8rem 0 0;
  font-size: var(--fs-xs);
  color: rgba(11, 16, 32, 0.7);
  line-height: 1.6;
}

/* =========================================================
   Responsive (mirror Research behaviour)
   ========================================================= */

@media (max-width: 960px) {
  .outcomes-grid,
  .audiences-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .programmes-subnav {
    border-radius: 18px;
    justify-content: flex-start;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scoping-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Defensive: ensure [hidden] behaves consistently */
[hidden] {
  display: none !important;
}
