/* ============================================
   NEXCORE — Shared Page Styles (interior pages)
   ============================================ */

/* ---- Page Hero / Banner ---- */
.page-hero {
  background: linear-gradient(145deg, #0c377b 0%, #082d65 40%, #061e45 100%);
  color: #fff;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(67, 146, 92, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(58, 194, 31, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 700px;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
}

.page-hero-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.page-hero-breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.page-hero-breadcrumb span { color: rgba(255,255,255,0.3); }

.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 60ch;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35em 1em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  width: fit-content;
}

.page-hero-badge.badge-green-hero {
  background: rgba(67, 146, 92, 0.25);
  border-color: rgba(67, 146, 92, 0.4);
  color: rgba(255,255,255,0.9);
}

.page-hero-badge.badge-orange-hero {
  background: rgba(251, 117, 8, 0.25);
  border-color: rgba(251, 117, 8, 0.4);
  color: rgba(255,255,255,0.9);
}

/* ---- Prose content sections ---- */
.prose-section {
  background: var(--color-bg);
}

.prose-section p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.prose-section p:last-child { margin-bottom: 0; }

.prose-section h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.prose-section h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

/* ---- Two-column layout for detail pages ---- */
.two-col-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  align-items: start;
}

.two-col-layout.reverse {
  grid-template-columns: 1fr 2fr;
}

.sticky-sidebar {
  position: sticky;
  top: calc(72px + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* ---- CTA Sidebar Card ---- */
.cta-sidebar-card {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cta-sidebar-card h3 {
  font-size: var(--text-lg);
  color: #fff;
  line-height: 1.3;
}

.cta-sidebar-card p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  max-width: none;
}

.cta-sidebar-card .btn {
  width: 100%;
  justify-content: center;
}

/* ---- Key Features / Benefit List ---- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  max-width: none;
}

.feature-list-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-list-text h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
}

.feature-list-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* ---- Comparison table ---- */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.comparison-table th {
  background: var(--color-navy);
  color: #fff;
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.comparison-table th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.comparison-table th.header-green {
  background: var(--color-primary);
}

.comparison-table td {
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  vertical-align: middle;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--color-surface); }

.comparison-table .check {
  color: var(--color-primary);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--color-text-faint);
}

/* ---- Step flow ---- */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step-flow::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-navy));
  border-radius: var(--radius-full);
}

.step-item {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  position: relative;
}

.step-item:last-child { padding-bottom: 0; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  font-family: var(--font-body);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-primary-highlight);
}

.step-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  padding-top: var(--space-2);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 56ch;
}

/* ---- Info card grid (candidates / requirements) ---- */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.info-card h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.info-card ul li {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  max-width: none;
}

.info-card ul li::before {
  content: '•';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Highlight quote ---- */
.highlight-quote {
  padding: clamp(var(--space-6), 3vw, var(--space-10)) clamp(var(--space-6), 4vw, var(--space-12));
  background: var(--color-surface-offset);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-block: var(--space-8);
}

.highlight-quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 !important;
}

/* ---- Page section with green bg ---- */
.section-green-bg {
  background: var(--color-primary);
  color: #fff;
}

.section-green-bg h2 { color: #fff; }
.section-green-bg .section-label { color: rgba(255,255,255,0.7); }
.section-green-bg .section-label::before { background: rgba(255,255,255,0.5); }

.section-navy-bg {
  background: var(--color-navy);
  color: #fff;
}

/* ---- Bottom CTA section on pages ---- */
.page-cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0a2e60 100%);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(67, 146, 92, 0.18) 0%, transparent 60%);
}

.page-cta-section > * { position: relative; }

.page-cta-section h2 {
  font-size: var(--text-xl);
  color: #fff;
  max-width: 560px;
  margin-inline: auto;
}

.page-cta-section p {
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-4);
  margin-inline: auto;
  max-width: 52ch;
}

.page-cta-section .cta-btns {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col-layout,
  .two-col-layout.reverse {
    grid-template-columns: 1fr;
  }
  .sticky-sidebar {
    position: static;
  }
  .info-card-grid { grid-template-columns: 1fr; }
}
